Skip to main content
Vindicia Knowledgebase




The update method creates or updates a Chargeback object. This method is rarely used, because Vindicia usually creates and updates chargebacks by retrieving them directly from your payment processor, and updating their status during the dispute process.

You may also call to create one or more chargebacks in the Vindicia database. To create or update a single chargeback and immediately discover if the call succeeds or fails, call update(). The report() method processes data asynchronously, which means that even if you successfully submit a chargeback with a batch report() call but an error occurs during processing, you are not immediately aware of the error.

To create a Chargeback object, initialize the object and set the values for its data members, as appropriate, and then call update() to store the changes. When creating a new Chargeback object, do not set a value for VID because Vindicia Subscribe automatically generates that when you call update(). When updating an existing Chargeback object, identify it with its VID.


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.

chargeback: the Chargeback object to create or update. To update an object, identify it with its VID.


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

chargeback: the Chargeback object that was created or updated.

created: a Boolean flag that, if set to true, indicates that this method has created a new Chargeback object. A false setting indicates that update has updated an existing Chargeback object.


In addition to those listed in Standard Return Codes, this call returns:

Return Code

Return String


One of the following:

  • OK.
  • Chargeback object was unchanged.


One of the following:

  • Failed to save chargeback.
  • Error saving chargeback disposition log entry: error-description.


// create a chargeback object and populate it with data

$cb = new Chargeback();

// Set other chargeback object fields here as available


$ret = $cb->update();
if ($ret['returnCode'] == 200 && ($ret['created']) {

log("Chargeback created with VID"

. $ret['chargeback']->getVID() .
" with Vindicia successfully at " . time() );


For Users

Learn More
For Users

Vindicia Subscribe Features

Learn More
Vindicia Subscribe Features
Back to Top