Skip to content
Pay Sef

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.

Errors every endpoint on this page can return

HTTPerror_codeWhen
401UNAUTHORIZEDA key was sent but is invalid or revoked.
403IP_NOT_WHITELISTEDThe request came from outside your IP allowlist.
403FORBIDDENThe key's account is suspended, frozen or closed.
429RATE_LIMIT_EXCEEDEDMore than 120 requests within 60 seconds from your IP address for this path. When the wait is known, retry_after_seconds and the Retry-After header say how long.

List services

GET/services

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

This endpoint also works without a key on api.paysef.com (not on the sandbox address), at standard prices. Limited to 120 requests per minute per IP address; cache the result.

GET /services
curl "https://sandbox.paysef.com/api/v1/services" \
  -H "Authorization: Bearer $PAYSEF_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://sandbox.paysef.com/api/v1 with a test key, https://api.paysef.com/api/v1 with a live key

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. A service that is switched off returns an empty list. 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. For data: SME, GIFTING, CORPORATE, AWOOF, DATA_SHARE or DIRECT (a plan with no type of its own is SME). Ignored for airtime.

Errors

Plus the errors every endpoint on this page can return.

HTTPerror_codeWhen
404SERVICE_NOT_FOUNDNo service has that code or id.
GET /services/{service}/products
curl "https://sandbox.paysef.com/api/v1/services/DATA/products?network=MTN" \
  -H "Authorization: Bearer $PAYSEF_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": "AIRTEL",
      "name": "Airtel",
      "types": [
        {
          "code": "VTU",
          "name": "VTU",
          "discount_bp": 200
        }
      ]
    },
    {
      "code": "MTN",
      "name": "MTN",
      "types": [
        {
          "code": "VTU",
          "name": "VTU",
          "discount_bp": 200
        }
      ]
    }
  ],
  "meta": {
    "request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
    "timestamp": "2026-10-17T12:00:00.123456Z"
  }
}

Base URL https://sandbox.paysef.com/api/v1 with a test key, https://api.paysef.com/api/v1 with a live key