Taxcalc API
Brug de samme beregnere som på Taxcalc.dk i dine egne systemer. API'et svarer med JSON og kan kaldes med en API-nøgle fra Dansk Motor Finans.
Hent OpenAPI-specAdresser
| Miljø | Base-URL |
|---|---|
| Produktion | https://api.taxcalc.dk |
Godkendelse
Send nøglen i en af de to headere:
Authorization: Bearer tc_<prefix>_<hemmelighed>
X-API-Key: tc_<prefix>_<hemmelighed>Grænser
| Kald | Grænse |
|---|---|
| Med API-nøgle | 120 kald pr. minut som standard, op til 6.000 pr. nøgle |
| Uden nøgle | 120 beregninger pr. minut pr. IP-adresse |
Fejl
Endpoints
POST /v1/registration-fee Registreringsafgift (personbil/varebil)
curl
JavaScript
curl -X POST "https://api.taxcalc.dk/v1/registration-fee" \
-H "Authorization: Bearer $TAXCALC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"versionYear":2027,"vehicleType":1,"isHighWeight":false,"isNew":true,"taxableValueCustom":400000,"newPrice":400000,"tradePrice":400000,"emissionValue":120,"emissionUnit":2,"electricConsumption":0,"electricRange":0,"version":3}}'POST /v1/motorcycle Motorcykel
curl
JavaScript
curl -X POST "https://api.taxcalc.dk/v1/motorcycle" \
-H "Authorization: Bearer $TAXCALC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"versionYear":2026,"isNew":true,"taxableValueCustom":150000,"newPrice":150000,"tradePrice":150000,"isElectric":false,"version":3}}'POST /v1/veteran-car Veteranbil
curl
JavaScript
curl -X POST "https://api.taxcalc.dk/v1/veteran-car" \
-H "Authorization: Bearer $TAXCALC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"versionYear":2026,"taxableValueCustom":200000,"newPrice":300000,"tradePrice":200000,"version":3}}'POST /v1/free-car-tax Beskatning af fri bil
curl
JavaScript
curl -X POST "https://api.taxcalc.dk/v1/free-car-tax" \
-H "Authorization: Bearer $TAXCALC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"year":2026,"taxBasis":400000,"ownershipTax":2000,"taxMargin":42}}'POST /v1/period-tax Periodeafgift
curl
JavaScript
curl -X POST "https://api.taxcalc.dk/v1/period-tax" \
-H "Authorization: Bearer $TAXCALC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"registrationFee":100000,"leasingPeriodInMonths":12,"vehicleAgeInMonths":24,"wasInterrupted":false,"leasingPeriodRunWhenInterrupted":0}}'POST /v1/new-price Nypris
curl
JavaScript
curl -X POST "https://api.taxcalc.dk/v1/new-price" \
-H "Authorization: Bearer $TAXCALC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"newPriceWithoutEquipment":300000,"equipmentPrice":20000,"technicalNewPrice":310000}}'POST /v1/trade-price Handelspris
curl
JavaScript
curl -X POST "https://api.taxcalc.dk/v1/trade-price" \
-H "Authorization: Bearer $TAXCALC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"firstRegDate":"2022-03-01T00:00:00.000Z","mileage":45000,"equipmentPrice":10000,"qualityId":2,"specialUseId":0,"adverts":[{"firstRegDate":"2022-01-15T00:00:00.000Z","mileage":50000,"salesPrice":250000,"equipmentPrice":8000,"vehicleSold":false,"advertActive":true},{"firstRegDate":"2021-11-01T00:00:00.000Z","mileage":60000,"salesPrice":235000,"equipmentPrice":12000,"vehicleSold":true,"advertActive":false}]}}'GET /v1/rate-sets Satssæt
curl
JavaScript
curl -X GET "https://api.taxcalc.dk/v1/rate-sets" \
-H "Authorization: Bearer $TAXCALC_API_KEY"GET /v1/health Status
curl
JavaScript
curl -X GET "https://api.taxcalc.dk/v1/health"