Skip to content

Get orders

[ GET ] order/drivingOrder

Fetch driving orders associated with the API user configured on the company that owns the API key.

Results use that user's driving-order customer access and spedition numbers. Other users on the company are not included.

[API KEY]
 └── [API COMPANY]
      └── [API USER]
           ├── [COMPANY DRIVINGORDER ACCESS]
           │    └── [DRIVING ORDER]
           ├── [COMPANY DRIVINGORDER ACCESS]
           │    ├── [DRIVING ORDER]
           │    └── [DRIVING ORDER]
           └── [COMPANY DRIVINGORDER ACCESS]
                └── [DRIVING ORDER]

Query parameters

All filters are optional.

Field Type Required Description Example
customer string No Customer number (kundenummer). Comma-separated for several customers. Defaults to all customers available to the API user. 02101

Example request

GET /api/order/drivingOrder?customer=02101
{
    "data": {
        "customerNumber": [
            {
                "customerNumber": string,
                "brand": string,
                "model": string,
                "regNo": string,
                "vin": string,
                "drivingDate": date,
                "expectedDeliveryDate": date,
                "trackAndTraceNumber": string,
                "bookingNumber": string,
                "pickupAddress": string,
                "pickupName": string,
                "pickupCode": string,
                "deliveryAddress": string,
                "deliveryName": string,
                "deliveryCode": string,
                "systemCreated": date,
            },
        ],
        "customerNumber2": [
            {
                "customerNumber": string,
                "brand": string,
                "model": string,
                "regNo": string,
                "vin": string,
                "drivingDate": date,
                "expectedDeliveryDate": date,
                "trackAndTraceNumber": string,
                "bookingNumber": string,
                "pickupAddress": string,
                "pickupName": string,
                "pickupCode": string,
                "deliveryAddress": string,
                "deliveryName": string,
                "deliveryCode": string,
                "systemCreated": date
            },
        ]
    }
}
<?php
    $ch = curl_init();

    curl_setopt_array($ch, [
        CURLOPT_URL => 'YOUR-BASEURL/order/drivingOrder',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => '',
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 0,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_HTTPHEADER => [
            'X-Api-Key: YOUR-API-KEY'
        ],
    ]);

    $response = curl_exec($ch);

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