This API is designed to provide POS, online ordering, and kiosk providers the ability to integrate Thanx Loyalty into their ordering systems - reward redemption & loyalty points accrual. This API provides a way to retrieve a user’s rewards and apply discounts to their basket. An online ordering platform with a shared restaurant customer can integrate with these APIs to allow Thanx users to both use their discounts while placing digital orders and accrue points progress while doing so.Documentation Index
Fetch the complete documentation index at: https://docs.thanx.com/llms.txt
Use this file to discover all available pages before exploring further.
- The
GET /accountendpoint provides a user’s available rewards. - The
POST /basketsendpoint computes a discount and marks rewards or points product as used in the Thanx system.- Ordering partners are expected to apply the discounts returned by this endpoint if a reward or points product was specified.
- Finalized baskets automatically accrue points for the authenticated user.
Environments
The Loyalty API is served from a dedicated subdomain in each environment:| Environment | Base URL |
|---|---|
| Sandbox | https://loyalty.thanxsandbox.com/api/ |
| Production | https://loyalty.thanx.com/api/ |
Certification
Once your integration has been built and developed against the sandbox environment, please reach out to developer.support@thanx.com go through a lightweight but mandatory certification process. For basic integration use-cases, certification is quick and normally takes no more than a few days depending on the scope of integration. This process is mainly designed to ensure the integration is working as intended without risking any negative impact on live customers (merchant or consumer). Each net new integration use-case should be re-certified as new use-cases will very likely require different scoping. Launching new merchants on certified integration use-cases does not require re-certification. The certification process will start with a video call with members of our developer support team. On the call, your team will demo the integration and all the supported use-cases. After the demo of all support use-cases, our team will validate the following:1 - Interactions
- authentication
- loyalty lookup, such as reward or points product
- order submission with or without loyalty redemption
- walk through examples of all supported loyalty types:
- reward redemption workflow:
- amount off rewards
- item-based rewards
- points redemption workflow:
- amount off points products
- item-based points products
- reward redemption workflow:
- error message handling
2 - API
- requests must include all required headers
- requests must not be unnecessarily duplicated
- error messages should be displayed to the user
- requests should only be issued on a reasonable frequency and in response to end-user interactions (e.g. Don’t rapidly poll the API for changes)
3 - Product Capabilities
The following product capabilities are non-negotiable within our platform and must be supported in your POS–Kiosk integration. These features are crucial to the Thanx user experience.- Reward Redemption
- Points Product Exchange
- Refunds
- Any redeemed rewards are restored.
- Any exchanged point products are reverted, and the corresponding points are credited back to the user.
- Automated Location Mapping
location_uid attribute as specified here.
To simplify this process, you can automate the mapping of your own location IDs to Thanx Location IDs by using the Get Locations endpoint from the Partner API. This allows your system to asynchronously communicate with the Thanx API, keeping location data up to date and ensuring seamless internal mapping between your locations and Thanx locations.
Product Guide
As part of certification, you must submit a product guide covering all use cases submitted for certification. The product guide must include:- Screenshots of each step in the flow
- A screen recording demonstrating how the integration works