Skip to content
Pay Sef

API reference

Orders and bulk status

Look up an order by its ID, Pay Sef reference or your own reference, list recent orders, and follow a bulk batch.

Errors every endpoint on this page can return

HTTPerror_codeWhen
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.
503SERVICE_MAINTENANCEPay Sef is under maintenance. retry_after_seconds and the Retry-After header say when to try again.

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.

  • cursorstring (uuid)optional

    The next_cursor from the previous page's meta.pagination. Leave it out for the first page; stop when has_more is false. There is no offset.

  • 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

Plus the errors every endpoint on this page can return.

HTTPerror_codeWhen
400INVALID_CURSORThe cursor is not an order id. Another account's order id returns an empty page.
400VALIDATION_ERRORUnknown status value (the message lists the valid ones), or an offset other than 0.
GET /vtu/orders
curl "https://sandbox.paysef.com/api/v1/vtu/orders?limit=20" \
  -H "Authorization: Bearer $PAYSEF_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": "Purchase for 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,
      "next_cursor": null,
      "prev_cursor": null
    }
  }
}

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

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. It finds the order whichever of your keys (test or live) created it; check is_test.

Path parameters

  • idstringrequired

    order_id, order_ref or your reference.

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
404NOT_FOUNDNo order on your account matches ("Order not found.").
GET /vtu/orders/{id}
curl "https://sandbox.paysef.com/api/v1/vtu/orders/VTU-20261017-9A8B7C6D5E4F" \
  -H "Authorization: Bearer $PAYSEF_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": "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:03.020Z"
  },
  "meta": {
    "request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
    "timestamp": "2026-10-17T12:00:09.511Z"
  }
}

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

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. Like Get an order, it finds test and live orders with either key.

Path parameters

  • referencestringrequired

    Your reference, or the order_ref.

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
404NOT_FOUNDNo order matches ("No order found matching the provided reference."). If your purchase timed out, it was not created.
GET /vtu/orders/verify/{reference}
curl "https://sandbox.paysef.com/api/v1/vtu/orders/verify/your-order-1042" \
  -H "Authorization: Bearer $PAYSEF_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": "Purchase for 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://sandbox.paysef.com/api/v1 with a test key, https://api.paysef.com/api/v1 with a live key

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. items is left out when the batch has no orders.

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). 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
404NOT_FOUNDNo batch with that id on your account.
GET /vtu/bulk/{batch_id}
curl "https://sandbox.paysef.com/api/v1/vtu/bulk/0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \
  -H "Authorization: Bearer $PAYSEF_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": "Purchase for 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://sandbox.paysef.com/api/v1 with a test key, https://api.paysef.com/api/v1 with a live key