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
string
required
Bearer token used to authenticate your API request.
Path parameters
uuid
required
The public checkout session ID returned when creating the checkout session.
Example request
Example response
Response fields
uuid
Public checkout session identifier.
number
Amount to be paid in the specified currency.
string
Three-letter currency code (ISO format). Example:
KES.string
Description of the payment or order.
string
Customer email associated with the checkout session.
string
Customer phone number in international format.
string
Merchant-provided reference such as an order ID.
array[string]
List of allowed payment methods for this checkout session.
string
Display name of the merchant shown on the hosted checkout page.
string
Logo URL displayed on the checkout page.
enum
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
