GET /v1/vat-calculatorVAT Calculator
Business Utils lf-business-utils
Adds VAT to a price or takes it back out again, for a given country and amount. Calculates VAT amount and price inclusive/exclusive of VAT for a given country and amount.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
country | string | No | Country code (DE, FR, GB) |
amount | number | No | Amount to calculate VAT on |
Response Schema
success (boolean): Operation success
country (string): Country code
rate (number): VAT rate
amount (number): Original amount
vat (number): VAT amount
total (number): Amount + VAT
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/vat-calculator?country=DE&amount=100' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/vat-calculator'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'country': 'DE', 'amount': 100}
response = requests.get(url, headers=headers, params=params)
print(response.json())