public void CreateAdditionalPriceList() { var additionalPriceList = new AdditionalPriceList { Description = "My New Pricelist", IsDefault = false }; var newPricelist = Api.AdditionalPriceListRequest.Save(additionalPriceList); }
public AdditionalPriceList Save(AdditionalPriceList pricelist) { var url = string.Format("AdditionalPriceList/Save?apikey={0}&companyid={1}", _apiKey, _companyId); var request = new RestRequest(url, Method.POST) { JsonSerializer = new JsonSerializer() }; request.RequestFormat = DataFormat.Json; request.AddBody(pricelist); var response = _client.Execute<AdditionalPriceList>(request); return response.Data; }