Skip to main content
The incrementTokens method adds the specified number of tokens to the Account object. Call this method to grant tokens (for example, virtual currency, frequent flier miles, or cell-phone minutes) to an Account object without conducting a formal Subscribe transaction. Use this method to grant Tokens which will not be used as currency within Subscribe.

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 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. account: the Account object to which to add tokens. Use the merchantAccountId or VID to identify the object. tokenAmounts: an array of one or more TokenAmount objects, each of which specifies the type of token to add and its quantity. The quantity must be a positive number. Token types must exist before being used in incrementTokens.

Output

return: an object of type Return that indicates the success or failure of the call. tokenAmounts: an array of one or more TokenAmount objects, each of which specifies a type of Token available to the Account after this call, and its balance (quantity) in the Account object, if the call succeeds. In some cases, this return might not occur, especially if you have not previously defined the specified token type. The following table lists and describes the data members of the TokenAmount object.

Returns

This method returns the codes listed in The Return Object.

Example

Parent topic:Account Methods