market.setStatus ✎ Edit on GitHub

Set product status

NameRequiredTypeDescription
product_id true String

Product ID

product_status true ApiProductStatus

Product status

Authorization

Session is required

Required permissions:

  • GROUP_CONTENT
  • VALUABLE_ACCESS

There are two different status flows for groups and public pages.

Flow for groups

Current statusPossible new status
ACTIVESOLD, CLOSED
CLOSEDACTIVE
AUTO_CLOSEDACTIVE
SOLDACTIVE

Flow for public pages

Current statusPossible new status
ACTIVEOUT_OF_STOCK, CLOSED
CLOSEDACTIVE
AUTO_CLOSEDACTIVE
OUT_OF_STOCKACTIVE

Response

{ "success": "boolean" }

Application paramters

User session data

Method

List of paramters

Используем для подписи secret_key = session_secret_key
Используем для подписи secret_key = application_secret_key
Используем для подписи secret_key = MD5(access_token + application_secret_key)
secret_key =
Сортируем и склеиваем параметры запроса и secret_key
Рассчитываем MD5 от полученной строки и получаем параметр sig