Batch submit orders
The playground uses your live account
Submit up to 100 draft orders to a connected courier in one request. Submitted orders are picked up at the pickup location (or shipped to the courier) and delivered from the courier's depot. Always returns 200 when the courier is valid; per-order outcomes are split across success and failed.
AuthorizationBearer <token>Pass the API key directly as the token.
Input shape accepted by POST /orders:submit.
application/json- body
Input shape accepted by POST /orders:submit.
orderIds*array<>The orders to submit. At most 100 per request.
1 <= items <= 100courierId*stringThe courier to submit the orders to. Must be a courier connected to the retailer.
^couriers\/[a-zA-Z0-9_-]{1,50}$The per-order results. Always returned when the request itself is valid, even when every order fails.
application/json- response
The per-order results. Always returned when the request itself is valid, even when every order fails.
success*array<>The ids of the orders processed successfully.
failed*array<>The order ids that failed, each with the public error code.
curl -X POST 'https://api.spoke.com/connect/v1/orders:submit' \ -H 'Content-Type: application/json' \ -d '{ "orderIds": [ "string" ], "courierId": "string"}'{ "success": [ "string" ], "failed": [ { "orderId": "string", "error": { "code": "order_not_found", "message": "string" } } ]}Was this page helpful?
Batch import orders POST
Create up to 100 orders for the authenticated retailer in one request. Always returns `200`; per-item outcomes are split across `success` and `failed`.
Batch withdraw orders POST
Withdraw up to 100 submitted orders back to draft in one request. An order that has already been added to a route can no longer be withdrawn. Always returns `200`; per-order outcomes are split across `success` and `failed`.