GET /vat/calculate
计算给定金额和国家的增值税金额和总价(净额 + 增值税)。自动为指定的 EU/EEA 国家应用正确的增值税税率。可选使用实时汇率将总额转换为其他货币。适用于构建定价计算器、结账摘要和需要以客户首选货币显示净额、增值税和总额的发票生成器。
amount
必填
Net amount
country
必填
Country code
currency
可选
Convert total to currency
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
amount |
是 | - | Net amount |
country |
是 | - | Country code |
currency |
否 | - | Convert total to currency |
curl "https://nordapi.ee/api/v1/vat/calculate?amount=100&country=DE¤cy=USD"
curl "https://nordapi.ee/api/v1/vat/calculate?amount=100&country=DE¤cy=USD"
curl "https://nordapi.ee/api/v1/vat/calculate?amount=499&country=NO"
curl "https://nordapi.ee/api/v1/vat/calculate?amount=250&country=FR¤cy=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}