GET
/
subaccount
List Subaccounts
curl --request GET \
  --url https://nini.monieswitch.com/subaccount \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "data": {
    "subaccounts": [
      {
        "id": "f16aee43-f1d5-43d7-8f0f-29acf85202bd",
        "name": "Ridwan Store",
        "status": "ACTIVE",
        "bankCode": "000013",
        "percentage": 10,
        "bankName": "GTBANK PLC",
        "accountNumber": "0928374732",
        "accountName": "SIMI MICHELLE",
        "contactName": null,
        "createdAt": "2024-07-25T21:49:53.202Z"
      },
      {
        "id": "8ddf478e-d849-4519-add2-67c67d9db4de",
        "name": "Abraham Store",
        "status": "ACTIVE",
        "bankCode": "000013",
        "percentage": 25,
        "bankName": "GTBANK PLC",
        "accountNumber": "0928374733",
        "accountName": "SIMI MICHELLE",
        "contactName": null,
        "createdAt": "2024-07-25T21:27:05.759Z"
      }
    ],
    "perPage": 50,
    "currentPage": 1,
    "totalRecords": 2,
    "totalPages": 1
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

List Subaccounts - Successful

The response is of type object.