Preview Bulk Delete Sales Orders
POST/api/sales-orders/bulk-delete/preview
Before deleting sales orders (in bulk, or one with ids: [id]): what the delete would do.
orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
selected: how many orders the selection covers.channels_with_order_sync[](integration_instance_id,name,integration,orders_count): sales channel connections with order sync on. While order sync is on, a channel imports any of its orders that have no sales order, so orders deleted from such a channel come back unless sync is paused and their channel orders archived (see Bulk Delete Sales Orders (Tracked)).kept: the orders the delete will keep and why, from the same checks the delete makes (returned stock used elsewhere, PayPal payments, a credit on another order, an issued or consolidated sales invoice, stock movements in the closed period, a drop-ship vendor label in progress).count;checkedandunchecked(the first 500 orders are checked here, the rest as the delete runs);groups[]withreason,label,count,message,next_stepand the first orders by name (items[]:id,label,link,detail).dropship_purchasing: orders whose drop-ship purchase orders have a vendor invoice. They are deleted; by default their purchase orders, invoices and payments are kept as standalone purchase records.orders_count,purchase_orders_count,invoices_count,deletable_count(orders whose records can be deleted withdelete_dropship_purchasing),truncated, andorders[](first 50):sales_order_id,sales_order_number,link,can_delete_purchasing,blocked_reasons[](why not: synced to accounting, closed period, supplier payment run, vendor deposit or credit, label in progress),purchase_orders[](id,purchase_order_number,link,invoices[]withid,invoice_number,status,link,payments_count).
Authentication: Requires Bearer token.
Body: the same ids / apply_to_all + filters selection as Bulk Delete Sales Orders (Tracked).
Requires permission: sales_orders.delete
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.