GET - Product pricing

Get pricing information on products based on Lastupdated date

URL

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

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

Response Elements

Name Description
ProductIdentifier Identifier of the product
Eancode Eancode of the product
RetailPrice Current retail price of the product including VAT
VatPercentage Percentage of VAT included in the RetailPrice

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