GET POST | /SupplierStock/SupplierStockGet | Gets information on
current supplier stock list | Uses your API Key and some Filters
in an array format and returns the search results using the given filters.
Optionally, you can use ReturnTopNRecords to limit the number of the results to the specified number (omit, or add ReturnTopNRecords = -1 to get all the available results). The ReturnTopNRecords chooses the top records in a ProductId descending order.
A. Return the first mvSupplierStockList object with an "ExactStock"
ProductStockChoise and a ProductId that is greater than 30. The results are returned as mvSupplierStockList objects.
We can add two Filters by using the AndOr operator as shown below:
Value: {
"Filters": [
{
"FieldName": "ProductStockChoise",
"SearchOperator": "Equals",
"SearchValue": "ExactStock"
},
{
"AndOr": "And",
"FieldName": "ProductId",
"SearchOperator": "GreaterThan",
"SearchValue": 30
}
],
"ReturnTopNRecords": 1
}
Response: {
"mvSupplierStockList": [
{
"ProductID": 27388,
"ProductSKU": "",
"ProductLeadTimeChoice": "DayRange",
"ProductLeadTimeExactDate": "/Date(-62135596800000-0000)/",
"ProductLeadTimeMinDays": 0,
"ProductLeadTimeMaxDays": 3,
"ProductStockChoice": "ExactStock",
"ProductExactStock": 1,
"ProductStockRangeMin": 0,
"ProductStockRangeMax": 0,
"ProductSupplierPrice": 9
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
|
---|