Skip to main content
Use this endpoint to retrieve a paginated list of all accounts belonging to your business. You can filter results by account type, status, pool account number, or availability to narrow down the view. This is useful for building account management dashboards or programmatically auditing your account portfolio.

Endpoint

POST /api/v1/account/web/fetch_customer_accounts

Authentication

Include your JWT access token in the Authorization header.
Authorization: Bearer <access_token>
Obtain a token via POST /auth/web/login.

Request body

All body parameters are optional. Omit the body entirely to retrieve all accounts without filtering.
filters
object
An object containing account-level filter criteria.
limit
integer
Number of accounts to return per page. Defaults to 20.
cursor_created_at
string
Pagination cursor — the created_at timestamp (ISO 8601) of the last item from the previous page.
cursor_id
string
Pagination cursor — the UUID id of the last item from the previous page.
count
integer
Maximum total number of records to return.

Example request

curl --request POST \
  --url https://baasapi.payrepmfb.com/api/v1/account/web/fetch_customer_accounts \
  --header "Authorization: Bearer <access_token>" \
  --header "Content-Type: application/json" \
  --data '{
    "filters": {
      "account_type": "virtual",
      "status": "active"
    },
    "limit": 20
  }'

Response

A successful request returns an array of account objects.
{
  "status": true,
  "response_code": "00",
  "message": "Accounts fetched successfully",
  "data": [
    {
      "account_number": "7801234567",
      "account_name": "Main Pool Account",
      "account_type": "pool",
      "status": "active",
      "balance": "1500000.000000000",
      "last_balance_update": "2026-02-25T10:30:00Z",
      "is_available": true,
      "pool_account_number": null
    },
    {
      "account_number": "7801234568",
      "account_name": "Lagos Branch Sales",
      "account_type": "current",
      "status": "active",
      "balance": "250000.000000000",
      "last_balance_update": "2026-02-25T12:00:00Z",
      "is_available": true,
      "pool_account_number": "7801234567"
    }
  ]
}

Error codes

Response codeMeaning
41Customer not found — your session credentials are invalid.