Resend Sales Order
POST/api/sales-orders/:salesOrder/resend
Creates a $0 resend order for replacing items from an existing order (e.g. lost or damaged shipments), linked to the original order, and returns the new order's full detail.
orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
The new order is a draft copy of the original with:
- order number
{original}-R-{YYYYMMDD}and order date set to now - only the requested lines, at the requested quantities, with line amounts zeroed (no charge)
- a ship-by date computed from your default handling days and same-day shipping cutoff, skipping weekends; a deliver-by date is derived from the shipping method's maximum delivery days when available
- a resend link back to the original order (the original shows the resend under its linked orders)
Approve the returned draft order to release it for fulfillment.
Authentication: Requires Bearer token.
Request body fields:
- sales_order_lines (array, optional): Lines to resend. Each item: id (integer, required — must be a line of this order), quantity (number, required — must not exceed the original line quantity). When omitted or empty, the resend order is created with no lines.
Path parameters:
- salesOrder (required): Sales order ID to resend from.
Requires permission: sales_orders.update
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.