Skip to main content

Requests & Responses

These rules apply to every BillPay endpoint.

Requests​

  • Send JSON with the header Content-Type: application/json.
  • Authenticate with the x-api-key header. See API Keys.
  • Send an Idempotency-Key header on every call that moves money: creating a payment, a refund, a withdrawal, or an on-demand payout. See Idempotency.

Response format​

Every response is wrapped in the same envelope. The data you asked for is inside body.

{
"statusCode": 201,
"message": "Created",
"body": {
"id": "...",
"status": "CREATED"
},
"timestamp": "2026-10-29T09:19:16.968+00:00"
}

Errors use the same envelope. See Errors.

Money​

WhereFormatExample
RequestsA number with up to 4 decimal places"amount": 1000.00
API responsesAn object with the amount and currency"amount": {"amount": 1000.0000, "currency": "ETB"}
WebhooksA number, with the currency in its own field"amount": 1000.0000, "currency": "ETB"
The only currency today is ETB.

Dates​

All dates are ISO 8601 in UTC, for example 2026-10-29T09:19:16Z. Add 3 hours to show them in Addis Ababa time.

Pagination​

List endpoints return the newest items first. Choose the page with two query parameters:

ParameterDefaultNotes
page0The first page is 0.
size20At most 100.
GET /api/v1/checkout/settlements?page=0&size=50

The list is inside body, with the paging details next to it:

{
"statusCode": 200,
"message": "Settlements fetched successfully",
"body": {
"total": 42,
"page": 0,
"size": 20,
"items": [ ... ]
},
"timestamp": "2026-11-03T16:10:04.512+00:00"
}
FieldMeaning
totalHow many items there are in all pages.
pageThe page you got.
sizeItems per page.
itemsThe items on this page.

Two endpoints page with a cursor instead: payment search and the change feed.

Request ID​

Every response includes an X-Request-Id header. Log it with your own records. If something goes wrong, send it to BillPay support so we can find the exact request.

Rate limits​

If you send too many requests, BillPay answers 429 with a Retry-After header. Wait that many seconds, then retry. If the request moves money, retry with the same Idempotency-Key.