Docs

API Reference

Choose your collection flow

OasisPay supports Dynamic Accounts for individual amount-bound payments on your own website, Checkout for a hosted payment experience, and Persistent Accounts for repeat transfers.

Integration flow

Persistent / Static Account

Use this when you want to issue a reusable bank account for a customer and reconcile transfer credits by account or payment reference.

Create endpoint

POST /api/v1/virtual-accounts/reserved

Available providers

GET /api/v1/virtual-accounts/api/providers

Request
await fetch("https://api.oasispayhq.com/api/v1/virtual-accounts/reserved", {
  method: "POST",
  headers: {
    Authorization: "Bearer osk_live_xxx",
    "Content-Type": "application/json",
    "Idempotency-Key": "customer_account_1001"
  },
  body: JSON.stringify({
    provider: "nomba",
    customer: {
      email: "[email protected]",
      firstName: "John",
      lastName: "Doe",
      phone: "+2348012345678"
    },
    preferredAccountName: "JOHN DOE"
  })
});
Response
{
  "id": "va_xxx",
  "reference": "va_xxx",
  "type": "reserved",
  "status": "ACTIVE",
  "accountName": "Nomba/John Doe",
  "accountNumber": "1234567890",
  "bankName": "Nombank MFB",
  "provider": "nomba",
  "providerReference": "provider_reference"
}

Important

  • Reserved accounts are persistent and reusable for a customer.
  • In live mode, the providers endpoint lists providers currently available to your business. Pass provider: 'paga' or provider: 'nomba' on a new account request to choose explicitly; omit it to use OasisPay's current default. Nomba appears only after OasisPay activates it.
  • Customer BVN or NIN is not requested or required for persistent Nomba accounts.
  • Existing accounts never migrate between providers. Collection charges can differ by provider, and withdrawals of a collection must use the same source provider.
  • When supplied, customer.phone must be a valid Nigerian number. E.164 format such as +2348012345678 is recommended; common local formats are normalized by OasisPay.
  • Use webhooks to confirm credits before fulfilling value.
OasisPay — Payment Tools for African Businesses