CartCompletePayload
Result of cartComplete. The cart is converted into an Order and locked — no further mutations are accepted on it. Payment is initiated separately via paymentCreate (after checking order.canCreatePayment).
type CartCompletePayload {
order: Order
userErrors: [UserError!]!
warnings: [CartWarning!]!
}
Fields
CartCompletePayload.order ● Order object
The order created from the cart. Carries canCreatePayment and paymentMethodType signals so the storefront can decide whether to render a "Pay now" button or send the buyer straight to the confirmation page (for offline methods).
CartCompletePayload.userErrors ● [UserError!]! non-null object
Business / validation errors carrying a stable CartErrorCode in code (e.g. NOT_ENOUGH_IN_STOCK, SHIPPING_ADDRESS_REQUIRED, SHIPPING_METHOD_REQUIRED, PAYMENT_METHOD_REQUIRED, EMAIL_REQUIRED, ALREADY_COMPLETED).
CartCompletePayload.warnings ● [CartWarning!]! non-null object
Non-fatal advisories — the mutation itself succeeded.
Returned By
cartComplete mutation