Specify items for return

Specify items for return.

Request

POST

https://courier.yandex.ru/api/v1/companies/{company_id}/orders/{order_id}:return

Path parameters

Name

Description

company_id*

Type: integer

The ID of the company.

order_id*

Type: integer

Order ID that is used in requests to the Track & Trace API.

Body

application/json
[
    {
        "item_id": "string",
        "undelivered_count": 0,
        "comment": "string"
    }
]

OrderItemReturn[]

OrderItemReturn

Name

Description

item_id*

Type: string

ID of the item.

undelivered_count*

Type: integer

Количество недоставленных товаров.

Min value: 0

Max value: 2147483647

comment

Type: string

Comment.

Max length: 1023

Responses

200 OK

Deprecated

Success.

400 Bad Request

Deprecated

Invalid parameters were passed.

401 Unauthorized

Deprecated

Authorization failed. Send the correct OAuth token in the authorization header.

403 Forbidden

Deprecated

You do not have access to this object.

422 Unprocessable Entity

Deprecated

Incorrect input.

504 Gateway Timeout

Deprecated

Server error during request processing.