← Finans og valuta

Momsberegner

GET /vat/calculate

Beregn momsbeløbet og den samlede pris (netto + moms) for et givet beløb og land. Anvender automatisk den korrekte momssats for det angivne EU/EØS-land. Konverterer valgfrit totalen til en anden valuta med live valutakurser. Perfekt til opbygning af prisberegnere, betalingsoversigter og fakturageneratorer, der skal vise nettobeløb, moms og total i kundens foretrukne valuta.

Parametre

amount påkrævet

Net amount

country påkrævet

Country code

currency valgfri

Convert total to currency

Eksempelforespørgsler

Grundlæggende brug
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"

Livesvar

{
  "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
}

Eksempelsvar

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