Skip to content

Addresses

[ GET ] warehouse/addresses

Get list of avaliable addresses

{
    "data": [
        "customerName": [
            "customerNumber": int|string,
            "addressCodes": [int|string]
        ],
        "customerName2": [
            "customerNumber": int|string,
            "addressCodes": [int|string]
        ]
    ]
}
<?php
    $ch = curl_init();

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

    $response = curl_exec($ch);

    curl_close($ch);
const axios = require('axios');

axios.get('YOUR-BASEURL/warehouse/addresses', {
    headers: {
        'X-Api-Key': 'YOUR-API-KEY'
    }
})
.then(response => {
    console.log(response.data);
})
.catch(error => {
    console.error(error);
});