Transaction History
List and filter your topup transaction history with pagination.
Transaction History
Retrieve a paginated list of your topup transactions with optional filtering and sorting.
GET /v2/topups
Permission required: airtime.transactions.read
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number (integer, 1 or greater) |
per_page | integer | 20 | Results per page (integer, 1 or greater). Values above 100 are capped at 100. |
status | string | — | Filter by status: pending, processing, completed, or failed |
phone_number | string | — | Filter by recipient phone number (partial match) |
reference | string | — | Filter by your reference (exact match) |
from | string | — | Start of the date range — ISO 8601 date (2026-10-01) or datetime (2026-10-01T00:00:00Z) |
to | string | — | End of the date range — ISO 8601 date or datetime. A date (2026-10-31) includes that whole day. |
sort | string | -created_at | Sort field: created_at, completed_at, or status. Prefix with - for descending (e.g. -created_at). |
Invalid query parameters return 400 INVALID_REQUEST — for example a non-integer or zero page/per_page, a status that isn't one of the four values above, or a from/to that isn't a valid ISO 8601 date or datetime.
Example Request
curl -X GET "https://api.clickairtime.com/v2/topups?status=completed&from=2026-10-01&per_page=10" \
-H "Authorization: Bearer ce_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"const params = new URLSearchParams({
status: 'completed',
from: '2026-10-01',
per_page: '10',
});
const response = await fetch(`https://api.clickairtime.com/v2/topups?${params}`, {
headers: {
'Authorization': 'Bearer ce_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
},
});
const data = await response.json();import requests
response = requests.get(
'https://api.clickairtime.com/v2/topups',
params={
'status': 'completed',
'from': '2026-10-01',
'per_page': 10,
},
headers={
'Authorization': 'Bearer ce_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
}
)
data = response.json()Example Response
{
"success": true,
"data": [
{
"id": "6683ace0-794c-48fe-936b-b0f543baa7af",
"status": "completed",
"phone_number": "+233541112259",
"network": {
"id": 11,
"name": "MTN",
"country": "Ghana",
"country_code": "GH"
},
"amount": { "value": 1, "currency": "GHS" },
"cost": { "value": 0.0886, "currency": "USD" },
"wallet": {
"id": "094a21a0-ec42-4fbb-8a0c-97084de27b2c",
"type": "global",
"currency": "USD",
"strategy": "AUTO_PRIMARY"
},
"product_id": null,
"product_name": null,
"sms": { "enabled": false, "message": null },
"reference": "invoice-12345",
"provider_reference": "7688491163",
"failure_reason": null,
"metadata": { "customer_id": "cust_001" },
"created_at": "2026-10-13T13:24:48.420Z",
"completed_at": "2026-10-13T13:24:49.592Z"
},
{
"id": "7d0e8cb7-b195-4619-8707-fd8215d1b502",
"status": "completed",
"phone_number": "+233541112259",
"network": {
"id": 11,
"name": "MTN",
"country": "Ghana",
"country_code": "GH"
},
"amount": { "value": 10, "currency": "GHS" },
"cost": { "value": 0.89, "currency": "USD" },
"wallet": null,
"product_id": null,
"product_name": "Custom Airtime (10 GHS)",
"sms": { "enabled": false, "message": null },
"reference": "ENT-1786050352071-MWVF53",
"provider_reference": null,
"failure_reason": null,
"metadata": {},
"created_at": "2026-08-06T21:05:52.124Z",
"completed_at": "2026-08-06T21:05:53.812Z"
}
],
"meta": {
"request_id": "req_52459297de99",
"timestamp": "2026-10-13T13:30:06.203Z",
"pagination": {
"page": 1,
"per_page": 10,
"total": 18,
"total_pages": 2,
"has_next": true,
"has_prev": false
}
}
}
Each item in data has the same fields as Topup Status.
Pagination
| Field | Type | Description |
|---|---|---|
meta.pagination.page | integer | Current page |
meta.pagination.per_page | integer | Results per page (after the cap of 100) |
meta.pagination.total | integer | Total matching transactions |
meta.pagination.total_pages | integer | Total number of pages |
meta.pagination.has_next | boolean | Whether a next page exists |
meta.pagination.has_prev | boolean | Whether a previous page exists |
