GET /vat/calculate
Beregn MVA-beløpet og totalprisen (netto + MVA) for et gitt beløp og land. Bruker automatisk riktig MVA-sats for det angitte EU/EØS-landet. Konverterer eventuelt totalen til en annen valuta ved hjelp av sanntids valutakurser. Perfekt for å bygge priskalkulatorer, kasseoppsummeringer og fakturageneratorer som trenger å vise nettobeløp, MVA og totalt i kundens foretrukne valuta.
amount
påkrevd
Net amount
country
påkrevd
Country code
currency
valgfri
Convert total to currency
| Navn | Påkrevd | Standard | Beskrivelse |
|---|---|---|---|
amount |
Ja | - | Net amount |
country |
Ja | - | 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}