# Transaction type

Source: https://developer.avalara.com/products/excise/integration-guides/excise/kjv1295860558158/

Guide: AvaTax Excise

# Transaction type

Learn about the `TransactionType` field and its accepted values for tobacco, nicotine, and vape transactions.

**Element type**: Required

**Endpoints/models used**: [RestTransaction](https://developer.avalara.com/api-reference/excise/v1/models/Avalara.Excise.Determination.Engine.RestTransaction/)

Users must specify a type for each transaction. This is done using the `TransactionType` field in the [RestTransaction](https://developer.avalara.com/api-reference/excise/v1/models/Avalara.Excise.Determination.Engine.RestTransaction/) model. For tobacco, nicotine, and vape transactions, the accepted values are:

-   `WHOLESALE`: for B2B
-   `RETAIL`: for POS storefront sales
-   `DIRECT`(for direct-to-consumer, online sales)

## Example

```
{
    "EffectiveDate": "2024-09-01T15:53:23.769Z",
    "InvoiceDate": "2024-09-01T15:53:23.769Z",
    "InvoiceNumber": "Test_NIC",
    "TitleTransferCode": "DEST",
    "TransactionType": "WHOLESALE",
    "Seller": "RESELLER",
    "Buyer": "CUSTOMER",
    "UserTranId": "CarisamTest1",
    "EntityUseCode": "",
    "CustomString1": "Header1",
    "CustomString2": "Header2",
    "CustomString3": "Header3",
    "CustomString4": "",
    "CustomString5": "",
    "CustomString6": "",
    "CustomString7": "",
    "CustomString8": "",
    "CustomString9": "",
    "CustomString10": "",
    "CustomNumeric1": 0,
    "CustomNumeric2": 0,
    "CustomNumeric3": 0,
    "CustomNumeric4": 0,
    "CustomNumeric5": 0,
    "CustomNumeric6": 0,
    "CustomNumeric7": 0,
    "CustomNumeric8": 0,
    "CustomNumeric9": 0,
    "CustomNumeric10": 0,
    "UserData": "Test_Nicotine",
    "SourceSystem": "POSTMAN",
    "AvataxTransactionType": "SalesInvoice",
    "Discount": "0.00",
    "TransactionLines": [
        {
            ...
        }
    ]
}
```