Stock
Stock value by simple_sku
Endpoint
/shop-api/monitoring/stock/quantity/[SKU]/[Y-m-d\TH:i:sO]
{
"SuccessResponse": {
"Head": {
"RequestId": "",
"RequestAction": "shop-api/monitoring/stock/quantity",
"ResponseType": "JSON",
"Timestamp": "2016-10-21T10:56:33+0200"
},
"Body": {
"quantity": {
"quantity": "0",
"sku": "ES65587AA001SWG-1"
},
"sku": "ES65587AA001SWG-1",
"created_at": {
"from": "",
"to": "2016-10-20T22:56:33"
}
}
}
}
Number of stock updates done with following conditions: where updated_at higher than last 24h and less than last 5 minutes (parameter for threshold)
Endpoint
/shop-api/monitoring/stock/updates/[Y-m-d\TH:i:sO]
{
"SuccessResponse": {
"Head": {
"RequestId": "",
"RequestAction": "shop-api/monitoring/stock/updates",
"ResponseType": "JSON",
"Timestamp": "2016-10-21T10:56:57+0200"
},
"Body": {
"updates": "0",
"updated_at": {
"from": "2016-10-19T22:56:57",
"to": "2016-10-20T22:56:57"
}
}
}
}