freeagent_create_bill
Record supplier invoices received by the company, specifying spending categories and tax-inclusive line values. Searches connected email for the original invoice PDF and attaches it to the bill.
Instructions
Record a supplier bill (an invoice the company has received and owes). Each line needs a spending category and a value including tax.
RECEIPTS: before asking the user for the PDF, search connected email tools (Gmail, Outlook/M365) for the supplier invoice and pass it as fileBase64 + fileName.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueOn | Yes | Payment due date YYYY-MM-DD | |
| items | Yes | Bill line items — at least one, at most 40 | |
| contact | Yes | Supplier the bill is from — create one with freeagent_create_contact | |
| datedOn | Yes | Bill date YYYY-MM-DD | |
| project | No | Project to allocate this bill to | |
| currency | No | ISO 4217 currency (default: company currency) | |
| fileName | No | File name (e.g. 'invoice.pdf') | |
| reference | Yes | Supplier's invoice reference (e.g. 'INV-2049') | |
| fileBase64 | No | Base64-encoded supplier invoice (PDF, PNG, JPEG) | |
| rebillType | No | How to rebill this to the client | |
| contentType | No | MIME type. Inferred from fileName if omitted. | |
| rebillFactor | No | Markup percentage or fixed price — required for markup/price |