API reference
Data
Buy a data bundle by sku for one number, or the same bundle for up to 50 numbers in one request.
Buy data
POST/vtu/data/purchase
Buys one data bundle for one number. Find the sku with List products for service DATA, for example ?network=MTN&type=SME. The price is the product's selling_price_kobo.
Headers
Idempotency-KeystringrequiredA unique value you generate for this order (for example a UUID or your order ID), reused unchanged if you retry. See Idempotency.
Request body
skustringrequiredData product
skufrom the catalogue.phone_numberstringrequired0XXXXXXXXXX,+234XXXXXXXXXXor234XXXXXXXXXX. Send it as a string.referencestringoptionalYour own ID for this order. Must be unique on your account across test and live, even if an earlier order with it failed. Use it to look the order up later. Up to 100 characters.
callback_urlstring (uri)optionalHTTPS URL to receive this order's webhooks instead of your account webhook URL. Signed with the same secret. Up to 500 characters.
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 |
|---|---|---|
| 400 | VALIDATION_ERROR | A field is missing, invalid or of the wrong JSON type (`phone_number must be a string.`), or a naira field such as `amount` was sent instead of `amount_kobo`; the message says which. |
| 400 | IDEMPOTENCY_KEY_REQUIRED | No Idempotency-Key header. |
| 403 | WALLET_LOCKED | Your live wallet is locked. |
| 404 | PRODUCT_NOT_FOUND | The sku, network or type is unknown or switched off. |
| 409 | CONFLICT | An order with this reference already exists on your account. |
| 409 | DUPLICATE_PURCHASE | Same product to the same recipient within your duplicate-guard window. `retry_after_seconds` says how long to wait. |
| 409 | ORDER_ALREADY_PLACED | A retry with the same key arrived after the first attempt wrote the order but failed to answer. The body carries that order's `order_id` and `order_ref`; check it instead of buying again. |
| 409 | IDEMPOTENCY_IN_FLIGHT | The first request with this key is still running. |
| 409 | IDEMPOTENCY_PAYLOAD_MISMATCH | This key was used with a different body. |
| 422 | INSUFFICIENT_BALANCE | Not enough available balance (test wallet in test mode). |
| 422 | DAILY_LIMIT_EXCEEDED | Customer accounts only: the purchase exceeds your daily limit. |
| 422 | VTU_ORDER_FAILED | The provider refused the order. Nothing was charged. |
| 502 | EXTERNAL_PROVIDER_ERROR | The provider could not be reached before the order was sent. |
| 503 | PRODUCT_UNAVAILABLE | The product is temporarily unavailable. |
| 503 | NO_PROVIDERS_AVAILABLE | No provider can fulfil the order right now. Nothing was charged. |
curl -X POST "https://api.abokidata.com/api/v1/vtu/data/purchase" \
-H "Authorization: Bearer $ABOKI_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: ord_7Hk2pQ9xR4" \
-d '{
"sku": "DATA_MTN_SME_1GB",
"phone_number": "08031234560",
"reference": "your-order-1043"
}'{
"success": true,
"status_code": 200,
"message": "Done. Order delivered.",
"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:00.412Z"
},
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:00.430211Z"
}
}{
"success": true,
"status_code": 202,
"message": "Order received and processing. We will notify you when it is done.",
"data": {
"order_id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
"order_ref": "VTU-20261017-9A8B7C6D5E4F",
"reference": "your-order-1042",
"client_reference": "your-order-1042",
"recipient": "08031234562",
"description": "MTN Airtime VTU — 08031234562",
"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",
"poll_url": "/api/v1/vtu/orders/0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d"
},
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:00.655Z"
}
}{
"success": false,
"status_code": 422,
"error_code": "VTU_ORDER_FAILED",
"message": "This order could not be completed.",
"details": [
{
"field": "order_ref",
"message": "VTU-20261017-1B2C3D4E5F60"
}
],
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:00.300Z"
}
}Base URL https://api.abokidata.com/api/v1
Buy data in bulk
POST/vtu/data/bulk
Buys the same bundle for up to 50 numbers. Every number must belong to the bundle's network (checked by its prefix); for a number ported to that network, send { "phone_number": "…", "ported": true } instead of a plain string. A number repeated in the batch is bought once. Bad lines are reported together in 400 BULK_LINES_INVALID and nothing is charged. The orders are processed in the background and the response is always 202; see Get a bulk batch.
Headers
Idempotency-KeystringrequiredA unique value you generate for this order (for example a UUID or your order ID), reused unchanged if you retry. See Idempotency.
Request body
skustringrequiredphone_numbersarray of stringsrequiredUp to 50 numbers on the bundle's network, each
0XXXXXXXXXX,+234XXXXXXXXXXor234XXXXXXXXXX. A number ported to this network goes in as an object instead:{ "phone_number": "08021112228", "ported": true }.
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 |
|---|---|---|
| 400 | VALIDATION_ERROR | A field is missing or invalid, or more than 50 numbers ("A batch can have up to 50 numbers. This one has 62."). |
| 400 | BULK_LINES_INVALID | One or more lines cannot be bought. `details` lists each one as `{field: "recipients[3]", message}` (`phone_numbers[3]` for data). Nothing was charged; fix the lines and send the batch again with a new key. |
| 400 | IDEMPOTENCY_KEY_REQUIRED | No Idempotency-Key header. |
| 404 | PRODUCT_NOT_FOUND | The sku, network or type is unknown or switched off. |
| 422 | INSUFFICIENT_BALANCE | Not enough available balance for the whole batch. |
| 503 | PRODUCT_UNAVAILABLE | The product is temporarily unavailable. |
curl -X POST "https://api.abokidata.com/api/v1/vtu/data/bulk" \
-H "Authorization: Bearer $ABOKI_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: ord_7Hk2pQ9xR4" \
-d '{
"sku": "DATA_MTN_SME_1GB",
"phone_numbers": [
"08031112220",
"08061112224",
{
"phone_number": "08021112228",
"ported": true
}
]
}'{
"success": true,
"status_code": 202,
"message": "Bulk airtime order submitted and processing in the background.",
"data": {
"batch_id": "0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"batch_ref": "BULK-20261017-4C8E2A6B9D1F",
"service_code": "AIRTIME",
"network": "MTN",
"status": "PROCESSING",
"total_count": 2,
"successful_count": 0,
"failed_count": 0,
"pending_count": 2,
"total_amount_kobo": 147000,
"created_at": "2026-10-17T12:00:00.000Z",
"updated_at": "2026-10-17T12:00:00.000Z",
"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": "FUNDS_RESERVED",
"customer_status": "processing",
"money_location": "held",
"is_test": false,
"batch_id": "0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"created_at": "2026-10-17T12:00:00.000Z",
"updated_at": "2026-10-17T12:00:00.000Z"
}
],
"poll_url": "/api/v1/vtu/bulk/0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f"
},
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:00.123456Z"
}
}Base URL https://api.abokidata.com/api/v1