Adds order items request for procesing.
Adds order items request for procesing. In case of success, specified items will be added to specified orders. You can get information about the request processing using a GET /companies/{company_id}/orders/-/items-addings/{order_items_adding_id}
HTTP Request
POST https://courier.yandex.ru/companies/{company_id}/orders/-/items-addings
Path Parameters
* Required parameter
Request Body
[ { "order_id": integer, "order_items": [ { "description": string, "number": string, "price": string, "total_count": integer } ] } ]
Copied to clipboard
Representation
Fields
order_id * | integer The ID of the order. |
order_items[] * | array |
order_items[]. | string Description of the item. |
order_items[]. | string Item number. It is the identifier of the item created by client. Must be unique within a single order. |
order_items[]. | string Цена одной единицы товара. |
order_items[]. | integer Общее количество товаров. Minimum value: |
order_id * | integer The ID of the order. |
order_items[] * | array |
order_items[]. | string Description of the item. |
order_items[]. | string Item number. It is the identifier of the item created by client. Must be unique within a single order. |
order_items[]. | string Цена одной единицы товара. |
order_items[]. | integer Общее количество товаров. Minimum value: |
* Required parameter
Responses
Code 202
Request successfully queued.
{ "message": string, "order_items_adding_id": string }
Copied to clipboard
Representation
Fields
message * | string Human-readable description of request result. |
order_items_adding_id * | string The ID of add items request. |
* Required parameter
Code 400
Invalid parameters were passed.
Code 401
Authorization failed. Send the correct OAuth token in the authorization header.
Code 403
You do not have access to this object.
Code 422
Incorrect input.
Code 504
Server error during request processing.