curl --request GET \
  --url https://api.nomba.com/v1/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'accountId: <accountid>'
{
  "results": [
    {
      "accountId": "2242b79d-f2cf-4ccc-ada1-e890bd1a9f0d",
      "accountHolderId": "412316",
      "accountRef": "ACT_AMF0YN8UWH8CR8JZ",
      "phoneNumber": "2348188667580",
      "email": "[email protected]",
      "bvn": "12234412345",
      "type": "physical",
      "accountName": "Testing Testing123",
      "banks": [
        {
          "bankAccountNumber": "0554772814",
          "bankName": "Wema Bank",
          "bankAccountName": "M.A Animashaun"
        }
      ],
      "address": "4, Alagomeji, Yaba, Lagos",
      "status": "active",
      "currency": "NGN",
      "description": "Meat kebab spot",
      "createdAt": "2022-07-08T14:33:00Z",
      "updatedAt": "2022-07-08T14:33:00Z"
    }
  ],
  "cursor": "xchbaVFsjdsbaADddd"
}

Fetch all accounts

Fetch all accounts tied to your business

GET /v1/accounts

Query parameters

limit
integer

This endpoint is paginated. limit describes the size of the page you are querying.

cursor
string

The cursor is used to scroll to the next page. When making the first call to list all accounts, there is no need to pass in any cursor since the API has not returned any cursor back to you. Only use cursor when the API provides it. For more information, please see Pagination

Response body

code
string
required

Response code

description
string
required

Response description

data
object
required
cursor
string

Cursor for pagination. It will be empty if there is no more page to scroll to.

results
object[]
createdAt
string
required

Creation timestamp.

accountId
string
required

Account ID.

accountHolderId
string
required

Account holder ID.

accountRef
string
required

Account reference.

phoneNumber
string
required

Phone number.

email
string
required

Email address.

bvn
string
required

Bank Verification Number (BVN).

status
enum<string>
required

Account status.

type
enum<string>
required

Account type.

accountName
string
required

Account holder’s name.

currency
string
required

Currency code.

callbackUrl
string

Callback url.

expiryDate
string

Expiry date.