GET - Stocklocation

Get Stock location information based on given parameters

URL

Verb Url
GET - Basic authentication /api/Stocklocation?ShopCode=shop code&Eancode=eancode

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
Eancode Eancode of the product for which the Stocklocation is requested string

Response Elements


[
{
    "ProductIdentifier": "LX_NL_123456", /* Identifier of the Product */
    "BranchIdentifier": "FL_NL_1", /* Identifier of the Branch / ShopCode / LocationIdentifier */
    "Location": { /* Specification of the location within the warehouse */
        "Code": "SCP4",
        "Name": "Stelling C Positie 4",
        "Region": "BP",
        "LocationType": "2-BIN",
        "EuroPallet": false,
        "BlockPallet": true,
        "Position": 4,
        "Heigth": 500,
        "Row": 3,
        "Level": 0,
        "Comment": "",
        "BranchIdentifier": "FL_NL_1", /* Identifier of the Branch / ShopCode / LocationIdentifier */
        "RowId": 1 /* RowId of the Location. Set to 0 for new location */
    },
    "Warehouse": "Grote hal", /* Name of the Warehouse */
    "Primary": true, /* Is this the primary location of the Product */
    "RowId": 1 /* RowId of the stock locatioin. Set to 0 for new location */
}
,
{ ... (next Stocklocation) ... }
]

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();
                }
            }
        }