This API is designed to provide online ordering 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.

  • The GET /account endpoint provides a user’s available rewards.
  • The POST /baskets endpoint 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.

Online ordering providers that integrate with these endpoints must authenticate users via Thanx SSO.