Рассчитать агрегаты и коэффициенты по магазину, товарам и дням с признаками качества.
Точная JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"date_from",
"date_to"
],
"properties": {
"date_from": {
"type": "string",
"format": "date"
},
"date_to": {
"type": "string",
"format": "date"
},
"group_by": {
"type": "string",
"enum": [
"account",
"day",
"product",
"day_product"
],
"default": "product"
},
"metrics": {
"type": "array",
"minItems": 1,
"maxItems": 12,
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"ordered_units",
"ordered_gmv",
"cancelled_units",
"sales_gmv",
"ad_spend",
"ad_clicks",
"ad_orders",
"wb_for_pay",
"contribution_profit",
"stock_units",
"opens",
"carts",
"ad_impressions",
"funnel_orders",
"average_ordered_unit_price",
"cpm",
"ad_spend_to_ordered_gmv",
"ad_spend_per_ordered_unit",
"operational_contribution_margin",
"average_order_value",
"cancelled_order_share",
"ad_ctr",
"cpc",
"cpo",
"cart_cr",
"order_cr",
"cart_to_order_cr"
]
},
"default": [
"ordered_gmv",
"sales_gmv",
"ad_spend",
"cancelled_units"
]
},
"nm_ids": {
"type": "array",
"maxItems": 20,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[0-9]{1,20}$"
}
},
"sort_by": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,63}$",
"default": "ordered_gmv"
},
"sort_direction": {
"type": "string",
"enum": [
"asc",
"desc"
],
"default": "desc"
},
"offset": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"default": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 20
}
}
}