Add Member

See the sample example how a member can be added. Links to more detailed instructions can be found at the end of the article.

How this example works

In this example, you can register a new member profile using the previously specified registration method.


Try yourself

  • Input the previous saved token and storeCode in the request header

  • Add a member Endpoint: POST /api/{storeCode}/member

    {
       "customer": {
            "email": "[email protected]",
            "firstName": "John",
            "lastName": "Smith",
            "gender": "male"
        }
    }
  • This action should trigger CustomerRegistered webhook


Endpoints used

Method allows registering new member.

post

This method allows registering a new Member as an Admin.

Authorizations
Path parameters
storeCodestringRequired

Store code

Body
customerall ofOptional
and
Responses
200

Return registered member id and email.

application/json
post
POST /api/{storeCode}/member HTTP/1.1
Host: openloyalty.localhost
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 526

{
  "customer": {
    "referrerToken": "text",
    "firstName": "text",
    "lastName": "text",
    "gender": "male",
    "email": "text",
    "phone": "text",
    "loyaltyCardNumber": "text",
    "birthDate": "2025-09-13",
    "registeredAt": "2025-09-13T04:28:55.299Z",
    "address": {
      "street": "text",
      "address1": "text",
      "address2": "text",
      "postal": "text",
      "city": "text",
      "province": "text",
      "country": "text"
    },
    "company": {
      "name": "text",
      "nip": "text"
    },
    "labels": [
      {
        "key": "text",
        "value": "text"
      }
    ],
    "agreement1": true,
    "agreement2": true,
    "agreement3": true,
    "levelId": "123e4567-e89b-12d3-a456-426614174000"
  }
}
{
  "customerId": "00000000-0000-0000-0000-000000000000",
  "email": "text"
}

More resources

For a detailed overview and description of the members, please refer to these series of articles:

Last updated

Was this helpful?