addOrderLineItem
Adds a line item with its final price to an order created through placeOrder or importOrder. The order totals are derived again from the line items and the shipping costs, while the amount of the order's payment stays as it is. Calling the mutation again with an idempotency key it already used for the order returns the order unchanged, even when that line item was removed since. Fails with CONFLICT for an order created in any other way and once the fulfillment of the order has started (see updateOrder). Returns the order.
Required scopes
The token needs the orders:write access scope.
addOrderLineItem(
input: AddOrderLineItemInput!
): Order!
Arguments
addOrderLineItem.input ● AddOrderLineItemInput! non-null input
Type
Order object
A customer order.