API ReferenceInvoices
Delete a draft invoice
Permanently deletes a draft invoice. Only draft invoices can be deleted.
Authorization
apiKey AuthorizationBearer <token>
API key issued from your AgentInvoice account settings.
In: header
Path Parameters
id*integer
Invoice ID
Response Body
curl -X DELETE "https://app.agentinvoice.co/api/invoices/0"Empty
Create an invoice
Creates a new invoice in draft status with line items. The invoice number is automatically assigned. The invoice must be finalized before it can be sent.
Finalize a draft invoice
Locks the invoice, preventing further edits. Status changes from 'draft' to 'finalized'. Must be finalized before sending.