cURL
curl --request POST \ --url https://api.example.com/sub-accounts \ --header 'Content-Type: application/json' \ --data ' { "email": "example@gmail.com" } '
{ "success": true, "message": "Sub-account created successfully", "data": { "reference": "rp1xwfiohwxr9gp", "email": "example@gmail.com", "status": "pending", "createdAt": "2026-03-20T13:36:18Z" }, "meta": { "timestamp": "2026-03-25T07:09:06Z" } }
Creates a new sub-account linked to the authenticated business account using the provided email.
"example@gmail.com"
Sub-account created successfully
true
"Sub-account created successfully"
Show child attributes