Przejdź do głównej zawartości

cartRecoveryRedeem

Redeem a signed cart recovery link (from an abandoned-cart email). Pass the token from the link; on success the cart is recovered and its access secret is ROTATED — the NEW secret is returned once in secret (persist it; the previous one no longer works), and the SDK sets the cart-id cookie to the recovered cart. Buyer self-service: the merchant sends the link, never takes over the cart. Returns CART_RECOVERY_LINK_EXPIRED / CART_RECOVERY_LINK_INVALID for a bad link (no cart content is exposed) and CART_NOT_FOUND when the cart no longer exists.

cartRecoveryRedeem(
token: String!
): CartRecoveryRedeemPayload!

Arguments

cartRecoveryRedeem.token ● String! non-null scalar

The signed recovery token taken from the recovery link.

Type

CartRecoveryRedeemPayload object

Result of cartRecoveryRedeem.