Get price on order without submitting
[ POST ] order/price
Not sure if you want to submit the order before you see the price?
Here you can request to see the price, based on the parameters, where the from and to are valid zipcodes.
Brand and model must match GET cars exactly. Prefix postal numbers with the country code when they are not Danish, for example SE-12345.
Fields
car
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
car |
string | Yes | Car brand. | "Audi" |
model |
string | Yes | Car model. Used to look up the price category. | "A4" |
pickup_date |
date (d-m-Y) |
Yes | Planned pickup date used in the price calculation. | "15-09-2026" |
car_number |
string | Yes | VIN (chassis number). | "WAUZZZ8K9DA123456" |
booking
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
from |
string or int | Yes | Pickup postal code. Use CC-postcode for countries other than Denmark. |
"DK-6580" |
to |
string or int | Yes | Delivery postal code. | "DK-2100" |
custom
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
customer_number |
string | No | NAV customer number to calculate price for. Defaults to the API company. | "42886600" |
Example request
{
"car": {
"car": "Audi",
"model": "A4",
"pickup_date": "15-09-2026",
"car_number": "WAUZZZ8K9DA123456"
},
"booking": {
"from": "DK-6580",
"to": "DK-2100"
}
}
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'YOUR-BASEURL/order/price',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"car": {
"car": "Audi",
"model": "A4",
"pickup_date": "15-09-2026",
"car_number": "WAUZZZ8K9DA123456"
},
"booking": {
"from": "DK-6580",
"to": "DK-2100"
}
}',
CURLOPT_HTTPHEADER => [
'X-Api-Key: YOUR-API-KEY',
'Content-Type: application/json'
],
]);
$response = curl_exec($ch);
curl_close($ch);
const axios = require('axios');
const postData = {
car: {
car: 'Audi',
model: 'A4',
pickup_date: '15-09-2026',
car_number: 'WAUZZZ8K9DA123456'
},
booking: {
from: 'DK-6580',
to: 'DK-2100'
}
};
axios.post('YOUR-BASEURL/order/price', postData, {
headers: {
'X-Api-Key': 'YOUR-API-KEY'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});