# Check item discount

`PUT /api/v1/Outlets/{outletId}/Checks/{checkId}/Items/Discount`

Core API · Checks · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/checks/check-item-discount

**Deprecated.**

Will no longer work after 2028-09-01 00:00, move over to the V2 Check endpoints instead.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `outletId` | string (uuid) | yes |  |
| `checkId` | 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 |
| --- | --- | --- | --- |
| `checkItems` | array<object> | yes |  |
| `checkItems[].id` | string (uuid) | no |  |
| `checkItems[].quantity` | number (double) | no |  |
| `discount` | object or null | no |  |
| `discount.value` | number (double) | no |  |
| `discount.type` | integer (int32) | no | Allowed values: `0`, `1`. |
| `discountId` | string (uuid) or null | no |  |
| `pinOverride` | string or null | no |  |

### Example (from schema)

```json
{
  "checkItems": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "quantity": 0
    }
  ],
  "discount": {
    "value": 0,
    "type": 0
  },
  "discountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "pinOverride": "string"
}
```

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |

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

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

#### Example (from schema)

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

### 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}/Checks/{checkId}/Items/Discount" \
  -H "Access-Token: $ANCON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "checkItems": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "quantity": 0
    }
  ],
  "discount": {
    "value": 0,
    "type": 0
  },
  "discountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "pinOverride": "string"
}'
```
