Skip to main content

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.

Required scope: orders:write

Grant 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

OK

Response Headers
    Content-Type