{
"external_store_id": "tienda-principal",
"reason": "SPOILAGE",
"lines": [
{
"external_item_id": "tomate-bola",
"quantity": 1.5,
"unit_id": "unit_kg_01..."
}
],
"external_user_id": "chef_01"
}
{
"id": "we_01...",
"status": "COMPLETED",
"store_id": "str_principal_01...",
"reason": "SPOILAGE"
}
Eventos de merma
Crear evento de merma
Registra artículos desechados o desperdiciados. Disminuye los niveles de stock.
POST
/
api
/
v1
/
public
/
vendors
/
{vendorId}
/
operations
/
waste-events
{
"external_store_id": "tienda-principal",
"reason": "SPOILAGE",
"lines": [
{
"external_item_id": "tomate-bola",
"quantity": 1.5,
"unit_id": "unit_kg_01..."
}
],
"external_user_id": "chef_01"
}
{
"id": "we_01...",
"status": "COMPLETED",
"store_id": "str_principal_01...",
"reason": "SPOILAGE"
}
string
requerido
API key de BOH con scope
inventory:write.string
requerido
UUID del vendor.
string
UUID del establecimiento. Se requiere
store_id o external_store_id.string
ID externo del establecimiento.
string
Cuándo ocurrió la merma (ISO 8601).
string
Razón de la merma (ej.
SPOILAGE, DAMAGE, EXPIRY).string
Notas adicionales.
object[]
requerido
string
requerido
Actor responsable.
string
Clave de idempotencia.
{
"external_store_id": "tienda-principal",
"reason": "SPOILAGE",
"lines": [
{
"external_item_id": "tomate-bola",
"quantity": 1.5,
"unit_id": "unit_kg_01..."
}
],
"external_user_id": "chef_01"
}
{
"id": "we_01...",
"status": "COMPLETED",
"store_id": "str_principal_01...",
"reason": "SPOILAGE"
}

