# Party C VAT ID purchase

Source: https://developer.avalara.com/vat-erp/test-transactions/triangulation/party-c-vat-id-purchase/

This example shows how to run a triangulation purchase transaction using the `PartyCVATIDCountry` parameter. Upon completion, the rules for triangulation will automatically be applied.  

## Returned invoice messages

-   Article 141 - Directive 2006/112 EC

## Related articles

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

-   Article 42

-   Article 141

-   Article 193

## Assumptions

In this example:

-   The document `type` is a purchase invoice.

-   The `shipFrom` country is Belgium.

-   The `shipTo` country is Ireland.

    -   The `PartyCVATIDCountry` is also Ireland.

    -   The company is not established in Ireland.

-   The `MiddlemanVatId` is from Romania.

-   The `businessIdentificationNo` is `RO1234567`.

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

```
{  "addresses": {    "shipTo": {      "type": "shipTo",      "country": "IE"    },    "shipFrom": {      "type": "shipFrom",      "country": "BE"    }  },  "description": "",  "parameters": [    {      "name": "MiddlemanVatId",      "value": "RO123456"    },    {      "name": "PartyCVATIDCountry",      "value": "IE"    },    {      "name": "Transport",      "value": "Seller"    }  ],  "lines": [    {      "number": "1",      "quantity": "1",      "amount": "1000",      "taxCode": "P0000000",      "discounted": false,      "taxIncluded": false,      "marketplaceLiabilityType": "Seller"    }  ],  "type": "PurchaseInvoice",  "date": "2024-07-22",  "debugLevel": "Diagnostic",  "detailLevel": "Diagnostic",  "customerCode": "1",  "companyCode": "UseCasesLtd",  "businessIdentificationNo": "RO1234567"}
```

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

