Invoices
Full update an invoice
Replace all fields on an existing invoice. All required fields must be provided.
put/v1/invoices/{invoiceId}
Request
- Base URL: https://api.frihet.io
- URL: https://api.frihet.io/v1/invoices/{invoiceId}
- Auth: API key in header X-API-Key
Path parameters
invoiceIdstring required
Invoice unique identifier
Request body
Example request
{
"clientId": "client_abc123",
"clientName": "Acme Corp",
"clientTaxId": "B12345678",
"clientAddress": "Calle Mayor 12, 38001 Santa Cruz de Tenerife",
"clientLocation": "canarias",
"documentNumber": "FAC-2026-0042",
"items": [
{
"description": "Web development services",
"quantity": 10,
"unitPrice": 85
}
],
"issueDate": "2026-03-09",
"dueDate": "2026-04-09",
"notes": "Payment due within 30 days",
"taxRate": 21,
"irpfRate": 15,
"discountRate": 10,
"recurring": {
"enabled": true,
"frequency": "monthly",
"nextDate": "2026-04-01",
"endDate": "2027-03-31",
"maxOccurrences": 12
}
}Response
Invoice updated
Example response
{
"id": "abc123def456",
"clientId": "client_abc123",
"clientName": "Acme Corp",
"clientTaxId": "B12345678",
"clientAddress": "Calle Mayor 12, 38001 Santa Cruz de Tenerife",
"clientLocation": "canarias",
"documentNumber": "FAC-2026-0042",
"items": [
{
"description": "Web development services",
"quantity": 10,
"unitPrice": 85
}
],
"issueDate": "2026-03-09",
"dueDate": "2026-04-09",
"notes": "Payment due within 30 days",
"taxRate": 21,
"irpfRate": 15,
"discountRate": 10,
"recurring": {
"enabled": true,
"frequency": "monthly",
"nextDate": "2026-04-01",
"endDate": "2027-03-31",
"maxOccurrences": 12
},
"subtotal": 850,
"tax": 178.5,
"total": 1028.5,
"currency": "EUR"
}Changes
No recorded changes to this operation across all 1 revision of this API.