3.15. Заявка на удаление товаров из заказа
Метод позволяет создать заявку на удаление товаров из заказа.
Принимает полный набор товаров с указанием нужного количества для каждого товара.
Если новое количество товара будет больше старого, то запрос завершится с ошибкой.
Редактирование происходит ассинхронно, узнать текущий статус можно с помощью запроса /api/b2b/platform/request/edit/status
.
Request
POST
b2b.taxi.tst.yandex.net/api/b2b/platform/request/items/remove
Тестовое окружение
POST
b2b-authproxy.taxi.yandex.net/api/b2b/platform/request/items/remove
Продакшен-окружение
Body
application/json
{
"request_id": "string",
"items_to_remove": [
{
"item_barcode": "string",
"remaining_count": 0
}
]
}
Name |
Description |
items_to_remove* |
Type: ItemToRemove[] Min items: |
request_id* |
Type: string |
ItemToRemove
Name |
Description |
item_barcode* |
Type: string Штрихкод товарa |
remaining_count* |
Type: integer Остаток товара |
Responses
202 Accepted
Запрос на редактирование был принят
Body
application/json
{
"editing_task_id": "string"
}
Name |
Description |
editing_task_id* |
Type: string Идентификатор созданного запроса на редактирование для уточнения его статуса |
400 Bad Request
400 error
Body
application/json
{
"code": "bad_request",
"message": "Missing field request_id"
}
Name |
Description |
code* |
Type: string Код ошибки Example: |
message* |
Type: string Человекочитаемые детали ошибки Example: |
403 Forbidden
403 error
Body
application/json
{
"code": "customer_order_not_found",
"message": "There is no customer_order with such ID in platform, the order belongs to another employer"
}
Name |
Description |
code* |
Type: string Код ошибки Example: |
message* |
Type: string Человекочитаемые детали ошибки Example: |
404 Not Found
404 error
Body
application/json
{
"code": "not_found",
"message": "Order with ID some_id not found"
}
Name |
Description |
code* |
Type: string Код ошибки Example: |
message* |
Type: string Человекочитаемые детали ошибки Example: |
409 Conflict
409 error
Body
application/json
{
"code": "conflict",
"message": "Another editing request with conflict data execution"
}
Name |
Description |
code* |
Type: string Код ошибки Example: |
message* |
Type: string Человекочитаемые детали ошибки Example: |
No longer supported, please use an alternative and newer version.