GET - Product

Get product information based on Lastupdated date

URL

Verb Url
GET - Basic authentication /api/Product?ShopCode=shop code&UpdatedFrom=date time&UpdatedTo=date time&LastUpdated=date time&Page=page#&Take=#items&ReturnMainEancode=False

Request Parameters

Parameter Description Format
ShopCode Shop identifier as provided with your account string
UpdatedFrom Optional parameter. First datetime stamp from which you want to receive updated products. Used together with UpdatedTo string in format 'yyyy-MM-ddTHH:mm:ss'
UpdatedTo Optional parameter. Last datetime stamp From which you want to receive updated products. Used together with UpdatedFrom string in format 'yyyy-MM-ddTHH:mm:ss'
LastUpdated Optional parameter. DateTime stamp of the last updated time for the product. Used for backwards compatibililty. Use UpdatedFrom and UpdatedTo parameters string in format 'yyyy-MM-dd HH:mm:ss'
Page Optional Parameter for paging, containing the page which is asked integer, default 0
Take Optional Parameter for paging, containing the number of items to return integer, default and maximum 500
ReturnMainEancode Optional Parameter for determining if the Products main Eancode has preference over the most recent one Boolean, default on false

Response Elements

Name Description
ProductIdentifier Identifier of the product
Eancode Eancode of the product
AdvicePrice Current Advice price of the product including VAT. Actual Retailprice should be checked through ProductPricing webservice
VatPercentage Percentage of VAT included in the RetailPrice
PurchasePrice Average Purchaseprice of the product
OrderNr Number to order the product at the supplier
Brand Brand of the product
Subbrand Subbrand of the product
Description Full description of the product
PreferredSupplier The preferred supplier to purchase the product from
Content Content of the product
Unit Unit of the content of the product
ProductGroupNumber Number of the lowest productgroup
ProductGroup Description of the lowest productgroup
ProductGroupNumberLevel1 Number of the productgroup one level above the lowest productgroup
ProductGroupLevel1 Description of the productgroup one level above the lowest productgroup
ProductGroupNumberLevel2 Number of the productgroup 2 levels above the lowest productgroup
ProductGroupLevel2 Description of the productgroup 2 levels abouve the lowest productgroup
IsOrderable Is the product available to order at the supplier
CreationDate The creation date for the product by the preferred supplier
LastUpdated The last time the product was updated by any supplier

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