Create warehouse booking
[ POST ] warehouse/releaseCar
Create a booking by releasing a car in the warehouse.
customer and address must come from GET warehouse/addresses for the API user.
By releasing multiple cars at once, only the ones that failed within the last 24 hours will be tried again.
Fields
car
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
vin |
string | Yes | VIN to release. Comma-separated for several cars with the same pickup date, customer and address. | "WAUZZZ8K9DA123456" or "VIN1,VIN2" |
pickup_date |
date (d-m-Y) |
Yes | Requested pickup date. | "15-09-2026" |
day_to_day |
bool | Yes | true for day-to-day transport, otherwise false. |
false |
customer |
string or int | Yes | Customer number from GET /warehouse/addresses (customerNumber). |
"42886600" |
address |
string or int | Yes | Address code from GET /warehouse/addresses (addressCodes) for that customer. |
"0027764" |
Example request
{
"car": {
"vin": "WAUZZZ8K9DA123456",
"pickup_date": "15-09-2026",
"day_to_day": false,
"customer": "42886600",
"address": "0027764"
}
}
By releasing multiple cars at once, only the ones that failed within the
last 24 hours, will be tried again.
vin:
Field can be comma seperated, allowing multiple
car releases with the same information, for multiple vins.
customer:
Customer int|string comes from a valid address located
at GET warehouse/addresses (customerNumber)
address:
Address int comes from a valid address located
at GET warehouse/addresses
(addressCode that corresponds to the correct address)
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'YOUR-BASEURL/warehouse/releaseCar',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"car": {
"vin": "WAUZZZ8K9DA123456",
"pickup_date": "15-09-2026",
"day_to_day": false,
"customer": "42886600",
"address": "0027764"
}
}',
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: {
vin: 'WAUZZZ8K9DA123456',
pickup_date: '15-09-2026',
day_to_day: false,
customer: '42886600',
address: '0027764'
}
};
axios.post('YOUR-BASEURL/warehouse/releaseCar', postData, {
headers: {
'X-Api-Key': 'YOUR-API-KEY'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});