AkiliPay
API reference

Checkout & links

Collect payments without building your own form. A checkout session is a single-use hosted page; a payment link is a reusable, shareable URL.

POST/v1/checkout-sessions

Create a hosted checkout session

ParameterTypeRequiredDescription
amountMinorintegerYes—
currencystringYes—
descriptionstringNo—
returnUrlstringNo—
Request body
json
{
  "amountMinor": 5000,
  "currency": "GHS",
  "description": "Premium subscription",
  "returnUrl": "https://yourshop.com/thank-you"
}
Response
json
{
  "status": "ok",
  "data": {
    "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "publicToken": "tok_982a17",
    "amountMinor": 5000
  }
}