Productos
Convertir producto en subproducto
Convierte un producto existente en subproducto de otro producto.
Autenticación requerida: Bearer Token.
post/products/convertToSubproduct
Request
- Base URLhttps://api.pirpos.com
- URLhttps://api.pirpos.com/products/convertToSubproduct
- AuthHTTP bearer
Request body
Response
Producto convertido exitosamente
Example response
{
"_id": "507f1f77bcf86cd799439011",
"business": "507f1f77bcf86cd799439012",
"category": "507f1f77bcf86cd799439013",
"name": "Hamburguesa Clásica",
"nameShort": "Hamb. Clásica",
"description": "Deliciosa hamburguesa con carne, lechuga y tomate",
"price": 15000,
"pricePurchase": 9000,
"urlImage": "https://ejemplo.com/hamburguesa.jpg",
"barcode": "1234567890123",
"tax": "507f1f77bcf86cd799439020",
"promo": "507f1f77bcf86cd799439021",
"unit": "507f1f77bcf86cd799439030",
"stock": 50,
"stockMinimum": 5,
"variablePrice": {
"type": "MayorValor"
},
"isActive": true,
"discountInventory": true,
"inventoryType": "PerUnit",
"type": "Normal",
"configCombo": {
"options": [
{
"selectionType": "All",
"name": "Opción"
}
]
},
"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.