Get a return

distru-get-returnRead

Gets one return by ID: header detail with quantities, status, total, company, location, owner and sales order.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
idstringYesResolve via distru-search-returns.
includeReturnItemsbooleanNo

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
returnobjectNull or absent
return.idstringAlways
return.customFieldsobject[]Always
return.customFields[].customFieldobjectAlways
return.customFields[].customField.idstringAlways
return.customFields[].customField.namestringAlways
return.customFields[].customField.fieldTypeenum
CHECKBOXDATEDROPDOWNTEXT
Always
return.customFields[].valuestringCan be null
return.descriptionstringCan be null
return.invoiceNumbersstring[]Always
return.orderQuantitystringCan be null
return.qbCreditMemoIdstringCan be null
return.qbSyncStatusenum
DELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED
Can be null
return.returnDatestringCan be null
return.returnNumberstringAlways
return.returnQuantitystringCan be null
return.returnTypeenum
FULL_RETURNPARTIAL_RETURN
Can be null
return.statusenum
COMPLETEDPROCESSINGRECEIVEDSHIPPED
Always
return.totalnumberAlways
return.companyobjectNull or absent
return.company.idstringAlways
return.company.namestringNull or absent
return.locationobjectCan be null
return.location.idstringAlways
return.location.namestringAlways
return.ownerobjectCan be null
return.owner.idstringAlways
return.owner.profileobjectAlways
return.owner.profile.fullNamestringAlways
return.salesOrderobjectCan be null
return.salesOrder.idstringAlways
return.salesOrder.orderNumberstringAlways
return.returnItemsobject[]Can be absent
return.returnItems[].idstringAlways
return.returnItems[].quantitystringAlways
return.returnItems[].wastebooleanAlways
return.returnItems[].orderItemobjectCan be null
return.returnItems[].orderItem.idstringAlways
return.returnItems[].orderItem.productobjectAlways
return.returnItems[].orderItem.product.idstringAlways
return.returnItems[].orderItem.product.namestringAlways
return.returnItems[].productobjectAlways
return.returnItems[].product.idstringAlways
return.returnItems[].product.namestringAlways
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.