checkoutCreate Mutation
Create a new checkout.
skipValidation field requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions.
Triggers the following webhook events:
- CHECKOUT_CREATED (async): A checkout was created.
Applied directives
@webhookEventsInfo(asyncEvents: [CHECKOUT_CREATED], syncEvents: [])
checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate
Returns
Show return type
type CheckoutCreate {
created: Boolean @deprecated(reason: "Always returns `true`.")
checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [CheckoutError!]!
checkout: Checkout
}Arguments
input
input · CheckoutCreateInput!
Fields required to create checkout.
Try it
Create a checkout in your sandbox
Replace the variant ID with one from your sandbox and use its channel slug. This creates a checkout; it does not place an order or charge a payment.
Schema: Saleor 3.23.43. Download SDL.