Skip to main content

createCustomerCheckout

Creates a new checkout for a logged in customer. Unlike most creates, this will overwrite any existing checkout for the customer, starting from scratch.

Requires the publiccheckout/write scope and a valid customerToken.

createCustomerCheckout(
currency: ResonanceCurrency!
customerToken: String!
orderInput: CheckoutOrderInput
orderItemInputs: [CheckoutOrderItemInput]
): Checkout!

Arguments

createCustomerCheckout.currency ● ResonanceCurrency! non-null enum

createCustomerCheckout.customerToken ● String! non-null scalar

createCustomerCheckout.orderInput ● CheckoutOrderInput input

createCustomerCheckout.orderItemInputs ● [CheckoutOrderItemInput] list input

Type

Checkout object

A checkout is a temporary container for an order and its orderItems that a customer or anonymous user wants to buy