POST v2/TaxInclusiveCalculation

Reverse calculates and returns taxes for the catalog items supplied. Only valid for Tax Inclusive locations, which start with an 'out the door' price and applicable taxes are calculate to achieve that end price.

Information:

Base URL:

https://api.covasoft.net/taxes

Request Information

URI Parameters

None.

Body Parameters

The Catalog Items you want to get the Taxes for.

TIPTaxCalculationRequest
NameDescriptionTypeAdditional information
CompanyId

Cova Company Id

integer

None.

EntityId

integer

None.

LineItems

Collection of TIPRequestLineItem

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "EntityId": 2,
  "LineItems": [
    {
      "CatalogId": "4b67ae36-3e68-408a-aa24-a70d1fdeca8a",
      "Quantity": 2.1,
      "LineDollarAmount": 3.1,
      "PerUnitBasePriceListPrice": 4.1
    },
    {
      "CatalogId": "4b67ae36-3e68-408a-aa24-a70d1fdeca8a",
      "Quantity": 2.1,
      "LineDollarAmount": 3.1,
      "PerUnitBasePriceListPrice": 4.1
    }
  ]
}

Response Information

Resource Description

The Taxes for the Catalog Items

TIPTaxCalculationResult
NameDescriptionTypeAdditional information
Id

integer

None.

CompanyId

integer

None.

EntityId

integer

None.

TaxCalculationDateUtc

date

None.

LineItems

Collection of TIPLineItem

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CompanyId": 2,
  "EntityId": 3,
  "TaxCalculationDateUtc": "2024-11-25T11:19:27.3313317+00:00",
  "LineItems": [
    {
      "CatalogId": "5af03136-20a4-4594-88d4-566715eac1ac",
      "Quantity": 2.1,
      "LineDollarAmount": 3.1,
      "PerUnitBasePriceListPrice": 4.1,
      "Taxes": [
        {
          "TaxId": "4de7b151-a72f-4549-83e2-25eec09fba04",
          "TaxRateType": "sample string 2",
          "TaxCalculatedOn": "sample string 3",
          "Layer": 4,
          "Rate": 5.1,
          "TaxName": "sample string 6",
          "TaxDisplayName": "sample string 7",
          "LineTax": 8.1,
          "LineUnroundedTax": 9.1
        },
        {
          "TaxId": "4de7b151-a72f-4549-83e2-25eec09fba04",
          "TaxRateType": "sample string 2",
          "TaxCalculatedOn": "sample string 3",
          "Layer": 4,
          "Rate": 5.1,
          "TaxName": "sample string 6",
          "TaxDisplayName": "sample string 7",
          "LineTax": 8.1,
          "LineUnroundedTax": 9.1
        }
      ]
    },
    {
      "CatalogId": "5af03136-20a4-4594-88d4-566715eac1ac",
      "Quantity": 2.1,
      "LineDollarAmount": 3.1,
      "PerUnitBasePriceListPrice": 4.1,
      "Taxes": [
        {
          "TaxId": "4de7b151-a72f-4549-83e2-25eec09fba04",
          "TaxRateType": "sample string 2",
          "TaxCalculatedOn": "sample string 3",
          "Layer": 4,
          "Rate": 5.1,
          "TaxName": "sample string 6",
          "TaxDisplayName": "sample string 7",
          "LineTax": 8.1,
          "LineUnroundedTax": 9.1
        },
        {
          "TaxId": "4de7b151-a72f-4549-83e2-25eec09fba04",
          "TaxRateType": "sample string 2",
          "TaxCalculatedOn": "sample string 3",
          "Layer": 4,
          "Rate": 5.1,
          "TaxName": "sample string 6",
          "TaxDisplayName": "sample string 7",
          "LineTax": 8.1,
          "LineUnroundedTax": 9.1
        }
      ]
    }
  ]
}