Skip to main content
Vindicia Knowledge Center




This method removes one or more child Accounts from the parent Account.


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 should be parent to these children.

child: the child or children that should be removed from this parent account.

payerReplacementBehavior: an object of type AccountPayerReplacementBehavior that controls how existing AutoBills of the children are affected.

AccountPayerReplacementBehavior may contain the following strings:


This option will replace the Payment Method on each of the child’s AutoBills with the child’s default (index_number = 0) Payment Method.

If the child does not have any Payment Methods, Vindicia Subscribe will set the Payment Method ID on the child's AutoBills to null. When Vindicia Subscribe later tries to process a Transaction for one of these AutoBills, it will detect the absence of a Payment Method, and send an email to the (child) account.


This option will simply break the link between the parent and child Accounts, leaving the parent's Payment Methods unavailable to the child when creating new AutoBills.

If a parent/child relationship is broken in this manner, and a subsequent AutoBill.updatecall is made against one of the child's AutoBills, Vindicia Subscribe may detect that the Payment Method on the child's AutoBill is no longer associated with the child, and issue an error.


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


This method returns the codes listed in Table 1: Standard Return Codes.


$parentAcct = new Account();

// account id for an existing account that is the parent

$childAcct2 = new Account();

// account id of an existing child


// On each of the children that were deleted, correct
// the existing autobills to use the child's payment
// method instead of the parent's for any of the old
// parent's payment methods.

$payerReplacementBehavior = 'ReplaceOnAllAutoBills';
$response = $parentAcct->removeChildren (array($childAcct2),$payerReplace);

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

// child successfully removed


else {

// Error while removing the child

print $response['returnString'] . "\n";


For Users

Learn More
For Users

Vindicia Subscribe Features

Learn More
Vindicia Subscribe Features
Back to Top