Preview what an invoice would contain
invoice.preview_draftUse this when the user asks what they could invoice a client for, or wants to see unbilled work before creating an invoice. Creates nothing. Returns the lines, hours, and total an invoice.create_draft call with the same arguments would produce.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | Yes | Client name or id | |
| through_date | No | Include unbilled entries up to and including this date. Default: today. | |
| group_lines_by | No | Default "project" | |
| tax_rate_percent | No |