Get Checkout Session
Retrieve the details of an existing checkout session. This endpoint is typically used by frontend applications to load the checkout page data using the session ID.Endpoint
GET https://api.kiotapay.co/api/sandbox/v1/checkout-sessions/{checkoutSessionId}
Example:
GET https://api.kiotapay.co/api/sandbox/v1/checkout-sessions/cf488410-37d5-4dba-9b27-8d74f3ad8ae4
Authentication
Send your bearer token in theAuthorization header.
Headers
Bearer token used to authenticate your API request.
Path parameters
The public checkout session ID returned when creating the checkout session.
Example request
Example response
Response fields
Public checkout session identifier.
Amount to be paid in the specified currency.
Three-letter currency code (ISO format). Example:
KES.Description of the payment or order.
Customer email associated with the checkout session.
Customer phone number in international format.
Merchant-provided reference such as an order ID.
List of allowed payment methods for this checkout session.
Display name of the merchant shown on the hosted checkout page.
Logo URL displayed on the checkout page.
Current checkout session status.
Typical usage
This endpoint is usually called by the hosted checkout frontend to load session information such as:- amount
- merchant branding
- supported payment methods
- checkout status
