Retrieving tax configuration by country code
GET {{api-url}}/tax/{{tenant}}/taxes/{{locationCode}}
Retrieves a tax configuration for a given country.
* If the Accept-Language
is set to *
then each internationalized field will be returned as a map that contains all of translations in a format of key:value
pairs, where the key
is the language code and value
is the translation.
* If the Accept-Language
contains a single language then the translation will be returned as a string.
* If the Accept-Language
header is empty then default language defined in the Configuration service
is taken.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept-Language | string | The Accept-Language request HTTP header defines which languages the client is able to understand, and which locale variant is preferred. If empty then default system language is returned. It can be a priority list working as a fallback mechanism. | |
Accept | string |
RESPONSES
status: OK
{"locationCode":"GB","location":{"countryCode":"GB"},"taxClasses":[{"code":"STANDARD","name":"Standard","order":0,"rate":23},{"code":"REDUCED","name":"Reduced","order":1,"rate":8},{"code":"ZERO","name":"Zero","order":2,"rate":0}],"metadata":{"version":1,"createdAt":"2022-04-11T12:07:51.173Z","modifiedAt":"2022-04-11T12:07:51.173Z"}}