Skip to main content
PATCH
Remap a sales-order item

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Path Parameters

salesOrderId
integer
required

Sales order ID

salesOrderItemId
integer
required

Sales order line-item ID (must belong to the sales order)

Body

application/json
product_id
integer
required

ID of the product to remap the line item to

Required range: x >= 1
add_as_alternate_sku
boolean
default:false

When true, record the line's original SKU as an alternate SKU on the new product so future orders auto-map to it.

force
boolean
default:false

Proceed even when the fulfillment order is pushed — unpushes, deletes, and recreates it. Without this, a pushed fulfillment order blocks the remap.

dry_run
boolean
default:false

Evaluate only and return the remap plan; mutate nothing. The response is the same plan shape as the remap-preview endpoint.

Response

When dry_run is false, the remapped line item. When dry_run is true, the remap plan.

data
object