# Middleman sale

Source: https://developer.avalara.com/avatax-for-vat/zfc3278659126993/

# Middleman sale

Learn about creating a triangulation sales transaction where the Avalara client acts as a middleman.

This example shows how to create a triangulation sales transaction. In this scenario, the Avalara client is the middleman selling to their end customer.

## Returned invoice messages

-   Intra-Community triangular transaction outside of scope of local VAT per Art. 31 of EU Directive 2006/112/EC. VAT is due by the customer per Art. 141 and 197 of EU Directive 2006/112/EC

## Related articles

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

-   Article 31

-   Article 141

-   Article 197

## Assumptions

In this example:

-   The document `type` is a sales order.

-   The `shipFrom` country is Estonia.

-   The `shipTo` country is Portugal.

-   The `goodsPlaceOrServiceRendered` country is Portugal.

    -   In this case, you shouldn't have a VAT ID for Portugal in your Nexus settings.

    -   This country can't be the same as the `MiddlemanVatId`.

-   The `MiddlemanVatId` is from Germany.

    -   The country for this VAT ID can't be the same as the `goodsPlaceOrServiceRendered` country.

-   The `businessIdentificationNo` is `PT1234567`.

**Request**

```
{
"lines": [
    {
      "number": "1",
      "discounted": false,
      "amount": 100,
      "quantity": 1,
      "itemCode": "P001",
      "description": "Triangulation - Sale (middleman)",
      "taxCode": "P0000000",
      "taxIncluded": true
    }
  ],
  "companyCode": "USECASESLTD",
  "date": "2024-07-22",
  "type": "SalesOrder",
  "code": "p2_15_600",
  "description": "Triangulation - Sale (middleman)",
  "customerCode": "C001",
  "customerSupplierName": "Cartwright - Leffler",
  "businessIdentificationNo": "PT1234567",
  "commit": false,
  "isSellerImporterOfRecord": true,
  "currencyCode": "EUR",
  "addresses": {
    "shipFrom": {
      "line1": "",
      "city": "",
      "region": "",
      "country": "EE",
      "postalCode": ""
    },
    "shipTo": {
      "line1": "",
      "city": "",
      "region": "",
      "country": "PT",
      "postalCode": ""
    },
    "pointOfOrderAcceptance": {
      "line1": "",
      "city": "",
      "region": "",
      "country": "DE",
      "postalCode": ""
    },
    "pointOfOrderOrigin": {
      "line1": "",
      "city": "",
      "region": "",
      "country": "PT",
      "postalCode": ""
    },
    "goodsPlaceOrServiceRendered": {
      "line1": "",
      "city": "",
      "region": "",
      "country": "PT",
      "postalCode": ""
    },
    "import": {
      "line1": "",
      "city": "",
      "region": "",
      "country": "PT",
      "postalCode": ""
    }
  },
  "parameters": [
    {
      "name": "Transport",
      "value": "None"
    },
    {
      "name": "MiddlemanVatId",
      "value": "DE2345678"
    },
    {
      "name": "IsTriangulation",
      "value": "TRUE"
    }
  ],
  "debugLevel": "Diagnostic"
}
```

**Response**

