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.
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 |