Reference
Get Account
This endpoint allows the retrieval of a user account information, including the user’s rewards.
GET
Parameters
Thanx Location UID. Providing this information allows Thanx to return rewards
that can be used at this location.A mapping of Thanx location identifiers can be provided by the Thanx developer
support team or fetched from the following endpoints depending on your integration type:
- Consumer API Get Locations endpoint.
- Partner API Get Locations endpoint.
Currently either
instore or online, defaults to online. This is used to
adjust which configured product IDs are returned in the applicable reward and
points product entities.Filter rewards by state. Valid values:
delivered, active. Defaults to
delivered if not provided. Multiple states can be specified to return
rewards matching any of the specified states.Response
The ID of user
The user’s email
The user’s rewards for the merchant specified in the header. This array can
be empty.
For conditional rewards (e.g. BOGO / “buy X get Y”),
products lists only the
items the reward discounts, not the items required to trigger it, and
there is no field distinguishing conditional from simple rewards. To confirm
eligibility for these, send a checkout basket and read the returned
discount. Some rewards may also return type: fixed_price.Reward IDs are not stable references — a reward leaves this list once it is
used, expired, or retired. Pull a fresh
GET /account immediately before
submitting a basket and use the current rewards[].id; a stale ID returns a
not-found error at POST /baskets.The merchant’s configured points product available for online redemption.
This array can be empty.
A user’s progress toward their next loyalty reward
Only present for merchants that have not yet upgraded to points
Array of information about the configured points experiences and the current
user’s balance at each
Only present for merchants that have enabled points