Read the sales trend
readSalesTrendDaily revenue or order count over a period - for 'revenue trend', 'are sales going up', 'orders per day'. Zero-filled, aggregates only.
Only for a workspace with a store connected: listWorkspaces says which are stores.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the range, YYYY-MM-DD, today at the latest; a range is two years at most | |
| days | No | Reporting window in days | |
| from | No | First day of a custom range, YYYY-MM-DD. With `to`, it takes the place of `days` | |
| metric | No | Which metric to chart | revenue |
| workspaceId | No | The workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | ||
| series | Yes | One point a day, oldest first, days without orders at 0 |