Skip to content
Coursey CreativeSign in

GET /checkout/recover

/api/store/[slug]/checkout/recover

Resume-checkout link target from abandoned-cart recovery emails: validates the recovery token, mints a fresh Stripe checkout session, and redirects the shopper to it.

Signed recovery token in the URL (no user session)How authentication works

Path parameters

slugstringrequired

Business (store) slug, 1-255 chars

Query parameters

sessionstringrequired

Stripe checkout session ID of the abandoned checkout (8-255 chars).

tokenstringrequired

Recovery token from the email link (20-255 chars); validated timing-safe against the stored token.

Responses

200

The request succeeded.

400

A field failed validation. The response names the fields that failed, not just the first.

401

The key or customer token is missing, malformed, or no longer valid.

403

The credential is valid but is not allowed to do this.

404

No such store, or no such record inside it.

410

The record existed and is gone.

500

Something failed on our side. The response carries no detail; retry is safe on a GET.

503

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 }.