curl --request GET \
--url https://api.kairosafrika.com/v1/checkout/{checkoutId}/status \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"checkoutId": "040956bf1210aa19c948da8d5769cea01313dc23022025",
"status": "completed",
"amount": 250,
"currency": "USD",
"paymentMethod": "mobile_money",
"transactionId": "ext_txn_123",
"createdAt": "2024-01-15T10:30:00Z",
"completedAt": "2024-01-15T10:35:00Z",
"expiresAt": "2024-12-25T23:59:59Z"
}{
"error": "INVALID_AMOUNT",
"message": "The amount must be greater than 0",
"details": {}
}Endpoints
Get Checkout Status
Get the status of a checkout session
GET
/
v1
/
checkout
/
{checkoutId}
/
status
curl --request GET \
--url https://api.kairosafrika.com/v1/checkout/{checkoutId}/status \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"checkoutId": "040956bf1210aa19c948da8d5769cea01313dc23022025",
"status": "completed",
"amount": 250,
"currency": "USD",
"paymentMethod": "mobile_money",
"transactionId": "ext_txn_123",
"createdAt": "2024-01-15T10:30:00Z",
"completedAt": "2024-01-15T10:35:00Z",
"expiresAt": "2024-12-25T23:59:59Z"
}{
"error": "INVALID_AMOUNT",
"message": "The amount must be greater than 0",
"details": {}
}Get Checkout Session
This endpoint allows you to retrieve details of a checkout session by its ID. Endpoint:GET /v1/checkout/{checkoutId}/status
curl --request GET \
--url https://api.kairosafrika.com/v1/checkout/{checkoutId}/status \
--header 'Authorization: Bearer YOUR_API_KEY'
Path Parameter
- checkoutId (string, required): The ID of the checkout session to retrieve.
Responses
- 200 OK: Returns checkout session details.
- 404 Not Found: Session not found.
Path Parameters
Response
Checkout status retrieved successfully