Sales report
getSalesReportRetrieve totals for paid orders only, excluding open and refunded orders: order count, total amount in USD cents, and per-SKU paid order counts. Requires Orders API key.
Instructions
Totals for paid orders only (open and refunded orders are left out): the number of orders, their sum in cents (currency USD), and per SKU how many paid orders include it. Takes no arguments. Returns { currency, orders, totalCents, bySku }. Calls need the Orders API key (x-api-key header; the demo's is demo-customer-key-0001); without it the tool returns the API's 401.
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": "getSalesReport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||