PUT - Customer Orderlines

Put customerorder lines

URL

Verb Url Json object
PUT - Basic authentication /api/CustomerOrder/UpdateOrderlines?ShopCode=shop code List of API_OrderLine

Request Parameters

Parameter Description Format
ShopCode Shop identifier as provided with your account string

Json: API_Orderline

    
    [
        {
            "ProductIdentifier": "LX_NL_123456",
            "ProductDescription": "VERZORGINGSDOUCHE",
            "QuantityOrdered": 1.00,
            "ConsumerQuantityOrdered": 1.00,
            "QuantityDelivered": 1.00,
            "ConsumerQuantityDelivered": 1.00,
            "Amount": 1.00,
            "Eancode": "EAN-13",
            "VatPercentage": 1.00,
            "RetailPrice": 1.00,
            "PurchasePrice": 1.00,
            "Comments": "{"FrameColor":{"Value":"Rood"},"TopColor":{"Value":"Zwart"},"ThreadColor":{"Value":"Wit"},"Bijzonderheden":{"Value":"Leer"}}",
            "stockLocationCode": "L01X5", /* Location of the product in warehouse */
            "RowId": 1, /* RowId 0 for new OrderLines */
        }
    ]
    
    

Response Elements

Name Description
Orderlines List of API_OrderLine

Code Samples

C#.net

            
        public async void Post(List<APIObject> APIObjects, string Url, string SourceUser, SourcePassword)
        {
            using (System.Net.Http.HttpClient client = new System.Net.Http.HttpClient())
            {

                System.Net.Http.HttpContent content = Newtonsoft.Json.JsonConvert.SerializeObject(APIObjects);

                string credentials = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(SourceUser + ":" + SourcePassword));
                content.Headers.Add("Authorization", "Basic " + credentials);

                var response = await client.PostAsync(Url, content);

                var responseString = await response.Content.ReadAsStringAsync();
            }
        }