Skip to content

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

  • limitintegeroptional

    Number of orders to return. Between 1 and 100. Default 20.

  • statusstringoptional

    Only 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.

  • referencestringoptional

    Only the order with this order_ref or your reference.

Errors

HTTPerror_codeWhen
400VALIDATION_ERRORUnknown status value.
GET /vtu/orders
curl "https://api.abokidata.com/api/v1/vtu/orders?limit=20" \
  -H "Authorization: Bearer $ABOKI_API_KEY"
Orders retrieved.
200
{
  "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

  • idstringrequired

    order_id, order_ref or your reference.

Returns: data

  • order_idstring (uuid)optional
  • order_refstringoptional

    Aboki Data reference, e.g. VTU-20261017-9A8B7C6D5E4F.

  • referencestringoptional

    Your reference if you sent one, otherwise the order_ref.

  • client_referencestringoptional

    Your reference. Only present if you sent one.

  • recipientstringoptional

    Phone number (as 0XXXXXXXXXX), smartcard number or meter number.

  • descriptionstringoptional

    The product name and the recipient, e.g. MTN SME 1GB - 30 days — 08031234560 (or Purchase for 08031234560 when the product name is not known).

  • face_value_kobointegeroptional

    Value delivered, in kobo.

  • amount_debited_kobointegeroptional

    What your wallet paid, in kobo.

  • statusstringoptional

    One of INITIATED, FUNDS_RESERVED, DISPATCHING_PROVIDER, PENDING_PROVIDER_QUERY, ADMIN_MANUAL_REVIEW, SUCCESS_SETTLED, FAILED_UNRESERVED, FAILED_REFUNDED.

  • customer_statusstringoptional

    The three-state view of status: processing until a final status, delivered for SUCCESS_SETTLED, failed for FAILED_UNRESERVED and FAILED_REFUNDED. One of processing, delivered, failed.

  • money_locationstringoptional

    Where the money is: not_charged for INITIATED, held while reserved (FUNDS_RESERVED, DISPATCHING_PROVIDER, PENDING_PROVIDER_QUERY, ADMIN_MANUAL_REVIEW), spent for SUCCESS_SETTLED, refunded for either failed status. One of not_charged, held, spent, refunded.

  • is_testbooleanoptional
  • tokenstringoptional

    Electricity token, or the exam PIN and serial number. Only when delivered.

  • unitsstringoptional

    Units purchased, when the provider returns them.

  • meter_numberstringoptional

    Electricity orders, when the provider returns it.

  • pinstringoptional

    Exam PIN, when returned separately (test mode).

  • serial_numberstringoptional

    Exam serial number, when returned separately (test mode).

  • failure_reasonstringoptional

    Why 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.

  • metadataobjectoptional

    Delivery details only: any of token, delivery_token, units, meter_number, pin, serial_number. Provider and operational details are never included.

  • batch_idstring (uuid)optional

    Bulk orders only.

  • poll_urlstringoptional

    Only on 202 responses: the path to check this order.

  • created_atstring (date-time)optional
  • updated_atstring (date-time)optional

Errors

HTTPerror_codeWhen
404NOT_FOUNDNo order on your account matches.
GET /vtu/orders/{id}
curl "https://api.abokidata.com/api/v1/vtu/orders/VTU-20261017-9A8B7C6D5E4F" \
  -H "Authorization: Bearer $ABOKI_API_KEY"
Order status retrieved.
200
{
  "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

  • referencestringrequired

    Your reference, or the order_ref.

Returns: data

  • order_idstring (uuid)optional
  • order_refstringoptional

    Aboki Data reference, e.g. VTU-20261017-9A8B7C6D5E4F.

  • referencestringoptional

    Your reference if you sent one, otherwise the order_ref.

  • client_referencestringoptional

    Your reference. Only present if you sent one.

  • recipientstringoptional

    Phone number (as 0XXXXXXXXXX), smartcard number or meter number.

  • descriptionstringoptional

    The product name and the recipient, e.g. MTN SME 1GB - 30 days — 08031234560 (or Purchase for 08031234560 when the product name is not known).

  • face_value_kobointegeroptional

    Value delivered, in kobo.

  • amount_debited_kobointegeroptional

    What your wallet paid, in kobo.

  • statusstringoptional

    One of INITIATED, FUNDS_RESERVED, DISPATCHING_PROVIDER, PENDING_PROVIDER_QUERY, ADMIN_MANUAL_REVIEW, SUCCESS_SETTLED, FAILED_UNRESERVED, FAILED_REFUNDED.

  • customer_statusstringoptional

    The three-state view of status: processing until a final status, delivered for SUCCESS_SETTLED, failed for FAILED_UNRESERVED and FAILED_REFUNDED. One of processing, delivered, failed.

  • money_locationstringoptional

    Where the money is: not_charged for INITIATED, held while reserved (FUNDS_RESERVED, DISPATCHING_PROVIDER, PENDING_PROVIDER_QUERY, ADMIN_MANUAL_REVIEW), spent for SUCCESS_SETTLED, refunded for either failed status. One of not_charged, held, spent, refunded.

  • is_testbooleanoptional
  • tokenstringoptional

    Electricity token, or the exam PIN and serial number. Only when delivered.

  • unitsstringoptional

    Units purchased, when the provider returns them.

  • meter_numberstringoptional

    Electricity orders, when the provider returns it.

  • pinstringoptional

    Exam PIN, when returned separately (test mode).

  • serial_numberstringoptional

    Exam serial number, when returned separately (test mode).

  • failure_reasonstringoptional

    Why 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.

  • metadataobjectoptional

    Delivery details only: any of token, delivery_token, units, meter_number, pin, serial_number. Provider and operational details are never included.

  • batch_idstring (uuid)optional

    Bulk orders only.

  • poll_urlstringoptional

    Only on 202 responses: the path to check this order.

  • created_atstring (date-time)optional
  • updated_atstring (date-time)optional

Errors

HTTPerror_codeWhen
404NOT_FOUNDNo order matches. If your purchase timed out, it was not created.
GET /vtu/orders/verify/{reference}
curl "https://api.abokidata.com/api/v1/vtu/orders/verify/your-order-1042" \
  -H "Authorization: Bearer $ABOKI_API_KEY"
Order verification retrieved.
200
{
  "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)required

    The batch_id from the bulk purchase response.

Returns: data

  • batch_idstring (uuid)optional
  • batch_refstringoptional

    For example BULK-20261017-4C8E2A6B9D1F.

  • service_codestringoptional

    One of AIRTIME, DATA.

  • networkstringoptional
  • statusstringoptional

    Summary only. Read items[].status for each order. One of PROCESSING, COMPLETED, PARTIALLY_COMPLETED, FAILED.

  • total_countintegeroptional
  • successful_countintegeroptional
  • failed_countintegeroptional
  • pending_countintegeroptional
  • total_amount_kobointegeroptional

    Total reserved for the batch, in kobo.

  • itemsarray of objectsoptional

    One order per recipient (same fields as an order).

    • order_idstring (uuid)optional
    • order_refstringoptional

      Aboki Data reference, e.g. VTU-20261017-9A8B7C6D5E4F.

    • referencestringoptional

      Your reference if you sent one, otherwise the order_ref.

    • client_referencestringoptional

      Your reference. Only present if you sent one.

    • recipientstringoptional

      Phone number (as 0XXXXXXXXXX), smartcard number or meter number.

    • descriptionstringoptional

      The product name and the recipient, e.g. MTN SME 1GB - 30 days — 08031234560 (or Purchase for 08031234560 when the product name is not known).

    • face_value_kobointegeroptional

      Value delivered, in kobo.

    • amount_debited_kobointegeroptional

      What your wallet paid, in kobo.

    • statusstringoptional

      One of INITIATED, FUNDS_RESERVED, DISPATCHING_PROVIDER, PENDING_PROVIDER_QUERY, ADMIN_MANUAL_REVIEW, SUCCESS_SETTLED, FAILED_UNRESERVED, FAILED_REFUNDED.

    • customer_statusstringoptional

      The three-state view of status: processing until a final status, delivered for SUCCESS_SETTLED, failed for FAILED_UNRESERVED and FAILED_REFUNDED. One of processing, delivered, failed.

    • money_locationstringoptional

      Where the money is: not_charged for INITIATED, held while reserved (FUNDS_RESERVED, DISPATCHING_PROVIDER, PENDING_PROVIDER_QUERY, ADMIN_MANUAL_REVIEW), spent for SUCCESS_SETTLED, refunded for either failed status. One of not_charged, held, spent, refunded.

    • is_testbooleanoptional
    • tokenstringoptional

      Electricity token, or the exam PIN and serial number. Only when delivered.

    • unitsstringoptional

      Units purchased, when the provider returns them.

    • meter_numberstringoptional

      Electricity orders, when the provider returns it.

    • pinstringoptional

      Exam PIN, when returned separately (test mode).

    • serial_numberstringoptional

      Exam serial number, when returned separately (test mode).

    • failure_reasonstringoptional

      Why 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.

    • metadataobjectoptional

      Delivery details only: any of token, delivery_token, units, meter_number, pin, serial_number. Provider and operational details are never included.

    • batch_idstring (uuid)optional

      Bulk orders only.

    • poll_urlstringoptional

      Only on 202 responses: the path to check this order.

    • created_atstring (date-time)optional
    • updated_atstring (date-time)optional
  • poll_urlstringoptional

    On the 202 response: the path to check this batch.

  • created_atstring (date-time)optional
  • updated_atstring (date-time)optional

Errors

HTTPerror_codeWhen
404NOT_FOUNDNo batch with that id on your account.
GET /vtu/bulk/{batch_id}
curl "https://api.abokidata.com/api/v1/vtu/bulk/0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \
  -H "Authorization: Bearer $ABOKI_API_KEY"
Bulk batch status retrieved.
200
{
  "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