Listar, consultar y crear productos, y ajustar stock por depósito
/api/v1/productsscope: products:read| Nombre | Tipo | Obligatorio | Notas |
|---|---|---|---|
| page | number | no | default 1 |
| pageSize | number | no | default 20, tope 100 |
| search | string | no | busca por código o descripción |
curl https://tu-tenant.liminar.cloud/api/v1/products?search=tornillo \
-H "Authorization: Bearer lim_live_xxxxxxxx"Inventario → Productos.
/api/v1/products/:idscope: products:readDetalle de producto en Inventario → Productos.
/api/v1/productsscope: products:write| Nombre | Tipo | Obligatorio | Notas |
|---|---|---|---|
| codigo | string | sí | N/D |
| descripcion | string | sí | N/D |
| unidadMedida | string | no | N/D |
| tipo | string | no | N/D |
curl -X POST https://tu-tenant.liminar.cloud/api/v1/products \
-H "Authorization: Bearer lim_live_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"codigo":"TOR-001","descripcion":"Tornillo M6x20"}'El producto aparece de inmediato en Inventario → Productos.
/api/v1/products/:id/stockscope: products:writeReintentar la misma request con el mismo par refType/refId no duplica el
ajuste de stock.
| Nombre | Tipo | Obligatorio | Notas |
|---|---|---|---|
| depotId | string | sí | N/D |
| quantity | number | sí | N/D |
| type | string | sí | ej. "ingreso", "egreso", "ajuste" |
| refType | string | sí | junto a refId, hace el movimiento idempotente |
| refId | string | sí | junto a refType, hace el movimiento idempotente |
| reason | string | no | N/D |
| unitCost | number | no | N/D |
El movimiento aparece en el historial de stock del depósito, dentro del detalle del producto.