# Get tenant customer details

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

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

**Deprecated.**

## Path parameters

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

## 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 |
| --- | --- | --- | --- |
| `customer` | object or null | no |  |
| `customer.id` | string (uuid) | no |  |
| `customer.created` | string (date-time) | no |  |
| `customer.modified` | string (date-time) | no |  |
| `customer.identityUserId` | string (uuid) | no |  |
| `customer.firstName` | string or null | no |  |
| `customer.lastName` | string or null | no |  |
| `customer.email` | string or null | no |  |
| `customer.dateOfBirth` | string (date-time) | no |  |
| `customer.gender` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `customer.telephoneNumber` | string or null | no |  |
| `customer.languageCode` | string or null | no |  |
| `customer.isDeleted` | boolean | no |  |
| `customer.isDisabled` | boolean | no |  |
| `customer.addresses` | array<object> or null | no |  |
| `customer.addresses[].id` | string (uuid) | no |  |
| `customer.addresses[].addressType` | integer (int32) | no | Allowed values: `0`, `1`, `2`. |
| `customer.addresses[].title` | string or null | no |  |
| `customer.addresses[].street` | string or null | no |  |
| `customer.addresses[].zipCode` | string or null | no |  |
| `customer.addresses[].city` | string or null | no |  |
| `customer.addresses[].state` | string or null | no |  |
| `customer.addresses[].country` | string or null | no |  |
| `customer.addresses[].location` | object or null | no |  |
| `customer.addresses[].location.latitude` | number (double) | no |  |
| `customer.addresses[].location.longitude` | number (double) | no |  |
| `customer.addresses[].note` | string or null | no |  |
| `customer.saleAllTime` | array<object> or null | no |  |
| `customer.saleAllTime[].id` | string (uuid) | no |  |
| `customer.saleAllTime[].outletId` | string (uuid) | no |  |
| `customer.saleAllTime[].tenantId` | string (uuid) | no |  |
| `customer.saleAllTime[].totalSpent` | object or null | no |  |
| `customer.saleAllTime[].totalSpent.amount` | number (double) | no |  |
| `customer.saleAllTime[].totalSpent.currency` | string or null | no |  |
| `customer.saleAllTime[].totalOnlineOrders` | integer (int32) | no |  |
| `customer.saleAllTime[].totalPosOrders` | integer (int32) | no |  |
| `customer.saleAllTime[].firstOrder` | string (date-time) | no |  |
| `customer.saleAllTime[].lastOrder` | string (date-time) | no |  |
| `customer.saleAllTime[].customerOrderFormatSales` | array<object> or null | no |  |
| `customer.saleAllTime[].customerOrderFormatSales[].orderFormat` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `159`, `191`. |
| `customer.saleAllTime[].customerOrderFormatSales[].orderCount` | integer (int32) | no |  |
| `customer.saleAllTime[].customerOrderFormatSales[].totalAmount` | object or null | no |  |
| `customer.saleAllTime[].customerOrderFormatSales[].totalAmount.amount` | number (double) | no |  |
| `customer.saleAllTime[].customerOrderFormatSales[].totalAmount.currency` | string or null | no |  |

#### Example

