Маржинальность
Получение предикта маржинальности от РРЦ
Ручка выполнится только в случае успеха в GET /rrc/products, потому что на этом этапе идет запрос в статистику и сохраняются данные для расчета в кеш
post/marginality/calculate-by-rrc
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/marginality/calculate-by-rrc
- Auth: none declared. Required headers: x-user-id, x-connect-id
Headers
x-user-idinteger required
ID пользователя
x-connect-idinteger required
ID магазина
Request body
object required
Response
Ответ
Example response
{
"error": true,
"msg": "Нет данных в кеше",
"data": {
"654321": {
"card_disc": 0,
"error": true,
"margin": 0,
"margin_percent": 0,
"market_disc": 0,
"msg": "Артикул должен быть под управлением Репрайсера РРЦ (включен) хотя бы в течении одного цикла за последнюю неделю.",
"price_sale": 0,
"source": "History"
}
}
}Changes
No recorded changes to this operation across all 10 revisions of this API.