API reference
Orders and bulk status
Look up an order by its ID, Aboki Data reference or your own reference, list recent orders, and follow a bulk batch.
List orders
GET/vtu/orders
Returns your most recent orders, newest first. A test key lists test orders and a live key lists live orders. Use status and reference to find specific orders; to look up one order, use Get an order.
Query parameters
limitintegeroptionalNumber of orders to return. Between 1 and 100. Default
20.statusstringoptionalOnly orders with this status (any case). One of
INITIATED,FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW,SUCCESS_SETTLED,FAILED_UNRESERVED,FAILED_REFUNDED.referencestringoptionalOnly the order with this
order_refor yourreference.
Errors
| HTTP | error_code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | Unknown status value. |
curl "https://api.abokidata.com/api/v1/vtu/orders?limit=20" \
-H "Authorization: Bearer $ABOKI_API_KEY"{
"success": true,
"status_code": 200,
"message": "Orders retrieved.",
"data": [
{
"order_id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
"order_ref": "VTU-20261017-9A8B7C6D5E4F",
"reference": "your-order-1042",
"client_reference": "your-order-1042",
"recipient": "08031234560",
"description": "MTN Airtime VTU — 08031234560",
"face_value_kobo": 50000,
"amount_debited_kobo": 49000,
"status": "SUCCESS_SETTLED",
"customer_status": "delivered",
"money_location": "spent",
"is_test": true,
"created_at": "2026-10-17T12:00:00.000Z",
"updated_at": "2026-10-17T12:00:00.412Z"
}
],
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:00.123456Z",
"pagination": {
"limit": 20,
"has_more": false
}
}
}Base URL https://api.abokidata.com/api/v1
Get an order
GET/vtu/orders/{id}
Returns the current state of one order. {id} can be the order_id, the order_ref or your own reference. Use this (or Verify an order) to resolve a pending order.
Path parameters
idstringrequiredorder_id,order_refor yourreference.
Returns: data
order_idstring (uuid)optionalorder_refstringoptionalAboki Data reference, e.g.
VTU-20261017-9A8B7C6D5E4F.referencestringoptionalYour
referenceif you sent one, otherwise theorder_ref.client_referencestringoptionalYour
reference. Only present if you sent one.recipientstringoptionalPhone number (as
0XXXXXXXXXX), smartcard number or meter number.descriptionstringoptionalThe product name and the recipient, e.g.
MTN SME 1GB - 30 days — 08031234560(orPurchase for 08031234560when the product name is not known).face_value_kobointegeroptionalValue delivered, in kobo.
amount_debited_kobointegeroptionalWhat your wallet paid, in kobo.
statusstringoptionalOne of
INITIATED,FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW,SUCCESS_SETTLED,FAILED_UNRESERVED,FAILED_REFUNDED.customer_statusstringoptionalThe three-state view of
status:processinguntil a final status,deliveredforSUCCESS_SETTLED,failedforFAILED_UNRESERVEDandFAILED_REFUNDED. One ofprocessing,delivered,failed.money_locationstringoptionalWhere the money is:
not_chargedforINITIATED,heldwhile reserved (FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW),spentforSUCCESS_SETTLED,refundedfor either failed status. One ofnot_charged,held,spent,refunded.is_testbooleanoptionaltokenstringoptionalElectricity token, or the exam PIN and serial number. Only when delivered.
unitsstringoptionalUnits purchased, when the provider returns them.
meter_numberstringoptionalElectricity orders, when the provider returns it.
pinstringoptionalExam PIN, when returned separately (test mode).
serial_numberstringoptionalExam serial number, when returned separately (test mode).
failure_reasonstringoptionalWhy the order failed, in plain language you can show your customer, e.g.
This order didn't go through. Your money is back in your wallet.Only when it failed.metadataobjectoptionalDelivery details only: any of
token,delivery_token,units,meter_number,pin,serial_number. Provider and operational details are never included.batch_idstring (uuid)optionalBulk orders only.
poll_urlstringoptionalOnly on
202responses: the path to check this order.created_atstring (date-time)optionalupdated_atstring (date-time)optional
Errors
| HTTP | error_code | When |
|---|---|---|
| 404 | NOT_FOUND | No order on your account matches. |
curl "https://api.abokidata.com/api/v1/vtu/orders/VTU-20261017-9A8B7C6D5E4F" \
-H "Authorization: Bearer $ABOKI_API_KEY"{
"success": true,
"status_code": 200,
"message": "Order status retrieved.",
"data": {
"order_id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
"order_ref": "VTU-20261017-9A8B7C6D5E4F",
"reference": "your-order-1042",
"client_reference": "your-order-1042",
"recipient": "08031234560",
"description": "MTN Airtime VTU — 08031234560",
"face_value_kobo": 50000,
"amount_debited_kobo": 49000,
"status": "SUCCESS_SETTLED",
"customer_status": "delivered",
"money_location": "spent",
"is_test": false,
"created_at": "2026-10-17T12:00:00.000Z",
"updated_at": "2026-10-17T12:00:03.020Z"
},
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:09.511Z"
}
}Base URL https://api.abokidata.com/api/v1
Verify an order
GET/vtu/orders/verify/{reference}
Looks up an order by your own reference (or its order_ref) and returns its current state. This is the requery endpoint: call it after a timeout or a 202 to learn whether an order exists and how it ended, before you consider buying again.
Path parameters
referencestringrequiredYour
reference, or theorder_ref.
Returns: data
order_idstring (uuid)optionalorder_refstringoptionalAboki Data reference, e.g.
VTU-20261017-9A8B7C6D5E4F.referencestringoptionalYour
referenceif you sent one, otherwise theorder_ref.client_referencestringoptionalYour
reference. Only present if you sent one.recipientstringoptionalPhone number (as
0XXXXXXXXXX), smartcard number or meter number.descriptionstringoptionalThe product name and the recipient, e.g.
MTN SME 1GB - 30 days — 08031234560(orPurchase for 08031234560when the product name is not known).face_value_kobointegeroptionalValue delivered, in kobo.
amount_debited_kobointegeroptionalWhat your wallet paid, in kobo.
statusstringoptionalOne of
INITIATED,FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW,SUCCESS_SETTLED,FAILED_UNRESERVED,FAILED_REFUNDED.customer_statusstringoptionalThe three-state view of
status:processinguntil a final status,deliveredforSUCCESS_SETTLED,failedforFAILED_UNRESERVEDandFAILED_REFUNDED. One ofprocessing,delivered,failed.money_locationstringoptionalWhere the money is:
not_chargedforINITIATED,heldwhile reserved (FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW),spentforSUCCESS_SETTLED,refundedfor either failed status. One ofnot_charged,held,spent,refunded.is_testbooleanoptionaltokenstringoptionalElectricity token, or the exam PIN and serial number. Only when delivered.
unitsstringoptionalUnits purchased, when the provider returns them.
meter_numberstringoptionalElectricity orders, when the provider returns it.
pinstringoptionalExam PIN, when returned separately (test mode).
serial_numberstringoptionalExam serial number, when returned separately (test mode).
failure_reasonstringoptionalWhy the order failed, in plain language you can show your customer, e.g.
This order didn't go through. Your money is back in your wallet.Only when it failed.metadataobjectoptionalDelivery details only: any of
token,delivery_token,units,meter_number,pin,serial_number. Provider and operational details are never included.batch_idstring (uuid)optionalBulk orders only.
poll_urlstringoptionalOnly on
202responses: the path to check this order.created_atstring (date-time)optionalupdated_atstring (date-time)optional
Errors
| HTTP | error_code | When |
|---|---|---|
| 404 | NOT_FOUND | No order matches. If your purchase timed out, it was not created. |
curl "https://api.abokidata.com/api/v1/vtu/orders/verify/your-order-1042" \
-H "Authorization: Bearer $ABOKI_API_KEY"{
"success": true,
"status_code": 200,
"message": "Order verification retrieved.",
"data": {
"order_id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
"order_ref": "VTU-20261017-9A8B7C6D5E4F",
"reference": "your-order-1042",
"client_reference": "your-order-1042",
"recipient": "08031234560",
"description": "MTN Airtime VTU — 08031234560",
"face_value_kobo": 50000,
"amount_debited_kobo": 49000,
"status": "PENDING_PROVIDER_QUERY",
"customer_status": "processing",
"money_location": "held",
"is_test": false,
"created_at": "2026-10-17T12:00:00.000Z",
"updated_at": "2026-10-17T12:00:00.640Z"
},
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:05.003Z"
}
}Base URL https://api.abokidata.com/api/v1
Get a bulk batch
GET/vtu/bulk/{batch_id}
Returns a bulk batch and every order in it. The batch-level status and counts are recomputed each time an order in it finishes; read each item's status (or customer_status) to know what was delivered to whom.
Path parameters
batch_idstring (uuid)requiredThe
batch_idfrom the bulk purchase response.
Returns: data
batch_idstring (uuid)optionalbatch_refstringoptionalFor example
BULK-20261017-4C8E2A6B9D1F.service_codestringoptionalOne of
AIRTIME,DATA.networkstringoptionalstatusstringoptionalSummary only. Read
items[].statusfor each order. One ofPROCESSING,COMPLETED,PARTIALLY_COMPLETED,FAILED.total_countintegeroptionalsuccessful_countintegeroptionalfailed_countintegeroptionalpending_countintegeroptionaltotal_amount_kobointegeroptionalTotal reserved for the batch, in kobo.
itemsarray of objectsoptionalOne order per recipient (same fields as an order).
order_idstring (uuid)optionalorder_refstringoptionalAboki Data reference, e.g.
VTU-20261017-9A8B7C6D5E4F.referencestringoptionalYour
referenceif you sent one, otherwise theorder_ref.client_referencestringoptionalYour
reference. Only present if you sent one.recipientstringoptionalPhone number (as
0XXXXXXXXXX), smartcard number or meter number.descriptionstringoptionalThe product name and the recipient, e.g.
MTN SME 1GB - 30 days — 08031234560(orPurchase for 08031234560when the product name is not known).face_value_kobointegeroptionalValue delivered, in kobo.
amount_debited_kobointegeroptionalWhat your wallet paid, in kobo.
statusstringoptionalOne of
INITIATED,FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW,SUCCESS_SETTLED,FAILED_UNRESERVED,FAILED_REFUNDED.customer_statusstringoptionalThe three-state view of
status:processinguntil a final status,deliveredforSUCCESS_SETTLED,failedforFAILED_UNRESERVEDandFAILED_REFUNDED. One ofprocessing,delivered,failed.money_locationstringoptionalWhere the money is:
not_chargedforINITIATED,heldwhile reserved (FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW),spentforSUCCESS_SETTLED,refundedfor either failed status. One ofnot_charged,held,spent,refunded.is_testbooleanoptionaltokenstringoptionalElectricity token, or the exam PIN and serial number. Only when delivered.
unitsstringoptionalUnits purchased, when the provider returns them.
meter_numberstringoptionalElectricity orders, when the provider returns it.
pinstringoptionalExam PIN, when returned separately (test mode).
serial_numberstringoptionalExam serial number, when returned separately (test mode).
failure_reasonstringoptionalWhy the order failed, in plain language you can show your customer, e.g.
This order didn't go through. Your money is back in your wallet.Only when it failed.metadataobjectoptionalDelivery details only: any of
token,delivery_token,units,meter_number,pin,serial_number. Provider and operational details are never included.batch_idstring (uuid)optionalBulk orders only.
poll_urlstringoptionalOnly on
202responses: the path to check this order.created_atstring (date-time)optionalupdated_atstring (date-time)optional
poll_urlstringoptionalOn the
202response: the path to check this batch.created_atstring (date-time)optionalupdated_atstring (date-time)optional
Errors
| HTTP | error_code | When |
|---|---|---|
| 404 | NOT_FOUND | No batch with that id on your account. |
curl "https://api.abokidata.com/api/v1/vtu/bulk/0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \
-H "Authorization: Bearer $ABOKI_API_KEY"{
"success": true,
"status_code": 200,
"message": "Bulk batch status retrieved.",
"data": {
"batch_id": "0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"batch_ref": "BULK-20261017-4C8E2A6B9D1F",
"service_code": "AIRTIME",
"network": "MTN",
"status": "COMPLETED",
"total_count": 2,
"successful_count": 2,
"failed_count": 0,
"pending_count": 0,
"total_amount_kobo": 147000,
"created_at": "2026-10-17T12:00:00.000Z",
"updated_at": "2026-10-17T12:00:04.210Z",
"items": [
{
"order_id": "0199f2b0-2222-7c3d-8e4f-5a6b7c8d9e0f",
"order_ref": "VTU-20261017-1A2B3C4D5E6F",
"reference": "VTU-20261017-1A2B3C4D5E6F",
"recipient": "08031112220",
"description": "MTN Airtime VTU — 08031112220",
"face_value_kobo": 50000,
"amount_debited_kobo": 49000,
"status": "SUCCESS_SETTLED",
"customer_status": "delivered",
"money_location": "spent",
"is_test": false,
"batch_id": "0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"created_at": "2026-10-17T12:00:00.000Z",
"updated_at": "2026-10-17T12:00:02.020Z"
}
]
},
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:10.000Z"
}
}Base URL https://api.abokidata.com/api/v1