PlaceOrderFromCartInput
Places an order from the cart.
input PlaceOrderFromCartInput {
addressId: ID!
deliveryOptionId: ID
expectedRevision: Int
idempotencyKey: String
notes: String
paymentMethod: CustomerPaymentMethod
poNumber: String
reference: String
}
Fields
PlaceOrderFromCartInput.addressId ● ID! non-null scalar
The ID of the address.
PlaceOrderFromCartInput.deliveryOptionId ● ID scalar
the chosen live delivery option id (customerDeliveryOptions / mobileDeliveryOptions). Required when the store prices delivery live; ignored otherwise.
PlaceOrderFromCartInput.expectedRevision ● Int scalar
CAS guard: the cart revision checkout was read against.
PlaceOrderFromCartInput.idempotencyKey ● String scalar
A unique key. Sending the same key again returns the order already placed instead of a duplicate.
PlaceOrderFromCartInput.notes ● String scalar
Notes on the order.
PlaceOrderFromCartInput.paymentMethod ● CustomerPaymentMethod enum
checkout payment method (null = legacy behaviour).
PlaceOrderFromCartInput.poNumber ● String scalar
Buyer PO number → SalesOrder.customerPoNumber.
PlaceOrderFromCartInput.reference ● String scalar
The buyer's own reference for the order, such as a purchase order number.
Member Of
placeOrderFromCart mutation