freeagent_create_invoice
Create a new FreeAgent invoice from a contact, invoice date, payment terms, and optional line items to record billable work or products.
Instructions
Create a new invoice in FreeAgent
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contact": "<contact>",
"dated_on": "<dated_on>",
"payment_terms_in_days": "<payment_terms_in_days>"
},
"name": "freeagent_create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contact | Yes | Contact URL (e.g. https://api.freeagent.com/v2/contacts/123) | |
| comments | No | Comments to appear on the invoice | |
| currency | No | Currency code (e.g. GBP, USD) | |
| dated_on | Yes | Invoice date (YYYY-MM-DD) | |
| ec_status | No | EC status for EU VAT | |
| reference | No | Invoice reference | |
| exchange_rate | No | Exchange rate | |
| invoice_items | No | JSON string of array of invoice items. Each item has fields: item_type (Hours/Days/Weeks/Months/Years/Products/Comment/Rebilling), quantity (string), price (string), description (string) | |
| payment_methods | No | Payment methods | |
| payment_terms_in_days | Yes | Payment terms in days (e.g. 30) |