# Import VAT deferment

Source: https://developer.avalara.com/vat-erp/test-transactions/input-vat/import-vat-deferment/

This example shows how to create a transaction with deferred import VAT. For this transaction, the AvaTax UI will display an output line (payable VAT) and an input line (deductible VAT). These reflect the import VAT payable and deductible tax that the user needs to self-assess and report on their VAT return. In some countries, this method of self-assessing the VAT is also commonly known as a reverse charge. The output VAT and input VAT calculated by AvaTax are shown under the `taxCalculated` field.

## Returned invoice messages

-   None

## Related articles

The response returns the following articles when you run your transaction using `"debugLevel": "Diagnostic"`:

-   None

## Assumptions

In this example:

-   The document `type` is a customs invoice.

-   The `shipFrom` country is the US.

-   The `shipTo` country is Spain.

-   The `import` country is Spain, which is a country with an import VAT deferment regime.

-   The tax code provided relates to goods.

-   The `IsImportVATDeferment` parameter is set to `true`. This can also be set at the company level via the Settings section **Where you collect tax** or at the transaction level as a parameter for each specific transaction.

-   The user passed a tax override.

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

```
"lines": [    {      "number": "1",      "quantity": "1",      "amount": "100",      "taxCode": "P000000",      "discounted": false,      "taxIncluded": false,      "parameters": [          {              "name": "IsImportVatDeferment",               "value": "True",                "unit": ""          }      ],      "taxOverride": {          "type": "TaxAmountByTaxType",          "taxAmountByTaxTypes": [                {                      "taxTypeId": "I",                  "taxAmount": "50"              }          ],          "reason": "TEST"      }    }  ],  "addresses": {    "shipFrom": {      "line1": "900 WINSLOW WAY E",      "city": "Bainbridge Island",      "region": "WA",      "country": "USA",      "postalCode": ""    },    "shipTo": {      "line1": "",      "city": "",      "region": "",      "country": "ES",      "postalCode": ""    },    "import": {      "line1": "",      "city": "",      "region": "",      "country": "ES",      "postalCode": ""    }  },  "type": "CustomsInvoice",  "date": "202-07-22",  "code": "Import VAT deferment example",  "debugLevel": "Diagnostic",  "detailLevel": "Diagnostic",  "customerCode": "ABC",  "companyCode": "USECASESLTD",  "isSellerImporterOfRecord": true
```

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

