Method: offerclass.insert
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Fügt eine Angebotsklasse mit der angegebenen ID und den angegebenen Eigenschaften ein.
HTTP-Anfrage
POST https://walletobjects.googleapis.com/walletobjects/v1/offerClass
Die URL verwendet die Syntax der gRPC-Transcodierung.
Anfragetext
Der Anfragetext enthält eine Instanz von OfferClass
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von OfferClass
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/wallet_object.issuer
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]