Get an invoice
distru-get-invoiceReadGets one invoice by ID: header detail with totals, paid and remaining amounts, dates, customer, owner, billing location and sales order.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Resolve via distru-search-invoices. |
| includeInvoiceItems | boolean | No | |
| includeInvoiceCharges | boolean | No | Charges, discounts and taxes. |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| invoice | object | Null or absent |
| invoice. | string | Always |
| invoice. | object[] | Always |
| invoice. | object | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | enumCHECKBOXDATEDROPDOWNTEXT | Always |
| invoice. | string | Can be null |
| invoice. | string | Always |
| invoice. | enumNOT_PAIDOVER_PAIDPAIDPARTIALLY_PAID | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Can be null |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Can be null |
| invoice. | string | Can be null |
| invoice. | string | Can be null |
| invoice. | enumDELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED | Can be null |
| invoice. | string | Can be null |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | object | Null or absent |
| invoice. | string | Always |
| invoice. | string | Null or absent |
| invoice. | object | Can be null |
| invoice. | string | Always |
| invoice. | object | Always |
| invoice. | string | Always |
| invoice. | object | Can be null |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | object | Can be null |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | object[] | Can be absent |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | object | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | boolean | Always |
| invoice. | string | Can be null |
| invoice. | object | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | object | Can be null |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | object | Can be null |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | object[] | Can be absent |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Always |
| invoice. | string | Can be null |
| invoice. | string | Always |
| invoice. | boolean | Always |
What the AI reads
Gets one invoice by ID: header detail with totals, paid and remaining amounts, dates, customer, owner, billing location and sales order. Line items and charges are left out unless you pass includeInvoiceItems or includeInvoiceCharges. Use for a specific invoice after resolving its ID via distru-search-invoices (search takes an invoice number, e.g. one from distru-report-invoice-history); to browse invoices use distru-search-invoices. For its payments, use distru-search-invoice-payments with invoiceIds. salesOrder is null if the caller lacks access to the underlying order or none exists. qbSyncStatus ERROR: distru-search-quickbooks-activities with invoiceIds gives the error. ERROR or NOT_SYNCED: distru-sync-to-quickbooks pushes it, or says why it can't. Null if no invoice matches the ID; a permission error if the caller can't view it.