Разблокировка ресторанов

Request

POST

/unblock

Headers

Name

Description

Authorization

Type: string

Токен сформированный на стороне ЯЕды

Example: ``

Partner-Name

Type: string

Имя партнера

Example: ``

Body

application/json
{
  "vendorInfo": [
    {
      "vendorId": "819711",
      "deliveryType": "ddc"
    }
  ],
  "blockIds": [
    "example"
  ]
}

Name

Description

blockIds

Type: string[]

Список id блокировок

Example
[
  "example"
]

vendorInfo

Type: VendorInfo

Example
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]

Vendor

Name

Description

deliveryType

Type: string

Тип доставки

Enum: ddc, marketplace

vendorId

Type: string

Id ресторана в системе партнера

Example: 819711

Example
{
  "vendorId": "819711",
  "deliveryType": "ddc"
}

VendorInfo

Type: Vendor[]

Example
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]

Responses

200 OK

OK

Body

application/json
{}

Name

Description

400 Bad Request

Ошибка запроса

Body

application/json
{
  "message": "example",
  "code": 0
}

Name

Description

code

Type: integer

Код ошибки

message

Type: string

Сообщение об ошибке

Example: example

404 Not Found

Плейс не найден

Body

application/json
{
  "message": "example",
  "code": 0
}

Name

Description

code

Type: integer

Код ошибки

message

Type: string

Сообщение об ошибке

Example: example

500 Internal Server Error

Ошибка сервиса

Body

application/json
{
  "message": "example",
  "code": 0
}

Name

Description

code

Type: integer

Код ошибки

message

Type: string

Сообщение об ошибке

Example: example

No longer supported, please use an alternative and newer version.