freeagent_create_invoice
Create a draft invoice in FreeAgent for a client. The invoice stays unsent until you mark it as sent, allowing review before sending.
Instructions
Raise an invoice in FreeAgent. Created as a DRAFT — it is not sent to the client. Use freeagent_update_invoice_status with 'mark_as_sent' once you have issued it.
Find the contact with freeagent_list_contacts and the income category with freeagent_list_categories (income categories, e.g. 001 Sales).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Invoice line items — at least one | |
| contact | Yes | Contact to invoice | |
| datedOn | Yes | Invoice date YYYY-MM-DD | |
| project | No | Project this invoice belongs to | |
| comments | No | Notes shown on the invoice | |
| currency | No | ISO 4217 currency (default: company currency) | |
| reference | No | Invoice reference/number. FreeAgent auto-numbers if omitted. | |
| poReference | No | Client purchase order reference | |
| discountPercent | No | Discount percentage (e.g. '10.0') | |
| paymentTermsInDays | No | Payment terms in days (default 30) — sets the due date |