create_bill
Create a vendor bill by providing vendor, account, or department names, which are automatically matched to IDs. Returns bill details and a link to view in QuickBooks.
Instructions
Create a vendor bill. Accepts vendor/account/department names (will lookup IDs automatically). Note: DepartmentRef is header-level only — for multi-department splits, create separate bills (one per department). Returns bill details and a link to view in QuickBooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendor_name | No | Vendor display name (e.g., 'Simplisafe', 'PG&E'). Will be looked up to get ID. | |
| vendor_id | No | Vendor ID (use if you already know it, otherwise use vendor_name) | |
| txn_date | Yes | Transaction date in YYYY-MM-DD format | |
| due_date | No | Due date in YYYY-MM-DD format (optional) | |
| department_name | No | Header-level department/location name (e.g., '20358', 'Cotati'). Will be looked up to get ID. | |
| department_id | No | Header-level department/location ID (use if you already know it, otherwise use department_name) | |
| ap_account | No | Accounts Payable account name or number (optional, defaults to standard AP) | |
| memo | No | Private memo for the bill | |
| doc_number | No | Reference number for the bill (optional) | |
| lines | Yes | Array of expense line items. Provide account_name OR account_id (name preferred). | |
| draft | No | If true, validate and show preview without creating (default: true) |