Rewards

From TNS API
Jump to: navigation, search

The rewards option will allow the reseller to manage reward points for their customers.

The TNS API System will maintain all customer balances and allow for the creation of new reward accounts and edit the balances.

The API key of the reseller must have access to this feature.

Create New Reward Account - Note CC= unique customer code - Command will return 'SUCCESS' or '0' for failure

https://usa.tnsapi.cloud/call.cfm?apikey=****&command=rewards&action=create&cc=****

View reward balance for a customer - Note CC= unique customer code - Command will return balance total

https://usa.tnsapi.cloud/call.cfm?apikey=****&command=rewards&action=points&cc=****

Edit reward balance for a customer - Note CC= unique customer code - the value points may be a positive or negative number uses to change the reward balance. - Command will return '1' for success or '0' for failure

https://usa.tnsapi.cloud/call.cfm?apikey=****&command=rewards&action=editpoints&cc=****&points=****