Skip to content

Get readydates

[ GET ] readydates

Get a list of the accepted readydates, which you can use to specify on the order (pickup_date).

{
    "data": [
        "02-01-2023",
        "03-01-2023",
        "04-01-2023",
        "05-01-2023",
        "06-01-2023",
        "09-01-2023",
        ...
    ]
}
<?php
    $ch = curl_init();

    curl_setopt_array($ch, [
        CURLOPT_URL => 'YOUR-BASEURL/readydates',
        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/readydates', {
    headers: {
        'X-Api-Key': 'YOUR-API-KEY'
    }
})
.then(response => {
    console.log(response.data);
})
.catch(error => {
    console.error(error);
});