Получить цены товаров
Получает цены товаров с фильтром или без
Функция ПолучитьЦеныТоваров(Знач IDКлиента, Знач КлючAPI, Знач Фильтр = "", Знач IDПоследнего = 0) Экспорт
Параметр | CLI опция | Тип | Обяз. | Назначение |
---|---|---|---|---|
IDКлиента | --clientid | Строка | ✔ | Идентификатор клиента |
КлючAPI | --apikey | Строка | ✔ | API ключ |
Фильтр | --filter | Структура Из КлючИЗначение | ✖ | Фильтр выборки товаров. См. ПолучитьСтруктуруФильтраТоваров |
IDПоследнего | --last | Строка, Число | ✖ | ID последнего значения (last_id) из предыдущего запроса |
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Ozon Seller API
подсказка
Метод в документации API: post /v5/product/info/prices
Пример использования для 1С:Предприятие/OneScript
IDКлиента = "2479669";
КлючAPI = "09f65e9f-262d-4aca...";
Результат = OPI_Ozon.ПолучитьЦеныТоваров(IDКлиента, КлючAPI);
- Bash
- CMD/Bat
oint ozon ПолучитьЦеныТоваров \
--clientid "***" \
--apikey "***"
oint ozon ПолучитьЦеныТоваров ^
--clientid "***" ^
--apikey "***"
Результат
{
"items": [
{
"acquiring": 30.34,
"offer_id": "4100347961",
"product_id": 1287217882,
"volume_weight": 0.2,
"commissions": {
"fbo_deliv_to_customer_amount": 25,
"fbo_direct_flow_trans_max_amount": 66,
"fbo_direct_flow_trans_min_amount": 66,
"fbo_return_flow_amount": 66,
"fbs_deliv_to_customer_amount": 25,
"fbs_direct_flow_trans_min_amount": 80,
"fbs_direct_flow_trans_max_amount": 80,
"fbs_first_mile_max_amount": 30,
"fbs_first_mile_min_amount": 10,
"fbs_return_flow_amount": 80,
"sales_percent_fbo": 27.5,
"sales_percent_fbs": 29.5,
"sales_percent_rfbs": 27,
"sales_percent_fbp": 27
},
"marketing_actions": {
"current_period_from": null,
"current_period_to": null,
"actions": [],
"ozon_actions_exist": false
},
"price": {
"auto_action_enabled": false,
"currency_code": "RUB",
"marketing_price": 1597,
"marketing_seller_price": 1597,
"min_price": 1438,
"old_price": 1917,
"price": 1597,
"retail_price": 0,
"vat": 0,
"auto_add_to_ozon_actions_list_enabled": true,
"net_price": 833
},
"price_indexes": {
"external_index_data": {
"min_price": 1466,
"min_price_currency": "RUB",
"price_index_value": 1.08
},
"ozon_index_data": {
"min_price": 1791,
"min_price_currency": "RUB",
"price_index_value": 0.89
},
"color_index": "YELLOW",
"self_marketplaces_index_data": {
"min_price": 0,
"min_price_currency": "RUB",
"price_index_value": 0
}
}
},
{
"acquiring": 43.68,
"offer_id": "4100347960",
"product_id": 1288360323,
"volume_weight": 0.4,
"commissions": {
"fbo_deliv_to_customer_amount": 25,
"fbo_direct_flow_trans_max_amount": 66,
"fbo_direct_flow_trans_min_amount": 66,
"fbo_return_flow_amount": 66,
"fbs_deliv_to_customer_amount": 25,
"fbs_direct_flow_trans_min_amount": 80,
"fbs_direct_flow_trans_max_amount": 80,
"fbs_first_mile_max_amount": 30,
"fbs_first_mile_min_amount": 10,
"fbs_return_flow_amount": 80,
"sales_percent_fbo": 27.5,
"sales_percent_fbs": 29.5,
"sales_percent_rfbs": 27,
"sales_percent_fbp": 27
},
"marketing_actions": {
"current_period_from": null,
"current_period_to": null,
"actions": [],
"ozon_actions_exist": false
},
"price": {
"auto_action_enabled": false,
"currency_code": "RUB",
"marketing_price": 1898,
"marketing_seller_price": 2299,
"min_price": 2070,
"old_price": 2759,
"price": 2299,
"retail_price": 0,
"vat": 0,
"auto_add_to_ozon_actions_list_enabled": true,
"net_price": 1109
},
"price_indexes": {
"external_index_data": {
"min_price": 508,
"min_price_currency": "RUB",
"price_index_value": 1.71
},
"ozon_index_data": {
"min_price": 0,
"min_price_currency": "RUB",
"price_index_value": 0
},
"color_index": "RED",
"self_marketplaces_index_data": {
"min_price": 0,
"min_price_currency": "RUB",
"price_index_value": 0
}
}
},
{
"acquiring": 42.69,
"offer_id": "4100347962",
"product_id": 1289792530,
"volume_weight": 0.3,
"commissions": {
"fbo_deliv_to_customer_amount": 25,
"fbo_direct_flow_trans_max_amount": 66,
"fbo_direct_flow_trans_min_amount": 66,
"fbo_return_flow_amount": 66,
"fbs_deliv_to_customer_amount": 25,
"fbs_direct_flow_trans_min_amount": 80,
"fbs_direct_flow_trans_max_amount": 80,
"fbs_first_mile_max_amount": 30,
"fbs_first_mile_min_amount": 10,
"fbs_return_flow_amount": 80,
"sales_percent_fbo": 27.5,
"sales_percent_fbs": 29.5,
"sales_percent_rfbs": 27,
"sales_percent_fbp": 27
},
"marketing_actions": {
"current_period_from": null,
"current_period_to": null,
"actions": [],
"ozon_actions_exist": false
},
"price": {
"auto_action_enabled": false,
"currency_code": "RUB",
...