revokeCredit method deducts credit from an Account object. If the deduction results in a negative amount for a certain type of credit, Subscribe sets its balance to 0. This method returns the Account object with resultant credit balance.
Specify the amount and type of Credit you wish to revoke from the Account as a Credit object.
To revoke a specific credit grant, specify the VID of the Credit object you wish to revoke. If you do not specify a VID, Subscribe will revoke credit in the order in which it would redeem Credits to fulfill an AutoBill Transaction, until the total amount specified is revoked. This process might revoke a partial Credit, a single Credit, or multiple Credits.
For more information on working with credit, see Credit Grants and Gift Cards in the Subscribe Programming Guide.
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.
account: the Account object from which you wish to revoke credit. Use the merchantAccountId or VID to identify the object.
credit: a Credit object specifying the amount and type of credit you wish to deduct from the Account. For more information, see the Credit Subobject.
note: an optional memo regarding the credit revocation.
Output
return: an object of typeReturn that indicates the success or failure of the call.
account: the Account object from which you revoked credit. This object contains the updated array of Credit objects.

