Calculation commands gross to gross (two countries)
PUT {{api-url}}/tax/{{tenant}}/taxes/calculation-commands
Calculates gross price based on net price and vice versa. Moreover, the endpoint is able to convert a price value between two countries. The following cases are supported:
* gross price calculation based on net price
price : 1.99
includesTax: false
targetCountry: PL
targetTaxClass: FULL
* net price calculation based on gross price
price : 1.99
includesTax: true
targetCountry: PL
targetTaxClass : FULL
* gross price calculation (for DE) based on gross price (from PL)
price : 1.99
includesTax: true
sourceCountry: PL
targetCountry: DE
sourceTaxClass : FULL
targetTaxClass : REDUCED
Request Body
{"input"=>{"sourceLocation"=>{"countryCode"=>"DE"}, "sourceTaxClass"=>"STANDARD", "targetLocation"=>{"countryCode"=>"PL"}, "targetTaxClass"=>"STANDARD", "includesTax"=>true, "price"=>"1.59"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"commandUuid":"930f4e1e-9238-45e1-ab0f-29d78a047bf6","input":{"sourceLocation":{"countryCode":"DE"},"sourceTaxClass":"STANDARD","targetLocation":{"countryCode":"PL"},"targetTaxClass":"REDUCED","includesTax":true,"price":"1.59"},"output":{"netPrice":"1.292682926829268","grossPrice":"1.39609756097560944","sourceTaxRate":"1.292682926829268","targetTaxRate":"8"}}