Skip to content
Pay Sef

API reference

Airtime

Top up any MTN, Airtel, Glo or 9mobile number with an amount in kobo, one at a time or up to 50 numbers in one request.

Errors every endpoint on this page can return

HTTPerror_codeWhen
400IDEMPOTENCY_KEY_REQUIREDNo Idempotency-Key header.
401UNAUTHORIZEDThe key is missing, invalid or revoked.
403IP_NOT_WHITELISTEDThe request came from outside your IP allowlist.
403ACCOUNT_SUSPENDEDThe account is suspended. ACCOUNT_FROZEN and ACCOUNT_CLOSED work the same way.
404PRICING_RULE_NOT_FOUNDThe product has no price for your account type yet.
404WALLET_NOT_FOUNDYour live wallet does not exist.
409IDEMPOTENCY_IN_FLIGHTThe first request with this key is still running after 8 seconds.
409IDEMPOTENCY_PAYLOAD_MISMATCHThis key was used with a different body.
503SERVICE_MAINTENANCEPay Sef is under maintenance. retry_after_seconds and the Retry-After header say when to try again.

Buy airtime

POST/vtu/airtime/purchase

Sends airtime of any amount from ₦100 to ₦1,000,000 (amount_kobo 10000 to 100000000) to one number. Get the networks and type values from List products with service AIRTIME. You pay amount_kobo less the discount for your account type; the response's amount_debited_kobo is the exact charge.

The phone number's network is not checked against network for single purchases, so validate it on your side. A network and type pair that is not in the catalogue is refused with 400: "GLO GIFTING airtime is not available. Choose another network or type."

Headers

  • Idempotency-Keystringrequired

    A unique value you generate for this order (for example a UUID or your order ID), up to 100 characters, reused unchanged if you retry. See Idempotency.

Request body

  • networkstringrequired

    Network code from the airtime catalogue. One of MTN, AIRTEL, GLO, 9MOBILE.

  • typestringrequired

    Airtime type code from the catalogue, e.g. VTU.

  • phone_numberstringrequired

    0XXXXXXXXXX, +234XXXXXXXXXX or 234XXXXXXXXXX. Send it as a string.

  • amount_kobointeger | stringrequired

    Whole kobo (₦1 = 100 kobo), as an integer or a string of digits: 50000 is ₦500. Decimals are refused, and so is a naira field named amount. Between 10000 and 100000000.

  • referencestringoptional

    Your own ID for this order, as a string of up to 100 characters. 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)optional

    A public HTTPS URL, up to 500 characters, 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)optional
  • order_refstringoptional

    Pay Sef 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

    A short label for the order, today Purchase for 08031234560. Show it as is; do not parse it.

  • 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. FAILED_UNRESERVED means the order failed and the hold was released; FAILED_REFUNDED means Pay Sef refunded it after a review. One of not_charged, held, spent, refunded.

  • is_testbooleanoptional
  • tokenstringoptional

    Electricity token (the token itself, with no label, e.g. 12345678901234567890), 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

    Plain language you can show your customer. On a failed order: This order did not go through. Your money is back in your wallet. On ADMIN_MANUAL_REVIEW: We are checking this order with the network. Your money is on hold, not spent. Absent otherwise.

  • metadataobjectoptional

    Delivery details only: any of token, delivery_token, units, meter_number, pin, serial_number. Can be {}. 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

Plus the errors every endpoint on this page can return.

HTTPerror_codeWhen
400VALIDATION_ERRORA field is missing, invalid or of the wrong JSON type (phone_number must be a string.), a naira field such as amount was sent instead of amount_kobo, or the Idempotency-Key is over 100 characters. Airtime only: the network and type are not on sale. Purchases by sku only: the sku belongs to another service ("DATA_MTN_SME_1GB" is not a TV package. Choose one from the TV packages list.), or an amount was sent for a fixed-price plan. The message says which.
403WALLET_LOCKEDYour live wallet is on hold ("Your wallet is on hold, so it cannot be used right now. Your money is safe. Contact support to sort it out.").
404PRODUCT_NOT_FOUNDPurchases by sku only: the sku is unknown or switched off.
409CONFLICTAn order with this reference already exists on your account.
409DUPLICATE_PURCHASESame product to the same recipient within your duplicate-guard window (the amount is not compared). retry_after_seconds says how long to wait.
409ORDER_ALREADY_PLACEDThis Idempotency-Key already placed an order (for example 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.
422INSUFFICIENT_BALANCENot enough available balance. In test mode the message gives the test wallet balance and how to reset it.
422DAILY_LIMIT_EXCEEDEDCustomer accounts only: the purchase exceeds your daily limit.
422VTU_ORDER_FAILEDThe provider refused the order. Nothing was charged.
502EXTERNAL_PROVIDER_ERRORThe provider could not be reached before the order was sent.
503PRODUCT_UNAVAILABLEThe product is temporarily unavailable. details says why: {field: sku, message: SERVICE_DISABLED} or GROUP_DISABLED.
503NO_PROVIDERS_AVAILABLENo provider can fulfil the order right now. Nothing was charged.
POST /vtu/airtime/purchase
curl -X POST "https://sandbox.paysef.com/api/v1/vtu/airtime/purchase" \
  -H "Authorization: Bearer $PAYSEF_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: ord_7Hk2pQ9xR4" \
  -d '{
  "network": "MTN",
  "type": "VTU",
  "phone_number": "08031234560",
  "amount_kobo": 50000,
  "reference": "your-order-1042"
}'
Done. Order delivered.
200
{
  "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": "Purchase for 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"
  }
}
Order received and processing. We will notify you when it is done.
202
{
  "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": "Purchase for 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"
  }
}
The provider refused the order
422
{
  "success": false,
  "status_code": 422,
  "error_code": "VTU_ORDER_FAILED",
  "message": "This order did not go through. Your money is back in your wallet.",
  "details": [
    {
      "field": "order_ref",
      "message": "VTU-20261017-1B2C3D4E5F60"
    }
  ],
  "meta": {
    "request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
    "timestamp": "2026-10-17T12:00:00.300Z"
  }
}

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

