← 金融与货币

增值税计算器

GET /vat/calculate

计算给定金额和国家的增值税金额和总价(净额 + 增值税)。自动为指定的 EU/EEA 国家应用正确的增值税税率。可选使用实时汇率将总额转换为其他货币。适用于构建定价计算器、结账摘要和需要以客户首选货币显示净额、增值税和总额的发票生成器。

参数

amount 必填

Net amount

country 必填

Country code

currency 可选

Convert total to currency

请求示例

基本用法
curl "https://nordapi.ee/api/v1/vat/calculate?amount=100&country=DE&currency=USD"
Calculate German VAT with USD conversion
curl "https://nordapi.ee/api/v1/vat/calculate?amount=100&country=DE&currency=USD"
Calculate Norwegian VAT on a product
curl "https://nordapi.ee/api/v1/vat/calculate?amount=499&country=NO"
Calculate French VAT converted to GBP
curl "https://nordapi.ee/api/v1/vat/calculate?amount=250&country=FR&currency=GBP"

实时响应

{
  "converted_total": 137.1475,
  "country": "Germany",
  "country_code": "DE",
  "fx_rate": 1.1525,
  "local_currency": "EUR",
  "net_amount": 100.0,
  "success": true,
  "target_currency": "USD",
  "total_amount": 119.0,
  "vat_amount": 19.0,
  "vat_rate": 19.0
}

响应示例

{"success":true,"net_amount":100.0,"vat_rate":19.0,"vat_amount":19.0,"total_amount":119.0,"converted_total":137.50}