# Document type

Source: https://developer.avalara.com/avatax-for-bevalc/requirements/document-type/

# Document type

**Element type: Required**

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

A document`type` is required in order to achieve a Sales Tax badge. When verifying shipping compliance for beverage alcohol transactions, the transaction must be recorded. The following are the only supported document types that can be verified:

-   `SalesInvoice`
-   `ReturnInvoice`

The document type in AvaTax defaults to`SalesOrder`, so this parameter must be specified for beverage alcohol transactions.

```
{  "type":"SalesInvoice",  "code": "CompliantPurchase",  "companyCode":"DEFAULT",  "customerCode":"13434",  "date":"2022-08-15",  "commit":true,  ...}
```

[Previous](/avatax-for-bevalc/requirements/understanding-bevalc-transactions)

[Next](/avatax-for-bevalc/requirements/tax-code)