Payments
Get Session
Status-polling endpoint for payment sessions — currently non-functional for intents created via Create Payment Intent.
GET
Intro
A legacy status-polling endpoint that no longer has anything to poll — it looks up a hosted-Checkout-Session record that nothing writes to anymore.Context
This endpoint predates Create Charge and Create Payment Intent, from a version of the Partner API built around Stripe-hosted Checkout Sessions. Both current endpoints return anintent_id / charge_id, not a session_id, and neither writes to the record this endpoint reads from — so it’s kept documented only so integrations that still call it understand why it 404s, and so you know to build on webhooks instead.
Hows
Path parameters
string
required
Historically a
session_id from the old hosted-checkout flow. Not the same identifier space as the intent_id returned by Create Payment Intent today.Response (when the endpoint is reachable)
Error codes
Whys
The endpoint is left in place, rather than removed outright, so that aGET to a session_id-shaped path fails with a clear, documented 404 instead of a routing error — and so integrations built against the old hosted-Checkout-Session flow have a paper trail for why polling stopped working after Khaime moved to the current payment-intent flow.
Why nots
- Do not build synchronous “poll until paid” logic against this endpoint — it will 404 for every intent created through current endpoints.
- Do not treat a
404here as proof a payment failed — it reflects a missing session record, not payment status. Rely on thepayment.succeeded/payment.failedwebhooks instead. - There is currently no supported replacement polling endpoint — if your integration cannot rely on webhooks (e.g. local development), that gap is unresolved; raise it with the Khaime team rather than working around it with this endpoint.
