---
title: "Get a list of Customers of a merchant"
method: GET
path: "/v1/merchants/{merchantId}/customers"
tags: ["customers"]
---

# Get a list of Customers of a merchant

`GET /v1/merchants/{merchantId}/customers`

## Request

- Base URL: `https://public-api.prod.quandoo.com`
- URL: `https://public-api.prod.quandoo.com/v1/merchants/{merchantId}/customers`
- Auth: API key in header `X-Quandoo-AuthToken`
- TypeScript: <https://skmtc.dev/quandoo/apis/quandooapidocumentation/docs/v1/merchants/:merchantId/customers/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows a third party to get a list of customers of a merchant.
The list is filtered, showing only the customers that the third party system has access.
Customer id is agent-specific if the customer was created by the agent. The agent needs to be authenticated.

The endpoint will return `HTTP 404 - Not Found` if the merchant with the specified id could not be found.
It will return `HTTP 403 - Forbidden` if the agent is not authenticated or the agent doesn't have permissions.

####Request:
* **merchantId**: Identifier of the merchant
* **offset**: sets the starting element to be returned. Defaults to 0 when unset or malformed.
* **limit**: maximum number of results to be returned. Value must be between 1 and 100. Defaults to 100 when unset, malformed or outside bounds.
* **modifiedSince**: earliest date time of time window in UTC. Format: yyyy-MM-dd HH:mm:ss
* **modifiedUntil**: latest date time of time window in UTC. Format: yyyy-MM-dd HH:mm:ss

####Response:
The response contains the following data of the customer as explained below:
* **id**: The agent-dependent identifier of the customer 
* **title**: The title of the customer. _Optional_
* **firstName**: First name of the customer. _Optional_
* **lastName**: Last name of the customer. _Optional_
* **email**: The given email of this customer. _Optional_
* **gender**: The given gender of the customer (one of MALE, FEMALE, OTHER or UNDEFINED). _Optional_
* **phoneNumber**: The phone number of the customer. _Optional_
* **mobileNumber**: The mobile phone number of the customer. _Optional_
* **locale**: The locale of the customer.
* **links**: Related links that can be followed based on this response
* **subscriptions**: The newsletter subscriptions, e.g. QUANDOO, MERCHANT
* **statistics**: The customer statistics: number of successful, cancelled and no-show reservations
* **createdAt**: The date the customer was created. Format: yyyy-MM-ddTHH:mm:ssZ
* **updatedAt**: The date the customer was last updated. Format: yyyy-MM-ddTHH:mm:ssZ

Example curl:
```
curl https://{host}/v{X}/merchants/1234/customers
```

Example response: 
```
{
  "result": [
    {
      "id": "9ffb3466-3562-42cc-add1-92a46a2f0902",
      "customerRef": "9ffb3466-3562-42cc-add1-92a46a2f0902",
      "marketingFlags": [
        {
          "marketingSettingType": "NEWSLETTERS",
          "marketingSettingStatus": "INACTIVE"
        },
        {
          "marketingSettingType": "PROMO_CODES",
          "marketingSettingStatus": "ACTIVE"
        }
      ],
      "title": "Mr.",
      "firstName": "John",
      "lastName": "Doe",
      "email": "test@quandoo.de",
      "phoneNumber": "+493012345678",
      "mobileNumber": "+17712345678",
      "locale": "de_DE",
      "links": [
        {
          "href": "http://localhost:39250/v1/customers/9ffb3466-3562-42cc-add1-92a46a2f0902/reservations",
          "method": "GET",
          "rel": "get-customer-reservations"
        }
      ],
      "subscriptions": [
        {
          "id": "QUANDOO"
        }
      ],
      "statistics": {
        "reservationSuccessfulCount": 8,
        "reservationCancelledCount": 5,
        "reservationNoShowCount": 2
      },
      "createdAt": "2018-11-22T18:42:16Z",
      "updatedAt": "2018-11-30T18:16:02Z"
    }
  ],
  "offset": 0,
  "limit": 100
}
```

## Path parameters

- `merchantId` integer, required

## Query parameters

- `offset` integer
- `limit` integer
- `modifiedSince` string, date-time
- `modifiedUntil` string, date-time

## Response `200`

OK

- CustomerDataList
  - `result` MerchantCustomerData[]
    - `id` string, required: The id of the customer.
    - `customerRef` string, required: Customer reference
    - `marketingFlags` MarketingSettingDto[], required: Marketing flags for customer.
      - `marketingSettingType` 'SMART_OFFERS_AND_DEALS' | 'PROMO_CODES' | 'RESTAURANT_RECOMMENDATIONS' | 'NEWSLETTERS'
      - `marketingSettingStatus` 'ACTIVE' | 'INACTIVE'
    - `title` string, required: Title of the customer.
    - `firstName` string, required: First name of the customer.
    - `lastName` string, required: Last name of the customer.
    - `email` string, required: Email of the customer.
    - `phoneNumber` string, required: Fixed line phone number of the customer.
    - `mobileNumber` string, required: Mobile phone number of the customer.
    - `locale` string, required: Locale of the customer.
    - `links` LinkRelationDto[], required: The links related to this entity.
      - `href` string, url
      - `method` string
      - `rel` 'DETAILS' | 'WIDGET' | 'WIDGET_DETAILS' | 'GET_MERCHANT' | 'PARENT' | 'SELF' | 'SETTINGS' | 'AVAILABILITY_DAYS' | 'AVAILABILITIES' | 'CREATE_RESERVATION' | 'GET_RESERVATION' | 'UPDATE_RESERVATION' | 'GET_CUSTOMER_RESERVATION' | 'GET_REVIEW' | 'PORTAL_PREORDER_FORM' | 'RESERVATION_CHECKOUT_PAGE' | 'CREDIT_CARD_DETAILS_PAGE' | 'CUSTOMER_EDIT_RESERVATION'
    - `subscriptions` MerchantSubscription[], required: The newsletter subscriptions, e.g. QUANDOO, MERCHANT.
      - `id` 'QUANDOO' | 'MERCHANT'
    - `statistics` CustomerStatisticsData, required
      - `reservationSuccessfulCount` integer, required: The number of reservations made by the customer that were actually seated
      - `reservationCancelledCount` integer, required: The number of reservations made by the customer that were cancelled before taking place
      - `reservationNoShowCount` integer, required: The number of reservations made by the customer that he did not show up
    - `updatedAt` string, date-time: The date the review created on. Format: yyyy-MM-ddTHH:mm:ssZ
  - `offset` integer
  - `limit` integer

## Other responses

- `400`: Bad request
- `403`: Access denied
- `404`: Customer not found
- `500`: Internal server error

---

[API](https://skmtc.dev/quandoo/apis/quandooapidocumentation.md) - [All operations](https://skmtc.dev/quandoo/apis/quandooapidocumentation/llms.txt) - [OpenAPI document](https://skmtc.dev/quandoo/apis/quandooapidocumentation/revisions/b33054d03af3?raw)
