Checkout Mutations
Operations registered in src/gql/mutations/checkout/*.
Available Mutations
- PlaceOrder
Operation:
placeOrder(registerGuest: Boolean, cartId: String!, siteId: Int, subscribeToNewsletter: Boolean) - SetBillingAddressOnCheckoutMutation
Operation:
setBillingAddressOnCheckout(cartId: String!, address: AddressInput!) - SetGuestEmailOnCheckoutMutation
Operation:
setGuestEmailOnCart(cartId: String!, email: String!) - SetPaymentMethodOnCheckoutMutation
Operation:
setPaymentMethodOnCheckout(cartId: String!, payment_method: PaymentMethodInput!, siteId: Int) - SetShippingAddressOnCheckoutMutation
Operation:
setShippingAddressOnCheckout(cartId: String!, address: AddressInput!) - SetShippingMethodOnCheckoutMutation
Operation:
setShippingMethodOnCheckout(cartId: String!, shipping_method: ShippingMethodInput!, siteId: Int)
Checkout Flow Recommendation
In guest checkout projects, use this order:
setGuestEmailOnCartsetBillingAddressOnCheckoutsetShippingAddressOnCheckoutsetShippingMethodOnCheckoutsetPaymentMethodOnCheckoutplaceOrder
For logged-in customers, skip step 1 and keep the rest.