API referenceWebhook events
stock.hard_down
A stock item moved into hard down. Lockii POSTs this body to every webhook URL registered for the company whose stored event types include stock.hard_down, or whose stored value is *. Respond with any 2xx.
Body
application/json
companyIdstringrequiredCompany that owns the record.
eventTypeenum<string>requiredOne of:stock.hard_downpayloadobjectrequired
Example payload
{
"companyId": "string",
"eventType": "stock.hard_down",
"payload": {
"locationName": "string",
"partID": "string",
"partName": "string",
"previousStatus": "string",
"productName": "string",
"status": "hard_down",
"stockID": "string",
"stockLabel": "string"
}
}Your response
200
Any 2xx acknowledges the delivery. Any other response is treated as a failure.