grantCredit method adds credit to an Account object. With credit available to an Account, you can conduct a one-time transaction for the Account. If the Account is associated with an AutoBill, and if the AutoBill has no associated credit, Subscribe can draw credit down from the Account to sustain the AutoBill.
Specify credit you wish to grant to the Account as a Credit object. Time-based credit cannot be granted to an Account.
See the Credit Subobject, and the TimeInterval Subobject, for more information.
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.
account: the Account object to which you wish to grant credit. Use the merchantAccountId or VID to identify the object.
credit: a Credit object specifying the amount and type of credit you wish to grant to the Account.
note: an optional memo regarding the credit grant.
Output
return: an objectAccount type Return that indicates the success or failure of the call.
account: the Account object to which you granted credit. This object contains the updated array of Credit objects.

