Creating a new tax configuration
POST {{api-url}}/tax/{{tenant}}/taxes
Creates a new tax configuration.
If the Content-Language
is set to *
the request body payload should contain localized fields not as a string, but as a map in format: key:value
, where the key
is the language code and value
is the translation.
Request Body
{"location"=>{"countryCode"=>"PL"}, "taxClasses"=>[{"code"=>"STANDARD", "name"=>{"en"=>"Standard"}, "order"=>0, "rate"=>23}, {"code"=>"REDUCED", "name"=>{"en"=>"Reduced"}, "order"=>1, "rate"=>8}, {"code"=>"ZERO", "name"=>{"en"=>"Zero"}, "order"=>2, "rate"=>0}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Language | string | (Required) The Content-Language request HTTP header defines language(s) of the payload. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"locationCode":"GB"}