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

Add to a group

PUT
/customers/{id}/groups/{groupId}

Adds the customer to a group; adding them again changes nothing. If the group gives a bonus stamp voucher on joining, the customer gets it, as when you add them in the dashboard. Lynked does not notify the customer. Sends customer.group_joined.

Path parameters

  • idintegerRequired

    The customer id.

  • groupIdintegerRequired

    The group id.

Headers

  • Idempotency-Keystring · uuid

    A UUID (any version; UUIDv7 recommended) that makes a retry of this request safe. See the Idempotency guide.

Responses

Success
  • 200 OKCustomer

    The customer, with their groups.

    10 fields
    • idinteger

      The customer id.

    • emailstring | null · email

      null when the customer has no real email (added with a phone only).

    • phonestring | null

      Digits only, with the country code, no +.

    • first_namestring
    • last_namestring
    • date_of_birthstring | null · date
    • The customer's gender as they gave it.

      One of "female""male""other""not_specified"

    • is_app_userboolean

      true when the customer has signed in to the Lynked app; false for customers added in the seller app, by an import or through this API who have not signed in yet.

    • groupsarray of CustomerGroupRef

      Customer groups the customer belongs to.

      2 fields
      • idinteger

        The group id.

      • namestring

        The group name, as in the dashboard.

    • created_atstring · date-time

      When the customer's Lynked account was created.

Errors
  • 401 UnauthorizedError

    The API key is missing, invalid or revoked.

    3 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 403 ForbiddenError

    The Public API is disabled for this business.

    3 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 404 Not Found

    No such customer of yours (customer_not_found) or no such group of yours (customer_group_not_found).

  • 422 Unprocessable EntityValidationError

    The request is invalid; errors lists the problems per field.

    4 fields
    • messagestring

      All problems in one line.

    • errorsobject

      Request field path → its problems.

    • error_codestring

      undefined for validation errors for now; see Errors for the list of codes.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 429 Too Many RequestsRateLimitError

    More than 120 requests per minute for this business.

    Headers
    • Retry-Afterinteger

      Seconds to wait before the next request.

    4 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

    • retry_afterinteger

      Seconds to wait before the next request; the same value as the Retry-After header.

  • 500 Internal Server ErrorError

    Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the error_uid.

    3 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

Request
curl -X PUT 'https://api.lynked.ie/api/public/v1/customers/{id}/groups/{groupId}' \
  -H 'Authorization: Bearer lk_live_...' \
  -H 'Idempotency-Key: <unique-key>'
Response 200 OK
HTTP/3 200 OK
Content-Type: application/json
Body
{
  "id": 1042,
  "email": "anna@example.com",
  "phone": "353870000001",
  "first_name": "Anna",
  "last_name": "Byrne",
  "date_of_birth": "1990-05-17",
  "gender": "female",
  "is_app_user": true,
  "groups": [
    {
      "id": 7,
      "name": "VIP"
    }
  ],
  "created_at": "2026-01-01T12:00:00Z"
}