market.setStatus
Set product status
Name | Required | Type | Description |
---|---|---|---|
product_id | true | | Product ID |
product_status | true | | Product status |
Authorization
Session is requiredRequired permissions
- GROUP_CONTENT
- VALUABLE_ACCESS
There are two different status flows for groups and public pages.
Flow for groups
Current status | Possible new status |
---|---|
ACTIVE | SOLD, CLOSED |
CLOSED | ACTIVE |
AUTO_CLOSED | ACTIVE |
SOLD | ACTIVE |
Flow for public pages
Current status | Possible new status |
---|---|
ACTIVE | OUT_OF_STOCK, CLOSED |
CLOSED | ACTIVE |
AUTO_CLOSED | ACTIVE |
OUT_OF_STOCK | ACTIVE |
Type
{ "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