Connect API

Delete an order

DELETE
/orders/{id}

The playground uses your live account

Requests are sent with your real API key, so creating, updating or deleting here changes your production data.

Delete an order for the authenticated retailer. Only a draft order can be deleted: a submitted order must be withdrawn first, and a read-only order (added by the courier, or already on a route) cannot be deleted.

Authorization

headerAuthorizationBearer <token>

Pass the API key directly as the token.

Path Parameters

id*string

The Spoke order ID.

Match^[a-zA-Z0-9_-]{1,50}$
Length1 <= length <= 50

Response Body

The order was deleted.

Example Request
curl -X DELETE 'https://api.spoke.com/connect/v1/orders/string'
Example Response
Empty

Was this page helpful?