Przejdź do głównej zawartości

CartMergePayload

Result of cartMerge.

type CartMergePayload {
cart: Cart
userErrors: [UserError!]!
warnings: [CartWarning!]!
}

Fields

CartMergePayload.cart ● Cart object

The merged cart on success — it keeps the same id and secret as the guest cart passed in, so the stored cart-id cookie stays valid. Null when userErrors is non-empty.

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

Business / validation errors carrying a stable CartErrorCode in code — e.g. CART_NOT_FOUND, CART_CURRENCY_MISMATCH, CART_MERGE_REQUIRES_AUTH.

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

Non-fatal advisories — the mutation itself succeeded.

Returned By

cartMerge mutation