invoices
Update Invoice
Update an existing invoice. Supports partial updates.
Updatable fields:
- lineItems: Array of line items if calculationMethod is "LINE_ITEMS"
- sections: Grouped line items if calculationMethod is "LINE_ITEMS"
- percentage: Percentage if calculationMethod is "PERCENTAGE"
- issueDate: ISO 8601 datetime string
- dueDate: ISO 8601 datetime string
- description: Invoice description
- status: Invoice status — one of DRAFT, SENT, DECLINED, PAID, PARTIALLY_PAID, OVERDUE. Only valid transitions from the invoice's current status are accepted (e.g. DECLINED is reachable from DRAFT, SENT, OVERDUE, or PARTIALLY_PAID); an invalid transition is rejected with a 400.
- isActive: Set to false to archive the invoice, or true to unarchive it. Applied independently of any other fields present in the same request.
calculationMethod cannot be changed after creation and is rejected if included.
patch/invoices/{invoice_id}
Request
- Base URL: https://api.coperniq.io/v1
- URL: https://api.coperniq.io/v1/invoices/{invoice_id}
- Auth: API key in header x-api-key
Path parameters
invoice_idinteger required
Invoice identifier
Request body
Response
Invoice updated successfully
Changes
No recorded changes to this operation across all 1 revision of this API.