← Finance et devises

Calculateur de TVA

GET /vat/calculate

Calculez le montant de la TVA et total price (net + VAT) pour a given amount et country. Automatically applies le correct VAT rate pour le specified EU/EEA country. Éventuellement, converts le total en another currency en utilisant live taux de change. Idéal pour créer des pricing calculators, checkout summaries, et invoice generators qui need to show net amount, VAT, et total in le customer's preferred currency.

Paramètres

amount requis

Net amount

country requis

Country code

currency optionnel

Convert total to currency

Exemples de requêtes

Utilisation de base
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"

Réponse en direct

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

Exemple de réponse

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