# Quantity

Source: https://developer.avalara.com/products/communications/integration-guides/communications-integration/sxt3598053149769/

Guide: Communications

# Quantity

**Element type: Suggested**

**Enpoints/models used:** [LineItem](https://developer.avalara.com/api-reference/communications/v2/models/LineItem/)

Your integration should provide a method for specifying the quantity to be applied to a line item. This can be specified using the `qty` field in the [LineItem](https://developer.avalara.com/api-reference/communications/v2/models/LineItem/) model. When specified, taxation is equivalent to repeating the item the number of times of the quantity.

A simple example would be a customer who has a hotel with 1,000 rooms, and all the rooms have an access charge of $26. Rather than passing Avalara 1,000 transaction lines, you can pass Avalara 1 transaction with a`"qty": 1000` for the access charge of $26.

This field must be a positive integer greater than or equal to 1. In addition, quantities aren’t supported on Tax Inclusive or Prorated transactions.

**View example**:

```
 "itms": [
  {
    "ref": "Reference Code for Line Item",
    "from": {
      // Location
    },
    "to": {
      // Location
    },
    "chg": 100,
    "line": 0,
    "loc": 0,
    "min": 0,
    "sale": 1,
    "plsp": 0,
    "incl": false,
    "pror": 0,
    "proadj": 0,
    "tran": 19,
    "serv": 6,
    "dbt": false,
    "adj": false,
    "adjm": 0,
    "disc": 0,
    "opt": [
      {
        // Key Value Pair
      }
    ],
    "prop": 0,
    "bill": {
      // Location
    },
    "cust": 0,
    "lfln": false,
    "date": "2018-09-23T20:31:53.452Z",
    "qty": 1,
    "glref": "General Ledger Reference"
  }
] 
```