Inventario
Crear o editar movimiento de inventario
Crea un movimiento de inventario o lo actualiza si se envía _id. Soporta facturas, pagos y movimientos entre ubicaciones.
Autenticación requerida: Bearer Token.
post/inventory
Request
- Base URLhttps://api.pirpos.com
- URLhttps://api.pirpos.com/inventory
- AuthHTTP bearer
Request body
Example request
{
"_id": "507f1f77bcf86cd799439040",
"business": "507f1f77bcf86cd799439012",
"user": "507f1f77bcf86cd799439100",
"date": "2025-08-05T10:30:00.000Z",
"type": 1,
"provider": "507f1f77bcf86cd799439055",
"typeName": "Entrada - Compra",
"total": 45000
}Response
Movimiento guardado exitosamente
Example response
{
"_id": "507f1f77bcf86cd799439040",
"business": "507f1f77bcf86cd799439012",
"user": "507f1f77bcf86cd799439100",
"date": "2025-08-05T10:30:00.000Z",
"type": 1,
"provider": "507f1f77bcf86cd799439055",
"typeName": "Entrada - Compra",
"total": 45000
}Changes
No recorded changes to this operation across all 1 revision of this API.