Checkout/retrieveCnpCheckoutSession
Retrieve a checkout session in the browser
Read the current state of a checkout session from the browser.
POST
/api/v1/cnp/public/checkout-sessions/{id}/retrieveBrowser-safeCall from the customer’s browser with a publishable key — never your secret key.
kepa.js calls this on load to hydrate the payment form — amount, currency, enabled methods, and whether the session is still open. It takes the session's client secret, not a key with any authority of its own, so it is safe from the browser. Read-only.
Path parameters
idstringRequiredCheckout session identifier.
Request body
application/json
clientSecretstringRequiredExample "cs_7c1b9b86_secret_example"
Response
application/json
sessionobjectintentobjectGood to know
- Returns the session only while its status is OPEN; a completed or expired session is rejected.
- The merchant is resolved from the publishable key, so a session belonging to another merchant is never returned.
- Under heavy load this is shed before money-moving calls — treat a 503 as retryable, not as a failure of the payment.
retrieveCnpCheckoutSession