Przejdź do głównej zawartości

CartRecoveryRedeemPayload

Result of cartRecoveryRedeem.

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

Fields

CartRecoveryRedeemPayload.cart ● Cart object

The recovered cart on success. Null when userErrors is non-empty (invalid / expired link).

CartRecoveryRedeemPayload.secret ● String scalar

The NEW cart access secret, returned only here on a successful redemption (the link rotates the secret). Persist it immediately — it cannot be retrieved again; the previous secret no longer works.

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

Business / validation errors carrying a stable CartErrorCode in codeCART_RECOVERY_LINK_EXPIRED / CART_RECOVERY_LINK_INVALID (bad or expired link), CART_NOT_FOUND (the cart is gone or already completed — create a fresh one) or CART_RECOVERY_REDEEM_FAILED (unexpected failure). No cart content is exposed on failure.

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

Non-fatal advisories — the mutation itself succeeded.

Returned By

cartRecoveryRedeem mutation