# AvaTax transaction type

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

Guide: AvaTax Excise

# AvaTax transaction type

Learn about the AvaTax transaction types and how to specify them in your integration.

**Element type**: Suggested

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

If submitting documents to AvaTax, your integration should allow users to specify the type of transaction taking place. This is done using the `AvataxTransactionType` field in the [RestTransaction](https://developer.avalara.com/api-reference/excise/v1/models/Avalara.Excise.Determination.Engine.RestTransaction/) model. Accepted values are:

-   `SalesOrder`
-   `SalesInvoice` (default)
-   `PurchaseOrder`
-   `PurchaseInvoice`
-   `ReturnOrder`
-   `ReturnInvoice`
-   `InventoryTransferOrder`
-   `InventoryTransferInvoice`

## 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": [
        {
            ...
        }
    ]
}
```