Orders, units and cancellations by day
get_ordersOrders for one marketplace over the last N days (default 7, max 30), by the store's own calendar day. days=1 is TODAY so far only; for yesterday or any single date pass day='yesterday' / day='YYYY-MM-DD'. Never call a day with no orders in the result a zero day unless it is inside first_day..last_day. Returns orders, units, cancelled, still unshipped, order value by currency, the best-selling SKUs and the most recent orders with their status. Never includes the buyer's name or address — AgentXray does not hold them. Pending orders have no final value yet and are counted, not priced. For profit use get_profit_summary.
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": "get_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | One store day instead of a window: 'today', 'yesterday' or YYYY-MM-DD. | |
| days | No | Window in days, 1–30 (default 7). 1 = today so far. | |
| marketplace_id | No | Required when the account has more than one store with sales. |