Get the block status

Request

POST

/v2/status

Headers

Name

Description

Authorization

Type: string

A token generated on the side of the Yandex

Partner-Name

Type: string

Partner name

Body

application/json
{
    "vendorInfo": [
        {
            "vendorId": "819711",
            "deliveryType": "ddc"
        }
    ],
    "statuses": [
        "enabled"
    ],
    "limit": 100,
    "offset": 0
}

Name

Description

vendorInfo*

Type: Vendor[]

limit

Type: integer

Issue limit

Default: 100

Example: 100

offset

Type: integer

Output offset

Default: 0

Example: 0

statuses

Type: string[]

Enum: enabled

Vendor

Name

Description

deliveryType

Type: string

Delivery type

Example: ddc

Enum: ddc, marketplace

vendorId

Type: string

Restaurant ID in the partner's system

Example: 819711

Responses

200 OK

OK

Body

application/json
{
    "items": [
        {
            "vendorId": "17205",
            "blockId": "string",
            "externalBlockId": "string",
            "deliveryType": "ddc",
            "availableToCancel": false,
            "status": "enabled",
            "from": "2016-05-12T23:54:32+0100",
            "to": "2016-05-12T23:54:32+0100",
            "source": "Yandex",
            "message": "string"
        }
    ]
}

Name

Description

items*

Type: VendorObject[]

Vendor Array
Vendor's object

VendorObject

Vendor's object

Name

Description

blockId*

Type: string

ID of the block in the service

deliveryType*

Type: string

Block ID

Enum: ddc, marketplace

from*

Type: string

Date and time of the start of the block

Example: 2016-05-12T23:54:32+0100

vendorId*

Type: string

Vendor ID

Example: 17205

availableToCancel

Type: boolean

The ability to unlock

externalBlockId

Type: string

ID of the block in the partner's system

message

Type: string

A comment on the blocking (received from a partner) or a description of the blocking from the service

source

Type: string

The source of the blockage

Example: Yandex

status

Type: string

Block status

Enum: enabled, disabled

to

Type: string

Date and time of the end of the block

Example: 2016-05-12T23:54:32+0100

400 Bad Request

Request error

Body

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

Name

Description

code*

Type: integer

Error code

message*

Type: string

Erroe message

404 Not Found

The place was not found

Body

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

Name

Description

code*

Type: integer

Error code

message*

Type: string

Erroe message

500 Internal Server Error

Internal server error

Body

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

Name

Description

code*

Type: integer

Error code

message*

Type: string

Erroe message

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