curl --location --request PATCH 'https://app.mgpanel.co/api/invoices/507f1f77bcf86cd799439011' \
--header 'X-Account-Nick: {{ACCOUNT_NICK}}' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"description": "Factura actualizada",
"conditions": "Pago a 30 días",
"tax": 7,
"items": [
{
"description": "Servicio mensual",
"quantity": 2,
"price": 50,
"cycle": "monthly"
}
]
}'{
"success": true,
"message": "Factura actualizada exitosamente",
"invoice_id": "507f1f77bcf86cd799439011",
"code": "IVC-0001",
"client_id": "69e2421b805626dd00b7d7a2",
"subtotal": 100,
"tax": 7,
"discount": 0,
"total": 107
}