GET - Location

Get Location information based on given parameters

URL

Verb Url
GET - Basic authentication /api/Stocklocation/GetLocations?ShopCode=shop code&Code=code&Region=region&LocationType=type

Request Parameters

At least one of the optional parameters need to be provided

Parameter Description Format
ShopCode Shop identifier as provided with your account string
Code Code of the location string
Region Region of the location within the warehouse string
LocationType The type of the Location string

Response Elements


[
{ /* Specification of the location within the warehouse */
    "Code": "SCP4", /* Code of the location */
    "Name": "Stelling C Positie 4", /* FullDescription of the location */
    "Region": "BP", /* Region within the warehouse */
    "LocationType": "FP", /* location type */
    "EuroPallet": false, /* stock on Euro pallet */
    "BlockPallet": true, /* stock on block pallet */
    "Position": 4, /* Position of the location within the warehouse */
    "Heigth": 500, /* heigth of the location  */
    "Row": 3, /* Row of the location within the warehouse */
    "Level": 0, /* Level of the location within the warehouse */
    "Comment": "", /* Comment on the location  */
    "BranchIdentifier": "FL_NL_27", /* Identifier of the Branch / ShopCode / LocationIdentifier */
    "RowId": 12 /* RowId of the Location. Set to 0 for new location */
}
,
{ ... (next Location) ... }
]

Code Samples

C#.net

        public string RequestUrlGET(string URL, string SourceUser, string SourcePassword)
        {
            HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(URL);
            string credentials = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(SourceUser + ":" + SourcePassword));
            request.Headers.Add("Authorization", "Basic " + credentials);
            using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
            {
                using (StreamReader content = new StreamReader(response.GetResponseStream()))
                {
                    return content.ReadToEnd();
                }
            }
        }