get_invoice
Retrieve complete invoice details including line items from FreshBooks. Use this tool to access specific invoice information for accounting and client management purposes.
Instructions
Get full details of a specific invoice including line items.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes |
Implementation Reference
- src/mcp_freshbooks/server.py:138-143 (handler)The `get_invoice` tool is defined here as an asynchronous function, decorated with @mcp.tool() for registration and @_handle_errors for error management. It calls client.accounting_get to fetch invoice data and formats it using _fmt.
@mcp.tool() @_handle_errors async def get_invoice(invoice_id: int) -> str: """Get full details of a specific invoice including line items.""" result = await client.accounting_get("invoices/invoices", invoice_id) return _fmt(result.get("invoice", result))