Updating tax configuration by country code

PUT {{api-url}}/tax/{{tenant}}/taxes/{{locationCode}}

Updates an existing tax configuration. The tax configuration identifier, the country code, is immutable therefore it cannot be changed in this request. For localized fields, like a name field, the following rules are applicable: * If the Content-Language is set to * the name field should be represented not as a string, but as a map in format: key:value, where the key is the language code and value is the translation. * If the Content-Language is set to a specific language then the name parameter should be passed as a string

Request Body

{"location"=>{"countryCode"=>"PL"}, "taxClasses"=>[{"code"=>"STANDARD", "name"=>{"en"=>"Standard"}, "order"=>0, "rate"=>19}, {"code"=>"REDUCED", "name"=>{"en"=>"Reduced"}, "order"=>1, "rate"=>7}, {"code"=>"ZERO", "name"=>{"en"=>"Zero"}, "order"=>2, "rate"=>0}], "metadata"=>{"version"=>1}}

HEADERS

KeyDatatypeRequiredDescription
Content-Languagestring(Required) The Content-Language request HTTP header defines language(s) of the payload.
Content-Typestring
Acceptstring