Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Context
Burger King customer will add their Tesco Clubcard to the Memberships section of the BK UK App and allowing them to earn Clubcard points with every BK purchase. How this would work:
Customer adds Tesco Clubcard to memberships section
With every purchase, customers earns Tesco Clubcard points e.g. 3 points per £1 spent
The Clubcard points are then added to the customer's Tesco Clubcard account
Memberships Service
For handling all the logic related to the memberhips link we created the Memberships service that allow us to communicate with the external companies servers. According to Tesco documentation, the following diagrams represent how a user logs into Tesco via the BK app.
Identification & Get User Profile data flow
Identification & Credit Tesco points
...
Complete flow (with token refresh)
...