AI-generated Key Takeaways
- 
          The offers.batchGetendpoint reads one or more subscription offers using a POST request.
- 
          The request requires path parameters for packageName,productId, andbasePlanId, which can sometimes use a "-" placeholder to indicate multiple resources.
- 
          The request body includes a list of GetSubscriptionOfferRequestobjects specifying the offers to retrieve.
- 
          The response body contains a list of SubscriptionOfferobjects representing the retrieved offers.
- 
          Authorization using the https://www.googleapis.com/auth/androidpublisherOAuth scope is required.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- GetSubscriptionOfferRequest
- Try it!
Reads one or more subscription offers.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| packageName | 
 Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the packageName field on all the requests. | 
| productId | 
 Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. | 
| basePlanId | 
 Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to read offers from multiple base plans. | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| {
  "requests": [
    {
      object ( | 
| Fields | |
|---|---|
| requests[] | 
 Required. A list of update requests of up to 100 elements. All requests must update different subscriptions. | 
Response body
Response message for offers.batchGet endpoint.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "subscriptionOffers": [
    {
      object ( | 
| Fields | |
|---|---|
| subscriptionOffers[] | 
 | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/androidpublisher
GetSubscriptionOfferRequest
Request message for offers.get.
| JSON representation | 
|---|
| { "packageName": string, "productId": string, "basePlanId": string, "offerId": string } | 
| Fields | |
|---|---|
| packageName | 
 Required. The parent app (package name) of the offer to get. | 
| productId | 
 Required. The parent subscription (ID) of the offer to get. | 
| basePlanId | 
 Required. The parent base plan (ID) of the offer to get. | 
| offerId | 
 Required. The unique offer ID of the offer to get. |