GET /vat/calculate
Reiknaðu the VAT amount and total price (net + VAT) for a given amount and country. Automatically applies the correct VAT rate fyrir specified EU/EEA country. Umbreytir valfrjálst the total into another currency using live gengi. Fullkomið til að byggja pricing calculators, checkout summaries, and invoice generators that need to show net amount, VAT, and total in the customer's preferred currency.
amount
nauðsynlegt
Net amount
country
nauðsynlegt
Country code
currency
valfrjálst
Convert total to currency
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
amount |
Já | - | Net amount |
country |
Já | - | Country code |
currency |
Nei | - | 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}