Bulk Delete SKU Orders for Target Plus Orders
POST/api/target-plus/:integrationInstance/orders/bulk-delete-sku-orders
Deletes the SKU.io sales orders linked to the chosen Target Plus orders and keeps the Target Plus orders, now unlinked. Orders without a linked sales order are ignored, and nothing changes on Target. A sales order that may not be deleted (for example it has received returns, PayPal payments or credits) is skipped and reported; the rest are still deleted.
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Unlinked orders that are still eligible are turned into SKU.io sales orders again by the automatic order creation; send archive_target_plus_orders: true to archive the Target Plus orders as well, so that does not happen.
One linked order is handled right away (tracked_job_log_id is null; 422 with the reason when its sales order may not be deleted). Two or more run as a background job: the response returns the tracked job ID and the number of sales orders queued. count is 0 when none of the chosen orders has a linked sales order.
Body: mode (optional, selected (default) or all), ids (array of order IDs, required unless mode is all, max 5000), filters (optional object, used when mode is all: the same filter keys List Target Plus Orders accepts, without the filter[...] wrapper, e.g. {"needs_action": "unmapped_product"}), archive_target_plus_orders (optional boolean, default false). IDs that belong to another integration are ignored. Archived orders are excluded from mode: all unless filters includes an archived filter.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
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.