Skip to content

API reference

Services and products

List the services you can buy and the products, SKUs and prices (in kobo) for your account type. Use these to build your menus and find the sku for a purchase.

List services

GET/services

Returns the services that are currently available. The service_code (or id) is what you pass to List products.

This endpoint also works without a key, at standard prices. Limited to 120 requests per minute per IP address; cache the result.

Errors

HTTPerror_codeWhen
401UNAUTHORIZEDA key was sent but is invalid or revoked.
403IP_NOT_WHITELISTEDThe request came from outside your IP allowlist.
429RATE_LIMIT_EXCEEDEDMore than 120 requests in a minute from your IP address for this path.
GET /services
curl "https://api.abokidata.com/api/v1/services" \
  -H "Authorization: Bearer $ABOKI_API_KEY"
Services catalogue retrieved.
200
{
  "success": true,
  "status_code": 200,
  "message": "Services catalogue retrieved.",
  "data": [
    {
      "id": "6f1c2a9e-4b7d-4e21-9a3c-2d5e8f7a1b90",
      "service_code": "AIRTIME",
      "name": "Airtime Top-up",
      "category_type": "AIRTIME",
      "is_active": true,
      "image_url": null,
      "image_svg_url": null
    },
    {
      "id": "9d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f60",
      "service_code": "DATA",
      "name": "Mobile Data Bundles",
      "category_type": "DATA",
      "is_active": true,
      "image_url": null,
      "image_svg_url": null
    }
  ],
  "meta": {
    "request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
    "timestamp": "2026-10-17T12:00:00.123456Z"
  }
}

Base URL https://api.abokidata.com/api/v1

List products and prices

GET/services/{service}/products

Returns what you can buy in a service, priced for your account type (standard for Customer accounts, wholesale for API Partner accounts).

Airtime returns networks and their airtime types with a discount in basis points (discount_bp); you buy airtime by network and type with your own amount. Every other service returns products with a sku and a fixed selling_price_kobo. For electricity the product identifies the distribution company; you are charged amount_kobo × (1 − discount_bp / 10000).

Prices and discounts use your account type's rule, falling back to the Customer rule, the same way purchases are charged; the order's amount_debited_kobo is always what you paid. Limited to 120 requests per minute per IP address and path.

Path parameters

  • servicestringrequired

    A service_code such as DATA (any case) or the service id.

Query parameters

  • networkstringoptional

    Only products for this network or biller group, e.g. MTN (case-insensitive).

  • typestringoptional

    Only products of this type, e.g. SME for data. Ignored for airtime.

Errors

HTTPerror_codeWhen
404SERVICE_NOT_FOUNDNo service has that code or id.
401UNAUTHORIZEDA key was sent but is invalid or revoked.
429RATE_LIMIT_EXCEEDEDMore than 120 requests in a minute from your IP address for this path.
GET /services/{service}/products
curl "https://api.abokidata.com/api/v1/services/DATA/products?network=MTN" \
  -H "Authorization: Bearer $ABOKI_API_KEY"
Products retrieved.
200
{
  "success": true,
  "status_code": 200,
  "message": "Products retrieved.",
  "data": [
    {
      "sku": "DATA_MTN_SME_1GB",
      "name": "MTN SME 1GB - 30 days",
      "type": "SME",
      "network": "MTN",
      "validity_period": "30 days",
      "data_size": "1GB",
      "validity_days": 30,
      "is_active": true,
      "service_code": "DATA",
      "face_value_kobo": 30000,
      "selling_price_kobo": 28500,
      "discount_bp": 500
    }
  ],
  "meta": {
    "request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
    "timestamp": "2026-10-17T12:00:00.123456Z"
  }
}
Airtime networks and types
200
{
  "success": true,
  "status_code": 200,
  "message": "Products retrieved.",
  "data": [
    {
      "code": "MTN",
      "name": "MTN",
      "types": [
        {
          "code": "SHARE_AND_SELL",
          "name": "Share and Sell",
          "discount_bp": 300
        },
        {
          "code": "VTU",
          "name": "VTU",
          "discount_bp": 200
        }
      ]
    },
    {
      "code": "AIRTEL",
      "name": "Airtel",
      "types": [
        {
          "code": "VTU",
          "name": "VTU",
          "discount_bp": 200
        }
      ]
    }
  ],
  "meta": {
    "request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
    "timestamp": "2026-10-17T12:00:00.123456Z"
  }
}

Base URL https://api.abokidata.com/api/v1