Adds order items request for validation.
Adds order items request for validation. Allows you to check this request for correctness without making changes. You can get information about the validation process using a GET /companies/{company_id}/orders/-/items-validations/{order_items_validation_id}
HTTP Request
POST https://courier.yandex.ru/companies/{company_id}/orders/-/items-validations
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_validation_id": string }
Copied to clipboard
Representation
Fields
message * | string Human-readable description of request result. |
order_items_validation_id * | string The ID of items validation 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.