Loading
Loading
https://api.apifreaks.com/v1.0/vat/rates/country
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
import json
url = "https://api.apifreaks.com/v1.0/vat/rates/country"
payload = json.dumps({
"countries": [
{
"country": "PAK"
},
{
"country": "United_States",
"state": "New_York"
}
]
})
headers = {
'Content-Type': 'application/json',
'X-apiKey': ''
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Successful responses return an object with a countries array.
| Field | Type | Requirement | Description |
|---|---|---|---|
| countries | Array<object> | Mandatory | Array of VAT lookup results for each requested country entry. |
Each item inside the countries array contains the following core fields.
| Field | Type | Requirement | Description |
|---|---|---|---|
| countries[].country | string | Mandatory | Country identifier returned in the result item. |
| countries[].state | string | Optional | Optional state or region returned for sub-national lookups. |
| countries[].type | string | Optional | Tax type applied for the country or state. |
| countries[].currency | string | Optional | ISO 4217 currency code for the returned location. |
| countries[].standard_rate | number | Optional | Standard VAT or sales tax rate for the returned location. |
For EU countries and the UK, countries array items may also include these additional VAT-specific fields.
| Field | Type | Requirement | Description |
|---|---|---|---|
| countries[].reduced_rate | Array<number> | Optional | Reduced VAT rates when defined for the location. |
| countries[].super_reduced_rate | Array<number> | Optional | Optional super-reduced VAT rates for specific categories. |
| countries[].parking_rate | number | Optional | Optional parking rate when applicable. |
| countries[].categories | Record<string, number> | Optional | Optional category-wise VAT rates. |