Reference
Get Account
This endpoint allows the retrieval of a user account information, including the user’s rewards.
GET
/
account
Parameters
location_id
string
The location identifier; this is what your system uses to identify a location. Providing this information allows Thanx to return rewards that can be used at this location.
Response
id
string
The ID of user
email
string
The user’s email
rewards
array(hash)
The user’s rewards for the merchant specified in the header. This array can be empty.
points_products
array(hash)
The merchant’s configured points product available for online redemption. This array can be empty.
progress
hash
A user’s progress toward their next loyalty reward
Only present for merchants that have not yet upgraded to points
points
array
Array of information about the configured points experiences and the current user’s balance at each
Only present for merchants that have enabled points