New feature: loyalty points
SampleNeeds youCustomers earn points on every order and spend them at checkout. Building it now that you approved the design.
3 of 7 steps
Your turn 2
Codex goes on as soon as you answer.
How much is a point worth at checkout?
It goes into the settings, so you can change it later.
Which orders earn points?
Plan
2 of 6 tasks done
Loyalty points ✨
Note
A sample plan, light on details: it shows how an agent's plan reads here.
Customers earn points on every order and spend them at checkout, without a coupon code.
Rules
- Earning
- 1 point per whole unit of a paid order's total.
- Spending
- 100 points take 1 unit off at checkout, up to half the total.
- Expiry
- 12 months after a point was earned.1
Design
| Part | Where | Size |
|---|---|---|
| The ledger | A LoyaltyEntry table, one row per points earned or spent | S |
| Checkout | A Use my points switch on the payment step | M |
| The account | The balance and its history on the profile page | S |
Tip
Points are a ledger, not a balance column: one number per customer every change is a row, so the history and expiry come for free.
Tasks
- The spec and its rules
- The checkout design, approved in the Workbench
- The ledger, its migration and its controller
- Points at checkout
- The tests: earning, spending, expiry
- Try it on Test
Footnotes
Agreed with you on the plan; the reason is on the task's notes. ↩︎
Steps
-
Settle the requirements and write them into the specDone
-
Plan the work in 6 tasksDone
-
Approve the design in the WorkbenchYouDone/pages/pos-dashboard
-
Build the points ledger and its APIIn progress
-
Spend points at checkoutTo do
-
Tests on phones and desktopsTo do
-
Try it on the Test environmentYouTo do
Keep in mind
Decision
Points expire 12 months after they are earned.
Note
Everything decided so far is in the feature's spec, with the questions still open.
Links
Activity
- The ledger and its database migration are in. Writing its API now.
- Made the badge smaller and started building.
- Done: Approve the design in the Workbench
- Wrote the requirements into the spec; 3 questions are left for you.