---
updatedAt: 2026-08-26T08:10:12.000Z
agentTools:
  projectIndex: https://developers.deliverect.com/v1.1-restaurants/llms.txt
---

# How to handle Item 'Quantity'

Modifiers are shown as subitems.

**Example order (modifier is contained in the array**`subItems`**)**

```json Example
"payment": {
    "amount": 1000,
    "type": 0,
    "due": 0
},
"note": "",
"items": [
{
  "plu": "P-001",
  "name": "Potato wedges",
  "sortOrder": 0,
  "price": 649,
  "quantity": 2,
  "productType": 1,
  "subItems": [
    {
        "plu": "M-001",
        "name": "Melted cheese",
        "sortOrder": 0,
        "price": 150,
        "quantity": 1,
        "productType": 2,
        "subItems": []
    }
   ]
 }
],
```

## How quantity should be interpreted and calculated

In the above example, two of the product **Potato wedges** have been ordered, each with the same quantity of one **Melted cheese** as a sub-item.

The calculation of quantity to allow for the correct charge is:

**Total modifiers ordered = quantity of modifiers**`x`**&#x20;quantity of products**

This is shown in the example receipt below where the item price is multiplied by the quantity.

## How to show this to the kitchen team

<Image src="https://files.readme.io/01fcf92-image.png" alt="Image shows how the total price is displayed as well as a tooltip that explains how the total price was calculated" align="center" width="500px" border={true} />

<br />

In the example below, **two** portions of Wedges have been ordered, each with the same amount of **two** melted cheese added.

In addition, **one** portion of wedges has been ordered with **three** melted cheese.

i.e., each unique order is separated, identical orders are consolidated

<Image src="https://files.readme.io/c8d0ea9-image.png" align="center" width="5px" />

<br />

<Image src="https://files.readme.io/37da26c-image.png" align="center" width="500px" />

<br />