API reference
Wallet and transactions
Read your wallet balance (or your test wallet, with a test key) and the ledger of credits and debits on your live wallet.
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. |
Get wallet balance
GET/wallets/me
With a live key, returns your Pay Sef wallets; purchases are paid from main_wallet.available_balance. With a test key, returns your test wallet instead, with is_test: true and the balance also at the top level.
Returns: data
currencystringoptionalAlways
NGN.main_walletobjectoptionalavailable_balance_kobointegeroptionalSpendable now, in kobo.
reserved_balance_kobointegeroptionalHeld for orders that have not finished.
ledger_balance_kobointegeroptionalAvailable plus reserved.
is_lockedbooleanoptionalis_testbooleanoptionalTest key only.
bonus_walletobjectoptionalavailable_balance_kobointegeroptionalSpendable now, in kobo.
reserved_balance_kobointegeroptionalHeld for orders that have not finished.
ledger_balance_kobointegeroptionalAvailable plus reserved.
is_lockedbooleanoptionalis_testbooleanoptionalTest key only.
commission_walletobjectoptionalavailable_balance_kobointegeroptionalSpendable now, in kobo.
reserved_balance_kobointegeroptionalHeld for orders that have not finished.
ledger_balance_kobointegeroptionalAvailable plus reserved.
is_lockedbooleanoptionalis_testbooleanoptionalTest key only.
cashback_walletobjectoptionalavailable_balance_kobointegeroptionalSpendable now, in kobo.
reserved_balance_kobointegeroptionalHeld for orders that have not finished.
ledger_balance_kobointegeroptionalAvailable plus reserved.
is_lockedbooleanoptionalis_testbooleanoptionalTest key only.
daily_limit_summaryobjectoptionalLive key only: your KYC tier and daily spend limit (
kyc_tier,daily_limit_kobo,daily_spent_today_kobo,daily_remaining_kobo,resets_at,next_tier,next_tier_daily_limit_kobo). It is returned for every account, but API Partner accounts are not held to the limit.is_testbooleanoptionalTest key only.
available_balance_kobointegeroptionalTest key only: the test wallet's spendable balance.
reserved_balance_kobointegeroptionalTest key only.
ledger_balance_kobointegeroptionalTest key only.
Errors
Plus the errors every endpoint on this page can return.
| HTTP | error_code | When |
|---|---|---|
| 404 | WALLET_NOT_FOUND | One of the account's live wallets does not exist. |
| 404 | PROFILE_NOT_FOUND | The account has no customer profile. |
curl "https://sandbox.paysef.com/api/v1/wallets/me" \
-H "Authorization: Bearer $PAYSEF_API_KEY"{
"success": true,
"status_code": 200,
"message": "Wallet retrieved.",
"data": {
"currency": "NGN",
"main_wallet": {
"available_balance_kobo": 12500050,
"reserved_balance_kobo": 49000,
"ledger_balance_kobo": 12549050,
"is_locked": false
},
"bonus_wallet": {
"available_balance_kobo": 0,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 0,
"is_locked": false
},
"commission_wallet": {
"available_balance_kobo": 0,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 0,
"is_locked": false
},
"cashback_wallet": {
"available_balance_kobo": 1200,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 1200,
"is_locked": false
},
"daily_limit_summary": {
"kyc_tier": "TIER_2_DOCUMENT_VERIFIED",
"daily_limit_kobo": 100000000,
"daily_spent_today_kobo": 49000,
"daily_remaining_kobo": 99951000,
"resets_at": "2026-10-18T00:00:00.000Z",
"next_tier": null,
"next_tier_daily_limit_kobo": null
}
},
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:00.123456Z"
}
}{
"success": true,
"status_code": 200,
"message": "Sandbox test wallet retrieved.",
"data": {
"currency": "NGN",
"is_test": true,
"available_balance_kobo": 89951000,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 89951000,
"main_wallet": {
"available_balance_kobo": 89951000,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 89951000,
"is_locked": false,
"is_test": true
},
"bonus_wallet": {
"available_balance_kobo": 0,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 0,
"is_locked": false
},
"commission_wallet": {
"available_balance_kobo": 0,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 0,
"is_locked": false
},
"cashback_wallet": {
"available_balance_kobo": 0,
"reserved_balance_kobo": 0,
"ledger_balance_kobo": 0,
"is_locked": false
}
},
"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 transactions
GET/transactions
Returns ledger entries (credits and debits) on your live wallets, newest first, using cursor pagination. Test-mode orders do not create ledger entries, so they never appear here, even with a test key; use List orders for those.
Each entry links to what it came from: a purchase carries order_id, order_ref and customer_status (processing, delivered or failed); a wallet top-up carries deposit_reference. Entries with no order or deposit leave these keys out. Show label (Purchase, Wallet top-up, Refund, …); type stays for integrations that already read it.
Query parameters
limitintegeroptionalNumber of entries to return. Values outside 1 to 100 are clamped. Between 1 and 100. Default
20.cursorstringoptionalThe
next_cursor(orprev_cursor) from the previous page'smeta.pagination.directionstringoptionalprevfor newer entries; anything else meansnext(older). One ofnext,prev. Default"next".typestringoptionalOnly credits or only debits. One of
CREDIT,DEBIT.service_categorystringoptionalOnly entries for one service, e.g.
AIRTIMEorDATA(any case). Up to 40 characters.date_fromstringoptionalOnly entries on or after this date:
YYYY-MM-DDor an ISO 8601 timestamp.date_tostringoptionalOnly entries up to the end of this date:
YYYY-MM-DDor an ISO 8601 timestamp. Must not be beforedate_from.qstringoptionalFree-text search in the narration and reference. Up to 100 characters.
Errors
Plus the errors every endpoint on this page can return.
| HTTP | error_code | When |
|---|---|---|
| 400 | INVALID_CURSOR | The cursor is not one this API issued. |
| 400 | VALIDATION_ERROR | type is not CREDIT or DEBIT, a date cannot be read, date_to is before date_from, q is over 100 characters or service_category is over 40. |
curl "https://sandbox.paysef.com/api/v1/transactions?limit=20" \
-H "Authorization: Bearer $PAYSEF_API_KEY"{
"success": true,
"status_code": 200,
"message": "Transactions retrieved.",
"data": [
{
"id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
"reference": "RES-20261017-3F9A1C2B7D4E",
"batch_reference": "RES-20261017-3F9A1C2B7D4E",
"type": "VTU Purchase",
"label": "Purchase",
"wallet_type": "MAIN",
"direction": "DEBIT",
"amount_kobo": 49000,
"currency": "NGN",
"narration": "MTN Airtime to 08031234560 (VTU-20261017-9A8B7C6D5E4F)",
"description": "MTN Airtime — 08031234560",
"service_category": "AIRTIME",
"order_id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4e",
"order_ref": "VTU-20261017-9A8B7C6D5E4F",
"customer_status": "delivered",
"created_at": "2026-10-17T12:00:00.000Z"
},
{
"id": "0199f1c0-2a7d-7e15-8b60-4c9d0e1f2a3b",
"reference": "DEP-20261017-0199F1C02A7D",
"batch_reference": "DEP-20261017-0199F1C02A7D",
"type": "Wallet Top Up",
"label": "Wallet top-up",
"wallet_type": "MAIN",
"direction": "CREDIT",
"amount_kobo": 4995000,
"currency": "NGN",
"narration": "Wallet top-up by bank transfer.",
"description": "Wallet top-up by bank transfer.",
"deposit_reference": "DEP-20261017-7C1A9E3B5D2F",
"created_at": "2026-10-17T09:12:03.198Z"
}
],
"meta": {
"request_id": "01JAAXH6Z9R3M2K8Q4T7V5W1YB",
"timestamp": "2026-10-17T12:00:00.123456Z",
"pagination": {
"limit": 20,
"has_more": true,
"next_cursor": "eyJjcmVhdGVkX2F0IjoxNzYwNzAyNDAwMDAwLCJpZCI6IjAxOTlmMmE0In0",
"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 a transaction
GET/transactions/{id}
Returns one ledger entry with the wallet balance before and after it, and the same links as List transactions. A purchase adds customer_status (processing, delivered or failed, the same values as the order's own customer_status); branch on that. order_status is a display label kept for older integrations and is deprecated.
A wallet top-up adds deposit: deposit_reference (the reference support asks for), paid_at (when the payer's bank made the transfer, UTC), gross_amount_kobo, fee_kobo, net_amount_kobo (equal to the entry's amount_kobo, and gross = fee + net), gateway_reference, session_id, and sender ({name, bank_name, account_last4}, with the name shortened to Ibrahim A., or null when the bank did not say who paid).
Path parameters
idstring (uuid)requiredThe transaction
id(a UUID) from List transactions.
Returns: data
idstring (uuid)optionaltransaction_idstring (uuid)optionalreferencestringoptionaltypestringoptionallabelstringoptionalwallet_typestringoptionaldirectionstringoptionalOne of
DEBIT,CREDIT.amount_kobointegeroptionalcurrencystringoptionalold_balance_kobointegeroptionalWallet balance before this entry.
new_balance_kobointegeroptionalWallet balance after this entry.
order_idstring (uuid)optionalPurchases only.
order_refstringoptionalPurchases only.
customer_statusstringoptionalThe three states to branch on, the same on orders, transactions and webhooks whichever network delivered the order. One of
processing,delivered,failed.order_statusstringoptionalPurchases only. A display label; branch on
customer_statusinstead. One ofSuccessful,Failed,Refunded,Under review,Processing.deposit_referencestringoptionalWallet top-ups only.
depositobjectoptionalWallet top-ups only. The bank transfer behind the entry.
deposit_referencestring | nulloptionalThe reference support asks for.
paid_atstring (date-time) | nulloptionalWhen the payer's bank made the transfer (UTC).
gross_amount_kobointegeroptionalWhat was sent.
gross = fee + net.fee_kobointegeroptionalnet_amount_kobointegeroptionalWhat reached the wallet; equals the entry's
amount_kobo.gateway_referencestringoptionalsession_idstring | nulloptionalsenderobject | nulloptionalnullwhen the bank did not say who paid.namestring | nulloptionalShortened, e.g.
Ibrahim A.bank_namestring | nulloptionalaccount_last4string | nulloptional
narrationstringoptionalbatch_referencestringoptionaldescriptionstringoptionalservice_categorystringoptionaltokenstringoptionalPresent when the related order delivered a token.
delivery_tokenstringoptionalThe same value as
token.metadataobjectoptionalDelivery details, as on List transactions.
created_atstring (date-time)optional
Errors
Plus the errors every endpoint on this page can return.
| HTTP | error_code | When |
|---|---|---|
| 404 | NOT_FOUND | No transaction with that id on your account. |
curl "https://sandbox.paysef.com/api/v1/transactions/0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d" \
-H "Authorization: Bearer $PAYSEF_API_KEY"{
"success": true,
"status_code": 200,
"message": "Transaction retrieved.",
"data": {
"id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
"transaction_id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
"reference": "RES-20261017-3F9A1C2B7D4E",
"type": "VTU Purchase",
"label": "Purchase",
"wallet_type": "MAIN",
"direction": "DEBIT",
"amount_kobo": 49000,
"currency": "NGN",
"old_balance_kobo": 12549050,
"new_balance_kobo": 12500050,
"order_id": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4e",
"order_ref": "VTU-20261017-9A8B7C6D5E4F",
"customer_status": "delivered",
"order_status": "Successful",
"narration": "MTN Airtime to 08031234560 (VTU-20261017-9A8B7C6D5E4F)",
"batch_reference": "RES-20261017-3F9A1C2B7D4E",
"description": "MTN Airtime — 08031234560",
"service_category": "AIRTIME",
"created_at": "2026-10-17T12:00:00.000Z"
},
"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