# Update invoice status

`PUT /api/v1/Outlets/{outletId}/Invoices/Status`

Core API · Invoices · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/invoices/update-invoice-status

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `outletId` | 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 |
| --- | --- | --- | --- |
| `orderIds` | array<string (uuid)> or null | no |  |
| `invoiceHandlingStatus` | integer (int32) | no | Allowed values: `1`, `2`, `4`, `8`. |

### Example (from schema)

```json
{
  "orderIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "invoiceHandlingStatus": 1
}
```

## Responses

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

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

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

#### Example (from schema)

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

### 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}/Invoices/Status" \
  -H "Access-Token: $ANCON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "orderIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "invoiceHandlingStatus": 1
}'
```