```
{  "id": 85061577578011,  "code": "4c7161ff-666a-4045-930c-d2c2a8679723",  "companyId": 7921876,  "date": "2024-07-22",  "status": "Saved",  "type": "PurchaseInvoice",  "batchCode": "",  "currencyCode": "USD",  "exchangeRateCurrencyCode": "USD",  "customerUsageType": "",  "entityUseCode": "",  "customerVendorCode": "1",  "customerCode": "1",  "exemptNo": "",  "reconciled": false,  "locationCode": "",  "reportingLocationCode": "",  "purchaseOrderNo": "",  "referenceCode": "",  "salespersonCode": "",  "taxOverrideType": "None",  "taxOverrideAmount": 0,  "taxOverrideReason": "",  "totalAmount": 1000,  "totalExempt": 1000,  "totalDiscount": 0,  "totalTax": 0,  "totalTaxable": 0,  "totalTaxCalculated": 0,  "adjustmentReason": "NotAdjusted",  "adjustmentDescription": "",  "locked": false,  "region": "",  "country": "RO",  "version": 1,  "softwareVersion": "24.7.0.0",  "originAddressId": 85061577578013,  "destinationAddressId": 85061577578012,  "exchangeRateEffectiveDate": "2024-07-22",  "exchangeRate": 1,  "description": "",  "email": "",  "businessIdentificationNo": "RO1234567",  "modifiedDate": "2024-07-22T18:42:06.0022459Z",  "modifiedUserId": 1443662,  "taxDate": "2024-07-22",  "lines": [    {      "id": 85061577578021,      "transactionId": 85061577578011,      "lineNumber": "1",      "boundaryOverrideId": 0,      "customerUsageType": "",      "entityUseCode": "",      "description": "",      "destinationAddressId": 85061577578012,      "originAddressId": 85061577578013,      "discountAmount": 0,      "discountTypeId": 0,      "exemptAmount": 1000,      "exemptCertId": 0,      "exemptNo": "",      "isItemTaxable": false,      "isSSTP": false,      "itemCode": "",      "lineAmount": 1000,      "quantity": 1,      "ref1": "",      "ref2": "",      "reportingDate": "2024-07-22",      "revAccount": "",      "sourcing": "Destination",      "tax": 0,      "taxableAmount": 0,      "taxCalculated": 0,      "taxCode": "P0000000",      "taxCodeId": 8087,      "taxDate": "2024-07-22",      "taxEngine": "",      "taxOverrideType": "None",      "businessIdentificationNo": "RO1234567",      "taxOverrideAmount": 0,      "taxOverrideReason": "",      "taxIncluded": false,      "marketplaceLiabilityType": "Seller",      "details": [        {          "id": 85061577578054,          "transactionLineId": 85061577578021,          "transactionId": 85061577578011,          "addressId": 85061577578012,          "country": "RO",          "region": "RO",          "countyFIPS": "",          "stateFIPS": "RO",          "exemptAmount": 0,          "exemptReasonId": 6,          "exemptRuleId": 0,          "inState": true,          "jurisCode": "RO",          "jurisName": "ROMANIA",          "jurisdictionId": 200105,          "signatureCode": "",          "stateAssignedNo": "",          "jurisType": "CNT",          "jurisdictionType": "Country",          "nonTaxableAmount": 1000,          "nonTaxableRuleId": 0,          "nonTaxableType": "NexusRule",          "rate": 0,          "rateRuleId": 0,          "rateSourceId": 0,          "serCode": "",          "sourcing": "Destination",          "tax": 0,          "taxableAmount": 0,          "taxType": "Input",          "taxSubTypeId": "I",          "taxTypeGroupId": "InputAndOutput",          "taxName": "RO VAT",          "taxAuthorityTypeId": 45,          "taxRegionId": 205105,          "taxCalculated": 0,          "taxOverride": 0,          "rateType": "Zero",          "rateTypeCode": "Z",          "taxableUnits": 0,          "nonTaxableUnits": 1000,          "exemptUnits": 0,          "unitOfBasis": "PerCurrencyUnit",          "isNonPassThru": false,          "isFee": false,          "reportingTaxableUnits": 0,          "reportingNonTaxableUnits": 1000,          "reportingExemptUnits": 0,          "reportingTax": 0,          "reportingTaxCalculated": 0,          "avtUserBIN": "",          "liabilityType": "Seller",          "chargedTo": "Buyer"        }      ],      "nonPassthroughDetails": [],      "lineLocationTypes": [        {          "documentLineLocationTypeId": 85061577578023,          "documentLineId": 85061577578021,          "documentAddressId": 85061577578013,          "locationTypeCode": "ShipFrom"        },        {          "documentLineLocationTypeId": 85061577578024,          "documentLineId": 85061577578021,          "documentAddressId": 85061577578012,          "locationTypeCode": "ShipTo"        }      ],      "parameters": [        {          "name": "Transport",          "value": "Seller"        },        {          "name": "IOSSRegNo",          "value": "987654321"        },        {          "name": "IsMarketplace",          "value": "False"        },        {          "name": "IsTriangulation",          "value": "false"        },        {          "name": "PartyCVATIDCountry",          "value": "IE"        }      ],      "hsCode": "",      "costInsuranceFreight": 0,      "vatCode": "ROPT000C",      "vatNumberTypeId": 0    }  ],  "addresses": [    {      "id": 85061577578012,      "transactionId": 85061577578011,      "boundaryLevel": "Zip5",      "line1": "",      "line2": "",      "line3": "",      "city": "",      "region": "",      "postalCode": "",      "country": "IE",      "taxRegionId": 205088    },    {      "id": 85061577578013,      "transactionId": 85061577578011,      "boundaryLevel": "Zip5",      "line1": "",      "line2": "",      "line3": "",      "city": "",      "region": "",      "postalCode": "",      "country": "BE",      "taxRegionId": 205060    }  ],  "locationTypes": [    {      "documentLocationTypeId": 85061577578015,      "documentId": 85061577578011,      "documentAddressId": 85061577578013,      "locationTypeCode": "ShipFrom"    },    {      "documentLocationTypeId": 85061577578016,      "documentId": 85061577578011,      "documentAddressId": 85061577578012,      "locationTypeCode": "ShipTo"    }  ],  "summary": [    {      "country": "RO",      "region": "RO",      "jurisType": "Country",      "jurisCode": "RO",      "jurisName": "ROMANIA",      "taxAuthorityType": 45,      "stateAssignedNo": "",      "taxType": "Input",      "taxSubType": "I",      "taxName": "RO VAT",      "taxable": 0,      "rate": 0,      "tax": 0,      "taxCalculated": 0,      "nonTaxable": 1000,      "exemption": 0    }  ],  "parameters": [    {      "name": "MiddlemanVatId",      "value": "RO123456"    },    {      "name": "PartyCVATIDCountry",      "value": "IE"    },    {      "name": "Transport",      "value": "Seller"    }  ],  "messages": [    {      "summary": "Global Address",      "details": "\n    Address: BE\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: IE\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: RO\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: BE\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 9\n    TaxRegionId: 205060\n    FIPSCode: BE\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200060\" JurisdictionCode=\"BE\" JurisdictionTypeId=\"CNT\" LongName=\"BELGIUM\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YACJ\" 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: IE\n    BoundaryLevel: 2\n    BoundarySource: BoundaryGlobal\n    BoundaryId: 48\n    TaxRegionId: 205088\n    FIPSCode: IE\n    CitySignature: \n    GEOCode: \n    Jurisdictions: \n        CNT: JurisdictionId=\"200088\" JurisdictionCode=\"IE\" JurisdictionTypeId=\"CNT\" LongName=\"IRELAND\" StateFips=\"\" State=\"\" StateAssignedCode=\"\" SerCode=\"\" SignatureCode=\"YADM\" 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 : 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: RO\n    CustomerUsageType: \n    EffDate: 01/01/1900\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: RO\n    JurisName: ROMANIA\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: RO\n    StateAssignedNo: \n    TaxCode: \n    TaxCodeId: 0\n    TaxName: RO VAT\n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: I\n    TaxSubTypeId: I\n    TaxTypeMappingId: 949\n    Threshold: 0\n    Value: 1\n    RateSourceId: None\n    RateTypeId: S\n    RateTypeTaxTypeMappingId: 3809\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: 1514487\n    Cap: 0.000000\n    CompanyId: 1\n    Country: RO\n    CustomerUsageType: \n    EffDate: 11/01/2014\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: RO\n    JurisName: ROMANIA\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: RO\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: 949\n    Threshold: 0.000000\n    Value: 1.000000\n    RateSourceId: None\n    RateTypeId: S\n    RateTypeTaxTypeMappingId: 3833\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]: ExemptEntityRule CNT\n    TaxRuleId: 0\n    Cap: 0.0\n    CompanyId: 0\n    Country: RO\n    CustomerUsageType: \n    EffDate: 01/01/1900\n    EndDate: 12/31/9999\n    IsAllJuris: False\n    IsPhysical: True\n    IsSSTP: False\n    JurisCode: RO\n    JurisName: ROMANIA\n    JurisTypeId: CNT\n    Options: \n    SERCode: \n    SignatureCode: \n    Sourcing: D\n    State: RO\n    StateAssignedNo: \n    TaxCode: P0000000\n    TaxCodeId: 8087\n    TaxName: \n    NexusTaxTypeGroupId: InputAndOutput\n    TaxTypeGroupId: InputAndOutput\n    TaxTypeId: I\n    TaxSubTypeId: I\n    TaxTypeMappingId: 949\n    Threshold: 0.0\n    Value: 0\n    RateSourceId: None\n    RateTypeId: E\n    RateTypeTaxTypeMappingId: 5509539\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: 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= LiabilityCitationCodes\n        Value= Article193\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[2]= \n        Name= ExemptionCitationCodes\n        Value= Article141\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[3]= \n        Name= IsInterCountry\n        Value= True\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= RO\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= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[13]= \n        Name= IsNZGoodsConsignmentValueBelow1000NZD\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[14]= \n        Name= IsAUGoodsConsignmentValueBelow1000AUD\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[15]= \n        Name= IsNOGoodsConsignmentValueBelow3000NOK\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[16]= \n        Name= IsEUGoodsConsignmentValueBelow150EUR\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[17]= \n        Name= IsUKGoodsConsignmentValueBelow135GBP\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[18]= \n        Name= IsCustomerRegisteredThroughFiscalRep\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[19]= \n        Name= IsEUDistanceSalesThresholdExceeded\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[20]= \n        Name= HasPermanentEstablishmentInDest\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[21]= \n        Name= MiddlemanEstablishmentCountries\n        Value= GB,EE,CH,DE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[22]= \n        Name= IsSupplierNonTaxableLegalPerson\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[23]= \n        Name= MiddlemanRegistrationCountries\n        Value= EE,CH,DE,FR,NL\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[24]= \n        Name= IsCountryOfManufacturePunitive\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[25]= \n        Name= IsSpecialArrangementByCarrier\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[26]= \n        Name= UserEstablishmentCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[27]= \n        Name= SellerEstablishmentCountries\n        Value= BE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[28]= \n        Name= HasBusinessIdentificationNo\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[29]= \n        Name= ImportVatDefermentCountries\n        Value= \n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[30]= \n        Name= BuyerEstablishmentCountries\n        Value= GB,EE,CH,DE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[31]= \n        Name= CompanyLocationAddressType\n        Value= Location\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[32]= \n        Name= UserEstablishmentCountries\n        Value= GB,EE,CH,DE\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[33]= \n        Name= MiddlemanVatIdCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[34]= \n        Name= IndiaGSTEnabledForAccount\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[35]= \n        Name= IsSourcingSectionApplied\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[36]= \n        Name= IsAssemblyOrInstallation\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Company\n        Parameter[37]= \n        Name= IsSellerImporterOfRecord\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[38]= \n        Name= DestCountryNexusTypeId\n        Value= 1\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[39]= \n        Name= RemoteSellerStatesList\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[40]= \n        Name= HasAvaTaxGlobalService\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[41]= \n        Name= MiddlemanVatIdCountry\n        Value= RO\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[42]= \n        Name= LC_SystemCustomsValue\n        Value= CIF\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[43]= \n        Name= DestStateNexusTypeId\n        Value= 1\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[44]= \n        Name= IsImportVatDeferment\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Nexus\n        Parameter[45]= \n        Name= SellerVatIdCountries\n        Value= RO\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[46]= \n        Name= ShipFromCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[47]= \n        Name= HasSameCountryGroup\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[48]= \n        Name= B2BServiceCountries\n        Value= MX,MY,ZA,RU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[49]= \n        Name= BuyerVatIdCountries\n        Value= EE,CH,DE,FR,NL\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[50]= \n        Name= IsBelowRdfThreshold\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Nexus\n        Parameter[51]= \n        Name= ShipToCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[52]= \n        Name= DestinationCountry\n        Value= IE\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[53]= \n        Name= PartyCVATIDCountry\n        Value= IE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Header\n        Parameter[54]= \n        Name= IsGoodsSecondHand\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[55]= \n        Name= POSCitationCodes\n        Value= Article42\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[56]= \n        Name= DestCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[57]= \n        Name= OrigCountryGroup\n        Value= EU\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[58]= \n        Name= DestinationState\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[59]= \n        Name= IsTriangulation\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Line\n        Parameter[60]= \n        Name= SupplyofService\n        Value= Generic\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Company\n        Parameter[61]= \n        Name= ProductCodeType\n        Value= P\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[62]= \n        Name= ShipFromCountry\n        Value= BE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[63]= \n        Name= HasSameCountry\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[64]= \n        Name= CompanyCountry\n        Value= GB\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[65]= \n        Name= DocumentAmount\n        Value= 1000\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[66]= \n        Name= MiddlemanVatId\n        Value= RO123456\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Header\n        Parameter[67]= \n        Name= HasSameRegion\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[68]= \n        Name= IsMarketplace\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[69]= \n        Name= IsSelfBilling\n        Value= false\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Line\n        Parameter[70]= \n        Name= ShipToCountry\n        Value= IE\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[71]= \n        Name= OriginCountry\n        Value= BE\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[72]= \n        Name= TaxableAmount\n        Value= 1000\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[73]= \n        Name= SellerVatIds\n        Value= RO1234567\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[74]= \n        Name= HasDestNexus\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[75]= \n        Name= HasExemptNo\n        Value= False\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[76]= \n        Name= BuyerVatIds\n        Value= EE7654321, CHE-123.456.788 TVA, DE999999999, FR97999999999, NL999999999B01\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[77]= \n        Name= OriginState\n        Value= \n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[78]= \n        Name= Applicable\n        Value= True\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[79]= \n        Name= IsPhysical\n        Value= true\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[80]= \n        Name= LineAmount\n        Value= 1000\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[81]= \n        Name= TaxSystem\n        Value= VAT\n        UOMId= 0\n        ShouldBePersisted= False\n        UsedInTaxCalculation= False\n        DocumentLineParameterSource= Calculated\n        Parameter[82]= \n        Name= IOSSRegNo\n        Value= 987654321\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Company\n        Parameter[83]= \n        Name= Transport\n        Value= Seller\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Header\n        Parameter[84]= \n        Name= TaxCode\n        Value= P0000000\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[85]= \n        Name= DocType\n        Value= Purchase\n        UOMId= 0\n        ShouldBePersisted= True\n        UsedInTaxCalculation= True\n        DocumentLineParameterSource= Calculated\n        Parameter[86]= \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: 1\n    CustomerUsageType: \n    DocumentCode: 4c7161ff-666a-4045-930c-d2c2a8679723\n    DocumentDate: 07/22/2024\n    DocumentId: 85061577578011\n    DocumentLineCount: 1\n    DocumentStatusId: 1\n    DocumentTypeId: 3\n    ExemptNo: \n    Business Identification No: RO1234567\n    IsReconciled: False\n    LocationCode: \n    ModifiedDate: 07/22/2024 18:42:06\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: 1000\n    TotalTax: 0.0000\n    TotalTaxCalculated: 0.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: IE\n        BoundaryId: 48\n        BoundaryLevelId: 2\n        BoundarySource: BoundaryGlobal\n        CitySignature: \n        DocumentAddressId: 85061577578012\n        GeocodeTypeId: NotGeoCoded\n        JurisCode: IE\n        PostalCode: \n        TaxRegionId: 205088\n        ValidateStatusId: Not Validated.\n        AddressLine1: \n        AddressLine2: \n        AddressLine3: \n    DocumentAddress[1]: \n        Line1: \n        City: \n        Region: \n        County: \n        Country: BE\n        BoundaryId: 9\n        BoundaryLevelId: 2\n        BoundarySource: BoundaryGlobal\n        CitySignature: \n        DocumentAddressId: 85061577578013\n        GeocodeTypeId: NotGeoCoded\n        JurisCode: BE\n        PostalCode: \n        TaxRegionId: 205060\n        ValidateStatusId: Not Validated.\n        AddressLine1: \n        AddressLine2: \n        AddressLine3: \n    Line[0]: \n        AccountingMethodId: 0 (Accrual)\n        BoundaryLevelId: -1\n        BoundaryOverrideId: 0\n        CustomerUsageType: \n        Description: \n        DestinationAddressId: 85061577578012\n        DiscountAmount: 0\n        DiscountTypeId: 0\n        DocumentLineId: 85061577578021\n        ExemptAmount: 1000\n        ExemptCertId: 0\n        ExemptNo: \n        Business Identification No: RO1234567\n        InState: True\n        IsPhysical: True\n        IsSstp: False\n        ItemCode: \n        LineAmount: 1000\n        LineNo: 1\n        OriginAddressId: 85061577578013\n        Quantity: 1\n        Ref1: \n        Ref2: \n        RevAccount: \n        Sourcing: D\n        IsItemTaxable: False\n        ReportingDate: 07/22/2024\n        Tax: 0.0000\n        TaxableAmount: 0\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: ROPT000C\n        VATNumberType: No registration\n        HSCodeUsed: \n        HSCode: \n        HSCodeId: 0\n        CIF: 0.0\n        DeemedSupplier: \n        Category: \n        Summary: \n        Detail[0]: RO CNT RO\n            DocumentLineDetailId: 85061577578054\n            AddressId: 0\n            AVTUserBIN : \n            Country: RO\n            ExemptAmount: 0.0000\n            ExemptUnits: 0.0000\n            ExemptReasonId: 6 (NoNexus)\n            ExemptRuleId: 0\n            InState: True\n            JurisCode: RO\n            JurisdictionId: 200105\n            JurisName: ROMANIA\n            JurisTypeId: CNT\n            NonTaxableAmount: 1000.0000\n            NonTaxableUnits: 1000.0000\n            NonTaxableRuleId: 0\n            NonTaxableTypeId: 5\n            Options: \n            Rate: 0.000000\n            RateRuleId: 0\n            RateSourceId: None\n            Region: RO\n            SERCode: \n            Sourcing: D\n            StateCode: RO\n            StateAssignedNo: \n            TaxAuthorityId: 0\n            Tax: 0.0000\n            TaxableAmount: 0.0000\n            TaxableUnits: 0.0000\n            UnitOfBasis: PerCurrencyUnit\n            UnitOfBasisId: 13\n            TaxCalculated: 0.0000\n            TaxName: RO VAT\n            TaxOverride: 0.0000\n            TaxTypeGroupId: InputAndOutput\n            TaxTypeId: I\n            TaxSubTypeId: I\n            RateTypeId: Z\n            IsFee: False\n            TaxTypeMappingId: 949\n            RateTypeTaxTypeMappingId: 3810\n            TaxRegionId: 205105\n           *Cap: 0\n           *Threshold: 0\n            TaxAuthorityTypeId: 45\n            TaxAuthorityId: 0\n            TaxAuthorityName: 0\n            ReportLevel: 0\n            IsNonPassThru: False\n            ReportingTaxableUnits: 0\n            ReportingNonTaxableUnits: 1000\n            ReportingExemptUnits: 0\n            ReportingTax: 0\n            ReportingTaxCalculated: 0\n            AVTUserBIN : \n    DocumentParameterBag[0]: \n        Name: MiddlemanVatId\n        Value: RO123456\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: PartyCVATIDCountry\n        Value: IE\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: Transport\n        Value: Seller\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: MiddlemanVatId\n        Value: RO123456\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: PartyCVATIDCountry\n        Value: IE\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: Transport\n        Value: Seller\n        UOMId: 0\n    DocumentParameterBag[0]: \n        Name: MiddlemanVatId\n        Value: RO123456\n        UOMId: 0\n    DocumentParameterBag[1]: \n        Name: PartyCVATIDCountry\n        Value: IE\n        UOMId: 0\n    DocumentParameterBag[2]: \n        Name: Transport\n        Value: Seller\n        UOMId: 0\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>0</SourcingRuleId_Sourcing><SourcingRuleId_RateType>0</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\":0,\"Sourcing\":null,\"SourcingRuleId_RateType\":0,\"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\":21001058,\"Type\":\"Sourcing\",\"Output\":\"MiddlemanVATIdCountry\",\"CitationCodes\":\"Article42\",\"Exclude\":false},{\"LineNo\":\"1\",\"SectionId\":21001073,\"Type\":\"RateTypeExemption\",\"Output\":\"E\",\"CitationCodes\":\"Article141\",\"Exclude\":false},{\"LineNo\":\"1\",\"SectionId\":1000356,\"Type\":\"RateTypeLiability\",\"Output\":\"S\",\"CitationCodes\":\"Article193\",\"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\":\"Article 141 - Directive 2006/112 EC\",\"CitationCode\":\"Article141\"}],\"InvoiceMessageList\":[{\"TaxLineNo\":\"1\",\"MessageCode\":1}]}",      "refersTo": "",      "severity": "Success",      "source": "Avalara.AvaTax.TaxEngine"    }  ],  "invoiceMessages": [    {      "content": "Article 141 - Directive 2006/112 EC",      "lineNumbers": [        "1"      ]    }  ],  "apStatusCode": null,  "apStatus": null}
```