Skip to content

Tax Rate API

Overview

The Tax Rate API provides global tax rate information including VAT, GST, sales tax, corporate tax, and other tax types for countries worldwide. Data is automatically synchronized from authoritative sources on a regular basis.

Note: This API provides read-only access to tax rate data. Data synchronization is managed internally by scheduled tasks.

Base Endpoint: /api/bigdata/taxrate

API Endpoints

1. List All Tax Rates (Paginated)

Retrieve a paginated list of all tax rate records.

Endpoint: GET /api/bigdata/taxrate/list

Parameters:

ParameterTypeRequiredDescription
pageIntegerNoPage number, starting from 0 (default: 0)
sizeIntegerNoPage size (default: 20)

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/list?page=0&size=20" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Response:

json
{
  "code": 200,
  "msg": "Request successful",
  "data": {
    "content": [
      {
        "countryCode": "DE",
        "countryName": "Germany",
        "taxType": "VAT",
        "taxNameLocal": "Umsatzsteuer",
        "taxNameEn": "Value Added Tax",
        "taxAbbr": "MwSt.",
        "rateLevel": "standard",
        "rateLevelName": "Standard rate",
        "rateValue": 19.00,
        "currencyCode": "EUR",
        "euMember": true,
        "oecdMember": true,
        "effectiveFrom": "2023-01-01T00:00:00",
        "effectiveTo": null,
        "dataSource": "EU_VAT",
        "lastSyncTime": "2026-05-21T02:00:00"
      }
    ],
    "totalElements": 1500,
    "totalPages": 75,
    "number": 0,
    "size": 20
  }
}

2. Get Rates by Country

Query all current effective tax rates for a specific country.

Endpoint: GET /api/bigdata/taxrate/country/{countryCode}

Parameters:

ParameterTypeRequiredDescription
countryCodeStringYesISO 3166-1 alpha-2 country code (e.g., US, DE, FR)

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/country/DE" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Response:

json
{
  "code": 200,
  "msg": "Request successful",
  "data": [
    {
      "countryCode": "DE",
      "countryName": "Germany",
      "taxType": "VAT",
      "taxNameLocal": "Umsatzsteuer",
      "taxAbbr": "MwSt.",
      "rateLevel": "standard",
      "rateValue": 19.00,
      "currencyCode": "EUR",
      "euMember": true
    },
    {
      "countryCode": "DE",
      "countryName": "Germany",
      "taxType": "VAT",
      "rateLevel": "reduced",
      "rateValue": 7.00,
      "currencyCode": "EUR",
      "applicableScope": "Food, books, medical supplies"
    }
  ]
}

3. Get Rates by Country and Region

Query tax rates for a specific country and region.

Endpoint: GET /api/bigdata/taxrate/country/{countryCode}/region/{regionCode}

Parameters:

ParameterTypeRequiredDescription
countryCodeStringYesISO 3166-1 alpha-2 country code
regionCodeStringYesISO 3166-2 region/state code

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/country/US/region/CA" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

4. Get Rates by Country and Tax Type

Query specific tax type rates for a country.

Endpoint: GET /api/bigdata/taxrate/country/{countryCode}/type/{taxType}

Parameters:

ParameterTypeRequiredDescription
countryCodeStringYesISO 3166-1 alpha-2 country code
taxTypeStringYesTax type code (VAT, GST, SalesTax, etc.)

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/country/GB/type/VAT" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

5. Get Standard VAT Rate

Query the standard VAT rate for a specific country.

Endpoint: GET /api/bigdata/taxrate/country/{countryCode}/standard

Parameters:

ParameterTypeRequiredDescription
countryCodeStringYesISO 3166-1 alpha-2 country code

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/country/FR/standard" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Response:

json
{
  "code": 200,
  "msg": "Request successful",
  "data": {
    "countryCode": "FR",
    "countryName": "France",
    "taxType": "VAT",
    "rateLevel": "standard",
    "rateValue": 20.00,
    "currencyCode": "EUR",
    "euMember": true
  }
}

6. Get All EU VAT Rates

