Create a Subaccount
Create a new subaccount (child user) under the current customer account.
π Create a Subaccount
πΉ HTTP Request
POST API-URL/childrenπ€ POST Parameters
Parameter
Type
Required
Description
π Authorization Headers
X-API-KEY: your-api-key-hereπ» PHP Example
// CREATE A SUBACCOUNT
$response = $endpoint->createChild([
'first_name' => 'Sophia',
'last_name' => 'Green',
'email' => '[email protected]',
'password' => 'StrongPass#2025',
'timezone' => 'America/New_York'
]);
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';π¦ Sample JSON Response
π§Ύ Notes
Last updated