cURL
curl --request POST \ --url https://nini.monieswitch.com/subaccount \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Testing" }'
{ "data": { "id": "9965502c-b8ac-4b3f-af7e-00edfc2665eb", "name": "Testing", "walletId": "0bf36656-0d95-4390-aff8-487acc4d46b0" }, "message": "Subaccount successfully created", "status": true }
Create Subaccount
Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'
Create Subaccount Response
The response is of type object.
object