stringlogin="YOUR_USERNAME";stringpassword="PASSWORD";stringapiVersion="v001";stringstoreID="19771";stringbaseAddress="https://integration-test.gettipsi.com";List<Dictionary<string,object>>syncData=newList<Dictionary<string,object>>{newDictionary<string,object>{// all fields described here https://github.com/Nepherhotep/tipsi-sync-c-sharp-sample/wiki/API-Description#base-inventory-struct{ TipsiClient.ExternalId,220010},// external_id, which will be used to lookup inventory item{"barcodes":["22-0010","22-0020"]},// you can specify alternate barcodes here, will override existing barcodes{"unit_size","750ml"},// bottle size in ml (standard bottle - 750ml){"price",34.4},// bottle price{"in_stock",12}// number of items in stock},newDictionary<string,object>{{ TipsiClient.ExternalId,234000},{"barcodes":["000-234-000"]},{"unit_size","750ml"},{"price",34.4},{"in_stock",12}}};TipsiClienttipsiClient=new TipsiClient(baseAddress, apiVersion, login, password);
tipsiClient.LoginAsync().Wait();
Console.WriteLine("Login is successful!!!");// sync clear will automatically set in_stock param to "0" for unlisted items in the given batchsyncResult= tipsiClient.SyncClearAsync(storeID, syncData).Result;