Skip to main content
Vindicia Knowledge Center




This method adds one or more child Accounts to a parent Account using an input array of childAccounts.


srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain a method call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call.

Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response.

parent: the Account that will be parent to these children.

child: an array of the child or children Accounts to attach to this parent Account.

force: a Boolean flag that, if set to true, replaces any parents that these children may already have.

payerReplacementBehavior: an action to take on methods that might, as a side effect, change who pays for an Account, for example: Account.addChildrenpayerReplacementBehavior may be one of the two following strings:


This option specifies that any AutoBills that the child has, or will have, are to be paid by the parent Account.


This option specifies that all future AutoBills for the child Account are to be paid by the parent Account. Existing AutoBills will be left as is.


return: an object of type Return that indicates the success or failure of the call.

childAdded: the array of Accounts added.


This method returns the codes listed in Standard Return Codes.


// to add children to an existing account

$parentAcct = new Account();

// account id for an existing account that will be the parent 


// existing accounts that will be the children

$childAcct1 = new Account();
$childAcct2 = new Account();

// want to replace existing parent of children, if any

$force = true;

// Future autobills for the children will be paid usingautobills for the children will be paid using
// parent's payment method

$payerReplacementBehavior = 'ReplaceOnlyFutureAutoBills';

$response = $parentAcct->addChildren(

array($childAcct1, $childAcct2),

if ($response['returnCode'] == 200) {

// children successfully added to the parent

else {

// Error while adding the children
print $response['returnString'] . "\n";


For Users

Learn More
For Users

Vindicia Subscribe Features

Learn More
Vindicia Subscribe Features
Back to Top