# Tax amount scenario

Source: https://developer.avalara.com/erp-integration-guide/test-transactions/core-sales/tax-amount-scenario/

This scenario determines that the Tax amount in AvaTax is the same as the tax amount in your platform on the invoice. This scenario assumes the following:

-   The `shipFrom` address is anywhere in the US.

-   The `shipTo` address is in Washington DC, so be sure that you configured your company to collect tax in Washington DC.

-   Line 1 `amount` is $100, and the `taxCode` is `P0000000`.

-   Line 2 `amount` is $100, and the `taxCode` is `NT`.

-   Line 3 `amount` is $50, and the `taxCode` is `FR020100`.

## Expected result

The Taxes\\Fees column should show $7.50. Remember that the freight is only 50% taxable in this scenario. In the cURL response below, look for the `totalTax` field in the response.

![A screenshot of AvaTax showing sales invoice tax amount scenario.](https://avalara-devdocs-prod.mcoutput.com/avatax-for-erps/Content/Resources/Images/DevDot/scenario-tax-amount_1017x468.png)  

## Example

[![Closed](https://avalara-devdocs-prod.mcoutput.com/avatax-for-erps/Content/Skins/Default/Stylesheets/Images/transparent.gif)View request](javascript:void\(0\);)

```
{  "lines": [    {      "number":"1",      "quantity":1,      "amount":100,      "taxCode":"P0000000",      "itemCode":"Test SKU",      "description":"Test Item Description",      "discounted": false    },    {      "number":"2",      "quantity":1,      "amount":100,      "taxCode":"NT",      "itemCode":"Test SKU",      "description":"Test Item Description",      "discounted": false    },    {      "number":"3",      "quantity":1,      "amount":50,      "taxCode":"FR020100",      "itemCode":"Freight SKU",      "description":"Common Carrier",      "discounted": false    }  ],  "addresses": {    "shipFrom":{      "line1":"100 Ravine Ln NE",      "city":"Bainbridge Island",      "region":"WA",      "country":"US",      "postalCode":"98110-2687"    },    "shipTo":{      "line1":"915 F St Nw",      "city":"Washington, DC",      "region":"Washington, DC",      "country":"US",      "postalCode":"20004-1493"    }  },   "code":"Tax amount scenario",  "type":"SalesInvoice",  "companyCode":"ATCWALTERS",  "date":"2024-06-26",  "customerCode":"Test Customer ID",  "commit":true,  "currencyCode":"USD"}
```

[![Closed](https://avalara-devdocs-prod.mcoutput.com/avatax-for-erps/Content/Skins/Default/Stylesheets/Images/transparent.gif)View response](javascript:void\(0\);)

```
{  ...,  "totalAmount": 250,  "totalExempt": 125,  "totalDiscount": 0,  "totalTax": 7.5,  "totalTaxable": 125,  "totalTaxCalculated": 7.5,   ... }
```