Skip to main content
Use this endpoint to list every account under your business — including pool accounts, current accounts, and virtual accounts. Pass an optional filters object to narrow the result set by account type, status, or availability. Omit the request body entirely to retrieve all accounts without any filtering. Endpoint
POST https://baasapi.payrepmfb.com/api/v1/account/api/fetch_customer_accounts
Sandbox
POST https://shogun-dev.xchangeboxng.com/api/v1/account/api/fetch_customer_accounts

Authentication

Include your Bearer token in the Authorization header:
Authorization: Bearer <access_token>
Obtain a token from Generate Token.

Request body

All fields are optional. Send an empty JSON object ({}) to retrieve all accounts.
filters
object
An object containing one or more filter criteria to narrow results.

Example request — all accounts

curl --request POST \
  --url https://baasapi.payrepmfb.com/api/v1/account/api/fetch_customer_accounts \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{}'

Example request — active current accounts only

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

Response

Success

The data field contains an array of account objects matching your filter criteria.
data
array
List of accounts belonging to your business.
{
  "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"
    },
    {
      "account_number": "7801234568",
      "account_name": "Lagos Branch Sales",
      "account_type": "current",
      "status": "active",
      "balance": "250000.000000000",
      "last_balance_update": "2026-02-25T12:00:00Z"
    }
  ]
}

Error codes

CodeMeaning
00Success
41Customer not found — your API credentials are invalid