Request a shipment from your stock
create_shipmentRequest a shipment from your stock. Creates a shipment like the portal's New shipment form and reserves its stock; not enough available stock returns 422 stock_short. The warehouse packs it, sets the shipping and sends a freight quote, which must be confirmed before the shipment goes out. A shipment can be cancelled until the quote is sent. Creating a shipment doesn't charge the wallet. A retry with the same idempotencyKey returns the first result instead of creating it twice. Needs the shipments:write permission.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"countryCode": "<countryCode>",
"lines": "<lines>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_shipment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| kind | Yes | WHOLESALE ships to an address, FBA to an Amazon warehouse | |
| note | No | ||
| lines | Yes | Products from your stock (productId from your stock list) with quantities; each product once | |
| address1 | No | ||
| address2 | No | ||
| province | No | ||
| channelId | No | A shipping option from a shipment estimate (options[].channelId). Leave empty to let us choose; then send transportMode. | |
| postalCode | No | ||
| countryCode | Yes | Two-letter country code, for example US | |
| fbaShipmentId | No | ||
| recipientName | No | ||
| transportMode | No | How we should ship it when channelId is empty: AIR, SEA, EXPRESS, TRUCK | |
| idempotencyKey | Yes | Make up a new unique value for each new action; reuse the same value only when retrying the same action. | |
| recipientPhone | No | ||
| fbaWarehouseCode | No | Amazon warehouse code; required for FBA |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| replayed | No | true when this is the saved result of an earlier call with the same idempotencyKey |