ms_get_profit
Retrieve profitability data per product (sales, cost, profit, margin) for a specified period. Supports pagination and optional conversion from kopecks to rubles.
Instructions
Profitability by product (sale, cost, profit, margin). Money in kopecks.
Args: moment_from / moment_to: period bounds "YYYY-MM-DD HH:MM:SS" (report needs them). limit/offset: pagination (rows under "rows"). rubles: kopecks→rubles (default true). Returns JSON: {"ok": true, "data": {"meta", "rows": [ ... ]}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| rubles | No | ||
| moment_to | No | ||
| moment_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |