Выбрать победителя торгов
Порядок работы для агента · Методы API и схема OpenAPI.
Назначение
Для ручного выбора нужны canChooseWinner: true, isAutoAuction: false, demandStoreState: active и действующая ставка. Передайте идентификаторы торгов и ставки в data.demandId и data.betId.
Блоки запроса и ответов ниже сгенерированы из OpenAPI. Подстановки вроде
exampleпоказывают структуру JSON. Для вызова возьмите значения из сценария, справочников или предыдущих ответов API.
Request
POST
https://partner-test-yamagistrali.ru/api/demand/chooseWinner/v0
Тестовый стенд
Body
application/json
{
"data": {
"betId": "example",
"demandId": "example"
}
}
|
Name |
Description |
|
data |
Type: DemandChooseWinnerV0Request Example
|
DemandChooseWinnerV0Request
|
Name |
Description |
|
betId |
Type: string Example: |
|
demandId |
Type: string Example: |
Example
{
"betId": "example",
"demandId": "example"
}
Responses
200 OK
OK
Body
application/json
{
"data": {}
}
|
Name |
Description |
|
data |
Type: DemandChooseWinnerV0Response Example
|
DemandChooseWinnerV0Response
Type: object
Example
{}
400 Bad Request
Bad Request
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|
Error
|
Name |
Description |
|
info |
Type: object Example
|
|
message |
Type: string Example: |
|
message_code |
Type: string Example: |
Example
{
"info": {},
"message": "example",
"message_code": "example"
}
403 Forbidden
Forbidden
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|
500 Internal Server Error
Internal Server Error
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|