The import of States does not follow any predefined rules and should be only used if no transitions are defined. The quantity in the ItemStates must match the sum of all Line Items states' quantities.

interface OrderImportLineItemStateAction {
    action: "importLineItemState";
    lineItemId?: string;
    lineItemKey?: string;
    state: ItemState[];
}

Properties

action: "importLineItemState"
lineItemId?: string

id of the LineItem to update. Either lineItemId or lineItemKey is required.

lineItemKey?: string

key of the LineItem to update. Either lineItemId or lineItemKey is required.

state: ItemState[]

New status of the Line Items.