Przejdź do głównej zawartości

CartCreatePayload

Result of cartCreate.

type CartCreatePayload {
cart: Cart
secret: String
userErrors: [UserError!]!
warnings: [CartWarning!]!
}

Fields

CartCreatePayload.cart ● Cart object

The created cart on success; null when userErrors is non-empty.

CartCreatePayload.secret ● String scalar

One-time cart access secret, returned only here on creation. The SDK persists it for you; if you call the API directly, store it immediately — it cannot be retrieved again.

CartCreatePayload.userErrors ● [UserError!]! non-null object

Business / validation errors. Each entry carries a stable code (e.g. CART_NOT_FOUND, NOT_ENOUGH_IN_STOCK, INVALID_MERCHANDISE_LINE) — branch on code, never on message.

CartCreatePayload.warnings ● [CartWarning!]! non-null object

Non-fatal advisories (informational only; the mutation itself succeeded).

Returned By

cartCreate mutation