Android · Example Payload

Android Createsubscription Example

AIAndroidAutomotiveGoogleMachine LearningMobile DevelopmentSDKTVWearables

Android Createsubscription Example is an example object payload from Android, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "createSubscription",
  "method": "POST",
  "path": "/applications/{packageName}/monetization/subscriptions",
  "summary": "Create a Subscription Product",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "CreatesubscriptionRequestExample",
      "example": {
        "packageName": "example_value",
        "productId": "500123",
        "basePlans": [
          {
            "basePlanId": "500123",
            "state": "STATE_UNSPECIFIED",
            "regionalConfigs": {},
            "autoRenewingBasePlanType": {},
            "prepaidBasePlanType": {},
            "offerTags": {}
          }
        ],
        "listings": [
          {
            "languageCode": "example_value",
            "title": "Example Title",
            "benefits": {},
            "description": "A sample description."
          }
        ],
        "archived": true,
        "taxAndComplianceSettings": {
          "eeaWithdrawalRightType": "WITHDRAWAL_RIGHT_TYPE_UNSPECIFIED",
          "taxRateInfoByRegionCode": "example_value",
          "isTokenizedDigitalAsset": true
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Createsubscription200Example",
      "example": {
        "packageName": "example_value",
        "productId": "500123",
        "basePlans": [
          {
            "basePlanId": "500123",
            "state": "STATE_UNSPECIFIED",
            "regionalConfigs": {},
            "autoRenewingBasePlanType": {},
            "prepaidBasePlanType": {},
            "offerTags": {}
          }
        ],
        "listings": [
          {
            "languageCode": "example_value",
            "title": "Example Title",
            "benefits": {},
            "description": "A sample description."
          }
        ],
        "archived": true,
        "taxAndComplianceSettings": {
          "eeaWithdrawalRightType": "WITHDRAWAL_RIGHT_TYPE_UNSPECIFIED",
          "taxRateInfoByRegionCode": "example_value",
          "isTokenizedDigitalAsset": true
        }
      }
    }
  ]
}