create_bill
Create a supplier bill in Billy by specifying contact, date, and expense lines. Set state to approved to book immediately.
Instructions
Create a supplier bill (expense) in Billy with one or more lines coded to expense accounts. Created as draft by default; pass state=approved to book it immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Bill lines (at least one) | |
| state | No | Bill state (default 'draft') | |
| dueDate | No | Payment due date (YYYY-MM-DD) | |
| taxMode | No | Whether amounts include or exclude VAT (defaults to org setting) | |
| verbose | No | Return the full Billy response. Default false: compact records with key fields only (saves ~90% context) | |
| contactId | Yes | Supplier contact ID (see list_contacts) | |
| entryDate | Yes | Bill date (YYYY-MM-DD) | |
| voucherNo | No | Voucher number for the bill | |
| currencyId | No | Bill currency, e.g. 'DKK' (defaults to org base currency) | |
| suppliersInvoiceNo | No | The supplier's invoice number |