Deletes the item with specified item ID
Deletes the item with specified item ID.
Request
DELETE
https://courier.yandex.ru/api/v1/companies/{company_id}/orders/{order_id}/items/{item_id}
Path parameters
Name |
Description |
company_id* |
Type: integer The ID of the company. |
item_id* |
Type: integer Item ID. |
order_id* |
Type: integer Order ID that is used in requests to the Track & Trace API. |
Responses
200 OK
Success.
Body
application/json
{
"number": "string",
"description": "string",
"price": "string",
"total_count": 0,
"id": "string",
"undelivered_count": 0,
"comment": "string",
"code": "string"
}
Name |
Description |
description* |
Type: string Description of the item. Max length: |
id* |
Type: string ID of the item. |
number* |
Type: string Item number. It is the identifier of the item created by client. Must be unique within a single order. Min length: Max length: |
price* |
Type: string Цена одной единицы товара. Pattern: |
total_count* |
Type: integer Общее количество товаров. Min value: Max value: |
undelivered_count* |
Type: integer Количество недоставленных товаров. Min value: Max value: |
code |
Type: string Code, necessary for grouping same order items. Max length: |
comment |
Type: string Comment. Max length: |
400 Bad Request
Invalid parameters were passed.
401 Unauthorized
Authorization failed. Send the correct OAuth token in the authorization header.
403 Forbidden
You do not have access to this object.
422 Unprocessable Entity
Incorrect input.
504 Gateway Timeout
Server error during request processing.
No longer supported, please use an alternative and newer version.