For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete an Order

Permanently deletes an order along with its items, shipments, notes, and history. This cannot be undone.

To remove an order from your working view while retaining the record, move it to a Canceled or Closed folder instead. See the Folders guide.

delete
Authorizations
ORDERDESK-API-KEYstringRequired

Your API key, found under Store Settings on the API tab. This should be kept server-side.

ORDERDESK-STORE-IDstringRequired

Your store ID, found under Store Settings on the API tab.

Path parameters
order_idintegerRequired

Order Desk's internal order ID. This is not your source_id.

Example: 736745
Responses
200

The order was deleted.

application/json
statusstring · enumRequired

Either success or error.

Possible values:
messagestringOptional

Describes the result. Always present when an error occurs.

execution_timestringOptional

Time taken to process the request.

Example: 0.1524 seconds
delete/orders/{order_id}
curl "https://app.orderdesk.me/api/v2/orders/736745" \
  -X DELETE \
  -H "ORDERDESK-STORE-ID: your-store-id" \
  -H "ORDERDESK-API-KEY: your-api-key"
{
  "status": "success",
  "message": "Order 736745 Deleted",
  "execution_time": "0.0836 seconds"
}

Last updated

Was this helpful?