```json
{
  "customer": {
    "id": "098818ce-5c2b-4321-8bae-9fcdc5ff03fe",
    "created": "2026-10-23T15:43:54.3845006Z",
    "modified": "2026-10-23T15:43:54.3845006Z",
    "identityUserId": "53cf3e9f-a147-43cb-9506-cb74ac53317f",
    "firstName": "John",
    "lastName": "Smith",
    "email": "john@smith.com",
    "dateOfBirth": "1999-10-23T15:43:54.3845013Z",
    "gender": 1,
    "telephoneNumber": "+1 555-123456",
    "languageCode": "en-US",
    "isDeleted": false,
    "isDisabled": false,
    "addresses": [
      {
        "id": "18f9fa8a-62d0-410a-b743-2d8ea56709d7",
        "addressType": 1,
        "title": "Microsoft Corporation",
        "street": "One Microsoft Way",
        "zipCode": "98052-6399",
        "city": "Redmond",
        "state": "Washington",
        "country": "United States of America",
        "location": {
          "latitude": 47.6370891183,
          "longitude": -122.123736172
        },
        "note": "Watch out for Steve Ballmer's ghost."
      },
      {
        "id": "adcd93c1-0787-45e8-bbe4-31ce0889118e",
        "addressType": 1,
        "title": "Google HQ",
        "street": "1600 Amphitheatre Pkwy",
        "zipCode": "94043",
        "city": "Mountain View",
        "state": "CA",
        "country": "United States",
        "location": {
          "latitude": 37.42204695516293,
          "longitude": -122.08549661991442
        },
        "note": "Yes, Google is my second work."
      },
      {
        "id": "02c46f10-c705-459d-a95b-2962e77cb4c8",
        "addressType": 0,
        "title": "The Mansion",
        "street": "The street 1",
        "zipCode": "123 45",
        "city": "Under the Sea",
        "state": null,
        "country": null,
        "location": {
          "latitude": 31.19669,
          "longitude": -38.84766
        },
        "note": "btw, I live under the ocean."
      }
    ],
    "saleAllTime": [
      {
        "id": "52d935db-b0dc-4a31-822c-04fa5cbb1bd6",
        "outletId": "9a844098-4bad-468c-932b-409e5bbb2146",
        "tenantId": "cf1e4390-0321-4210-a478-e44e4ac941eb",
        "totalSpent": {
          "amount": 5345,
          "currency": "USD"
        },
        "totalOnlineOrders": 23,
        "totalPosOrders": 105,
        "firstOrder": "2024-10-24T15:43:54.3844927Z",
        "lastOrder": "2025-10-24T15:43:54.3844943Z",
        "customerOrderFormatSales": [
          {
            "orderFormat": 1,
            "orderCount": 105,
            "totalAmount": {
              "amount": 4000,
              "currency": "SEK"
            }
          },
          {
            "orderFormat": 8,
            "orderCount": 23,
            "totalAmount": {
              "amount": 1345,
              "currency": "SEK"
            }
          }
        ]
      },
      {
        "id": "3a515d6a-d8d8-4196-97a8-8c81e7f2b72c",
        "outletId": "92314826-847e-4c34-b52c-8bf3b3726a76",
        "tenantId": "cf1e4390-0321-4210-a478-e44e4ac941eb",
        "totalSpent": {
          "amount": 180547,
          "currency": "USD"
        },
        "totalOnlineOrders": 524,
        "totalPosOrders": 1051,
        "firstOrder": "2024-10-25T15:43:54.3844977Z",
        "lastOrder": "2025-10-25T15:43:54.3844978Z",
        "customerOrderFormatSales": [
          {
            "orderFormat": 1,
            "orderCount": 551,
            "totalAmount": {
              "amount": 50000,
              "currency": "SEK"
            }
          },
          {
            "orderFormat": 4,
            "orderCount": 500,
            "totalAmount": {
              "amount": 50000,
              "currency": "SEK"
            }
          },
          {
            "orderFormat": 8,
            "orderCount": 23,
            "totalAmount": {
              "amount": 80547,
              "currency": "SEK"
            }
          }
        ]
      },
      {
        "id": "5a35fc3b-4c74-4f29-a793-1bc2eae7be41",
        "outletId": "299afffd-3932-4aa6-a7eb-995dbc82b16b",
        "tenantId": "cf1e4390-0321-4210-a478-e44e4ac941eb",
        "totalSpent": {
          "amount": 154,
          "currency": "USD"
        },
        "totalOnlineOrders": 6,
        "totalPosOrders": 0,
        "firstOrder": "2024-10-26T15:43:54.3844995Z",
        "lastOrder": "2025-10-26T15:43:54.3844996Z",
        "customerOrderFormatSales": [
          {
            "orderFormat": 1,
            "orderCount": 6,
            "totalAmount": {
              "amount": 154,
              "currency": "USD"
            }
          }
        ]
      }
    ]
  }
}
```

### 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/{customerId}" \
  -H "Access-Token: $ANCON_TOKEN"
```
