API and webhooks
Let other software read and add customers, purchases and points, and get told when something happens.
The API lets your own systems, Zapier, Make or a till we don't connect to talk to the Store CRM. Webhooks tell them when something happens. Both are on the Pro plan and are set up by an admin under Settings → API & webhooks.
API keys
- Open Settings → API & webhooks and click Create key. Give it a name you'll recognise, such as Website or Zapier.
- Copy the key straight away. It's shown once; we only keep a scrambled copy.
- Send it with every request:
Authorization: Bearer sc_…
A key can do everything the API allows for your company, so keep it secret. If one leaks, click Revoke; it stops working at once. Each key can make up to 120 requests a minute.
All addresses start with https://store-crm.kelocrm.com/api/v1. Answers are JSON with "ok": true, or "ok": false and an "error" in plain words.
Customers
| What | Request |
|---|---|
List (newest first, 50 at a time, up to 200 with limit) |
GET /customers?q=&updated_since=&limit=&after= |
| One customer | GET /customers/{id} |
| Add, or update if the email or phone is known | POST /customers |
| Change details | PATCH /customers/{id} |
Fields: first_name, last_name, email, phone, address, city, postcode, country, birth_day, birth_month, birth_year, tags, store_id.
To page through a long list, pass the next value from one answer as after in the next request.
Marketing consent: send "consent": {"email": "subscribed", "sms": "unsubscribed"}. A yes also needs consent_wording: how and where the customer agreed (for example "Ticked 'Email me offers' on our website sign-up form"). It's kept as proof. In countries that need double opt-in, a yes sends the confirmation email first.
Purchases from any till
POST /purchases records a sale or refund from any system. Customers, spend, visits, status, points and automatic messages all update as for a connected till.
{"external_id": "T1-000123", "store": "High Street", "total": 59.90, "currency": "GBP",
"ordered_at": "2026-11-02T14:05:00Z",
"customer": {"email": "[email protected]", "first_name": "Ana"},
"lines": [{"name": "Linen shirt", "sku": "LS-01", "qty": 1, "price": 59.90}]}
external_idis your till's own id for the sale. Sending the same one again updates that sale instead of adding a second.storeis the store's exact name or code; or sendstore_idfromGET /stores.- A negative
totalis a refund.refunded(part of the total given back) andcancelledare also accepted. - The customer is found by
customer.id, or matched by email or phone, or added.
GET /purchases lists them, newest first, with the same limit and after paging.
Points
GET /customers/{id}/points: balance and the last 50 changes.POST /customers/{id}/pointswith{"delta": 50, "note": "Event bonus"}: add (or take away with a negative number). The note is kept in the history.
Groups, stores and files
GET /groupsandGET /groups/{key}/customers: your customer groups and who's in them.GET /stores: your stores and their ids.POST /imports(multipart, fieldfile,kind=customersorpurchases, optionalstore_id): the same as a spreadsheet import, for tills that can only export a file. Consent columns are ignored here; use the import screen to bring in consent with its wording.
Webhooks
A webhook is an address of yours we send a message to when something happens:
| Event | When |
|---|---|
customer.created |
A customer is added (any way: till, form, import, staff) |
customer.updated |
A customer's details or consent change |
purchase.created |
A new purchase arrives |
points.changed |
A customer's points go up or down |
Add one under Settings → API & webhooks, or with POST /webhooks {"url": "https://…", "events": ["purchase.created"]}. Each webhook gets its own secret. A new webhook starts receiving events within 30 seconds.
Every message is a POST with a JSON body {"event": …, "at": …, "data": {…}} and two headers:
X-StoreCRM-Event: the event name.X-StoreCRM-Signature:sha256=and the HMAC-SHA256 of the body using your secret. Check it to be sure the message came from us.
Answer with any 2xx status. If your address fails we try again after 1, 5 and 30 minutes, then 2 and 6 hours. After 50 failures in a row the webhook is switched off (the settings page shows why). Answering 410 Gone removes it.
Zapier and Make
Until our Zapier and Make apps are published, use their built-in Webhooks and HTTP steps:
- When something happens in the Store CRM: in Zapier choose Webhooks by Zapier → Catch Hook (in Make, Webhooks → Custom webhook), copy the address it gives you and add it as a webhook here.
- To add a customer or purchase: use Webhooks by Zapier → POST (in Make, HTTP → Make a request) to
…/api/v1/customersor…/api/v1/purchases, with the headerAuthorization: Bearerand your key.
Problems
- 401: the key is missing, wrong or revoked.
- 402: the API needs the Pro plan, or the customer limit is reached.
- 429: more than 120 requests a minute. Wait a moment and try again.
- 400: the
errortext says which field to fix.
Still stuck? Contact us with the time of the request and the error text. Never send us the key itself.