Получение общей информации по товарам из API
Changed onМетод возвращает список товаров магазина с ценами и остатками. Данные кешируются на 30 минут.
- Метод находится на этапе тестирования, возможны проблемы с получением данных.
Request
- Base URL: https://api.mpspace.ru (the document declares no server; this is the origin it was published from)
- URL: https://api.mpspace.ru/internal/rrc/products-prices
- Auth: none declared. Required headers: Authorization
Query parameters
Лимит товаров в ответе
Сдвиг выборки (постраничная навигация)
Headers
Ключ авторизации
Request body
Example request
{
"skus": [
12345678,
87654321
],
"product_ids": [
12345678,
87654321
],
"offer_ids": [
"offer-1",
"offer-2"
],
"names": [
"катушка",
"мочалка"
],
"brands": [
"kitty",
"bunny"
],
"catalog_filter_logic": "and",
"settings_rrc": {
"mode": "PRICE",
"night_control": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"plan_fact_target": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"control_price": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"min_price_rrc": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"max_price_rrc": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"change_price_if_green_absent": 1,
"region": 77,
"working_schedule_status": true,
"competitors_status": true
},
"settings_comp": {
"comps_strategy_status": true,
"min_price_comp": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"max_price_comp": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"comp_strat_lower_bound": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"region": 77,
"has_competitors": true
},
"api_filters": {
"price": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"old_price": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"marketing_seller_price": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"min_price": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"present": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"reserved": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"fbs_stocks": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"fbo_stocks": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"fbp_stocks": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"actions_count": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"discount_ozon": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"discount_card": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"current_green_price": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
},
"current_grey_price": {
"eq": 10,
"gt": 10,
"gte": 10,
"lt": 10,
"lte": 10
}
},
"instrument": "rrc",
"history_status": "warning",
"history_comment": [
"С ценой на сайте все отлично.",
"Мин. цена селлера: установлена минимальная цена селлера X руб., при попытке установить Y."
],
"negative_profit": true,
"only_with_stocks": true,
"tags": [
1,
5,
13
],
"reset_filters": true
}Response
Successful Response
Example response
{
"limit": 1000,
"offset": 3000,
"total_archived_products": 42,
"total_filtered": 128,
"slice_products": 42,
"products": [
{
"product_id": 21356090,
"offer_id": "Sh-1457",
"sku_sds": 170771792,
"sku_fbo": 175011984,
"sku_fbs": 175496364,
"tags": [
5,
8,
13
],
"name": "Перчатки NitriMAX Аrchdale черные нитриловые, 100 шт (размер XL)",
"primary_image": "https://cdn1.ozone.ru/s3/multimedia-1-o/7513047564.jpg",
"primary_image_min": "https://cdn1.ozone.ru/s3/multimedia-1-o/c50/7513047564.jpg",
"brand_name": "Lohmann&Rauscher",
"prices_and_discounts": {
"discount_ozon": 22.7,
"discount_card": 10.6,
"source": "history"
}
}
],
"currency": "RUB"
}Changes
- breaking
request property
list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
the
/request property type changed fromstringtoarray - breaking
response property
products/items/api_info_prices/marketing_seller_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
products/items/api_info_prices/min_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
products/items/api_info_prices/old_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
products/items/api_info_prices/pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
products/items/prices_and_discounts/anyOf[subschema #1: PricesAndDiscounts]/current_green_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
products/items/prices_and_discounts/anyOf[subschema #1: PricesAndDiscounts]/current_grey_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - info
added the optional property
to the response with the status
- breaking
- info
added the new optional request property
/ - info
request property
reactivated
- info