Get invoice
get_invoiceRetrieve a QuickBooks invoice by its Id to view lines, totals, balance, due date, and SyncToken, and confirm if it is still open.
Instructions
Read one invoice by QuickBooks Id, including its lines, totals, remaining balance, due date, and the current SyncToken. Use it to check whether an invoice is still open, and to obtain the SyncToken that update_invoice and delete_invoice require. Read-only. An unknown Id returns ok=false with status 404; find the Id with search_invoices (which also matches on DocNumber) or list_invoices.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_id": "<invoice_id>"
},
"name": "get_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | QuickBooks Invoice Id, as returned by search_invoices, list_invoices, or create_invoice. This is the internal Id, not the DocNumber printed on the invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| invoice | No |