Get payment session by id
Returns the session document for one session — its current status, the payment parameters it was created with, and its history of state changes.
This endpoint takes no credential. It is the read the hosted checkout page itself performs, which is why it is unauthenticated, and why it is also the cheapest way for your backend to poll a session while the customer is paying. It exposes nothing beyond what the customer already sees on the payment page — but treat the sessionId itself as the capability it is, and do not publish one anywhere you would not publish the payment link.
Poll this until status reaches a final state (PAID, AUTHORIZED, FAILED, EXPIRED, ABANDONED, REJECTED, VOIDED, REVERSED, REFUNDED), or — better — let the webhook tell you and use this to confirm.
Request
- Base URL: https://test-api.kashier.io
- URL: https://test-api.kashier.io/v3/payment/sessions/{sessionId}
- Auth: none required
Path parameters
The session's _id, returned as _id by Create payment session and embedded in the sessionUrl.
Response
The payment session.
Changes
No recorded changes to this operation across all 1 revision of this API.