Ingredientes
Crear o editar ingrediente
Crea o actualiza un ingrediente. Si se envía _id, se actualiza el registro.
Autenticación requerida: Bearer Token.
post/ingredients
Request
- Base URLhttps://api.pirpos.com
- URLhttps://api.pirpos.com/ingredients
- AuthHTTP bearer
Request body
Example request
{
"_id": "507f1f77bcf86cd799439021",
"business": "507f1f77bcf86cd799439012",
"category": "507f1f77bcf86cd799439013",
"name": "Queso Mozzarella",
"description": "Queso para pizzas y pastas",
"unit": "507f1f77bcf86cd799439099",
"barcode": "7701234567890",
"stock": 25,
"stockMinimum": 5,
"price": 3500,
"isActive": true,
"isIngredient": true,
"modifiedOn": "2025-08-04T10:30:00.000Z",
"createdOn": "2025-08-01T09:15:00.000Z"
}Response
Ingrediente guardado exitosamente
Example response
{
"_id": "507f1f77bcf86cd799439021",
"business": "507f1f77bcf86cd799439012",
"category": "507f1f77bcf86cd799439013",
"name": "Queso Mozzarella",
"description": "Queso para pizzas y pastas",
"unit": "507f1f77bcf86cd799439099",
"barcode": "7701234567890",
"stock": 25,
"stockMinimum": 5,
"price": 3500,
"isActive": true,
"isIngredient": true,
"modifiedOn": "2025-08-04T10:30:00.000Z",
"createdOn": "2025-08-01T09:15:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.