# Test 3. Vapor liquid with nicotine sale B2C retail sale

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

Guide: AvaTax Excise

# Test 3. Vapor liquid with nicotine sale B2C retail sale

Details of a B2C retail sale of e-liquid with nicotine, including transaction settings, expected results, and API request and response examples.

This transaction shows a sale of e-liquid with nicotine from a business to a consumer. This example includes the following settings:

-   Origin: Hammond, IN / Lake County
-   Destination: Chicago, IL / Cook County
-   Sale Location: Chicago, IL / Cook County
-   Product: VDEVELIQ. (Refer to the setup folder that contains the VDEVELIQ tobacco product table and alternate product table for the Avalara tax code.)
-   Title Transfer: DEST
-   Transaction Type: RETAIL

**Expected result**

-   Excise tax will be calculated for Chicago and Cook County.
-   Vapor taxes will return based on the number of MLs of the product that were sold.
-   Additional Chicago vapor tax will return based on the number of units sold.
-   Illinois state vapor tax will return based on the alternate unit price.
-   Sales taxes
    -   The response returns Illinois state sales tax.
    -   Chicago (city), Cook (county), and special tax jurisdiction sales taxes won’t return due to the tax code selected in Product Alternate mapping.

## Request

```
curl --location 'https://excisesbx.avalara.com/api/v1/AvaTaxExcise/transactions/CreateOrAdjust' \
--header 'x-company-id: 1632' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YW5nZWxSanTaFzbdeXJhMHJhbmczITY=' \
--data '
  {
    "AdjustmentReason": "Other",
    "AdjustmentDescription": "Price drop after shipping",
    "newTransaction": {
      "EffectiveDate": "2024-09-25",
      "InvoiceDate": "2024-09-25",
      "InvoiceNumber": "Test998",
      "TitleTransferCode": "DEST",
      "TransactionType": "RETAIL",
      "Seller": "Supplier1",
      "Buyer": "Supplier2",
      "UserData": "ebb5e327-12a1-4744-98ca-6dce3937db97",
      "UserTranId": "679",
      "SourceSystem": "Postman",
      "CustomString1": "Flag1",
      "CustomString2": "Flag2",
      "CustomString3": "Flag3",
      "CustomString4": "Flag4",
      "CustomString5": "Flag5",
      "CustomString6": "Flag6",
      "CustomString7": "Flag7",
      "CustomString8": "Flag8",
      "CustomString9": "Flag9",
      "CustomString10": "Flag10",
      "CustomNumeric1": 1,
      "CustomNumeric2": 2,
      "CustomNumeric3": 3,
      "CustomNumeric4": 4,
      "CustomNumeric5": 5,
      "CustomNumeric6": 6,
      "CustomNumeric7": 7,
      "CustomNumeric8": 8,
      "CustomNumeric9": 9,
      "CustomNumeric10": 10,
      "AvataxTransactionType": "SalesInvoice",
      "EntityUseCode": "",
      "Discount": "0.00",
      "TransactionLines": [
        {
          "InvoiceLine": 10,
          "ProductCode": "LIQUIDNIC",
          "UnitPrice": 1,
          "AlternateUnitPrice": 1,
          "BilledUnits": 2,
          "NetUnits": 2,
          "UnitOfMeasure": "PAK",
          "OriginCountryCode": "USA",
          "OriginJurisdiction": "IN",
          "OriginCity": "HAMMOND",
          "OriginCounty": "Lake",
          "OriginPostalCode": "46324",
          "OriginAddress1": "7142 Calumet Ave",
          "DestinationCountryCode": "USA",
          "DestinationJurisdiction": "IL",
          "DestinationCounty": "Cook",
          "DestinationCity": "Chicago",
          "DestinationPostalCode": "60654",
          "DestinationAddress1": "515 North Dearborn Street",
          "SaleCountryCode": "USA",
          "SaleJurisdiction": "IL",
          "SaleCounty": "Cook",
          "SaleCity": "Chicago",
          "SalePostalCode": "60644",
          "SaleAddress1": "515 North Dearborn Street",
          "UserData": "Test_Vapor",
          "Currency": "USD",
          "CustomString1": "Flag1",
          "CustomString2": "Flag2",
          "CustomString3": "Flag3",
          "CustomString4": "Flag4",
          "CustomString5": "Flag5",
          "CustomString6": "Flag6",
          "CustomString7": "Flag7",
          "CustomString8": "Flag8",
          "CustomString9": "Flag9",
          "CustomString10": "Flag10",
          "CustomNumeric1": 1,
          "CustomNumeric2": 2,
          "CustomNumeric3": 3,
          "CustomNumeric4": 4,
          "CustomNumeric5": 5,
          "CustomNumeric6": 6,
          "CustomNumeric7": 7,
          "CustomNumeric8": 8,
          "CustomNumeric9": 9,
          "CustomNumeric10": 10,
          "EntityUseCode": "",
          "Discounted" : ""
        }
      ]
    }
  }'
```

## Response

```
{
  "UserTranId": "620",
  "TranId": 43318383,
  "Status": "Success",
  "ReturnCode": 0,
  "TotalTaxAmount": 0.1300,
  "TransactionTaxes": [
    {
      "TransactionTaxAmounts": [],
      "SequenceId": 1,
      "TransactionLine": 1,
      "InvoiceLine": 10,
      "CountryCode": "USA",
      "Jurisdiction": "IL",
      "LocalJurisdiction": "17",
      "ProductCategory": 0.0,
      "TaxingLevel": "STA",
      "TaxType": "U",
      "RateType": "G",
      "RateSubtype": "NONE",
      "CalculationTypeInd": "P",
      "TaxRate": 0.062500,
      "TaxQuantity": 0.0,
      "TaxAmount": 0.1300,
      "TaxExemptionInd": "N",
      "SalesTaxBaseAmount": 2.0,
      "LicenseNumber": "",
      "UserReturnedValue": "Test_Vapor",
      "RateDescription": "IL STATE TAX - ILLINOIS",
      "Currency": "USD",
      "SubtotalInd": "C",
      "StatusCode": "ACTIVE",
      "QuantityInd": "B",
      "EntityUseCode": "",
      "TaxCode": "PS160811"
    }
  ],
  "TransactionErrors": [
    {
      "SequenceId": 1,
      "ErrorCode": "-858",
      "ErrorMessage": "Scenario PreProfile [1005004940] Lookup \"ALTERNATE_PRODUCT_CODE\" No value provided.",
      "ErrorLevelInd": "Warning"
    }
  ],
  "UserReturnValue": "93344235-777a-4dbd-8bf6-99a307f24b65"
}
```