🔌 Tax Calculator API Documentation

Free public API for Vietnam tax calculations • 12 endpoints • 100 free calls/day

✓ No API Key RequiredJSON ResponseEdge Runtime

🚀 Quick Start

Base URL: https://thue.cuthongthai.vn/api/tax

cURL:

curl -X POST https://thue.cuthongthai.vn/api/tax/personal-income \
  -H "Content-Type: application/json" \
  -d '{"salary": 30, "dependents": 1}'

JavaScript (fetch):

const response = await fetch('https://thue.cuthongthai.vn/api/tax/personal-income', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ salary: 30, dependents: 1 })
});
const data = await response.json();
console.log(data);

Python (requests):

import requests

response = requests.post(
    'https://thue.cuthongthai.vn/api/tax/personal-income',
    json={'salary': 30, 'dependents': 1}
)
print(response.json())

📋 Available Endpoints

+ 6 more endpoints →

📖 Endpoint Details

POST/api/tax/personal-income

Personal Income Tax (Thuế TNCN)

Calculate personal income tax using Vietnam's 5-bracket progressive system (2026)

Parameters:

NameTypeRequiredDescription
salarynumberMonthly gross salary (million VND)
bonusnumberMonthly bonus (million VND)
allowancenumberMonthly allowance (million VND)
dependentsnumberNumber of dependents (default: 0)

Request Example:

{
  "salary": 30,
  "bonus": 5,
  "allowance": 2,
  "dependents": 1
}

Response Example:

{
  "success": true,
  "data": {
    "gross_income": 37,
    "taxable_income": 9.315,
    "tax_amount": 0.4658,
    "net_income": 33.0343
  }
}
POST/api/tax/business-household

Business Household Tax (Thuế HKD)

Calculate tax for Hộ Kinh Doanh based on revenue and business category

Parameters:

NameTypeRequiredDescription
annual_revenuenumberAnnual revenue (million VND)
business_categorystringCategory: goods | services | food | construction | transport | production

Request Example:

{
  "annual_revenue": 800,
  "business_category": "services"
}

Response Example:

{
  "success": true,
  "data": {
    "annual_revenue": 800,
    "threshold_status": "taxable",
    "vat": 72.727,
    "pit": 40,
    "license_fee": 1,
    "total_tax": 113.727
  }
}
POST/api/tax/social-insurance

Social Insurance (BHXH/BHYT/BHTN)

Calculate social, health, and unemployment insurance contributions

Parameters:

NameTypeRequiredDescription
salarynumberMonthly salary (million VND)
typestringType: employee | employer | both

Request Example:

{
  "salary": 15,
  "type": "both"
}

Response Example:

{
  "success": true,
  "data": {
    "employee_contribution": {
      "bhxh": 1.2,
      "bhyt": 0.225,
      "bhtn": 0.15,
      "total": 1.575
    },
    "employer_contribution": {
      "bhxh": 2.55,
      "bhyt": 0.45,
      "bhtn": 0.15,
      "total": 3.15
    },
    "total": 4.725
  }
}
POST/api/tax/investment

Investment Tax (Thuế Đầu Tư)

Calculate tax on investment income: dividends, bonds, stocks, savings

Parameters:

NameTypeRequiredDescription
typestringType: dividend | corporate_bond | government_bond | stock_transfer | savings
amountnumberAmount (million VND)

Request Example:

{
  "type": "dividend",
  "amount": 100
}

Response Example:

{
  "success": true,
  "data": {
    "type": "dividend",
    "amount": 100,
    "tax_rate": 5,
    "tax": 5,
    "net": 95
  }
}
POST/api/tax/rental

Rental Property Tax (Thuế Cho Thuê)

Calculate tax for rental income from real estate or vehicles

Parameters:

NameTypeRequiredDescription
annual_revenuenumberAnnual rental revenue (million VND)
has_servicesbooleanWhether includes additional services
property_countnumberNumber of properties

Request Example:

{
  "annual_revenue": 600,
  "has_services": false,
  "property_count": 1
}

Response Example:

{
  "success": true,
  "data": {
    "threshold": "taxable",
    "vat": 30,
    "pit": 30,
    "total_tax": 60,
    "net": 540
  }
}
POST/api/tax/ecommerce

E-commerce Tax (Thuế TMĐT)

Calculate tax for e-commerce sellers (Shopee, Lazada, TikTok Shop)

Parameters:

NameTypeRequiredDescription
platform_revenuenumberPlatform revenue (million VND)
offline_revenuenumberOffline revenue (million VND)
product_typestringType: Goods | Services | Food | Digital

Request Example:

{
  "platform_revenue": 800,
  "offline_revenue": 100,
  "product_type": "Goods"
}

Response Example:

{
  "success": true,
  "data": {
    "total_revenue": 900,
    "withheld_tax": 8,
    "refund_eligible": false
  }
}

📌 Additional Endpoints

/api/tax/overtime

Calculate overtime pay with tax-exempt portion

/api/tax/lending

Calculate P2P lending income tax (10%)

/api/tax/special

Special income tax: seasonal, prize, inheritance

/api/tax/comparison

Compare HKD tax methods

/api/tax/exemption

Check HKD tax exemption eligibility

/api/tax

API index with all endpoints

⚡ Rate Limits & Pricing

FREE

100 calls/day

With free API key

Get Free Key →

BUSINESS

10,000 calls/day

$300/month

Coming Soon

ENTERPRISE

Unlimited

Custom pricing

Contact Us

🔑 Get Your API Key

To access higher rate limits, create a free API key:

1

Sign in to your Finance Hub account

2

Go to API Keys page and create a new key

3

Add to your requests:

curl -X POST https://thue.cuthongthai.vn/api/tax/personal-income \
  -H "Authorization: Bearer ctt_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"salary": 30}'

📜 Citation & Attribution

When using our API, please cite as:

According to Finance Hub - Cú Thông Thái Tax API,
[your data here] as of [date].

Source: https://thue.cuthongthai.vn/api/tax
API Documentation: https://thue.cuthongthai.vn/docs/api