Method: accounts.lfpStores.insert
Вставляет магазин для целевого продавца. Если магазин с таким кодом магазина уже существует, он будет заменен.
HTTP-запрос
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
parent | string Необходимый. Формат учетной записи поставщика LFP: accounts/{account} |
Тело запроса
Тело запроса содержит экземпляр LfpStore
.
Тело ответа
В случае успеха тело ответа содержит экземпляр LfpStore
.
Области авторизации
Требуется следующая область действия 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."],[[["Inserts or replaces a store for the target merchant using the provided store code."],["Requires `https://www.googleapis.com/auth/content` authorization scope for access."],["Utilizes an HTTP POST request to `https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert` with the LFP provider account in the path parameter."],["Includes the store details in the request body as an instance of `LfpStore` and returns the created/updated store in the response body."]]],["A `POST` request is made to `https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert` to insert a store for a merchant, replacing existing stores with the same code. The `parent` path parameter, in the format `accounts/{account}`, is required. The request body must contain an `LfpStore` instance. A successful response will also return an `LfpStore` instance. This operation requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]