curl --location --request PATCH 'https://test.your-api-server.com/invoice/' \
--header 'Content-Type: application/json' \
--data-raw '{
"issueDate": "2024-01-15T10:30:00Z",
"invoiceNumber": "FAC-2024-001",
"externalId": "order-12345-invoice",
"totalAmount": 121,
"currency": "EUR",
"customerName": "Cliente Ejemplo SL",
"customerTaxId": "B12345678",
"emitterName": "Mi Empresa SL",
"emitterTaxId": "B87654321",
"type": "F1",
"description": "Venta de servicios de consultoría tecnológica",
"rectifiedInvoiceIds": [
"550e8400-e29b-41d4-a716-446655440000"
],
"taxLines": [
{
"taxType": "01",
"taxRate": 21,
"baseAmount": 1000,
"taxAmount": 210
},
{
"taxType": "01",
"taxRate": 10,
"baseAmount": 500,
"taxAmount": 50
}
],
"callback": "https://myapp.com/webhooks/verifactu"
}'