GET - Transactions

Get Transactions based on a date period. Expired transactions will not be returned

URL

Verb Url
GET - Basic authentication /api/Transaction?ShopCode=shop code&DateFrom=date time&DateTo=date time

Request Parameters

Parameter Description Format
ShopCode Shop identifier as provided with your account string
DateFrom DateTime stamp of the First transaction. When 00:00:00 is used as time, the complete day is selected string in format 'yyyy-MM-ddTHH:mm:ss'
DateTo DateTime stamp of the Last transaction. When 00:00:00 is used as time, the complete day is selected string in format 'yyyy-MM-ddTHH:mm:ss'

Response Elements

        
            [
            {
            "Identifier":"VR_1234567890123_1_5"
            "ShopCode":"FL_NL_1",
            "TransactionNumber":1,
            "CashregisterCode":"KAS_1",
            "CashregisterEmployeeName":"Webshop",
            "TransactionDateTime":"yyyy-MM-ddTHH:mm:ssZ",
            "Expired": false,
            "Lines":
            [
            {
            "Eancode":"EAN-13",
            "Quantity": 1.00,
            "RetailPrice": 1.00,
            "OrgRetailPrice": 1.00,
            "VATPercentage": 1.00,
            "ValuePaper":"False",
            "ProductDescription": "Description of product sold",
            "ReturnReason": "", /* Reason the product is returned. Not filled */
            "BackInStock": False /* Should the return be added back to stock. Not filled */
            "Product":
            {
            "Identifier": "Identifier of the product"
            }
            }
            ],
            "Payments":
            [
            {
            "PaymentMethod":"method of payment",
            "Amount":1.00
            }
            ]

            },
            { ... (next transaction) ... }

        

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