Method: accounts.products.localInventories.delete
Удаляет указанный LocalInventory
из данного продукта в вашем торговом аккаунте. Удаление LocalInventory
из конкретного продукта может занять до часа. После получения ответа об успешном удалении подождите некоторое время, прежде чем повторить попытку удаления.
HTTP-запрос
DELETE https://merchantapi.googleapis.com/inventories/v1beta/{name=accounts/*/products/*/localInventories/*}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
name | string Необходимый. Название локального запаса данного продукта, который нужно удалить. Формат: accounts/{account}/products/{product}/localInventories/{storeCode} |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
В случае успеха тело ответа представляет собой пустой объект JSON.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/content
Для получения дополнительной информации см.OAuth 2.0 Overview .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-23 UTC.
[null,null,["Последнее обновление: 2025-01-23 UTC."],[[["This operation deletes a specific product's local inventory from your merchant account using a DELETE request to the specified URL."],["It may take up to an hour for the deletion to be fully reflected, and repeated deletion attempts before this period should be avoided."],["The request requires specifying the product and local inventory to be deleted using the provided URL format with path parameters."],["An empty request body is necessary, and a successful deletion will result in an empty JSON response."],["Proper authorization with the `https://www.googleapis.com/auth/content` scope is required to execute this operation."]]],["This document details the process of deleting a `LocalInventory` from a product in a merchant account using a DELETE HTTP request. The request URL, formatted with gRPC Transcoding syntax, requires a `name` path parameter specifying the inventory to delete. The request body must be empty. Successful deletion, indicated by an empty JSON response, may take up to an hour to reflect. The process also requires `https://www.googleapis.com/auth/content` OAuth scope authorization.\n"]]