GET - Stock parameters
Get extended stock information based on Last updated date
URL
Verb |
Url |
GET - Basic authentication |
/api/Stock/GetStockParameters?ShopCode=shop code&LastUpdated=date time&Page=page#&Take=#items |
Request Parameters
Parameter |
Description |
Format |
ShopCode |
Shop identifier as provided with your account |
string |
LastUpdated |
DateTime stamp of the last updated time for the product |
string in format 'yyyy-MM-dd HH: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
Name |
Description |
Note |
ArtikelIdentifier |
Identifier of the product |
|
Eancode |
Eancode of the product |
|
BranchIdentifier |
Shopcode |
|
StockProduct |
Does the shop maintain the stock parameters of this product |
|
Minimum |
The minimal quantity of stock |
|
Maximum |
The maximal quantity of stock |
|
NewStockQuantity |
The quantity of stock |
Called NewStockQuantity to adhere to object of StockParameter Post service |
Ordered |
The quantity currently on order |
|
Employee |
The name of the employee |
Available to adhere to object of StockParameter Post service |
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();
}
}
}