Create Subaccount
POST {{baseUrl}}/subaccount
Create a new subaccount
Request Body
[{"name"=>"business_name", "value"=>"Some Subaccount", "datatype"=>"string"}, {"name"=>"settlement_bank", "value"=>"011", "datatype"=>"string"}, {"name"=>"account_number", "value"=>"0000000000", "datatype"=>"string"}, {"name"=>"percentage_charge", "value"=>"0.3", "datatype"=>"string"}, {"name"=>"description", "value"=>"A service provider", "datatype"=>"string"}, {"name"=>"primary_contact_email", "value"=>"sub@example.com", "datatype"=>"string"}, {"name"=>"primary_contact_name", "value"=>"person@example.com", "datatype"=>"string"}, {"name"=>"primary_contact_phone", "value"=>"anim in nisi", "datatype"=>"string"}, {"name"=>"category", "value"=>"General supplies", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":true,"message":"Subaccount created","data":{"business_name":"Cheese Sticks","account_number":"0123456789","percentage_charge":0.2,"settlement_bank":"Guaranty Trust Bank","integration":428626,"domain":"test","subaccount_code":"ACCT_xxxxxxxxxxxxx","is_verified":false,"settlement_schedule":"AUTO","active":true,"migrate":false,"id":37614,"createdAt":"2020-05-19T11:54:20.655Z","updatedAt":"2020-05-19T11:54:20.655Z"}}