revokeCredit method deducts credit from an AutoBill object. If the deduction results in a negative amount for a given type of credit, Subscribe sets its balance to 0. This method returns the AutoBill object with resultant credit balance.
Specify the amount, type, and VID of the Credit you wish to revoke from the Account as a Credit object.
Credit and related subobjects are described with the Credit Subobject. See Credit Grants and Gift Cards in the Subscribe Programming Guide for more information on working with credit.
Input
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 amethod 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.
autobill: the AutoBill object from which you wish to revoke credit. Use the or VID to identify the object.
credit: a Credit object specifying the amount and type of credit you wish to deduct from the AutoBill.
note: an optional memo regarding the credit revocation.
Output
return: an object of typeReturn that indicates the success or failure of the call.
autobill: the AutoBill object from which you revoked credit. This object contains the updated array of Credit objects.

