Input objects
SplitSalesOrderCommandRequestInput
Moves line items or quantities into a new sales order. Fails with a GraphQL error whose extensions.code is SalesOrderCannotBeSplit. - Request
input
SplitSalesOrderCommandRequestInputFields
salesOrderId
ID!
required
The ID of the sales order. An unknown ID fails with SalesOrderNotFound.
lineItems
The lines to move; omitted moves every splittable remainder. Moving all lines at once fails with AllLineItemsSelected.
disableAutomaticWorkflows
Boolean
Suppresses the automatic workflow triggers of this call. Defaults to false when omitted.
copyShippingLineItem
Boolean
Whether the new sales order also gets the shipping cost line. Defaults to false when omitted.
idempotencyKey
String
Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.
Was this page helpful?