Search returns
search_returnsFind specific returns across all connected channels. query matches a return ID, order ID or reverse-shipment tracking (AWB) number, matched from the start of the stored id and case-sensitively (send the full id as printed; for a failed scan use diagnose_return_scan). Filter by channel, return bucket, received status, and date range. Each result is a full return record (reason, qty, refund, dates). Money in minor units.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_returns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max records to return (1-25, default 15). | |
| query | No | Return ID or AWB / tracking number to search for. | |
| since | No | ISO date — only returns initiated on/after this. | |
| until | No | ISO date — only returns initiated on/before this. | |
| bucket | No | Filter by return category. | |
| channel | No | Restrict to one channel code. | |
| received | No | true = already received at warehouse; false = awaiting receipt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Matched records. | |
| limit | No | ||
| total | No | Total matches before paging. | |
| offset | No | ||
| message | No | ||
| available | No |