Two ways, and you can use both. Your system calls our API to add points and redeem rewards. M1 Rewards calls your system — a signed webhook — the moment a member joins, earns or redeems.
Keys and webhooks are set up by the shop owner under Settings → Integrations, on every package.
Add points from every sale and redeem rewards without a second screen.
Members earn on web orders too, and see one balance everywhere.
Every join, point and reward arrives in your own records as it happens.
Every call is a POST with JSON to the address below, with your key in the Authorization header. A key only reaches the counter operations it was given, never your settings or staff.
curl -X POST https://app.m1rewards.com/api/rpc/visit_record \
-H "Authorization: Bearer m1r_your_key" \
-H "Content-Type: application/json" \
-d '{"phone": "0501234567", "amount": 45.00, "client_ref": "INV-10293"}'Send client_ref with your own invoice number: if your till sends the same sale twice after a dropped connection, it is recorded once.
| Call | What it does | Permission |
|---|---|---|
| member_find | Find a member by phone, member number or code | members:read |
| member_enrol | Enrol a new member with a phone number | members:write |
| person_scan | Read the code a member shows from their phone | members:read |
| points_preview | See what a bill would earn before recording it | visits:read |
| visit_record | Record a sale and add the points | visits:write |
| visit_list | List recent visits | visits:read |
| rewards | The shop's rewards | programme:read |
| rewards_for_member | What this member can have right now | redemptions:read |
| redemption_check | Check a redemption before making it | redemptions:read |
| otp_issue | Ask the member to confirm on their phone | redemptions:write |
| otp_verify | Check the code they confirm with | redemptions:write |
| redemption_record | Redeem: take the points off | redemptions:write |
| programme_get | How points are earned and worth | programme:read |
| enrolment_channels | The shop's join links and QR codes | programme:read |
The full list, live, with the details of each call: app.m1rewards.com/api/docs
Give us an https address and choose the events. We send each one as it happens, signed with your secret.
POST (your address)
X-M1R-Event: points.earned
X-M1R-Delivery: 7c9e6679-7425-40de-944b-e07fc1f90ae7
X-M1R-Signature: t=1795590000,v1=5d41402abc4b2a76b9719d911017c592...
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"event": "points.earned",
"created_at": "2026-11-25T09:30:00Z",
"business": "your-shop",
"data": {
"member": { "id": "…", "name": "Layla Haddad", "phone": "0501234567", "balance": 992 },
"points": 45, "kind": "earn", "visit_id": "…"
}
}X-M1R-Signature is an HMAC-SHA256 of the time, a dot and the raw body, with your secret. Refuse anything that does not match or is more than five minutes old.
Answer with any 2xx within 10 seconds. Anything else is retried after 1, 5 and 30 minutes, then 2 and 12 hours. The same X-M1R-Delivery id comes with every retry, so you can ignore repeats.
// Node.js — check a webhook came from M1 Rewards
import crypto from "node:crypto";
function fromM1Rewards(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const expected = crypto.createHmac("sha256", secret)
.update(parts.t + "." + rawBody).digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}Need a hand connecting your system? [email protected] · Register your business
Free while you try it. No card, and nothing to install on your till.