Endpoints Overview
The complete endpoint map — customers, earning, spending, corrections, settings and referrals — each linked to its technical specification
This is the bridge page for your developers: every operation in the platform, in one list, each linking to its full technical specification — request formats, responses, error codes, and a live test client.
Two references
Customers
Operation | What it does |
|---|---|
Fetch a customer's profile by phone | |
Register a customer — harmless if they already exist | |
Balance, holds, locked points and lifetime totals |
Earning
Operation | What it does |
|---|---|
Define an earning rule | |
Every rule for the tenant, highest priority first, with conditions and actions | |
One rule in full | |
Replace a rule's definition — conditions and actions are replaced wholesale | |
Activate, pause, archive or restore a rule | |
Retired rules — they keep their history and can be restored | |
Execution counts and points awarded per rule over a recent window (30 days by default) | |
Work out what a transaction earns — without awarding yet |
Spending
Operation | What it does |
|---|---|
Start a redemption and place the points on hold | |
Check the customer's one-time code | |
Void old codes and send a fresh one | |
Cancel a pending redemption and free its points |
Completing & Correcting
Operation | What it does |
|---|---|
Make a calculated earning or redemption final — optionally sending the customer message in the same call | |
Deliver the prepared WhatsApp message — once | |
Undo a transaction; the platform picks the right method | |
Credit goodwill points as a standalone entry, with a reason | |
Debit points as a penalty, honouring your discretionary-debit policy | |
A manual correction in either direction, keyed by an operation code |
Settings
Every section of the loyalty settings can be read and changed by an administrator over the API — the same sections the Settings page shows in the app.
Operation | What it does |
|---|---|
The effective configuration, grouped by section | |
Availability, confirmation window, caps, fraud limits, reversal and debit policies | |
Whether redemptions need a code, how long it lives, and whether it goes by WhatsApp or SMS | |
Point lifetime and waiting-period defaults, rounding, rule-match limit, tiers | |
Percentage-of-bill and fixed-amount ceilings and how they combine | |
Which WhatsApp template announces each loyalty event | |
The centres points can be attributed to | |
The centre list and whether points are ring-fenced to the centre that issued them | |
The capture channels a referral program can pick from |
Referrals
Referral operations are versioned under /api/v1/loyalty/referral and use the same authenticated channel as the rest of the platform. Lists — programs, leads, the review queue, analytics — are streamed to the app over its live connection rather than fetched over REST.
Operation | Path | What it does |
|---|---|---|
Create program |
| A blank program with a name, optional description, code format and per-channel approval rules |
Update program settings |
| Dates, attribution window, channels, approval behaviour, lifecycle behaviour, tag rules and more |
Replace the journey |
| The ordered milestones with their events, conditions and rewards |
Change program status |
| Draft → Active → Paused → Ended |
Update referral settings |
| Tenant-wide referral behaviour — approval, consent, windows, lifecycle defaults |
Onboard a referrer |
| Enrol a member in a program and issue their code |
Look up referrers |
| Find enrolments by code, phone or lead |
Revoke a referrer |
| Retire a code |
Capture a referee |
| Add a referred lead against a code or a program |
Capture a referee (public) |
| The same capture from a public web form, authenticated with a static token |
Ingest a business event |
| Tell the platform something happened to a referee — registration, booking, billing |
Event definitions |
| The catalogue of events your milestones can react to |
Record consent |
| Record, withdraw or OTP-verify a referee's consent |
Resolve a review |
| Approve or reject a conflict, fraud, attribution or milestone review |
List capture channels |
| The tenant's channel list, for pickers |
Fraud settings |
| The referral fraud rules the engine reads at reward time |
The complete technical reference, in one place: Loyalty on Scalar and the full platform reference.
Last updated on