Skip to content

Get booking number

[ POST ] order/bookingNumber/:car_id

Look up the Navision booking number for a car. car_id is the id returned from POST order.
POST requests must include a JSON body. An empty object is enough.

The returned number can be used with POST order/bookingID (fields.type = navision_booking_number) and with POST order/update when changing car status.

Path parameters

Parameter Required Description
car_id car_id from POST order

Example request

POST /api/order/bookingNumber/123456
{}
{}
{
    "data": {
        "number": string
    }
}
<?php
    $ch = curl_init();

    curl_setopt_array($ch, [
        CURLOPT_URL => 'YOUR-BASEURL/order/bookingNumber/:car_id',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => '',
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 0,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_POSTFIELDS => '{}',
        CURLOPT_HTTPHEADER => [
            'X-Api-Key: YOUR-API-KEY',
            'Content-Type: application/json'
        ],
    ]);

    $response = curl_exec($ch);

    curl_close($ch);
const axios = require('axios');
axios.post('YOUR-BASEURL/order/bookingNumber/:car_id', {}, {
    headers: {
        'X-Api-Key': 'YOUR-API-KEY'
    }
})
.then(response => {
    console.log(response.data);
})
.catch(error => {
    console.error(error);
});