Blocking stores

Request

POST

/block

Headers

Name

Description

Authorization

Type: string

Token generated by Yango Deli.

Example: ``

Partner-Name

Type: string

Partner’s name.

Example: ``

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: VendorInfo

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

to

Type: string | null

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.

Enum: ddc, marketplace

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

VendorInfo

Type: VendorInfoItems[]

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

Responses

200 OK

OK

Body

application/json
{}

Name

Description

400 Bad Request

Request error.

Body

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

Name

Description

code

Type: integer

Error code.

message

Type: string

Error message.

Example: example

details

Type: object
Example
{}

404 Not Found

Store’s not found.

Body

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

Name

Description

code

Type: integer

Error code.

message

Type: string

Error message.

Example: example

details

Type: object
Example
{}

500 Internal Server Error

Service error.

Body

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

Name

Description

code

Type: integer

Error code.

message

Type: string

Error message.

Example: example

details

Type: object
Example
{}

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