POST v2/TaxCalculation
Returns applicable taxes for the Catalog Items in the body of the call. Only valid for Tax Exclusive locations, which apply taxes in addition to the selling 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 see above for Example
TEPTaxCalculationRequestName | Description | Type | Additional information |
---|---|---|---|
CompanyId | integer |
None. |
|
EntityId | integer |
None. |
|
LineItems | Collection of LineItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "CompanyId": 1, "EntityId": 2, "LineItems": [ { "LineNumber": 1, "ProductCatalogId": "b985af13-ad47-48ad-a8c2-0780e85e2f60", "Quantity": 3.1, "Price": 4.1, "BasePriceListPrice": 5.1 }, { "LineNumber": 1, "ProductCatalogId": "b985af13-ad47-48ad-a8c2-0780e85e2f60", "Quantity": 3.1, "Price": 4.1, "BasePriceListPrice": 5.1 } ] }
Response Information
Resource Description
The Taxes for the Catalog Items
TEPTaxCalculationResultName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
SaleId | globally unique identifier |
None. |
|
CompanyId | integer |
None. |
|
EntityId | integer |
None. |
|
LineItems | Collection of TaxLineItem |
None. |
|
Status | string |
None. |
|
TaxCalculationDateUtc | date |
None. |
|
TaxTotals | Collection of Object |
None. |
|
TotalTaxAmount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "7d3b1a2c-4e93-417b-bcfa-bbf56dad2cc1", "SaleId": "1caa4b45-13b7-40c7-a826-a2c3d23d5a80", "CompanyId": 3, "EntityId": 4, "LineItems": [ { "LineNumber": "sample string 1", "ProductCatalogId": "f19811b4-4253-41d9-88bc-7c0fc19f7382", "Quantity": 3.1, "Price": 4.1, "Tax": 5.1, "UnroundedTax": 6.1, "Taxable": 7, "TaxDetails": [ {}, {} ] }, { "LineNumber": "sample string 1", "ProductCatalogId": "f19811b4-4253-41d9-88bc-7c0fc19f7382", "Quantity": 3.1, "Price": 4.1, "Tax": 5.1, "UnroundedTax": 6.1, "Taxable": 7, "TaxDetails": [ {}, {} ] } ], "Status": "sample string 5", "TaxCalculationDateUtc": "2025-01-18T05:21:30.7380794+00:00", "TaxTotals": [ {}, {} ], "TotalTaxAmount": 7.1 }