Method: offerclass.insert
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された ID とプロパティのクーポンクラスを挿入します。
HTTP リクエスト
POST https://walletobjects.googleapis.com/walletobjects/v1/offerClass
この URL は gRPC Transcoding 構文を使用します。
リクエスト本文
リクエストの本文には OfferClass
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された OfferClass
のインスタンスが含まれます。
認可スコープ
次の 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 an offer class with a given ID and properties using an HTTP POST request."],["The request body and successful response body both contain an instance of `OfferClass`."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["This document details how to insert an offer class using a POST request to `https://walletobjects.googleapis.com/walletobjects/v1/offerClass`. The request body must contain an `OfferClass` instance, and successful requests return a newly created `OfferClass` instance in the response body. This action requires the OAuth scope: `https://www.googleapis.com/auth/wallet_object.issuer`. The URL utilizes gRPC Transcoding syntax.\n"]]