Query VAT rates for all European Union member countries.

Endpoint: GET /api/bigdata/taxrate/eu/all

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/eu/all" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

7. Get OECD Rates by Tax Type

Query tax rates for all OECD member countries by tax type.

Endpoint: GET /api/bigdata/taxrate/oecd/{taxType}

Parameters:

ParameterTypeRequiredDescription
taxTypeStringYesTax type code (VAT, GST, CorporateTax, etc.)

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/oecd/VAT" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

8. Get Rates by Tax Number

Query tax rates associated with a specific tax number.

Endpoint: GET /api/bigdata/taxrate/taxnumber/{taxNumber}

Parameters:

ParameterTypeRequiredDescription
taxNumberStringYesTax identification number

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/taxnumber/DE123456789" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

9. Get All Tax Types

Retrieve a list of all supported tax type codes.

Endpoint: GET /api/bigdata/taxrate/types

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/types" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Response:

json
{
  "code": 200,
  "msg": "Request successful",
  "data": ["VAT", "GST", "SalesTax", "ConsumptionTax", "CorporateTax", "IncomeTax", "ExciseTax", "PropertyTax", "CustomsDuty"]
}

10. Get All Rate Levels

Retrieve a list of all supported tax rate levels.

Endpoint: GET /api/bigdata/taxrate/levels

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/levels" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Response:

json
{
  "code": 200,
  "msg": "Request successful",
  "data": ["standard", "reduced", "reduced1", "reduced2", "super_reduced", "parking", "zero", "exempt"]
}

11. Get Tax Rate by ID

Retrieve a single tax rate record by its ID.

Endpoint: GET /api/bigdata/taxrate/{id}

Parameters:

ParameterTypeRequiredDescription
idLongYesTax rate record ID

Request:

bash
curl "https://api.alaikis.com/std/api/bigdata/taxrate/1" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Data Model

TaxRate Fields

FieldTypeDescription
idLongRecord ID
countryCodeStringISO 3166-1 alpha-2 country code
regionCodeStringISO 3166-2 region/state code
countryNameStringCountry name
regionNameStringRegion/state name
taxTypeStringTax type code
taxNameLocalStringLocal tax name
taxNameEnStringEnglish tax name
taxAbbrStringTax abbreviation
rateLevelStringRate level
rateLevelNameStringRate level description
rateValueBigDecimalTax rate percentage value
effectiveFromDateTimeEffective start date
effectiveToDateTimeEffective end date (null means currently active)
currencyCodeStringISO 4217 currency code
euMemberBooleanEU member state
oecdMemberBooleanOECD member state
taxIdFormatStringTax ID format description
taxIdPatternStringTax ID regex pattern
filingFrequencyStringFiling frequency
applicableScopeStringApplicable scope
excludedScopeStringExcluded scope
dataSourceStringData source identifier
sourceUrlStringData source URL
versionDateDateTimeData version date
lastSyncTimeDateTimeLast sync time
enabledBooleanWhether enabled

Tax Types Reference

CodeDescription
VATValue Added Tax
GSTGoods and Services Tax
SalesTaxSales Tax
ConsumptionTaxConsumption Tax
CorporateTaxCorporate Income Tax
IncomeTaxPersonal Income Tax
ExciseTaxExcise Tax
PropertyTaxProperty Tax
CustomsDutyCustoms Duty

Rate Levels Reference

LevelDescription
standardStandard rate
reducedReduced rate
reduced1First reduced rate
reduced2Second reduced rate
super_reducedSuper reduced rate
parkingParking rate (transitional)
zeroZero rate
exemptExempt

Data Sources

SourceDescription
EU_VATEuropean Union official VAT rates
OECDOECD tax data
WIKIPEDIAWikipedia tax rate data
CUSTOMCustom data

Data Update Frequency

Tax rate data is automatically synchronized on a regular basis:

  • EU VAT rates: Daily sync
  • OECD data: Monthly sync
  • Wikipedia data: Monthly sync
  • China tax rates: Monthly sync

You can check the sync task status via the Scheduler Status API.