```
{
  "id": 0,
  "code": "p2_15_600",
  "companyId": 7921876,
  "date": "2024-07-22",
  "paymentDate": "2024-07-22",
  "status": "Temporary",
  "type": "SalesOrder",
  "batchCode": "",
  "currencyCode": "EUR",
  "exchangeRateCurrencyCode": "EUR",
  "customerUsageType": "",
  "entityUseCode": "",
  "customerVendorCode": "C001",
  "customerCode": "C001",
  "customerSupplierName": "Cartwright - Leffler",
  "exemptNo": "",
  "reconciled": false,
  "locationCode": "",
  "reportingLocationCode": "",
  "purchaseOrderNo": "",
  "referenceCode": "",
  "salespersonCode": "",
  "totalAmount": 100,
  "totalExempt": 0,
  "totalDiscount": 0,
  "totalTax": 0,
  "totalTaxable": 100,
  "totalTaxCalculated": 0,
  "adjustmentReason": "NotAdjusted",
  "locked": false,
  "version": 1,
  "exchangeRateEffectiveDate": "2024-07-22",
  "exchangeRate": 1,
  "isSellerImporterOfRecord": false,
  "description": "Triangulation - Sale (middleman)",
  "modifiedDate": "2024-07-22T18:32:31.7790354Z",
  "modifiedUserId": 1443662,
  "taxDate": "2024-07-22",
  "lines": [
    {
      "id": 0,
      "transactionId": 0,
      "lineNumber": "1",
      "customerUsageType": "",
      "entityUseCode": "",
      "description": "Triangulation - Sale (middleman)",
      "discountAmount": 0,
      "exemptAmount": 0,
      "exemptCertId": 0,
      "exemptNo": "",
      "isItemTaxable": true,
      "itemCode": "P001",
      "lineAmount": 100,
      "quantity": 1,
      "ref1": "",
      "ref2": "",
      "reportingDate": "2024-07-22",
      "revAccount": "",
      "sourcing": "Destination",
      "tax": 0,
      "taxableAmount": 100,
      "taxCalculated": 0,
      "taxCode": "P0000000",
      "taxCodeId": 8087,
      "taxDate": "2024-07-22",
      "taxIncluded": true,
      "details": [
        {
          "id": 0,
          "transactionLineId": 0,
          "transactionId": 0,
          "country": "DE",
          "region": "DE",
          "stateFIPS": "DE",
          "exemptAmount": 0,
          "jurisCode": "DE",
          "jurisName": "GERMANY",
          "jurisdictionId": 200079,
          "stateAssignedNo": "",
          "jurisType": "CNT",
          "jurisdictionType": "Country",
          "nonTaxableAmount": 0,
          "rate": 0,
          "sourcing": "Destination",
          "tax": 0,
          "taxableAmount": 100,
          "taxType": "Output",
          "taxSubTypeId": "O",
          "taxName": "Zero Rate",
          "taxAuthorityTypeId": 45,
          "taxCalculated": 0,
          "rateType": "Zero",
          "rateTypeCode": "Z",
          "taxableUnits": 100,
          "nonTaxableUnits": 0,
          "exemptUnits": 0,
          "unitOfBasis": "PerCurrencyUnit",
          "isNonPassThru": false,
          "isFee": false,
          "reportingTaxableUnits": 100,
          "reportingNonTaxableUnits": 0,
          "reportingExemptUnits": 0,
          "reportingTax": 0,
          "reportingTaxCalculated": 0,
          "avtUserBIN": "DE999999999",
          "liabilityType": "Seller",
          "chargedTo": "Buyer"
        }
      ],
      "nonPassthroughDetails": [],
      "hsCode": "",
      "costInsuranceFreight": 0,
      "vatCode": "DEST000C",
      "vatNumberTypeId": 0
    }
  ],
  "addresses": [
    {
      "id": 0,
      "transactionId": 0,
      "boundaryLevel": "Zip5",
      "line1": "",
      "line2": "",
      "line3": "",
      "city": "",
      "region": "",
      "postalCode": "",
      "country": "PT",
      "taxRegionId": 205104,
      "latitude": "",
      "longitude": ""
    },
    {
      "id": 0,
      "transactionId": 0,
      "boundaryLevel": "Zip5",
      "line1": "",
      "line2": "",
      "line3": "",
      "city": "",
      "region": "",
      "postalCode": "",
      "country": "DE",
      "taxRegionId": 205079,
      "latitude": "",
      "longitude": ""
    },
    {
      "id": 0,
      "transactionId": 0,
      "boundaryLevel": "Zip5",
      "line1": "",
      "line2": "",
      "line3": "",
      "city": "",
      "region": "",
      "postalCode": "",
      "country": "EE",
      "taxRegionId": 205081,
      "latitude": "",
      "longitude": ""
    }
  ],
  "summary": [
    {
      "country": "DE",
      "region": "DE",
      "jurisType": "Country",
      "jurisCode": "DE",
      "jurisName": "GERMANY",
      "taxAuthorityType": 45,
      "stateAssignedNo": "",
      "taxType": "Output",
      "taxSubType": "O",
      "taxName": "Zero Rate",
      "rateType": "Zero",
      "taxable": 100,
      "rate": 0,
      "tax": 0,
      "taxCalculated": 0,
      "nonTaxable": 0,
      "exemption": 0
    }
  ],
  "parameters": [
    {
      "name": "Transport",
      "value": "None"
    },
    {
      "name": "MiddlemanVatId",
      "value": "DE2345678"
    },
    {
      "name": "IsTriangulation",
      "value": "TRUE"
    }
  ],
  "messages": [
    {
      "summary": "Global Address",
      "details": "\n    Address: EE\n    AddressCode: ORIG2\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[0] - TaxDate: 2024-07-22 00:00:00Z",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "Global Address",
      "details": "\n    Address: PT\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": "Global Address",
      "details": "\n    Address: DE\n    AddressCode: POA4\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[2] - TaxDate: 2024-07-22 00:00:00Z",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "Global Address",
      "details": "\n    Address: DE\n    AddressCode: MMV1\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": "AddressLocationType: ShipFrom",
      "details": "\n    Address: ,, \n    Type: \n    City: \n    State: \n    County: \n    Country: EE\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 31\n    TaxRegionId: 205081\n    FIPSCode: EE\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200081\" JurisdictionCode=\"EE\" JurisdictionTypeId=\"CNT\" LongName=\"ESTONIA\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YADF\" TaxAuthorityTypeId=\"\" IsLocalAdmin=\"False\" EffDate=\"2008-07-01\" EndDate=\"9999-12-31\"\n",
      "refersTo": "Addresses[0]",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "AddressLocationType: ShipTo",
      "details": "\n    Address: ,, \n    Type: \n    City: \n    State: \n    County: \n    Country: PT\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 88\n    TaxRegionId: 205104\n    FIPSCode: PT\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200104\" JurisdictionCode=\"PT\" JurisdictionTypeId=\"CNT\" LongName=\"PORTUGAL\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YAED\" TaxAuthorityTypeId=\"\" IsLocalAdmin=\"False\" EffDate=\"2008-07-01\" EndDate=\"9999-12-31\"\n",
      "refersTo": "Addresses[1]",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "AddressLocationType: PointOfOrderOrigin",
      "details": "\n    Address: ,, \n    Type: \n    City: \n    State: \n    County: \n    Country: PT\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 88\n    TaxRegionId: 205104\n    FIPSCode: PT\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200104\" JurisdictionCode=\"PT\" JurisdictionTypeId=\"CNT\" LongName=\"PORTUGAL\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YAED\" TaxAuthorityTypeId=\"\" IsLocalAdmin=\"False\" EffDate=\"2008-07-01\" EndDate=\"9999-12-31\"\n",
      "refersTo": "Addresses[1]",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "AddressLocationType: PointOfOrderAcceptance",
      "details": "\n    Address: ,, \n    Type: \n    City: \n    State: \n    County: \n    Country: DE\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 27\n    TaxRegionId: 205079\n    FIPSCode: DE\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200079\" JurisdictionCode=\"DE\" JurisdictionTypeId=\"CNT\" LongName=\"GERMANY\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YADD\" TaxAuthorityTypeId=\"\" IsLocalAdmin=\"False\" EffDate=\"2008-07-01\" EndDate=\"9999-12-31\"\n",
      "refersTo": "Addresses[2]",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "AddressLocationType: GoodsPlaceOrServiceRendered",
      "details": "\n    Address: ,, \n    Type: \n    City: \n    State: \n    County: \n    Country: PT\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 88\n    TaxRegionId: 205104\n    FIPSCode: PT\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200104\" JurisdictionCode=\"PT\" JurisdictionTypeId=\"CNT\" LongName=\"PORTUGAL\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YAED\" 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: PT\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 88\n    TaxRegionId: 205104\n    FIPSCode: PT\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200104\" JurisdictionCode=\"PT\" JurisdictionTypeId=\"CNT\" LongName=\"PORTUGAL\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YAED\" TaxAuthorityTypeId=\"\" IsLocalAdmin=\"False\" EffDate=\"2008-07-01\" EndDate=\"9999-12-31\"\n",
      "refersTo": "Addresses[1]",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "TaxTypes",
      "details": "    Line[0]: \n        TaxTypeId : O\n",
      "refersTo": "",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "Tax Rules",
      "details": "\nTaxRule[TaxType:O][TaxSubType:O]: Nexus CNT\n    TaxRuleId: 0\n    Cap: 0\n    CompanyId: 7921876\n    Country: DE\n    CustomerUsageType: \n    EffDate: 01/01/1900\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: DE\n    JurisName: GERMANY\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: DE\n    StateAssignedNo: \n    TaxCode: \n    TaxCodeId: 0\n    TaxName: DE VAT\n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: O\n    TaxSubTypeId: O\n    TaxTypeMappingId: 295\n    Threshold: 0\n    Value: 1\n    RateSourceId: None\n    RateTypeId: S\n    RateTypeTaxTypeMappingId: 1146\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: EUR\n    UOMId: 0\n    PreferredProgramId: 0\n\nTaxRule[TaxType:O][TaxSubType:O]: ProductTaxabilityRule CNT\n    TaxRuleId: 1912890\n    Cap: 0.000000\n    CompanyId: 1\n    Country: DE\n    CustomerUsageType: \n    EffDate: 01/01/2015\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: DE\n    JurisName: GERMANY\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: DE\n    StateAssignedNo: \n    TaxCode: P0000000\n    TaxCodeId: 8087\n    TaxName: Tangible Personal Property (TPP)\n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: O\n    TaxSubTypeId: O\n    TaxTypeMappingId: 295\n    Threshold: 0.000000\n    Value: 1.000000\n    RateSourceId: None\n    RateTypeId: S\n    RateTypeTaxTypeMappingId: 1158\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: EUR\n    UOMId: 0\n    PreferredProgramId: 0\n\nTaxRule[TaxType:O][TaxSubType:O]: RateRule CNT\n    TaxRuleId: 329691\n    Cap: 0.000000\n    CompanyId: 1\n    Country: DE\n    CustomerUsageType: \n    EffDate: 07/01/2008\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: DE\n    JurisName: GERMANY\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: DE\n    StateAssignedNo: \n    TaxCode: \n    TaxCodeId: 0\n    TaxName: Zero Rate\n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: O\n    TaxSubTypeId: O\n    TaxTypeMappingId: 295\n    Threshold: 0.000000\n    Value: 0.000000\n    RateSourceId: None\n    RateTypeId: Z\n    RateTypeTaxTypeMappingId: 1159\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: EUR\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= ExemptionCitationCodes\n        Value= \n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[2]= \n        Name= LiabilityCitationCodes\n        Value= Article-141,Out-of-scope-Article197\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[3]= \n        Name= IsInterCountry\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[4]= \n        Name= IsIntraEUTransaction\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[5]= \n        Name= IsIndiaGSTTransaction\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[6]= \n        Name= IsSst\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[7]= \n        Name= PlaceOfSupplyState\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[8]= \n        Name= PlaceOfSupplyCountry\n        Value= DE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[9]= \n        Name= IsEUSellerEstablishmentCountryMutualAssist\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[10]= \n        Name= SellerRegisteredThroughFiscalRepCountries\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[11]= \n        Name= BuyerRegisteredThroughFiscalRepCountries\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[12]= \n        Name= IsSellerNotOptedOrBelowDistanceThreshold\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[13]= \n        Name= GoodsPlaceOrServiceRenderedCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[14]= \n        Name= IsNZGoodsConsignmentValueBelow1000NZD\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[15]= \n        Name= IsAUGoodsConsignmentValueBelow1000AUD\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[16]= \n        Name= IsNOGoodsConsignmentValueBelow3000NOK\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[17]= \n        Name= IsEUGoodsConsignmentValueBelow150EUR\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[18]= \n        Name= IsUKGoodsConsignmentValueBelow135GBP\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[19]= \n        Name= IsCustomerRegisteredThroughFiscalRep\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[20]= \n        Name= GoodsPlaceOrServiceRenderedCountry\n        Value= PT\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[21]= \n        Name= IsEUDistanceSalesThresholdExceeded\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[22]= \n        Name= HasPermanentEstablishmentInDest\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[23]= \n        Name= MiddlemanEstablishmentCountries\n        Value= GB,EE,CH,DE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[24]= \n        Name= IsSupplierNonTaxableLegalPerson\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[25]= \n        Name= MiddlemanRegistrationCountries\n        Value= EE,CH,DE,FR,NL\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[26]= \n        Name= IsCountryOfManufacturePunitive\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[27]= \n        Name= IsSpecialArrangementByCarrier\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[28]= \n        Name= UserEstablishmentCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[29]= \n        Name= SellerEstablishmentCountries\n        Value= GB,EE,CH,DE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[30]= \n        Name= HasBusinessIdentificationNo\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[31]= \n        Name= ImportVatDefermentCountries\n        Value= \n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[32]= \n        Name= BuyerEstablishmentCountries\n        Value= PT\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[33]= \n        Name= CompanyLocationAddressType\n        Value= Location\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[34]= \n        Name= UserEstablishmentCountries\n        Value= GB,EE,CH,DE\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[35]= \n        Name= MiddlemanVatIdCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[36]= \n        Name= IndiaGSTEnabledForAccount\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[37]= \n        Name= IsSourcingSectionApplied\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[38]= \n        Name= IsAssemblyOrInstallation\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Company\n        Parameter[39]= \n        Name= IsSellerImporterOfRecord\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[40]= \n        Name= DestCountryNexusTypeId\n        Value= 1\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[41]= \n        Name= RemoteSellerStatesList\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[42]= \n        Name= HasAvaTaxGlobalService\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[43]= \n        Name= MiddlemanVatIdCountry\n        Value= DE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[44]= \n        Name= LC_SystemCustomsValue\n        Value= CIF\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[45]= \n        Name= DestStateNexusTypeId\n        Value= 1\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[46]= \n        Name= IsImportVatDeferment\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Nexus\n        Parameter[47]= \n        Name= SellerVatIdCountries\n        Value= EE,CH,DE,FR,NL\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[48]= \n        Name= ShipFromCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[49]= \n        Name= HasSameCountryGroup\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[50]= \n        Name= B2BServiceCountries\n        Value= MX,MY,ZA,RU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[51]= \n        Name= BuyerVatIdCountries\n        Value= PT\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[52]= \n        Name= IsBelowRdfThreshold\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Nexus\n        Parameter[53]= \n        Name= ImportCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[54]= \n        Name= ShipToCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[55]= \n        Name= DestinationCountry\n        Value= PT\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[56]= \n        Name= IsGoodsSecondHand\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Line\n        Parameter[57]= \n        Name= POSCitationCodes\n        Value= Article31\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[58]= \n        Name= DestCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[59]= \n        Name= OrigCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[60]= \n        Name= DestinationState\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[61]= \n        Name= SupplyofService\n        Value= Generic\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[62]= \n        Name= ProductCodeType\n        Value= P\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[63]= \n        Name= ShipFromCountry\n        Value= EE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[64]= \n        Name= IsTriangulation\n        Value= TRUE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Header\n        Parameter[65]= \n        Name= HasSameCountry\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[66]= \n        Name= CompanyCountry\n        Value= GB\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[67]= \n        Name= DocumentAmount\n        Value= 100\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[68]= \n        Name= MiddlemanVatId\n        Value= DE2345678\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Header\n        Parameter[69]= \n        Name= HasSameRegion\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[70]= \n        Name= IsMarketplace\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[71]= \n        Name= ImportCountry\n        Value= PT\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[72]= \n        Name= IsSelfBilling\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[73]= \n        Name= ShipToCountry\n        Value= PT\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[74]= \n        Name= OriginCountry\n        Value= DE\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[75]= \n        Name= TaxableAmount\n        Value= 100\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[76]= \n        Name= SellerVatIds\n        Value= EE7654321, CHE-123.456.788 TVA, DE999999999, FR97999999999, NL999999999B01\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[77]= \n        Name= HasDestNexus\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[78]= \n        Name= HasExemptNo\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[79]= \n        Name= BuyerVatIds\n        Value= PT1234567\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[80]= \n        Name= OriginState\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[81]= \n        Name= Applicable\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[82]= \n        Name= IsPhysical\n        Value= true\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[83]= \n        Name= LineAmount\n        Value= 100\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[84]= \n        Name= TaxSystem\n        Value= VAT\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[85]= \n        Name= IOSSRegNo\n        Value= 987654321\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[86]= \n        Name= Transport\n        Value= None\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Header\n        Parameter[87]= \n        Name= TaxCode\n        Value= P0000000\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[88]= \n        Name= DocType\n        Value= Sales\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[89]= \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: EUR\n    CustomerVendorCode: C001\n    CustomerUsageType: \n    DocumentCode: p2_15_600\n    DocumentDate: 07/22/2024\n    DocumentId: 0\n    DocumentLineCount: 1\n    DocumentStatusId: 0\n    DocumentTypeId: 0\n    ExemptNo: \n    Business Identification No: PT1234567\n    IsReconciled: False\n    LocationCode: \n    ModifiedDate: 07/22/2024 18:32:31\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: 0.0000\n    TotalTaxCalculated: 0.0000\n    ExchangeRate: 1.0\n    ExchangeRateCurrencyCode: EUR\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: PT\n        BoundaryId: 88\n        BoundaryLevelId: 2\n        BoundarySource: BoundaryGlobal\n        CitySignature: \n        DocumentAddressId: 0\n        GeocodeTypeId: NotGeoCoded\n        JurisCode: PT\n        PostalCode: \n        TaxRegionId: 205104\n        ValidateStatusId: Not Validated.\n        AddressLine1: \n        AddressLine2: \n        AddressLine3: \n    DocumentAddress[1]: \n        Line1: \n        City: \n        Region: \n        County: \n        Country: DE\n        BoundaryId: 27\n        BoundaryLevelId: 2\n        BoundarySource: BoundaryGlobal\n        CitySignature: \n        DocumentAddressId: 0\n        GeocodeTypeId: NotGeoCoded\n        JurisCode: DE\n        PostalCode: \n        TaxRegionId: 205079\n        ValidateStatusId: Not Validated.\n        AddressLine1: \n        AddressLine2: \n        AddressLine3: \n    DocumentAddress[2]: \n        Line1: \n        City: \n        Region: \n        County: \n        Country: EE\n        BoundaryId: 31\n        BoundaryLevelId: 2\n        BoundarySource: BoundaryGlobal\n        CitySignature: \n        DocumentAddressId: 0\n        GeocodeTypeId: NotGeoCoded\n        JurisCode: EE\n        PostalCode: \n        TaxRegionId: 205081\n        ValidateStatusId: Not Validated.\n        AddressLine1: \n        AddressLine2: \n        AddressLine3: \n    Line[0]: \n        AccountingMethodId: 0 (Accrual)\n        BoundaryLevelId: 2\n        BoundaryOverrideId: 0\n        CustomerUsageType: \n        Description: Triangulation - Sale (middleman)\n        DestinationAddressId: 0\n        DiscountAmount: 0\n        DiscountTypeId: 0\n        DocumentLineId: 0\n        ExemptAmount: 0\n        ExemptCertId: 0\n        ExemptNo: \n        Business Identification No: PT1234567\n        InState: True\n        IsPhysical: True\n        IsSstp: False\n        ItemCode: P001\n        LineAmount: 100.0000\n        LineNo: 1\n        OriginAddressId: 0\n        Quantity: 1\n        Ref1: \n        Ref2: \n        RevAccount: \n        Sourcing: D\n        IsItemTaxable: True\n        ReportingDate: 07/22/2024\n        Tax: 0.0000\n        TaxableAmount: 100\n        TaxCalculated: 0.0000\n        TaxDate: 07/22/2024\n        TaxCode: P0000000\n        TaxCodeId: 8087 (P0000000)\n        TaxOverrideTypeId: 0\n        TaxOverrideAmount: 0\n        TaxOverrideReason: \n        VATCode: DEST000C\n        VATNumberType: No registration\n        HSCodeUsed: \n        HSCode: \n        HSCodeId: 0\n        CIF: 0.0\n        DeemedSupplier: \n        Category: \n        Summary: \n        Detail[0]: DE CNT DE\n            DocumentLineDetailId: 0\n            AddressId: 0\n            AVTUserBIN : DE999999999\n            Country: DE\n            ExemptAmount: 0.0000\n            ExemptUnits: 0.0000\n            ExemptReasonId: 4 (NoExempt)\n            ExemptRuleId: 0\n            InState: True\n            JurisCode: DE\n            JurisdictionId: 200079\n            JurisName: GERMANY\n            JurisTypeId: CNT\n            NonTaxableAmount: 0.0000\n            NonTaxableUnits: 0.0000\n            NonTaxableRuleId: 0\n            NonTaxableTypeId: 0\n            Options: \n            Rate: 0.000000\n            RateRuleId: 329691\n            RateSourceId: None\n            Region: DE\n            SERCode: \n            Sourcing: D\n            StateCode: DE\n            StateAssignedNo: \n            TaxAuthorityId: 0\n            Tax: 0.0000\n            TaxableAmount: 100.0000\n            TaxableUnits: 100.0000\n            UnitOfBasis: PerCurrencyUnit\n            UnitOfBasisId: 13\n            TaxCalculated: 0.0000\n            TaxName: Zero Rate\n            TaxOverride: 0.0000\n            TaxTypeGroupId: InputAndOutput\n            TaxTypeId: O\n            TaxSubTypeId: O\n            RateTypeId: Z\n            IsFee: False\n            TaxTypeMappingId: 295\n            RateTypeTaxTypeMappingId: 1159\n            TaxRegionId: 205079\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: 0\n            ReportingTaxCalculated: 0\n            AVTUserBIN : DE999999999\n    DocumentParameterBag[0]: \n        Name: Transport\n        Value: None\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: MiddlemanVatId\n        Value: DE2345678\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: IsTriangulation\n        Value: TRUE\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: Transport\n        Value: None\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: MiddlemanVatId\n        Value: DE2345678\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: IsTriangulation\n        Value: TRUE\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: Transport\n        Value: None\n        UOMId: 0\n    DocumentParameterBag[1]: \n        Name: MiddlemanVatId\n        Value: DE2345678\n        UOMId: 0\n    DocumentParameterBag[2]: \n        Name: IsTriangulation\n        Value: TRUE\n        UOMId: 0\n",
      "refersTo": "",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "SourcingRules applied for the transaction, XML format",
      "details": "101821S031",
      "refersTo": "",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "SourcingRules applied for the transaction, JSON format",
      "details": "[{\"LineNo\":\"1\",\"SourcingRuleId_Sourcing\":0,\"Sourcing\":null,\"SourcingRuleId_RateType\":1821,\"RateType\":\"S\",\"SourcingRuleId_JurisTypesApplicableId\":0,\"JurisTypesApplicableId\":31}]",
      "refersTo": "",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "Sections applied for the transaction, JSON format",
      "details": "[{\"LineNo\":\"1\",\"SectionId\":21001092,\"Type\":\"Sourcing\",\"Output\":\"MiddlemanVATIdCountry\",\"CitationCodes\":\"Article31\",\"Exclude\":false},{\"LineNo\":\"1\",\"SectionId\":21000589,\"Type\":\"RateTypeLiability\",\"Output\":\"Z\",\"CitationCodes\":\"Article-141,Out-of-scope-Article197\",\"Exclude\":false}]",
      "refersTo": "",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    },
    {
      "summary": "Invoice  Messages for the transaction",
      "details": "{\"InvoiceMessageMasterList\":[{\"MessageCode\":0,\"Message\":\"No applicable messaging for this line.\",\"CitationCode\":\"\"},{\"MessageCode\":1,\"Message\":\"Intra-Community triangular transaction outside of scope of local VAT per Art. 31 of EU Directive 2006/112/EC. VAT is due by the customer per Art. 141 and 197 of EU Directive 2006/112/EC\",\"CitationCode\":\"Out-of-scope-Article197\"}],\"InvoiceMessageList\":[{\"TaxLineNo\":\"1\",\"MessageCode\":1}]}",
      "refersTo": "",
      "severity": "Success",
      "source": "Avalara.AvaTax.TaxEngine"
    }
  ],
  "invoiceMessages": [
    {
      "content": "Intra-Community triangular transaction outside of scope of local VAT per Art. 31 of EU Directive 2006/112/EC. VAT is due by the customer per Art. 141 and 197 of EU Directive 2006/112/EC",
      "lineNumbers": [
        "1"
      ]
    }
  ],
  "apStatusCode": null,
  "apStatus": null
}
```