Blocking stores

Request

POST

/block

Headers

Name

Description

Authorization*

Type: string

Token generated by Yango Deli.

Partner-Name*

Type: string

Partner’s name.

Body

application/json
{
    "vendorInfo": [
        {
            "vendorId": "819711",
            "deliveryType": "ddc"
        }
    ],
    "from": "2016-05-12T23:54:32+0100",
    "to": "2016-05-12T23:54:32+0100",
    "tag": "technical_problem"
}

Name

Description

from*

Type: string

Date and time when blocking starts.

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

tag*

Type: string

Block tag.

Enum: technical_problem, too_busy

vendorInfo*

Type: VendorInfoItems[]

to

Type: string

Date and time when blocking ends (if not specified, the block is permanent).

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

VendorInfoItems

Name

Description

vendorId*

Type: string

ID of the store in the Partner’s system.

Example: 819711

deliveryType

Type: string

Delivery type.

Example: ddc

Enum: ddc, marketplace

Responses

200 OK

OK

Body

application/json
{}

400 Bad Request

Request error.

Body

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

Name

Description

code*

Type: integer

Error code.

message*

Type: string

Error message.

details

Type: object

404 Not Found

Store’s not found.

Body

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

Name

Description

code*

Type: integer

Error code.

message*

Type: string

Error message.

details

Type: object

500 Internal Server Error

Service error.

Body

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

Name

Description

code*

Type: integer

Error code.

message*

Type: string

Error message.

details

Type: object

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