The Lynked Public API is in development. Endpoints will appear here as they go live.

Customers

Lynked customers are people with a Lynked account.

Who is a customer#

A person becomes a customer when they place an order (any channel: POS, seller app, online shop, this API) or are added — by sellers in the seller app, by an import, or with POST /customers.

Adding a customer#

POST /customers looks for an existing Lynked account with the phone, then with the email:

What Lynked findsResult
NothingA new customer is created — 201 Created.
One accountThat account is attached — 200 OK. Their name, email, phone and birthday stay as they are: the account belongs to the person, not to you.
The phone and the email on two different accounts409 customer_identity_conflict; nothing is attached. Ask the customer which details are right.

Each time a person becomes a customer you get the customer.joined webhook, whichever way it happened.

Finding a customer#

GET /customers/find finds a customer by email, phone or barcode. A scanned Lynked barcode (lynked_…) finds its customer whether it carries rewards or not. Only customers of the business are found.

Lynked stays out of sight#

You can run Lynked behind your own app: your app shows the customer's barcode, they pay at the POS, and they never need to hear of Lynked. So Lynked never emails or pushes a customer you created through this API — whichever way their points, vouchers or orders arrive — until the customer signs in to the Lynked app themselves. Tell customers about their rewards yourself; webhooks tell you when anything changes.

Notes#

You keep notes about a customer with the /customers/{id}/notes endpoints; sellers see the same notes in the seller app. Notes must be turned on, otherwise the endpoints answer 403 customer_notes_disabled.

Groups#

Customer groups (for example VIP or a discount group) are set up in the Lynked dashboard. List them with GET /customer-groups and add or remove a customer with PUT / DELETE /customers/{id}/groups/{groupId}. A group's joining bonus (a stamp voucher) is given as in the dashboard. Every change, from the API, the dashboard or the seller app, sends customer.group_joined or customer.group_left; deleting a group sends customer.group_left for each member.

Deleting a customer#

DELETE /customers/{id} erases a customer's Lynked account. It is available for customers you created through this API; when a customer cannot be deleted, the answer is 409 customer_not_deletable. The person's data goes; their orders stay without them, so reports keep their numbers.

When a customer deletes their own account in the Lynked app, you get customer.deleted: erase or anonymize what you hold about them.