Create Multiple Shipments
Adds shipments to multiple orders in a single request. Each entry in the array carries its own order_id.
This consumes a single rate limit token for the whole request rather than one token per order.
The response contains a results array with one entry per shipment, in the order submitted. Individual entries can fail while the request itself returns 200, so these results should be inspected.
Your API key, found under Store Settings on the API tab. This should be kept server-side.
Your store ID, found under Store Settings on the API tab.
Order Desk's internal ID for the order this shipment belongs to.
925086Carrier-assigned tracking number. Use n/a if no tracking number is applicable.
1Z999AA10123456784Carrier code such as USPS or FedEx, when available.
UPSShipping service name, such as First Class International.
UPS GroundFinal shipment weight.
2.4Your cost to send the shipment.
9.5Current shipment status, used by the EasyPost webhook.
If omitted, Order Desk attempts to determine it from the tracking number format and carrier code.
The batch was processed. Inspect results for the outcome of each
shipment.
Either success or error.
Describes the result. Always present when an error occurs.
Time taken to process the request.
0.1524 seconds925086Outcome for this individual shipment.
Shipment AddedThe request was rejected. message names the problem.
Authentication failed. See the Authentication guide, and note that an invalid store ID blocks your store rather than simply failing the request.
You are sending too fast. Wait X-Retry-After seconds. See
the Rate Limits guide.
The request could not be completed.
curl "https://app.orderdesk.me/api/v2/batch-shipments" \
-X POST \
-H "ORDERDESK-STORE-ID: your-store-id" \
-H "ORDERDESK-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '[{"order_id": 925086, "tracking_number": "1Z999AA10123456784", "carrier_code": "UPS", "shipment_method": "UPS Ground", "weight": 2.4, "cost": 9.5}, {"order_id": 925087, "tracking_number": "9400111899223197428490", "carrier_code": "USPS", "shipment_method": "Priority Mail", "weight": 1.1, "cost": 7.75}]'
{
"status": "success",
"message": "text",
"execution_time": "0.1524 seconds",
"results": [
{
"order_id": 925086,
"status": "success",
"message": "Shipment Added"
}
]
}Last updated
Was this helpful?

