curl --location 'https://app.mgpanel.co/api/invoices' \
--header 'X-Account-Nick: {{ACCOUNT_NICK}}' \
--header 'X-Account-Nick: {{ACCOUNT_NICK}}' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"client": {
"name": "Juan Perez",
"email": "juan@test.com",
"phone": "3001234567"
},
"items": [
{
"description": "Servicio de consultoría",
"quantity": 1,
"price": 100,
"discount": 0,
"cycle": "one_time"
}
],
"tax": 0,
"discount": 0,
"description": "Factura de servicios",
"conditions": "Pago a 15 días"
}'