Export report
export_reportGenerates a CSV of transactions, refunds, receipts, return labels, or carrier adjustments for an optional date range and search, returning a download link when rows match.
Instructions
A CSV of the transactions, refunds, receipts, return labels or carrier adjustments report.
Builds the same spreadsheet as the Export button of the chosen Reports table, with every column of the matching list_ tool, for an optional date range and search. Returns a link to the CSV; no matching rows return empty true and no link. Shipments have their own tool, export_shipments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"report": "<report>"
},
"name": "export_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Order by date. | newest |
| report | Yes | ||
| search | No | Free text, as in the report's search box. | |
| to_date | No | Last day, YYYY-MM-DD, included. | |
| from_date | No | First day, YYYY-MM-DD, in your timezone. |