Beta

The Partner Trading API v1 is in beta — endpoints and response shapes may still change.

Developers
Cru World Wine
API v1 · REST & MCP
Warehouses

Suggest an inbond warehouse

Suggests a warehouse outside Cru that is not in list_inbond_warehouses, for Cru to add. Until Cru approves it, only this customer sees it - in list_inbond_warehouses, marked pending - and can use its inbond_address_id, for wine held outside Cru or an inbond address. Check list_inbond_warehouses first: a warehouse already listed is refused. It is carried out straight away, with no confirmation step; sending the same reference again returns the first result instead of doing it twice.

WRITEsuggest_inbond_warehouseLIVE
Needswarehouses:suggestRESTPOST /warehouses/inbondTry it
Only where Cru has granted warehouses:suggest

Cru grants warehouses:suggest on request, to a partner credential, and never through OAuth: an assistant connected as an app is never offered this tool. Ask Cru to enable it. Without it, the customer emails [email protected] and Cru adds the warehouse, as the Cru website says.

Saves straight away

There is no confirmation step: what it is given is saved as soon as it is called. It takes a reference, as a partner’s REST write does, and is marked idempotentHint: sending the same reference again returns the first result instead of doing it twice.

Arguments

3 REQUIRED
ARGUMENTDESCRIPTION
namestring · ≤ 100 chars · required The warehouse's name.
countrystring · 2 letters · required Two-letter country code, like GB or FR.
citystring · ≤ 100 chars Optional: its town or city.
streetstring · ≤ 150 chars Optional: its street address.
regionstring · ≤ 100 chars Optional: its county, state or region.
postcodestring · ≤ 20 chars Optional: its postcode.
telephonestring · ≤ 30 chars Optional: its phone number.
is_bondedboolean Whether it is a bonded warehouse, which is the default. Only a bonded one can be an inbond address.
referencestring · ≤ 50 chars · required Your own unique reference for this instruction.

Any other argument is refused with a tool error that lists what the tool accepts. Numbers may also be sent as strings, and booleans as "true" or 1.

Returns

STRUCTUREDCONTENT

The saved warehouse, in the shape list_inbond_warehouses gives it, with pending: true.

The same object also comes as JSON text in content, for hosts that read only that.

Errors

A refusal — a wine that is not on Cru, a price out of range — comes back as a result with isError: true and a message worded for the assistant to act on. A connection without warehouses:suggest is not offered this tool, and calling it anyway returns 403 with a JSON-RPC error naming the scope. Missing or invalid credentials return 401. Conventions every tool shares →

UP NEXT Search wines

API credentials

Enter the client key and secret issued by Cru. They are kept for this browser tab’s session — a reload keeps them, closing the tab or clearing them ends them.

Credentials are never included in copied examples, and are redacted from anything the console prints back.

Request API access

Tell us who you are and what you want to build. Cru issues a client key and secret for your organisation, scoped to what you need.

Markets you trade in (choose one or more)

We use what you send here to reply about API access, and for nothing else. Cloudflare Turnstile checks the form for bots (privacy policy).