Requires
write_order_edits
access scope.
Adds a line item from an existing product variant.
Arguments
Whether the mutation can create a line item for a variant that's already on the calculated order.
The ID of the calculated order to edit.
Anchor to locationIdlocationIdThe ID of the location to check for inventory availability. A default location ID is chosen automatically if none is provided.
The quantity of the item to add to the order. Must be a positive value.
The ID of the variant to add.
Was this section helpful?
OrderEditAddVariantPayload returns
The calculated line item that's added during this order edit.
The calculated order with the edits applied but not saved.
The list of errors that occurred from executing the mutation.
Was this section helpful?