GET /checkout/recover
/api/store/[slug]/checkout/recoverResume-checkout link target from abandoned-cart recovery emails: validates the recovery token, mints a fresh Stripe checkout session, and redirects the shopper to it.
Path parameters
slugstringrequiredBusiness (store) slug, 1-255 chars
Query parameters
sessionstringrequiredStripe checkout session ID of the abandoned checkout (8-255 chars).
tokenstringrequiredRecovery token from the email link (20-255 chars); validated timing-safe against the stored token.
Responses
The request succeeded.
A field failed validation. The response names the fields that failed, not just the first.
The key or customer token is missing, malformed, or no longer valid.
The credential is valid but is not allowed to do this.
No such store, or no such record inside it.
The record existed and is gone.
Something failed on our side. The response carries no detail; retry is safe on a GET.
A service this endpoint depends on is unavailable, usually Stripe.
What comes back
302 redirect to a freshly minted Stripe checkout session URL on success - never JSON. Expected failures render a standalone friendly HTML page (not JSON) with status 400 (bad link), 404 (store not found), 410 (expired/invalid/already completed/items unavailable), or 503 (recovery feature unavailable). JSON appears only via the shared error handler: the 500 fallback, plus the uniform API-key 401/403 { success: false, error, code }.