# Member Registration Configuration

## How this example works

OpenLoyalty supports multitenancy, allowing each tenant (store) to operate as a distinct database, complete with its own member list and campaigns. This guide outlines the initial step of the setup process: selecting the appropriate registration method for a member. A single unique identifier is required, which can be an email, phone number, or loyalty card number (that can serve as your own unique identifier).

***

## Try yourself <a href="#to-try-it-yourself" id="to-try-it-yourself"></a>

* Input the previous saved [token](https://help.openloyalty.io/technical-guide/getting-started-guide/authentication) in the request header
* Retrieve a list of [tenants (stores)](https://app.gitbook.com/s/cNVX03KZzmrGwJihLiEx/main-features/settings/tenants)\
  Endpoint: `GET /api/store`
* Choose the required tenant and its code
* Retrieve member registration for the specified tenant\
  Endpoint: `GET /api/{storeCode}/settings`
* Update `identificationMethod`\
  Endpoint: `PATCH /api/{storeCode}/settings`

  ```

  {
      "settings": {
          "identificationMethod": "phone" // or "loyaltyCardNumber", "email"
      }
  }

  ```

Moving forward, the chosen method will be a required field for member registration.

{% hint style="info" %}
Please ensure the proper configuration of the tenant. You can find out more [in this article](https://help.openloyalty.io/main-features/members/member-list/configuration).
{% endhint %}

***

## Endpoints used

{% openapi src="<https://content.gitbook.com/content/gIv2CyIIYf7vRfuhMKQ6/blobs/2xnMWXnOETp8Vxl2YZoi/openapi-5.61.0%20(1).json>" path="/api/store" method="get" %}
[openapi-5.61.0 (1).json](https://content.gitbook.com/content/gIv2CyIIYf7vRfuhMKQ6/blobs/2xnMWXnOETp8Vxl2YZoi/openapi-5.61.0%20\(1\).json)
{% endopenapi %}

{% openapi src="<https://content.gitbook.com/content/gIv2CyIIYf7vRfuhMKQ6/blobs/2xnMWXnOETp8Vxl2YZoi/openapi-5.61.0%20(1).json>" path="/api/{storeCode}/settings" method="get" %}
[openapi-5.61.0 (1).json](https://content.gitbook.com/content/gIv2CyIIYf7vRfuhMKQ6/blobs/2xnMWXnOETp8Vxl2YZoi/openapi-5.61.0%20\(1\).json)
{% endopenapi %}

{% openapi src="<https://content.gitbook.com/content/gIv2CyIIYf7vRfuhMKQ6/blobs/2xnMWXnOETp8Vxl2YZoi/openapi-5.61.0%20(1).json>" path="/api/{storeCode}/settings" method="patch" %}
[openapi-5.61.0 (1).json](https://content.gitbook.com/content/gIv2CyIIYf7vRfuhMKQ6/blobs/2xnMWXnOETp8Vxl2YZoi/openapi-5.61.0%20\(1\).json)
{% endopenapi %}

***

## More resources

For a detailed overview and description of the member registration configuration, please refer to these articles:

{% content-ref url="<https://app.gitbook.com/s/cNVX03KZzmrGwJihLiEx/main-features/settings/tenants>" %}
[Tenants](https://app.gitbook.com/s/cNVX03KZzmrGwJihLiEx/main-features/settings/tenants)
{% endcontent-ref %}

{% content-ref url="broken-reference" %}
[Broken link](https://help.openloyalty.io/technical-guide/getting-started-guide/broken-reference)
{% endcontent-ref %}

{% content-ref url="<https://app.gitbook.com/s/cNVX03KZzmrGwJihLiEx/main-features/settings>" %}
[Settings](https://app.gitbook.com/s/cNVX03KZzmrGwJihLiEx/main-features/settings)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.openloyalty.io/technical-guide/getting-started-guide/member-registartion-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
