GET - SelfcareCashregister

Get selfcare cashregister product information based on date updated

URL

Verb Url
GET - Basic authentication /api/SelfcareCashregister?UpdatedFrom=date time&UpdatedTo=date time&Page=page#&Take=#items

Request Parameters

Parameter Description Format
UpdatedFrom First datetime stamp from which you want to receive updated products. Used together with UpdatedTo string in format 'yyyy-MM-ddTHH:mm:ss'
UpdatedTo Last datetime stamp From which you want to receive updated products. Used together with UpdatedFrom string in format 'yyyy-MM-ddTHH: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

        
     [
         {
        "gtin": "EAN-13"",
        "additionalTradeItemIdentificationValue": "Additional trade item identification",
        "regulatedProductName": "Regulated product name",
        "registrationCode": "code"",
        "certificationValue": "ATC Code",
        "consumerSalesCondition": {
            "code": "Consumer sales condition - code",
            "description": "Consumer sales condition - description"
        },
        "drugSideEffectsAndWarnings": [
            {
                "graduatedText": "Text for graduated employee",
                "cashierText": "Text for normal cashier employee"
            }
        ]
        }
         ,
         { ... (next Selfcare cashregister product) ... }
     ]
        
    

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