Reports
Read your sales summary and export completed orders for accounting.
Reports are reads — any valid personal access token can fetch them for its own company (no write scope needed). They're scoped to your company like every other request.
Sales summary
curl "$IORDERTRACK_API_URL/vendor/reports/sales?companyId=123" \
-H "Authorization: Bearer $IORDERTRACK_API_TOKEN"Returns last-30-day and lifetime revenue + units, a month-by-month breakdown (last 12 months), and your top products by revenue. When the winning listing carries a cost, the payload also includes COGS and gross margin.
Accounting export
GET /vendor/reports/orders-export streams completed (paid) orders for an
accounting package.
curl "$IORDERTRACK_API_URL/vendor/reports/orders-export?companyId=123&format=csv&grouping=order&from=2026-01-01&to=2026-03-31" \
-H "Authorization: Bearer $IORDERTRACK_API_TOKEN" -o orders.csv| Parameter | Values | Notes |
|---|---|---|
format | csv, qb-iif, xero-csv, qbo-json | accounting-package format |
grouping | order, item | one row per order, or per order item |
from | YYYY-MM-DD | inclusive start date |
to | YYYY-MM-DD | inclusive end date |
Your vendorSku is on every row in every format. Up to 5,000 rows per call —
chunk by quarter for larger windows. Cost reflects the listing's current cost,
not the cost at time of sale.
With the AI Toolkit
The store_execute tool's get_sales_report operation returns the sales summary
for your company. See the AI Toolkit.