Общие endpoint-ы репрайсера

Информация о маржинальности и расходах на товары за период

Changed on
post/products-marginality

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/products-marginality
  • Auth: none declared. Required headers: x-user-id, x-connect-id

Query parameters

start_datestring date-time nullable

Дата от когда считать маржинальность (YYYY-MM-DD)

end_datestring date-time nullable

Дата до когда считать маржинальность (YYYY-MM-DD)

blockstring

Headers

x-user-idinteger required

ID пользователя

x-connect-idinteger required

ID магазина

Request body

skus_sdsinteger[] required

Список артикулов, для которых надо получить расходы

Response

Successful Response

start_datestring date-time required

Дата от когда считать маржинальность (YYYY-MM-DD)

end_datestring date-time required

Дата до когда считать маржинальность (YYYY-MM-DD)

marginalityobject

Блок с информацией о текущих расходах за указанный период.

Example response

{
  "marginality": {
    "123456": {
      "advertisement": 0,
      "commission": 0,
      "commission_category": 0,
      "costs": 0,
      "has_cost": false,
      "logistics": 0,
      "margin": 0,
      "margin_percent": 0,
      "ozon_retention_fixed": 0,
      "ozon_retention_variable": 0,
      "price_sale": 0,
      "qty_sales": 0,
      "tax": 0,
      "tax_price": 0
    }
  }
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status