POST
/
subaccount
Create Subaccount
curl --request POST \
  --url https://nini.monieswitch.com/subaccount \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data null
{
  "status": true,
  "message": "Subaccount successfully created",
  "data": {
    "subAccount": {
      "id": "f16aee43-f1d5-43d7-8f0f-29acf85202bd",
      "name": "Ridwan Store",
      "status": "ACTIVE",
      "bankName": "GTBANK PLC",
      "percentage": 2.5,
      "accountNumber": "0928374732",
      "accountName": "SIMI MICHELLE",
      "contactName": null,
      "contactEmail": null,
      "contactPhoneNumber": null,
      "createdAt": "2024-07-25T21:49:53.202Z"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json · object

Response

200 - application/json

Create Subaccount - Successful

The response is of type object.