```
{  "id": 85061577012906,  "code": "Import VAT deferment example",  "companyId": 7921876,  "date": "2024-07-22",  "status": "Saved",  "type": "CustomsInvoice",  "batchCode": "",  "currencyCode": "USD",  "exchangeRateCurrencyCode": "USD",  "customerUsageType": "",  "entityUseCode": "",  "customerVendorCode": "ABC",  "customerCode": "ABC",  "exemptNo": "",  "reconciled": false,  "locationCode": "",  "reportingLocationCode": "",  "purchaseOrderNo": "",  "referenceCode": "",  "salespersonCode": "",  "taxOverrideType": "None",  "taxOverrideAmount": 0,  "taxOverrideReason": "",  "totalAmount": 100,  "totalExempt": 0,  "totalDiscount": 0,  "totalTax": 50,  "totalTaxable": 100,  "totalTaxCalculated": 21,  "adjustmentReason": "NotAdjusted",  "adjustmentDescription": "",  "locked": false,  "region": "",  "country": "ES",  "version": 1,  "softwareVersion": "24.7.0.0",  "originAddressId": 85061577012908,  "destinationAddressId": 85061577012907,  "exchangeRateEffectiveDate": "2024-07-22",  "exchangeRate": 1,  "isSellerImporterOfRecord": false,  "email": "",  "businessIdentificationNo": "",  "modifiedDate": "2024-07-22T18:24:59.1582701Z",  "modifiedUserId": 1443662,  "taxDate": "2024-07-22",  "lines": [    {      "id": 85061577012913,      "transactionId": 85061577012906,      "lineNumber": "1",      "boundaryOverrideId": 0,      "customerUsageType": "",      "entityUseCode": "",      "description": "",      "destinationAddressId": 85061577012907,      "originAddressId": 85061577012908,      "discountAmount": 0,      "discountTypeId": 0,      "exemptAmount": 0,      "exemptCertId": 0,      "exemptNo": "",      "isItemTaxable": true,      "isSSTP": false,      "itemCode": "",      "lineAmount": 100,      "quantity": 1,      "ref1": "",      "ref2": "",      "reportingDate": "2024-07-22",      "revAccount": "",      "sourcing": "Destination",      "tax": 50,      "taxableAmount": 100,      "taxCalculated": 21,      "taxCode": "P0000000",      "taxCodeId": 8087,      "taxDate": "2024-07-22",      "taxEngine": "",      "taxOverrideType": "TaxAmountByTaxType",      "businessIdentificationNo": "",      "taxOverrideAmount": 50,      "taxOverrideReason": "TEST",      "taxAmountByTaxTypes": [        {          "taxTypeId": "I",          "taxAmount": 50        }      ],      "taxIncluded": false,      "details": [        {          "id": 85061577012940,          "transactionLineId": 85061577012913,          "transactionId": 85061577012906,          "addressId": 85061577012907,          "country": "ES",          "region": "ES",          "countyFIPS": "",          "stateFIPS": "ES",          "exemptAmount": 0,          "exemptReasonId": 4,          "exemptRuleId": 0,          "inState": false,          "jurisCode": "ES",          "jurisName": "SPAIN",          "jurisdictionId": 200082,          "signatureCode": "",          "stateAssignedNo": "",          "jurisType": "CNT",          "jurisdictionType": "Country",          "nonTaxableAmount": 0,          "nonTaxableRuleId": 0,          "nonTaxableType": "RateRule",          "rate": 0.21,          "rateRuleId": 697449,          "rateSourceId": 0,          "serCode": "",          "sourcing": "Destination",          "tax": 50,          "taxableAmount": 100,          "taxType": "Input",          "taxSubTypeId": "I",          "taxTypeGroupId": "InputAndOutput",          "taxName": "Standard Rate",          "taxAuthorityTypeId": 45,          "taxRegionId": 205082,          "taxCalculated": 21,          "taxOverride": 50,          "rateType": "Standard",          "rateTypeCode": "S",          "taxableUnits": 100,          "nonTaxableUnits": 0,          "exemptUnits": 0,          "unitOfBasis": "PerCurrencyUnit",          "isNonPassThru": false,          "isFee": false,          "reportingTaxableUnits": 100,          "reportingNonTaxableUnits": 0,          "reportingExemptUnits": 0,          "reportingTax": 50,          "reportingTaxCalculated": 21,          "liabilityType": "Seller",          "chargedTo": "Buyer"        }      ],      "nonPassthroughDetails": [],      "lineLocationTypes": [        {          "documentLineLocationTypeId": 85061577012915,          "documentLineId": 85061577012913,          "documentAddressId": 85061577012908,          "locationTypeCode": "ShipFrom"        },        {          "documentLineLocationTypeId": 85061577012916,          "documentLineId": 85061577012913,          "documentAddressId": 85061577012907,          "locationTypeCode": "ShipTo"        },        {          "documentLineLocationTypeId": 85061577012917,          "documentLineId": 85061577012913,          "documentAddressId": 85061577012907,          "locationTypeCode": "Import"        }      ],      "parameters": [        {          "name": "IOSSRegNo",          "value": "987654321"        },        {          "name": "Transport",          "value": "Seller"        },        {          "name": "IsMarketplace",          "value": "False"        },        {          "name": "SupplyofService",          "value": "Generic"        },        {          "name": "IsTriangulation",          "value": "false"        },        {          "name": "IsGoodsSecondHand",          "value": "false"        },        {          "name": "IsImportVatDeferment",          "value": "True"        }      ],      "hsCode": "",      "costInsuranceFreight": 0,      "vatCode": "ESU-210C",      "vatNumberTypeId": 0    }  ],  "addresses": [    {      "id": 85061577012907,      "transactionId": 85061577012906,      "boundaryLevel": "Zip5",      "line1": "",      "line2": "",      "line3": "",      "city": "",      "region": "",      "postalCode": "",      "country": "ES",      "taxRegionId": 205082    },    {      "id": 85061577012908,      "transactionId": 85061577012906,      "boundaryLevel": "Address",      "line1": "900 Winslow Way E",      "line2": "",      "line3": "",      "city": "Bainbridge Island",      "region": "WA",      "postalCode": "98110-2450",      "country": "US",      "taxRegionId": 2109716,      "latitude": "47.624937",      "longitude": "-122.510324"    }  ],  "locationTypes": [    {      "documentLocationTypeId": 85061577012910,      "documentId": 85061577012906,      "documentAddressId": 85061577012908,      "locationTypeCode": "ShipFrom"    },    {      "documentLocationTypeId": 85061577012911,      "documentId": 85061577012906,      "documentAddressId": 85061577012907,      "locationTypeCode": "ShipTo"    },    {      "documentLocationTypeId": 85061577012912,      "documentId": 85061577012906,      "documentAddressId": 85061577012907,      "locationTypeCode": "Import"    }  ],  "summary": [    {      "country": "ES",      "region": "ES",      "jurisType": "Country",      "jurisCode": "ES",      "jurisName": "SPAIN",      "taxAuthorityType": 45,      "stateAssignedNo": "",      "taxType": "Input",      "taxSubType": "I",      "taxName": "Standard Rate",      "taxable": 100,      "rate": 0.21,      "tax": 50,      "taxCalculated": 21,      "nonTaxable": 0,      "exemption": 0    }  ],  "messages": [    {      "summary": "C - Using JAAS",      "details": "\n    Address: 900 Winslow Way E, Bainbridge Island, WA 98110-2450 US, TaxRegion:2109716, Latitude: 47.624937°, Longitude: -122.510324° \n    AddressCode: ORIG2\n    AddressType: H\n    BoundaryId: 2109716\n    CarrierRoute: C051\n    County: Kitsap\n    FipsCode: 5303503736\n    GeocodeType: StreetLevel\n    PostNet: 981102450992\n    Reason: WA is SST state, but Account is non-CSP\n    ValidateStatus: ANormalHit\n    TaxRegionId: 2109716\n",      "refersTo": "Addresses[0] - TaxDate: 2024-07-22 00:00:00Z",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "Global Address",      "details": "\n    Address: ES\n    AddressCode: DEST3\n    AddressType: \n    BoundaryId: 0\n    CarrierRoute: \n    County: \n    FipsCode: \n    GeocodeType: NotGeoCoded\n    PostNet: \n    Reason: \n    ValidateStatus: Not Validated.\n    TaxRegionId: 0\n",      "refersTo": "Addresses[1] - TaxDate: 2024-07-22 00:00:00Z",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "JurisdictionOverrideParameters",      "details": "AccountId = 1100161769 , AddressRng = 900, StreetPre = , StreetName = WINSLOW, StreetSuffix = WAY, StreetPost = E, City = Bainbridge Island, State = WA, Zip = 98110, Plus4 = 2450, DocDate = 07/22/2024 00:00:00, IsSst = 0, JurisXML= null",      "refersTo": "900 Winslow Way E, Bainbridge Island, WA 98110-2450 US 2109716",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "AddressLocationType: ShipFrom",      "details": "\n    Address: 900 Winslow Way E, Bainbridge Island, WA 98110-2450\n    Type: Input TaxRegionId\n    City: BAINBRIDGE ISLAND\n    State: WA\n    County: KITSAP\n    Country: US\n    BoundaryLevel: 0\n    BoundarySource: TaxRegionGeometry\n    BoundaryId: 2109716\n    TaxRegionId: 2109716\n    FIPSCode: 5303503736\n    CitySignature: BVXY\n    GEOCode: \n    Jurisdictions: \n        STA: JurisdictionId=\"61\" JurisdictionCode=\"53\" JurisdictionTypeId=\"STA\" LongName=\"WASHINGTON\" StateFips=\"53\" State=\"WA\" StateAssignedCode=\"\" SerCode=\"01804\" SignatureCode=\"BVPJ\" TaxAuthorityTypeId=\"0\" IsLocalAdmin=\"False\" EffDate=\"1900-01-01\" EndDate=\"9999-12-31\"\n        CTY: JurisdictionId=\"2987\" JurisdictionCode=\"035\" JurisdictionTypeId=\"CTY\" LongName=\"KITSAP\" StateFips=\"53\" State=\"WA\" StateAssignedCode=\"1800\" SerCode=\"01804\" SignatureCode=\"BVXV\" TaxAuthorityTypeId=\"0\" IsLocalAdmin=\"False\" EffDate=\"1900-01-01\" EndDate=\"9999-12-31\"\n        CIT: JurisdictionId=\"167883\" JurisdictionCode=\"03736\" JurisdictionTypeId=\"CIT\" LongName=\"BAINBRIDGE ISLAND\" StateFips=\"53\" State=\"WA\" StateAssignedCode=\"1804\" SerCode=\"01804\" SignatureCode=\"BVXY\" TaxAuthorityTypeId=\"0\" IsLocalAdmin=\"False\" EffDate=\"1900-01-01\" EndDate=\"9999-12-31\"\n",      "refersTo": "Addresses[0];Line[\"1\"]",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "AddressLocationType: ShipTo",      "details": "\n    Address: ,, \n    Type: \n    City: \n    State: \n    County: \n    Country: ES\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 33\n    TaxRegionId: 205082\n    FIPSCode: ES\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200082\" JurisdictionCode=\"ES\" JurisdictionTypeId=\"CNT\" LongName=\"SPAIN\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YADG\" TaxAuthorityTypeId=\"\" IsLocalAdmin=\"False\" EffDate=\"2008-07-01\" EndDate=\"9999-12-31\"\n",      "refersTo": "Addresses[1]",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "AddressLocationType: Import",      "details": "\n    Address: ,, \n    Type: \n    City: \n    State: \n    County: \n    Country: ES\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 33\n    TaxRegionId: 205082\n    FIPSCode: ES\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200082\" JurisdictionCode=\"ES\" JurisdictionTypeId=\"CNT\" LongName=\"SPAIN\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YADG\" TaxAuthorityTypeId=\"\" IsLocalAdmin=\"False\" EffDate=\"2008-07-01\" EndDate=\"9999-12-31\"\n",      "refersTo": "Addresses[1]",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "MissingHSCodeWarning",      "details": "No HSCode provided. Import Duty could not be calculated.",      "refersTo": "LineNo : 1",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "TaxTypes",      "details": "    Line[0]: \n        TaxTypeId : I\n",      "refersTo": "",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "Tax Rules",      "details": "\nTaxRule[TaxType:I][TaxSubType:I]: Nexus CNT\n    TaxRuleId: 0\n    Cap: 0\n    CompanyId: 7921876\n    Country: ES\n    CustomerUsageType: \n    EffDate: 01/01/1900\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: ES\n    JurisName: SPAIN\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: ES\n    StateAssignedNo: \n    TaxCode: \n    TaxCodeId: 0\n    TaxName: ES VAT\n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: I\n    TaxSubTypeId: I\n    TaxTypeMappingId: 349\n    Threshold: 0\n    Value: 1\n    RateSourceId: None\n    RateTypeId: S\n    RateTypeTaxTypeMappingId: 1348\n    UnitOfBasis: PerCurrencyUnit\n    UnitOfBasisId: 13\n    AttributeOptionsId: \n    AttributeOptions: \n    AttributeApplicabilityId: \n    AttributeApplicability: \n    ReturnsDeductionID: 0\n    ReturnsRateID: 0\n    ReturnsTaxTypeID: 0\n    NonPassThruExpressionId: \n    NonPassThruExpression: \n    CurrencyCode: \n    RequestCurrencyCode: USD\n    UOMId: 0\n    PreferredProgramId: 0\n\nTaxRule[TaxType:I][TaxSubType:I]: ProductTaxabilityRule CNT\n    TaxRuleId: 1910529\n    Cap: 0.000000\n    CompanyId: 1\n    Country: ES\n    CustomerUsageType: \n    EffDate: 01/01/2015\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: ES\n    JurisName: SPAIN\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: ES\n    StateAssignedNo: \n    TaxCode: P0000000\n    TaxCodeId: 8087\n    TaxName: Tangible Personal Property (TPP)\n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: I\n    TaxSubTypeId: I\n    TaxTypeMappingId: 349\n    Threshold: 0.000000\n    Value: 1.000000\n    RateSourceId: None\n    RateTypeId: S\n    RateTypeTaxTypeMappingId: 1368\n    UnitOfBasis: PerCurrencyUnit\n    UnitOfBasisId: 13\n    AttributeOptionsId: \n    AttributeOptions: \n    AttributeApplicabilityId: \n    AttributeApplicability: \n    ReturnsDeductionID: -1\n    ReturnsRateID: -1\n    ReturnsTaxTypeID: -1\n    NonPassThruExpressionId: \n    NonPassThruExpression: \n    CurrencyCode: USD\n    RequestCurrencyCode: USD\n    UOMId: 0\n    PreferredProgramId: 0\n\nTaxRule[TaxType:I][TaxSubType:I]: RateRule CNT\n    TaxRuleId: 697449\n    Cap: 0.000000\n    CompanyId: 1\n    Country: ES\n    CustomerUsageType: \n    EffDate: 09/01/2012\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: ES\n    JurisName: SPAIN\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: ES\n    StateAssignedNo: \n    TaxCode: \n    TaxCodeId: 0\n    TaxName: Standard Rate\n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: I\n    TaxSubTypeId: I\n    TaxTypeMappingId: 349\n    Threshold: 0.000000\n    Value: 0.210000\n    RateSourceId: None\n    RateTypeId: S\n    RateTypeTaxTypeMappingId: 1368\n    UnitOfBasis: PerCurrencyUnit\n    UnitOfBasisId: 13\n    AttributeOptionsId: \n    AttributeOptions: \n    AttributeApplicabilityId: \n    AttributeApplicability: \n    ReturnsDeductionID: -1\n    ReturnsRateID: -1\n    ReturnsTaxTypeID: -1\n    NonPassThruExpressionId: \n    NonPassThruExpression: \n    CurrencyCode: USD\n    RequestCurrencyCode: USD\n    UOMId: 0\n    PreferredProgramId: 0\n",      "refersTo": "Lines[\"1\"]",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "Parameters",      "details": "    Line[1]= 1\n        Parameter[1]= \n        Name= IsInterCountry\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[2]= \n        Name= IsIntraEUTransaction\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[3]= \n        Name= IsIndiaGSTTransaction\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[4]= \n        Name= IsSst\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[5]= \n        Name= PlaceOfSupplyState\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[6]= \n        Name= PlaceOfSupplyCountry\n        Value= ES\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[7]= \n        Name= IsEUSellerEstablishmentCountryMutualAssist\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[8]= \n        Name= IsSellerNotOptedOrBelowDistanceThreshold\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[9]= \n        Name= IsNZGoodsConsignmentValueBelow1000NZD\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[10]= \n        Name= IsAUGoodsConsignmentValueBelow1000AUD\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[11]= \n        Name= IsNOGoodsConsignmentValueBelow3000NOK\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[12]= \n        Name= IsEUGoodsConsignmentValueBelow150EUR\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[13]= \n        Name= IsUKGoodsConsignmentValueBelow135GBP\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[14]= \n        Name= IsCustomerRegisteredThroughFiscalRep\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[15]= \n        Name= IsEUDistanceSalesThresholdExceeded\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[16]= \n        Name= HasPermanentEstablishmentInDest\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[17]= \n        Name= IsIndiaGSTPurchaseReverseCharge\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[18]= \n        Name= IsSupplierNonTaxableLegalPerson\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[19]= \n        Name= IsCountryOfManufacturePunitive\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[20]= \n        Name= IsSpecialArrangementByCarrier\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[21]= \n        Name= UserEstablishmentCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[22]= \n        Name= HasBusinessIdentificationNo\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[23]= \n        Name= ImportVatDefermentCountries\n        Value= ES\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[24]= \n        Name= CompanyLocationAddressType\n        Value= Location\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[25]= \n        Name= UserEstablishmentCountries\n        Value= GB,EE,CH,DE\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[26]= \n        Name= IndiaGSTEnabledForAccount\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[27]= \n        Name= IsSellerImporterOfRecord\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[28]= \n        Name= IsAssemblyOrInstallation\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Company\n        Parameter[29]= \n        Name= DestCountryNexusTypeId\n        Value= 1\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[30]= \n        Name= RemoteSellerStatesList\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[31]= \n        Name= HasAvaTaxGlobalService\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[32]= \n        Name= LC_SystemCustomsValue\n        Value= CIF\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[33]= \n        Name= DestStateNexusTypeId\n        Value= 1\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[34]= \n        Name= ShipFromCountryGroup\n        Value= US\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[35]= \n        Name= IsImportVatDeferment\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[36]= \n        Name= HasSameCountryGroup\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[37]= \n        Name= B2BServiceCountries\n        Value= MX,MY,ZA,RU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[38]= \n        Name= IsBelowRdfThreshold\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Nexus\n        Parameter[39]= \n        Name= ImportCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[40]= \n        Name= ShipToCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[41]= \n        Name= DestinationCountry\n        Value= ES\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[42]= \n        Name= IsGoodsSecondHand\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Line\n        Parameter[43]= \n        Name= DestCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[44]= \n        Name= OrigCountryGroup\n        Value= US\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[45]= \n        Name= DestinationState\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[46]= \n        Name= IsTriangulation\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Line\n        Parameter[47]= \n        Name= SupplyofService\n        Value= Generic\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[48]= \n        Name= ProductCodeType\n        Value= P\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[49]= \n        Name= ShipFromCountry\n        Value= US\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[50]= \n        Name= HasSameCountry\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[51]= \n        Name= CompanyCountry\n        Value= GB\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[52]= \n        Name= DocumentAmount\n        Value= 100\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[53]= \n        Name= HasSameRegion\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[54]= \n        Name= IsMarketplace\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[55]= \n        Name= ImportCountry\n        Value= ES\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[56]= \n        Name= IsSelfBilling\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[57]= \n        Name= ShipToCountry\n        Value= ES\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[58]= \n        Name= OriginCountry\n        Value= US\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[59]= \n        Name= TaxableAmount\n        Value= 100\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[60]= \n        Name= HasDestNexus\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[61]= \n        Name= HasExemptNo\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[62]= \n        Name= OriginState\n        Value= WA\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[63]= \n        Name= Applicable\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[64]= \n        Name= IsPhysical\n        Value= true\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[65]= \n        Name= LineAmount\n        Value= 100\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[66]= \n        Name= TaxSystem\n        Value= VAT\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[67]= \n        Name= Transport\n        Value= Seller\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[68]= \n        Name= IOSSRegNo\n        Value= 987654321\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[69]= \n        Name= TaxCode\n        Value= P0000000\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[70]= \n        Name= DocType\n        Value= Customs\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[71]= \n        Name= Qty\n        Value= 1\n        UOMId= 332\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n",      "refersTo": "",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "Document Details",      "details": "Document\n    CompanyId: 7921876\n    CurrencyCode: USD\n    CustomerVendorCode: ABC\n    CustomerUsageType: \n    DocumentCode: Import VAT deferment example\n    DocumentDate: 07/22/2024\n    DocumentId: 85061577012906\n    DocumentLineCount: 1\n    DocumentStatusId: 1\n    DocumentTypeId: 10\n    ExemptNo: \n    Business Identification No: \n    IsReconciled: False\n    LocationCode: \n    ModifiedDate: 07/22/2024 18:24:59\n    ModifiedUserId: 1443662\n    PaymentDate: 01/01/1900\n    PurchaseOrderNo: \n    ReferenceCode: \n    SalespersonCode: \n    TaxDate: 07/22/2024\n    TaxOverrideTypeId: 0\n    TaxOverrideAmount: 0\n    TaxOverrideReason: \n    TotalAmount: 100\n    TotalTax: 50.0000\n    TotalTaxCalculated: 21.0000\n    ExchangeRate: 1.0\n    ExchangeRateCurrencyCode: USD\n    ExchangeRateEffDate: 07/22/2024 00:00:00\n    DeliveryTerms: \n    VATNumberType No registration\n    DocumentAddress[0]: \n        Line1: \n        City: \n        Region: \n        County: \n        Country: ES\n        BoundaryId: 33\n        BoundaryLevelId: 2\n        BoundarySource: BoundaryGlobal\n        CitySignature: \n        DocumentAddressId: 85061577012907\n        GeocodeTypeId: NotGeoCoded\n        JurisCode: ES\n        PostalCode: \n        TaxRegionId: 205082\n        ValidateStatusId: Not Validated.\n        AddressLine1: \n        AddressLine2: \n        AddressLine3: \n    DocumentAddress[1]: \n        Line1: 900 Winslow Way E\n        City: Bainbridge Island\n        Region: WA\n        County: KITSAP\n        Country: US\n        BoundaryId: 2109716\n        BoundaryLevelId: 0\n        BoundarySource: TaxRegionGeometry\n        CitySignature: BVXY\n        DocumentAddressId: 85061577012908\n        GeocodeTypeId: StreetLevel\n        JurisCode: 5303503736\n        PostalCode: 98110-2450\n        TaxRegionId: 2109716\n        ValidateStatusId: ANormalHit\n        AddressLine1: 900 Winslow Way E\n        AddressLine2: \n        AddressLine3: \n    Line[0]: \n        AccountingMethodId: 0 (Accrual)\n        BoundaryLevelId: 2\n        BoundaryOverrideId: 0\n        CustomerUsageType: \n        Description: \n        DestinationAddressId: 85061577012907\n        DiscountAmount: 0\n        DiscountTypeId: 0\n        DocumentLineId: 85061577012913\n        ExemptAmount: 0\n        ExemptCertId: 0\n        ExemptNo: \n        Business Identification No: \n        InState: False\n        IsPhysical: True\n        IsSstp: False\n        ItemCode: \n        LineAmount: 100\n        LineNo: 1\n        OriginAddressId: 85061577012908\n        Quantity: 1\n        Ref1: \n        Ref2: \n        RevAccount: \n        Sourcing: D\n        IsItemTaxable: True\n        ReportingDate: 07/22/2024\n        Tax: 50.0000\n        TaxableAmount: 100\n        TaxCalculated: 21.0000\n        TaxDate: 07/22/2024\n        TaxCode: P000000\n        TaxCodeId: 8087 (P0000000)\n        TaxOverrideTypeId: 7\n        TaxAmountByTaxType: I Amount(50)\n        TaxOverrideReason: TEST\n        VATCode: ESU-210C\n        VATNumberType: No registration\n        HSCodeUsed: \n        HSCode: \n        HSCodeId: 0\n        CIF: 0.0\n        DeemedSupplier: \n        Category: \n        Summary: \n        Detail[0]: ES CNT ES\n            DocumentLineDetailId: 85061577012940\n            AddressId: 85061577012907\n            AVTUserBIN : \n            Country: ES\n            ExemptAmount: 0.0000\n            ExemptUnits: 0.0000\n            ExemptReasonId: 4 (NoExempt)\n            ExemptRuleId: 0\n            InState: False\n            JurisCode: ES\n            JurisdictionId: 200082\n            JurisName: SPAIN\n            JurisTypeId: CNT\n            NonTaxableAmount: 0.0000\n            NonTaxableUnits: 0.0000\n            NonTaxableRuleId: 0\n            NonTaxableTypeId: 0\n            Options: \n            Rate: 0.210000\n            RateRuleId: 697449\n            RateSourceId: None\n            Region: ES\n            SERCode: \n            Sourcing: D\n            StateCode: ES\n            StateAssignedNo: \n            TaxAuthorityId: 0\n            Tax: 50.0000\n            TaxableAmount: 100.0000\n            TaxableUnits: 100.0000\n            UnitOfBasis: PerCurrencyUnit\n            UnitOfBasisId: 13\n            TaxCalculated: 21.0000\n            TaxName: Standard Rate\n            TaxOverride: 50.0000\n            TaxTypeGroupId: InputAndOutput\n            TaxTypeId: I\n            TaxSubTypeId: I\n            RateTypeId: S\n            IsFee: False\n            TaxTypeMappingId: 349\n            RateTypeTaxTypeMappingId: 1368\n            TaxRegionId: 205082\n           *Cap: 0\n           *Threshold: 0\n            TaxAuthorityTypeId: 45\n            TaxAuthorityId: 0\n            TaxAuthorityName: 0\n            ReportLevel: 0\n            IsNonPassThru: False\n            ReportingTaxableUnits: 100\n            ReportingNonTaxableUnits: 0\n            ReportingExemptUnits: 0\n            ReportingTax: 50\n            ReportingTaxCalculated: 21\n            AVTUserBIN : \n",      "refersTo": "",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "SourcingRules applied for the transaction, XML format",      "details": "<?xml version=\"1.0\" encoding=\"utf-16\"?><ArrayOfSourcingRuleApplied xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><SourcingRuleApplied><LineNo>1</LineNo><SourcingRuleId_Sourcing>1980</SourcingRuleId_Sourcing><Sourcing>D</Sourcing><SourcingRuleId_RateType>1981</SourcingRuleId_RateType><RateType>S</RateType><SourcingRuleId_JurisTypesApplicableId>0</SourcingRuleId_JurisTypesApplicableId><JurisTypesApplicableId>31</JurisTypesApplicableId></SourcingRuleApplied></ArrayOfSourcingRuleApplied>",      "refersTo": "",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    },    {      "summary": "SourcingRules applied for the transaction, JSON format",      "details": "[{\"LineNo\":\"1\",\"SourcingRuleId_Sourcing\":1980,\"Sourcing\":\"D\",\"SourcingRuleId_RateType\":1981,\"RateType\":\"S\",\"SourcingRuleId_JurisTypesApplicableId\":0,\"JurisTypesApplicableId\":31}]",      "refersTo": "",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    }  ],  "apStatusCode": null,  "apStatus": null}
```