# Get company details

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

Core API · Companies · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/companies/get-company-details

**Deprecated.**

Will no longer work after 2027-03-31 00:00, move over to user service instead.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `outletId` | string (uuid) | yes |  |
| `companyId` | 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 |
| --- | --- | --- | --- |
| `company` | object or null | no |  |
| `company.id` | string (uuid) | no |  |
| `company.created` | string (date-time) | no |  |
| `company.modified` | string (date-time) | no |  |
| `company.tenantId` | string (uuid) | no |  |
| `company.name` | string or null | no |  |
| `company.businessNumber` | string or null | no |  |
| `company.addressId` | string (uuid) | no |  |
| `company.invoiceAddress` | object or null | no |  |
| `company.invoiceAddress.street` | string or null | no |  |
| `company.invoiceAddress.street2` | string or null | no |  |
| `company.invoiceAddress.zipCode` | string or null | no |  |
| `company.invoiceAddress.city` | string or null | no |  |
| `company.countryCode` | string or null | no |  |
| `company.phoneNumber` | string or null | no |  |
| `company.invoiceEmail` | string or null | no |  |
| `company.defaultInvoiceReferenceNote` | string or null | no |  |
| `company.isDeleted` | boolean | no |  |
| `company.originatingOutletId` | string (uuid) or null | no |  |
| `company.originatingOutletName` | string or null | no |  |
| `company.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`. |
| `company.gln` | string or null | no |  |
| `company.companyReference` | string or null | no |  |

#### Example

```json
{
  "company": {
    "id": "823da032-ea7b-4f70-b87f-526be96ecce8",
    "created": "2026-10-23T15:43:52.9804064Z",
    "modified": "2026-10-23T15:43:52.9804067Z",
    "tenantId": "31f1bcc5-e5b8-41f4-85e5-af5c93171fd3",
    "name": "Nice food AB",
    "businessNumber": "551245-1523",
    "addressId": "ff59b64b-a111-4c55-a5c1-dc856d1a360f",
    "invoiceAddress": {
      "street": "Kompanigatan 36",
      "street2": "Höhögatan 69",
      "zipCode": "666 69",
      "city": "Höhs"
    },
    "countryCode": "SE",
    "phoneNumber": "46623879876",
    "invoiceEmail": "example@company.io",
    "defaultInvoiceReferenceNote": "Conference room 12",
    "isDeleted": false,
    "originatingOutletId": "a3d082a4-0f82-41ab-a099-5f9efbcef8b8",
    "originatingOutletName": null,
    "originatingIntegrationType": 3,
    "gln": "1234567890123",
    "companyReference": "Example Company"
  }
}
```

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |

#### Example (from schema)

```json
{
  "message": "string"
}
```

### 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://core-api.ancon.io/api/v1/Outlets/{outletId}/Companies/{companyId}" \
  -H "Access-Token: $ANCON_TOKEN"
```
