> For the complete documentation index, see [llms.txt](https://help.openloyalty.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.openloyalty.io/api-reference/member/register-a-member.md).

# Register a member

Integration\
\
This method allows potential Members to register themselves. If CustomerWasRegisteredWithoutActivation webhook is configured, the code, code number, and member contact data will be transmitted. The 'code' field from the webhook should be used as token parameter in the endpoint. member activate

```json
{"openapi":"3.0.0","info":{"title":"Open Loyalty","version":"0.0.1"},"tags":[{"name":"Member","description":"These endpoints allow you to easily manage members."}],"servers":[{"url":"http://openloyalty.localhost"}],"security":[],"paths":{"/api/{storeCode}/member/register":{"post":{"tags":["Member"],"summary":"Register a member","description":"<label style=\"background-color: #BFE1F6;padding:5px;\">Integration</label><br><br>\nThis method allows potential Members to register themselves.\nIf CustomerWasRegisteredWithoutActivation webhook is configured,\nthe code, code number, and member contact data will be transmitted.\nThe 'code' field from the webhook should be used\nas token parameter in the endpoint. [member activate](#operation/memberPostActivate)\n","operationId":"memberPostRegister","parameters":[{"$ref":"#/components/parameters/storeCode"}],"requestBody":{"description":"","content":{"application/json":{"schema":{"properties":{"customer":{"$ref":"#/components/schemas/CustomerSelfRegistrationFormType"}},"type":"object"}}}},"responses":{"200":{"description":"Return registered member ID and email.","content":{"application/json":{"schema":{"properties":{"customerId":{"description":"Registered member identity","type":"string"},"email":{"description":"Registered member email","type":"string","format":"email"}},"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}},"deprecated":true}}},"components":{"parameters":{"storeCode":{"name":"storeCode","in":"path","description":"Store code","required":true,"schema":{"type":"string"}}},"schemas":{"CustomerSelfRegistrationFormType":{"required":["email","agreement1","plainPassword"],"properties":{"referrerToken":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"gender":{"type":"string","enum":["male","female","not_disclosed"]},"email":{"type":"string"},"phone":{"type":"string"},"loyaltyCardNumber":{"type":"string"},"birthDate":{"type":"string","format":"date"},"createdAt":{"description":"Use \"registeredAt\" field instead.","type":"string","format":"date-time","deprecated":true},"registeredAt":{"type":"string","format":"date-time"},"address":{"$ref":"#/components/schemas/FormType"},"company":{"$ref":"#/components/schemas/FormType"},"labels":{"type":"array","items":{"$ref":"#/components/schemas/UserLabelFormType"}},"customFieldsData":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldFormType"}},"agreement1":{"description":"TOS Agreement (required to be true)","type":"boolean"},"agreement2":{"description":"Direct Marketing Agreement","type":"boolean"},"agreement3":{"description":"Optional Agreement","type":"boolean"},"plainPassword":{"type":"string","format":"password"}},"type":"object"},"FormType":{"type":"object"},"UserLabelFormType":{"required":["key","value","key","value"],"properties":{"key":{"type":"string"},"value":{"type":"string"}},"type":"object"},"CustomFieldFormType":{"required":["customFieldSchemaId"],"properties":{"customFieldSchemaId":{"type":"string"}},"type":"object"}},"responses":{"BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"required":["code","message","errors"],"properties":{"code":{"type":"integer"},"message":{"type":"string"},"errors":{"type":"array","items":{"required":["message","parameters","plural","code","path"],"properties":{"message":{"type":"string"},"parameters":{},"plural":{"type":"integer","nullable":true},"code":{"type":"string"},"path":{"type":"string"}},"type":"object"}}},"type":"object"}}}},"NotFound":{"description":"Not found.","content":{"application/json":{"schema":{"required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.openloyalty.io/api-reference/member/register-a-member.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
