# Update company

`PUT /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/update-company

**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 |

## Request body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes |  |
| `businessNumber` | string or null | no |  |
| `invoiceAddress` | object | yes |  |
| `invoiceAddress.addressId` | string (uuid) or null | no |  |
| `invoiceAddress.addressType` | integer (int32) | no | Allowed values: `0`, `1`, `2`. |
| `invoiceAddress.street` | string or null | no |  |
| `invoiceAddress.street2` | string or null | no |  |
| `invoiceAddress.zipCode` | string or null | no |  |
| `invoiceAddress.city` | string or null | no |  |
| `countryCode` | string or null | no |  |
| `phoneNumber` | string or null | no |  |
| `invoiceEmail` | string or null | no |  |
| `defaultInvoiceReferenceNote` | string or null | no |  |
| `gln` | string or null | no |  |
| `companyReference` | string or null | no |  |

### Example

```json
{
  "name": "Updated - Nice food AB",
  "businessNumber": "551245-1523",
  "invoiceAddress": {
    "addressId": null,
    "addressType": 0,
    "street": "Kompanigatan 36",
    "street2": "Höhögatan 69",
    "zipCode": "666 69",
    "city": "Höhs"
  },
  "countryCode": null,
  "phoneNumber": "46623879876",
  "invoiceEmail": "example@company.io",
  "defaultInvoiceReferenceNote": "Conference room 12",
  "gln": null,
  "companyReference": null
}
```

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 400 | Bad Request |
| 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": "f3174ae9-7710-4115-8cda-938f255d08e0",
    "created": "2026-10-23T15:43:52.9820845Z",
    "modified": "2026-10-23T15:43:52.9820848Z",
    "tenantId": "38290e6c-d1db-4ad1-a493-e2c2936d0b55",
    "name": "Updated - Nice food AB",
    "businessNumber": "551245-1523",
    "addressId": "d16a0200-e2e1-4f5f-96a2-313bec95be3d",
    "invoiceAddress": {
      "street": "Kompanigatan 36",
      "street2": "Höhögatan 69",
      "zipCode": "666 69",
      "city": "Höhs"
    },
    "countryCode": null,
    "phoneNumber": null,
    "invoiceEmail": "example@company.io",
    "defaultInvoiceReferenceNote": "Conference room 12",
    "isDeleted": false,
    "originatingOutletId": "c03ea41c-b0ff-47f8-9d1d-be7c0344fb8e",
    "originatingOutletName": null,
    "originatingIntegrationType": 3,
    "gln": "1234567890123",
    "companyReference": "Example Company"
  }
}
```

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

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

#### Delivery request is not valid

```json
{
  "message": "Delivery information is not valid!",
  "errorCode": "41fcedd1-dfef-4d0d-a5b3-2e28da7dfc9a",
  "additionalData": null
}
```

### 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 PUT "https://core-api.ancon.io/api/v1/Outlets/{outletId}/Companies/{companyId}" \
  -H "Access-Token: $ANCON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Updated - Nice food AB",
  "businessNumber": "551245-1523",
  "invoiceAddress": {
    "addressId": null,
    "addressType": 0,
    "street": "Kompanigatan 36",
    "street2": "Höhögatan 69",
    "zipCode": "666 69",
    "city": "Höhs"
  },
  "countryCode": null,
  "phoneNumber": "46623879876",
  "invoiceEmail": "example@company.io",
  "defaultInvoiceReferenceNote": "Conference room 12",
  "gln": null,
  "companyReference": null
}'
```
