Gives you the standard VAT rate of a country and its reduced rates by category, up to 30 countries in one call.
https://api.opensolr.com/solr_manager/api/vat_ratesemail and api_key of your account, as GET or POST parameters: Authentication.01 · Parameters
country_codeOne of the twoOne two-letter country code. EL and UK work for Greece and the United Kingdom.
country_codesOne of the twoUp to 30: an array, a JSON array, or separated by commas, semicolons or spaces.
02 · Example
curl -s "https://api.opensolr.com/solr_manager/api/vat_rates?email=YOUR_EMAIL&api_key=YOUR_API_KEY&country_codes=DE,RO"
03 · Answer
{ "status": true, "contract_version": 1, "count": 2, "results": { "DE": { "found": true, "country_code": "DE", "country": "Germany", "standard_rate": 19, "reduced_rates": { "...": 7 } }, "RO": { "found": true, "...": "..." } } }
results is keyed by each code as you sent it. A country the rates table does not hold answers ERROR_NO_VAT_RATES_FOR_COUNTRY. Values shown are an example.
04 · Errors
ERROR_NO_COUNTRY_SUPPLIEDHTTP 200No country code. The answer carries max_countries.
ERROR_MAX_30_COUNTRIES_PER_CALLHTTP 200More than 30.
ERROR_INVALID_COUNTRY_CODE, ERROR_NO_VAT_RATES_FOR_COUNTRY, ERROR_VAT_RATES_UNAVAILABLEHTTP 200In one entry.
WRONG_API_HOSTHTTP 404Called on opensolr.com. The answer carries the right URL.
ERROR_AUTHENTICATION_FAILEDHTTP 403The email and API key do not match.
ERROR_RATE_LIMIT_PER_MINUTEHTTP 429Too many calls. Wait for the Retry-After seconds.
Each call counts once toward your per-minute and per-hour limits, whatever the number of items: Rate limits. Lookups never use the AI allowance.
05 · Related
Check a VAT number: vat_check.
Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.