API Reference
Confirm a checkout session (public)
Public endpoint called by the buyer's browser after the PSP surface reports
completion. Verifies the intent server-side and finalizes the payment. Safe
to call more than once: a completed session replays its payment. Gated by
the session secret.
Path Parameters
id*string
Checkout session id (cs_...).
Query Parameters
secret*string
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/checkout/string/confirm?secret=string"{ "id": "string", "status": "completed", "payment_id": "string", "payment_status": "string"}{ "error": { "code": "not_found", "message": "not found" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "connector_error", "message": "connector request failed" }}