Buy airtime in bulk

POST/vtu/airtime/bulk

Sends airtime to up to 50 numbers in one request. The total is reserved at once and the orders are processed in the background; the response is always 202. Follow progress with Get a bulk batch and read each item's status, or wait for one webhook per order.

Every number must belong to network (checked by its prefix); for a number ported to another network, set network on that line. A number repeated in the batch is bought once. Every line is checked before anything is reserved: a bad line (not a Nigerian number, wrong network, below ₦100, or the same product sent to that number within your duplicate-guard window) is reported in 400 BULK_LINES_INVALID, with one details entry per line, and nothing is charged. The 50-number limit counts numbers after repeats are merged. Bulk requests do not take reference or callback_url; webhooks go to your account webhook URL. Sending the same Idempotency-Key again returns the existing batch with 202.

Headers

  • Idempotency-Keystringrequired

    A unique value you generate for this order (for example a UUID or your order ID), up to 100 characters, reused unchanged if you retry. See Idempotency.

Request body

  • networkstringrequired

    One of MTN, AIRTEL, GLO, 9MOBILE.

  • typestringrequired

    Airtime type code, as for a single purchase.

  • amount_kobointeger | stringoptional

    Default amount, in kobo, for recipients without their own. Required unless every recipient has an amount_kobo. At least 10000 (₦100).

  • recipientsarray of objectsoptional

    Up to 50. Send this or phone_numbers. A line can also be a plain phone number string.

    • phone_numberstringoptional

      0XXXXXXXXXX, +234XXXXXXXXXX or 234XXXXXXXXXX. Must belong to network unless network is set on this line.

    • amount_kobointegeroptional

      Overrides the default amount for this number

    • networkstringoptional

      For a number ported to another network: the network to send this line on. One of MTN, AIRTEL, GLO, 9MOBILE.

  • phone_numbersarray of stringsoptional

    Up to 50 numbers, all charged the default amount_kobo. Used only if recipients is not sent.

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). Left out when the batch has no orders.

    • order_idstring (uuid)optional
    • order_refstringoptional

      Pay Sef 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

      A short label for the order, today Purchase for 08031234560. Show it as is; do not parse it.

    • 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. FAILED_UNRESERVED means the order failed and the hold was released; FAILED_REFUNDED means Pay Sef refunded it after a review. One of not_charged, held, spent, refunded.

    • is_testbooleanoptional
    • tokenstringoptional

      Electricity token (the token itself, with no label, e.g. 12345678901234567890), 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

      Plain language you can show your customer. On a failed order: This order did not go through. Your money is back in your wallet. On ADMIN_MANUAL_REVIEW: We are checking this order with the network. Your money is on hold, not spent. Absent otherwise.

    • metadataobjectoptional

      Delivery details only: any of token, delivery_token, units, meter_number, pin, serial_number. Can be {}. 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

Plus the errors every endpoint on this page can return.

HTTPerror_codeWhen
400VALIDATION_ERRORA field is missing or invalid, more than 50 numbers ("A batch can have up to 50 numbers. This one has 62."), the airtime network or type is not on sale ("We don't sell Glo GIFTING airtime right now."), the data sku is not a data plan, or the Idempotency-Key is over 100 characters.
400BULK_LINES_INVALIDOne or more lines cannot be bought. details lists each one as {field: "recipients[3]", message} (phone_numbers[3] for data), for example "You just bought this for 0803 111 2220. Remove the line or try again in 40 seconds." Nothing was charged; fix the lines and send the batch again with a new key.
403WALLET_LOCKEDYour live wallet is on hold.
404PRODUCT_NOT_FOUNDThe data sku is unknown or switched off.
422INSUFFICIENT_BALANCENot enough available balance for the whole batch.
422DAILY_LIMIT_EXCEEDEDCustomer accounts only: the batch exceeds your daily limit.
503PRODUCT_UNAVAILABLEThe product is temporarily unavailable.
POST /vtu/airtime/bulk
curl -X POST "https://sandbox.paysef.com/api/v1/vtu/airtime/bulk" \
  -H "Authorization: Bearer $PAYSEF_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: ord_7Hk2pQ9xR4" \
  -d '{
  "network": "MTN",
  "type": "VTU",
  "amount_kobo": 50000,
  "recipients": [
    {
      "phone_number": "08031112220"
    },
    {
      "phone_number": "08061112224",
      "amount_kobo": 100000
    },
    {
      "phone_number": "08021112228",
      "network": "AIRTEL"
    }
  ]
}'
Bulk order submitted and processing in the background.
202
{
  "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": "Purchase for 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://sandbox.paysef.com/api/v1 with a test key, https://api.paysef.com/api/v1 with a live key