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
| HTTP | error_code | When |
|---|---|---|
| 401 | UNAUTHORIZED | The key is missing, invalid or revoked. |
| 403 | IP_NOT_WHITELISTED | The request came from outside your IP allowlist. |
| 403 | ACCOUNT_SUSPENDED | The account is suspended. ACCOUNT_FROZEN and ACCOUNT_CLOSED work the same way. |
| 503 | SERVICE_MAINTENANCE | Pay 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
limitintegeroptionalNumber of orders to return. Between 1 and 100. Default
20.cursorstring (uuid)optionalThe
next_cursorfrom the previous page'smeta.pagination. Leave it out for the first page; stop whenhas_moreis false. There is nooffset.statusstringoptionalOnly 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.referencestringoptionalOnly the order with this
order_refor yourreference.
Errors
Plus the errors every endpoint on this page can return.
| HTTP | error_code | When |
|---|---|---|
| 400 | INVALID_CURSOR | The cursor is not an order id. Another account's order id returns an empty page. |
| 400 | VALIDATION_ERROR | Unknown status value (the message lists the valid ones), or an offset other than 0. |
curl "https://sandbox.paysef.com/api/v1/vtu/orders?limit=20" \
-H "Authorization: Bearer $PAYSEF_API_KEY"{
"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
idstringrequiredorder_id,order_refor yourreference.
Returns: data
order_idstring (uuid)optionalorder_refstringoptionalPay Sef reference, e.g.
VTU-20261017-9A8B7C6D5E4F.referencestringoptionalYour
referenceif you sent one, otherwise theorder_ref.client_referencestringoptionalYour
reference. Only present if you sent one.recipientstringoptionalPhone number (as
0XXXXXXXXXX), smartcard number or meter number.descriptionstringoptionalA short label for the order, today
Purchase for 08031234560. Show it as is; do not parse it.face_value_kobointegeroptionalValue delivered, in kobo.
amount_debited_kobointegeroptionalWhat your wallet paid, in kobo.
statusstringoptionalOne of
INITIATED,FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW,SUCCESS_SETTLED,FAILED_UNRESERVED,FAILED_REFUNDED.customer_statusstringoptionalThe three-state view of
status:processinguntil a final status,deliveredforSUCCESS_SETTLED,failedforFAILED_UNRESERVEDandFAILED_REFUNDED. One ofprocessing,delivered,failed.money_locationstringoptionalWhere the money is:
not_chargedforINITIATED,heldwhile reserved (FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW),spentforSUCCESS_SETTLED,refundedfor either failed status.FAILED_UNRESERVEDmeans the order failed and the hold was released;FAILED_REFUNDEDmeans Pay Sef refunded it after a review. One ofnot_charged,held,spent,refunded.is_testbooleanoptionaltokenstringoptionalElectricity token (the token itself, with no label, e.g.
12345678901234567890), or the exam PIN and serial number. Only when delivered.unitsstringoptionalUnits purchased, when the provider returns them.
meter_numberstringoptionalElectricity orders, when the provider returns it.
pinstringoptionalExam PIN, when returned separately (test mode).
serial_numberstringoptionalExam serial number, when returned separately (test mode).
failure_reasonstringoptionalPlain language you can show your customer. On a failed order:
This order did not go through. Your money is back in your wallet.OnADMIN_MANUAL_REVIEW:We are checking this order with the network. Your money is on hold, not spent.Absent otherwise.metadataobjectoptionalDelivery 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)optionalBulk orders only.
poll_urlstringoptionalOnly on
202responses: the path to check this order.created_atstring (date-time)optionalupdated_atstring (date-time)optional
Errors
Plus the errors every endpoint on this page can return.
| HTTP | error_code | When |
|---|---|---|
| 404 | NOT_FOUND | No order on your account matches ("Order not found."). |
curl "https://sandbox.paysef.com/api/v1/vtu/orders/VTU-20261017-9A8B7C6D5E4F" \
-H "Authorization: Bearer $PAYSEF_API_KEY"{
"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
referencestringrequiredYour
reference, or theorder_ref.
Returns: data
order_idstring (uuid)optionalorder_refstringoptionalPay Sef reference, e.g.
VTU-20261017-9A8B7C6D5E4F.referencestringoptionalYour
referenceif you sent one, otherwise theorder_ref.client_referencestringoptionalYour
reference. Only present if you sent one.recipientstringoptionalPhone number (as
0XXXXXXXXXX), smartcard number or meter number.descriptionstringoptionalA short label for the order, today
Purchase for 08031234560. Show it as is; do not parse it.face_value_kobointegeroptionalValue delivered, in kobo.
amount_debited_kobointegeroptionalWhat your wallet paid, in kobo.
statusstringoptionalOne of
INITIATED,FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW,SUCCESS_SETTLED,FAILED_UNRESERVED,FAILED_REFUNDED.customer_statusstringoptionalThe three-state view of
status:processinguntil a final status,deliveredforSUCCESS_SETTLED,failedforFAILED_UNRESERVEDandFAILED_REFUNDED. One ofprocessing,delivered,failed.money_locationstringoptionalWhere the money is:
not_chargedforINITIATED,heldwhile reserved (FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW),spentforSUCCESS_SETTLED,refundedfor either failed status.FAILED_UNRESERVEDmeans the order failed and the hold was released;FAILED_REFUNDEDmeans Pay Sef refunded it after a review. One ofnot_charged,held,spent,refunded.is_testbooleanoptionaltokenstringoptionalElectricity token (the token itself, with no label, e.g.
12345678901234567890), or the exam PIN and serial number. Only when delivered.unitsstringoptionalUnits purchased, when the provider returns them.
meter_numberstringoptionalElectricity orders, when the provider returns it.
pinstringoptionalExam PIN, when returned separately (test mode).
serial_numberstringoptionalExam serial number, when returned separately (test mode).
failure_reasonstringoptionalPlain language you can show your customer. On a failed order:
This order did not go through. Your money is back in your wallet.OnADMIN_MANUAL_REVIEW:We are checking this order with the network. Your money is on hold, not spent.Absent otherwise.metadataobjectoptionalDelivery 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)optionalBulk orders only.
poll_urlstringoptionalOnly on
202responses: the path to check this order.created_atstring (date-time)optionalupdated_atstring (date-time)optional
Errors
Plus the errors every endpoint on this page can return.
| HTTP | error_code | When |
|---|---|---|
| 404 | NOT_FOUND | No order matches ("No order found matching the provided reference."). If your purchase timed out, it was not created. |
curl "https://sandbox.paysef.com/api/v1/vtu/orders/verify/your-order-1042" \
-H "Authorization: Bearer $PAYSEF_API_KEY"{
"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)requiredThe
batch_idfrom the bulk purchase response.
Returns: data
batch_idstring (uuid)optionalbatch_refstringoptionalFor example
BULK-20261017-4C8E2A6B9D1F.service_codestringoptionalOne of
AIRTIME,DATA.networkstringoptionalstatusstringoptionalSummary only. Read
items[].statusfor each order. One ofPROCESSING,COMPLETED,PARTIALLY_COMPLETED,FAILED.total_countintegeroptionalsuccessful_countintegeroptionalfailed_countintegeroptionalpending_countintegeroptionaltotal_amount_kobointegeroptionalTotal reserved for the batch, in kobo.
itemsarray of objectsoptionalOne order per recipient (same fields as an order). Left out when the batch has no orders.
order_idstring (uuid)optionalorder_refstringoptionalPay Sef reference, e.g.
VTU-20261017-9A8B7C6D5E4F.referencestringoptionalYour
referenceif you sent one, otherwise theorder_ref.client_referencestringoptionalYour
reference. Only present if you sent one.recipientstringoptionalPhone number (as
0XXXXXXXXXX), smartcard number or meter number.descriptionstringoptionalA short label for the order, today
Purchase for 08031234560. Show it as is; do not parse it.face_value_kobointegeroptionalValue delivered, in kobo.
amount_debited_kobointegeroptionalWhat your wallet paid, in kobo.
statusstringoptionalOne of
INITIATED,FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW,SUCCESS_SETTLED,FAILED_UNRESERVED,FAILED_REFUNDED.customer_statusstringoptionalThe three-state view of
status:processinguntil a final status,deliveredforSUCCESS_SETTLED,failedforFAILED_UNRESERVEDandFAILED_REFUNDED. One ofprocessing,delivered,failed.money_locationstringoptionalWhere the money is:
not_chargedforINITIATED,heldwhile reserved (FUNDS_RESERVED,DISPATCHING_PROVIDER,PENDING_PROVIDER_QUERY,ADMIN_MANUAL_REVIEW),spentforSUCCESS_SETTLED,refundedfor either failed status.FAILED_UNRESERVEDmeans the order failed and the hold was released;FAILED_REFUNDEDmeans Pay Sef refunded it after a review. One ofnot_charged,held,spent,refunded.is_testbooleanoptionaltokenstringoptionalElectricity token (the token itself, with no label, e.g.
12345678901234567890), or the exam PIN and serial number. Only when delivered.unitsstringoptionalUnits purchased, when the provider returns them.
meter_numberstringoptionalElectricity orders, when the provider returns it.
pinstringoptionalExam PIN, when returned separately (test mode).
serial_numberstringoptionalExam serial number, when returned separately (test mode).
failure_reasonstringoptionalPlain language you can show your customer. On a failed order:
This order did not go through. Your money is back in your wallet.OnADMIN_MANUAL_REVIEW:We are checking this order with the network. Your money is on hold, not spent.Absent otherwise.metadataobjectoptionalDelivery 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)optionalBulk orders only.
poll_urlstringoptionalOnly on
202responses: the path to check this order.created_atstring (date-time)optionalupdated_atstring (date-time)optional
poll_urlstringoptionalOn the
202response: the path to check this batch.created_atstring (date-time)optionalupdated_atstring (date-time)optional
Errors
Plus the errors every endpoint on this page can return.
| HTTP | error_code | When |
|---|---|---|
| 404 | NOT_FOUND | No batch with that id on your account. |
curl "https://sandbox.paysef.com/api/v1/vtu/bulk/0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \
-H "Authorization: Bearer $PAYSEF_API_KEY"{
"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