# Get company list

`GET /public/api/v1/Outlets/{outletId}/Companies`

User API · Companies · base URL `https://user-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/user/companies/get-company-list

**Deprecated.**

### Available filter properties
- created (datetime)
- name (string)
- businessnumber (string)
- ordercreated (datetime)
- externalid (string)

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `outletId` | 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 |
| 400 | Bad Request |
| 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[].name` | string or null | no |  |
| `items[].created` | string (date-time) | no |  |
| `items[].lastOrderedAt` | string (date-time) or null | no |  |
| `items[].invoiceCount` | integer (int32) | no |  |
| `items[].totalSpent` | number (double) | no |  |
| `items[].originatingOutletId` | string (uuid) or null | no |  |
| `items[].originatingOutletName` | string or null | no |  |
| `items[].originatingIntegrationType` | integer (int32) or null | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`, `24`, `25`, `26`, `27`, `28`, `29`, `30`, `31`, `32`, `-2`, `-1`. |
| `meta` | object or null | no |  |
| `meta.count` | integer (int32) | no |  |
| `meta.offset` | integer (int32) | no |  |

#### Example

```json
{
  "items": [
    {
      "id": "6b14b25d-ce6f-466d-92ed-30252691d3eb",
      "name": "Nice food AB",
      "created": "2026-10-23T15:43:54.3617612Z",
      "lastOrderedAt": "2026-10-23T09:43:54.3617612Z",
      "invoiceCount": 41,
      "totalSpent": 12423.23,
      "originatingOutletId": null,
      "originatingOutletName": null,
      "originatingIntegrationType": null
    },
    {
      "id": "acf3d011-2dcf-40c8-ba34-8b27746a36c0",
      "name": "Okay food AB",
      "created": "2026-10-23T15:43:54.3617685Z",
      "lastOrderedAt": "2026-10-23T09:43:54.3617685Z",
      "invoiceCount": 23,
      "totalSpent": 5003,
      "originatingOutletId": null,
      "originatingOutletName": null,
      "originatingIntegrationType": null
    }
  ],
  "meta": {
    "count": 2,
    "offset": 0
  }
}
```

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

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

#### Example (from schema)

```json
{
  "message": "string",
  "errorCode": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "additionalData": 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/Outlets/{outletId}/Companies" \
  -H "Access-Token: $ANCON_TOKEN"
```
