# Item/commodity code

Source: https://developer.avalara.com/avatax-for-ap/gcn3637476720760/

# Item/commodity code

**Element type:** Required

**Endpoints/models used:** [LineItemModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/LineItemModel/)

Your UI must include a method for allowing users to specify an item code that is passed to AvaTax at the line level. An item code is the item identifier and is specified using the `itemCode` field on the [LineItemModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/LineItemModel/).

This field should be optional for users. If a user provides an `itemCode`, the AvaTax will look up the item using the [ItemModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/ItemModel/) API call and use all the information available about that item for this transaction.

**View example**:

```
{
  ...,
  "lines": [
    {
      "number": "1",
      "quantity": 1,
      "amount": 100,
      "taxCode": "PS081282",
      "itemCode": "Y0001",
      "description": "Yarn"
    }
  ],
  ...
} 
```