tokenTransaction method performs one or more token transactions, of multiple token types, on an Account object. The transactions may be positive, increasing the token balance; or negative, reducing the token balance.
Calling tokenTransaction() enables you to conduct a lightweight transaction with only tokens. Although Vindicia’s internal token system tracks this type of transaction for audit logging, they are not a part of Vindicia’s standard transaction framework for money-based transactions.
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 for which to perform the transaction. Use the merchantAccountId or VID to identify the object.
transactions: an array of one or more TokenTransaction objects to perform against the Account object. Each TokenTransaction object specifies the type of token and the quantity to increment or decrement from the object.
The following table lists and describes the data members of the TokenTransaction object.
Output
return: an object of typeReturn that indicates the success or failure of the call.
tokenAmounts: an array of TokenAmount objects, each of which contains the new balance and the token type available to the Account object after this call succeeds.

