Przejdź do głównej zawartości

Variable: CART_RECOVERABLE_ERROR_CODES

const CART_RECOVERABLE_ERROR_CODES: readonly ["CART_NOT_FOUND", "ALREADY_COMPLETED"]

Cart error codes that require recreation of the cart resource.

  • CART_NOT_FOUND — cart expired, missing, or the access secret was absent or did not match. The backend returns one uniform code so it never leaks whether a given cart exists.
  • ALREADY_COMPLETED — cart status not in {ACTIVE, RECOVERED} (CONVERTED after checkout, EXPIRED via TTL, or ABANDONED by purge worker).

Other codes (NOT_ENOUGH_IN_STOCK, validation, fulfillment) are recoverable by user input, not by cart recreation — they propagate unchanged.