Search QuickBooks items
distru-search-quickbooks-itemsReadSearches the QuickBooks products and services that Distru lines sync to.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Default: 10 |
| cursor | string | No | nextCursor of the previous call; keep the other arguments unchanged. |
| ids | string[] | No | QuickBooks item IDs. |
| search | string | No | Case-insensitive substring or fuzzy word match on name. Ranks substring matches first, then by similarity, replacing sortBy. |
| usage | enumSALESPURCHASES | No | SALES: items with an income account; PURCHASES: items with an expense account. An item can be both. |
| includeHidden | boolean | No | Include hidden items, which cannot be assigned to products. |
| sortBy | object | No | Default UPDATED_AT DESC. Ignored while search is set. |
| sortBy. | enumASCDESC | Yes | |
| sortBy. | enumINSERTED_ATNAMEUPDATED_AT | Yes |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| hasMore | boolean | Always |
| nextCursor | string | Can be absent |
| totalCount | integer | Can be absent |
| items | object[] | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Can be null |
| items[]. | string | Can be null |
| items[]. | string | Can be null |
| items[]. | boolean | Always |
| items[]. | boolean | Always |
| items[]. | object | Can be null |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | boolean | Always |
| items[]. | boolean | Always |
| items[]. | object | Can be null |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | boolean | Always |
| items[]. | boolean | Always |
| items[]. | enumDELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED | Can be null |
What the AI reads
Searches Distru's QuickBooks items, without deleted ones: the QBO products and services that product, charge and credit lines sync to QuickBooks through, with the accounts they post to. For a product's own items use distru-search-products or distru-get-product; for QuickBooks' own chart of accounts use distru-search-qb-accounts. default = one of the company's two fallback items (sales, purchases): a line whose product has no item of its own syncs through it. qbIncomeAccount / qbExpenseAccount null = the item is not used in sales / purchases, or its account is missing from Distru's copy of the chart of accounts. qbItemId null = not created in QuickBooks yet. qbSyncStatus null = the company is not integrated with QuickBooks; NOT_SYNCED = never pushed.