Get a return
distru-get-returnReadGets one return by ID: header detail with quantities, status, total, company, location, owner and sales order.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Resolve via distru-search-returns. |
| includeReturnItems | boolean | No |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| return | object | Null or absent |
| return. | string | Always |
| return. | object[] | Always |
| return. | object | Always |
| return. | string | Always |
| return. | string | Always |
| return. | enumCHECKBOXDATEDROPDOWNTEXT | Always |
| return. | string | Can be null |
| return. | string | Can be null |
| return. | string[] | Always |
| return. | string | Can be null |
| return. | string | Can be null |
| return. | enumDELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED | Can be null |
| return. | string | Can be null |
| return. | string | Always |
| return. | string | Can be null |
| return. | enumFULL_RETURNPARTIAL_RETURN | Can be null |
| return. | enumCOMPLETEDPROCESSINGRECEIVEDSHIPPED | Always |
| return. | number | Always |
| return. | object | Null or absent |
| return. | string | Always |
| return. | string | Null or absent |
| return. | object | Can be null |
| return. | string | Always |
| return. | string | Always |
| return. | object | Can be null |
| return. | string | Always |
| return. | object | Always |
| return. | string | Always |
| return. | object | Can be null |
| return. | string | Always |
| return. | string | Always |
| return. | object[] | Can be absent |
| return. | string | Always |
| return. | string | Always |
| return. | boolean | Always |
| return. | object | Can be null |
| return. | string | Always |
| return. | object | Always |
| return. | string | Always |
| return. | string | Always |
| return. | object | Always |
| return. | string | Always |
| return. | string | Always |
What the AI reads
Gets one return by ID: header detail with quantities, status, total, company, location, owner and sales order. Line items are left out unless you pass includeReturnItems. Use for a specific return after resolving its ID via distru-search-returns; to browse or search returns use distru-search-returns. Generic returns have no sales order — salesOrder, orderQuantity, returnQuantity and returnType are null and invoiceNumbers is empty. qbCreditMemoId is the QuickBooks credit memo the return itself synced as. qbSyncStatus is null unless the company's QuickBooks module is on and connected, and while the company syncs credits to QuickBooks: the credit the return created then syncs instead and carries the credit memo, so qbCreditMemoId is set only if the return synced before that. PENDING and ERROR are its latest sync's outcome and win over the rest; NOT_SYNCED = it has no QuickBooks credit memo. For why a sync failed, use distru-search-quickbooks-activities with returnIds. Null if no return matches the ID; a permission error if the caller can't view it.