Method: loyaltyclass.insert
Вставляет класс лояльности с заданным идентификатором и свойствами.
HTTP-запрос
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass
URL-адрес использует синтаксис транскодирования gRPC .
Тело запроса
Тело запроса содержит экземпляр LoyaltyClass
.
Тело ответа
В случае успеха тело ответа содержит вновь созданный экземпляр LoyaltyClass
.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/wallet_object.issuer
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-26 UTC.
[null,null,["Последнее обновление: 2024-10-26 UTC."],[[["Inserts a new loyalty class with the specified ID and properties using an HTTP POST request."],["The request body must contain a LoyaltyClass object with the desired properties for the new loyalty class."],["If successful, the API returns the newly created LoyaltyClass object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope to access and modify loyalty class information."]]],["A `POST` request is made to `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass` to insert a loyalty class, using gRPC Transcoding. The request body must include a `LoyaltyClass` instance. Upon success, the response body will contain the newly created `LoyaltyClass`. The operation requires OAuth scope authorization: `https://www.googleapis.com/auth/wallet_object.issuer`.\n"]]