# Sale type

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

Guide: Communications

# Sale type

**Element type: Required**

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

Your integration must provide a method for specifying the type of sale associated with the invoice line item. This can be specified using the `sale` field in the [LineItem](https://developer.avalara.com/api-reference/communications/v2/models/LineItem/) model.

Available sale types include:

-   `0`: Wholesale - indicates that the item is being sold to a wholesaler
-   `1`: Retail - indicates that the item is being sold to an end user
-   `2`: Consumed (sales and use only) - indicates that the item was consumed directly
-   `3`: Vendor use (sales and use only) - indicates that the item is subject to vendor use tax

**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"
  }
] 
```