# Account exists

The **Account exists** endpoint empowers partners to check whether a customer already possesses an active account in the loyalty program. By submitting the customer's email as a URL parameter, partners can quickly identify the customer's enrollment status, enhancing the efficiency of loyalty program management.

When a partner calls this endpoint, the API can deliver one of three possible responses:

* **200 OK**: `true` - The customer **already has an account** in the loyalty program.
* **200 OK**: `false` - The customer **exists in the CRM** but does not yet have an account in the loyalty program.
* **404 Not Found**: The customer **does not exist** in the CRM.

### Request&#x20;

<mark style="color:green;">**GET**</mark> &#x20;

{% code overflow="wrap" %}

```
https://interface.experience-hotel.com/api/xp-guest-account/account-exists?email=test@test.com
```

{% endcode %}

* **URL Parameter**: `email` (the email address of the customer to check)

### Response

Status Code <mark style="color:green;">**`200 OK`**</mark>

```json
{
    "account-exists": false
}
```

```json
{
    "account-exists": true
}
```

Or status Code <mark style="color:orange;">**`404 Not Found`**</mark> if the guest does not exist.&#x20;


---

# 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://experience-crm.gitbook.io/experience-crm-api/guests/guests-personal-space/account-exists.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.
