Batch withdraw orders
The playground uses your live account
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.
AuthorizationBearer <token>Pass the API key directly as the token.
Input shape accepted by POST /orders:withdraw.
application/json- body
Input shape accepted by POST /orders:withdraw.
orderIds*array<>The orders to withdraw. At most 100 per request.
1 <= items <= 100The 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 withdrawn successfully.
failed*array<>The order ids that failed, each with the public error code.
curl -X POST 'https://api.spoke.com/connect/v1/orders:withdraw' \ -H 'Content-Type: application/json' \ -d '{ "orderIds": [ "string" ]}'{ "success": [ "string" ], "failed": [ { "orderId": "string", "error": { "code": "order_not_submitted", "message": "string" } } ]}Was this page helpful?
Batch submit orders POST
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`.
Retrieve an order GET
Retrieve a single order for the authenticated retailer.