Skip to content
Pay Sef

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

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.

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

  • currencystringoptional

    Always NGN.

  • main_walletobjectoptional
    • available_balance_kobointegeroptional

      Spendable now, in kobo.

    • reserved_balance_kobointegeroptional

      Held for orders that have not finished.

    • ledger_balance_kobointegeroptional

      Available plus reserved.

    • is_lockedbooleanoptional
    • is_testbooleanoptional

      Test key only.

  • bonus_walletobjectoptional
    • available_balance_kobointegeroptional

      Spendable now, in kobo.

    • reserved_balance_kobointegeroptional

      Held for orders that have not finished.

    • ledger_balance_kobointegeroptional

      Available plus reserved.

    • is_lockedbooleanoptional
    • is_testbooleanoptional

      Test key only.

  • commission_walletobjectoptional
    • available_balance_kobointegeroptional

      Spendable now, in kobo.

    • reserved_balance_kobointegeroptional

      Held for orders that have not finished.

    • ledger_balance_kobointegeroptional

      Available plus reserved.

    • is_lockedbooleanoptional
    • is_testbooleanoptional

      Test key only.

  • cashback_walletobjectoptional
    • available_balance_kobointegeroptional

      Spendable now, in kobo.

    • reserved_balance_kobointegeroptional

      Held for orders that have not finished.

    • ledger_balance_kobointegeroptional

      Available plus reserved.

    • is_lockedbooleanoptional
    • is_testbooleanoptional

      Test key only.

  • daily_limit_summaryobjectoptional

    Live 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_testbooleanoptional

    Test key only.

  • available_balance_kobointegeroptional

    Test key only: the test wallet's spendable balance.

  • reserved_balance_kobointegeroptional

    Test key only.

  • ledger_balance_kobointegeroptional

    Test key only.

Errors

Plus the errors every endpoint on this page can return.

HTTPerror_codeWhen
404WALLET_NOT_FOUNDOne of the account's live wallets does not exist.
404PROFILE_NOT_FOUNDThe account has no customer profile.
GET /wallets/me
curl "https://sandbox.paysef.com/api/v1/wallets/me" \
  -H "Authorization: Bearer $PAYSEF_API_KEY"
Wallet retrieved.
200
{
  "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"
  }
}
Sandbox test wallet retrieved.
200
{
  "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

  • limitintegeroptional

    Number of entries to return. Values outside 1 to 100 are clamped. Between 1 and 100. Default 20.

  • cursorstringoptional

    The next_cursor (or prev_cursor) from the previous page's meta.pagination.

  • directionstringoptional

    prev for newer entries; anything else means next (older). One of next, prev. Default "next".

  • typestringoptional

    Only credits or only debits. One of CREDIT, DEBIT.

  • service_categorystringoptional

    Only entries for one service, e.g. AIRTIME or DATA (any case). Up to 40 characters.

  • date_fromstringoptional

    Only entries on or after this date: YYYY-MM-DD or an ISO 8601 timestamp.

  • date_tostringoptional

    Only entries up to the end of this date: YYYY-MM-DD or an ISO 8601 timestamp. Must not be before date_from.

  • qstringoptional

    Free-text search in the narration and reference. Up to 100 characters.

Errors

Plus the errors every endpoint on this page can return.

HTTPerror_codeWhen
400INVALID_CURSORThe cursor is not one this API issued.
400VALIDATION_ERRORtype 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.
GET /transactions
curl "https://sandbox.paysef.com/api/v1/transactions?limit=20" \
  -H "Authorization: Bearer $PAYSEF_API_KEY"
Transactions retrieved.
200
{
  "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)required

    The transaction id (a UUID) from List transactions.

Returns: data

  • idstring (uuid)optional
  • transaction_idstring (uuid)optional
  • referencestringoptional
  • typestringoptional
  • labelstringoptional
  • wallet_typestringoptional
  • directionstringoptional

    One of DEBIT, CREDIT.

  • amount_kobointegeroptional
  • currencystringoptional
  • old_balance_kobointegeroptional

    Wallet balance before this entry.

  • new_balance_kobointegeroptional

    Wallet balance after this entry.

  • order_idstring (uuid)optional

    Purchases only.

  • order_refstringoptional

    Purchases only.

  • customer_statusstringoptional

    The three states to branch on, the same on orders, transactions and webhooks whichever network delivered the order. One of processing, delivered, failed.

  • order_statusstringoptional

    Purchases only. A display label; branch on customer_status instead. One of Successful, Failed, Refunded, Under review, Processing.

  • deposit_referencestringoptional

    Wallet top-ups only.

  • depositobjectoptional

    Wallet top-ups only. The bank transfer behind the entry.

    • deposit_referencestring | nulloptional

      The reference support asks for.

    • paid_atstring (date-time) | nulloptional

      When the payer's bank made the transfer (UTC).

    • gross_amount_kobointegeroptional

      What was sent. gross = fee + net.

    • fee_kobointegeroptional
    • net_amount_kobointegeroptional

      What reached the wallet; equals the entry's amount_kobo.

    • gateway_referencestringoptional
    • session_idstring | nulloptional
    • senderobject | nulloptional

      null when the bank did not say who paid.

      • namestring | nulloptional

        Shortened, e.g. Ibrahim A.

      • bank_namestring | nulloptional
      • account_last4string | nulloptional
  • narrationstringoptional
  • batch_referencestringoptional
  • descriptionstringoptional
  • service_categorystringoptional
  • tokenstringoptional

    Present when the related order delivered a token.

  • delivery_tokenstringoptional

    The same value as token.

  • metadataobjectoptional

    Delivery details, as on List transactions.

  • created_atstring (date-time)optional

Errors

Plus the errors every endpoint on this page can return.

HTTPerror_codeWhen
404NOT_FOUNDNo transaction with that id on your account.
GET /transactions/{id}
curl "https://sandbox.paysef.com/api/v1/transactions/0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d" \
  -H "Authorization: Bearer $PAYSEF_API_KEY"
Transaction retrieved.
200
{
  "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