Method: loyaltyclass.insert
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された ID とプロパティのポイントクラスを挿入します。
HTTP リクエスト
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass
この URL は gRPC Transcoding 構文を使用します。
リクエスト本文
リクエストの本文には LoyaltyClass
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された LoyaltyClass
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/wallet_object.issuer
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 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"]]