# Get Customer list by tenant

`GET /public/api/v1/Tenants/{tenantId}/Customers`

User API · Customers · base URL `https://user-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/user/customers/get-customer-list-by-tenant

**Deprecated.**

### Available filter properties
- name (string)
- firstname (string)
- lastname (string)
- created (datetime)
- email (string)
- firstorder (datetime)
- lastorder (datetime)
- totalonlineorders (int)
- totalposorders (int)
- totalspent (decimal)
- outletid (guid)
- tenantid (guid)
- ordersonoutlets (guid)
- salesourceid (nullable guid)

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `tenantId` | string (uuid) | yes |  |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Offset` | integer (int32) | no |  |
| `Limit` | integer (int32) | no | min 0, max 1000. |
| `Order` | string | no |  |
| `Search` | string | no |  |
| `Filter` | map<string, array<string>> | no |  |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `correlationId` | string | no | Correlation Id for the request |

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 401 | Unauthorized |
| 404 | Not Found |

### 200 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array<object> or null | no |  |
| `items[].id` | string (uuid) | no |  |
| `items[].created` | string (date-time) | no |  |
| `items[].firstName` | string or null | no |  |
| `items[].lastName` | string or null | no |  |
| `items[].email` | string or null | no |  |
| `items[].languageCode` | string or null | no |  |
| `items[].isDeleted` | boolean | no |  |
| `items[].isDisabled` | boolean | no |  |
| `items[].totalOnlineOrders` | integer (int32) | no |  |
| `items[].totalPosOrders` | integer (int32) | no |  |
| `items[].totalSpent` | object or null | no |  |
| `items[].totalSpent.amount` | number (double) | no |  |
| `items[].totalSpent.currency` | string or null | no |  |
| `items[].firstOrder` | string (date-time) | no |  |
| `items[].lastOrder` | string (date-time) | no |  |
| `items[].saleSourceId` | string (uuid) or null | no |  |
| `meta` | object or null | no |  |
| `meta.count` | integer (int32) | no |  |
| `meta.offset` | integer (int32) | no |  |

#### Example

```json
{
  "items": [
    {
      "id": "72b32138-87ad-4fbc-8773-51286e2d958d",
      "created": "2026-10-20T15:43:54.3857399Z",
      "firstName": "Adrian",
      "lastName": "Svensson",
      "email": "adrian@svensson.io",
      "languageCode": "sv-SE",
      "isDeleted": false,
      "isDisabled": false,
      "totalOnlineOrders": 1,
      "totalPosOrders": 0,
      "totalSpent": {
        "amount": 123,
        "currency": "SEK"
      },
      "firstOrder": "2026-10-21T15:43:54.3857411Z",
      "lastOrder": "2026-10-22T15:43:54.3857412Z",
      "saleSourceId": null
    },
    {
      "id": "0a33ceea-c8b9-4660-be53-3fd0aa702172",
      "created": "2026-10-11T15:43:54.3857423Z",
      "firstName": "John",
      "lastName": "Smith",
      "email": "john@smith.io",
      "languageCode": "en-US",
      "isDeleted": false,
      "isDisabled": false,
      "totalOnlineOrders": 0,
      "totalPosOrders": 3,
      "totalSpent": {
        "amount": 1223,
        "currency": "SEK"
      },
      "firstOrder": "2026-10-20T15:43:54.3857423Z",
      "lastOrder": "2026-10-21T15:43:54.3857424Z",
      "saleSourceId": null
    },
    {
      "id": "311497a8-1661-499d-ad49-2d61906a2cdb",
      "created": "2026-10-03T15:43:54.3857431Z",
      "firstName": null,
      "lastName": null,
      "email": null,
      "languageCode": "en-US",
      "isDeleted": true,
      "isDisabled": false,
      "totalOnlineOrders": 3,
      "totalPosOrders": 5,
      "totalSpent": {
        "amount": 805,
        "currency": "SEK"
      },
      "firstOrder": "2026-10-21T15:43:54.3857431Z",
      "lastOrder": "2026-10-22T15:43:54.3857432Z",
      "saleSourceId": null
    },
    {
      "id": "c7ba8ff7-1814-4146-a531-51e0d6c08b12",
      "created": "2026-04-26T15:43:54.3857439Z",
      "firstName": null,
      "lastName": null,
      "email": null,
      "languageCode": "nb-NO",
      "isDeleted": false,
      "isDisabled": true,
      "totalOnlineOrders": 0,
      "totalPosOrders": 123,
      "totalSpent": {
        "amount": 121233,
        "currency": "SEK"
      },
      "firstOrder": "2026-10-15T15:43:54.385744Z",
      "lastOrder": "2026-10-16T15:43:54.385744Z",
      "saleSourceId": null
    }
  ],
  "meta": null
}
```

### 404 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |
| `errorCode` | string (uuid) | no |  |

#### Example (from schema)

```json
{
  "message": "string",
  "errorCode": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
```

## Example request

```bash
curl -X GET "https://user-api.ancon.io/public/api/v1/Tenants/{tenantId}/Customers" \
  -H "Access-Token: $ANCON_TOKEN"
```
