# Estimate taxes for core requirements

Source: https://developer.avalara.com/products/crossborder/integration-guides/avatax-for-cdit/idg1093146173187/

Guide: AvaTax Cross-Border (Customs Duty and Import Tax)

# Estimate taxes for core requirements

Learn how to create a sales order transaction to estimate taxes for shipping an item.

This example creates a sales order transaction to estimate the taxes that AvaTax will calculate when you ship an item. This example doesn’t use a tariff code. Instead, the calculation relies on the `category` and `description`. Specifically in this example:

-   The document `type` is a sales order.
-   The `shipFrom` address is in the U.S..
-   The `shipTo` address is in Germany.
-   The `amount` charged for the item is $950 USD.
-   The `taxCode` is P00000000.
-   The `description` is "Cuban Links".
-   The `category` is "Man > Jewelry; Gold > Bracelet".
-   The `deliveryTerms` are DDP.

The response shows the total tax and detailed information about amounts for each tax type.

**Example request**

Create the quote:

```
{
  "lines": [
    {
      "number": "1",
      "quantity": 1,
      "amount": 950,
      "itemCode": "SKU 1000.6",
      "taxCode": "P00000000",
      "description": "Cuban Links",
      "category": "Man > Jewelry ; Gold > Bracelet",
      "taxIncluded" : false
    }
    // Send Freight and Insurance as separate lines where applicable with appropriate Avalara goods and service code
  ],
  "type": "SalesOrder",
  "code":  "Bracelets",
  "referenceCode" : "Bracelets",
  "companyCode": "DEFAULT",
  "date": "11-21-2021",
  "customerCode": "test-customer",
  "addresses": {
    "shipFrom": {
      "line1": "",
      "city": "",
      "region": "WA",
      "country": "US",
      "postalCode": "98110"
    },
    "shipTo": {
      "line1": "",
      "city": "",
      "region": "",
      "country": "DE",
      "postalCode": ""
    }
  },
  "deliveryTerms": "DDP",
  "currencyCode": "USD",
  "commit" : false
}
```

**Example response**

The response returns a total tax of 251.72 USD broken down into Landed Cost and Output tax types.

```
{
  "id": 0
  ...
  "totalAmount": 950,
  "totalExempt": 0,
  "totalDiscount": 0,
  "totalTax": 251.72,
  "totalTaxable": 1009.85,
  "totalTaxCalculated": 251.72,
  ...
  "summary": [
    {
      "country": "DE",
      "region": "DE",
      "jurisType": "Country",
      "jurisCode": "DE",
      "jurisName": "GERMANY",
      "taxAuthorityType": 45,
      "stateAssignedNo": "",
      "taxType": "LandedCost",
      "taxSubType": "ImportDuty",
      "taxName": "DE LandedCost",
      "rateType": "Standard",
      "taxable": 950,
      "rate": 0.063,
      "tax": 59.85,
      "taxCalculated": 59.85,
      "nonTaxable": 0,
      "exemption": 0
    },
    {
      "country": "DE",
      "region": "DE",
      "jurisType": "Country",
      "jurisCode": "DE",
      "jurisName": "GERMANY",
      "taxAuthorityType": 45,
      "stateAssignedNo": "",
      "taxType": "Output",
      "taxSubType": "O",
      "taxName": "Standard",
      "rateType": "Standard",
      "taxable": 1009.85,
      "rate": 0.19,
      "tax": 191.87,
      "taxCalculated": 191.87,
      "nonTaxable": 0,
      "exemption": 0
    }
  ],
  ...
}
```