Gastos
Crear o editar gasto
Crea un gasto o actualiza uno existente si se envía _id. Requiere caja activa.
Autenticación requerida: Bearer Token.
post/expenses
Request
- Base URLhttps://api.pirpos.com
- URLhttps://api.pirpos.com/expenses
- AuthHTTP bearer
Request body
Example request
{
"_id": "507f1f77bcf86cd799439500",
"business": "507f1f77bcf86cd799439012",
"typeExpense": "507f1f77bcf86cd799439600",
"paidTo": "507f1f77bcf86cd799439700",
"paymentMethod": "Efectivo",
"cashBox": "507f1f77bcf86cd799439800",
"provider": "507f1f77bcf86cd799439200",
"description": "Compra insumos",
"invoiceNumber": "G-001",
"subTotal": 10000,
"taxes": 1900,
"subtractCashRegister": true,
"date": "2025-08-05T10:30:00.000Z"
}Response
Gasto creado o actualizado
Example response
{
"_id": "507f1f77bcf86cd799439500",
"business": "507f1f77bcf86cd799439012",
"typeExpense": "507f1f77bcf86cd799439600",
"paidTo": "507f1f77bcf86cd799439700",
"paymentMethod": "Efectivo",
"cashBox": "507f1f77bcf86cd799439800",
"provider": "507f1f77bcf86cd799439200",
"description": "Compra insumos",
"invoiceNumber": "G-001",
"subTotal": 10000,
"taxes": 1900,
"subtractCashRegister": true,
"date": "2025-08-05T10:30:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.