REST Resource: partners.products

Resource: Product

A Product resource that defines a subscription service that can be resold.

JSON representation
{
  "name": string,
  "titles": [
    {
      object (LocalizedText)
    }
  ],
  "subscriptionBillingCycleDuration": {
    object (Duration)
  },
  "regionCodes": [
    string
  ],
  "priceConfigs": [
    {
      object (PriceConfig)
    }
  ],
  "productType": enum (ProductType),
  "bundleDetails": {
    object (BundleDetails)
  },
  "finiteBillingCycleDetails": {
    object (FiniteBillingCycleDetails)
  }
}
Fields
name

string

Identifier. Response only. Resource name of the product. It will have the format of "partners/{partner_id}/products/{productId}"

titles[]

object (LocalizedText)

Output only. Localized human readable name of the product.

subscriptionBillingCycleDuration

object (Duration)

Output only. Specifies the length of the billing cycle of the subscription.

regionCodes[]

string

Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1

priceConfigs[]

object (PriceConfig)

Output only. Price configs for the product in the available regions.

productType

enum (ProductType)

Output only. Output Only. Specifies the type of the product.

bundleDetails

object (BundleDetails)

Output only. Output Only. Specifies the details for a bundle product.

finiteBillingCycleDetails

object (FiniteBillingCycleDetails)

Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely.

PriceConfig

Configs the prices in an available region.

JSON representation
{
  "regionCode": string,
  "amount": {
    object (Amount)
  }
}
Fields
regionCode

string

Output only. 2-letter ISO region code where the product is available in. Ex. "US".

amount

object (Amount)

Output only. The price in the region.

ProductType

The type of product.

Enums
PRODUCT_TYPE_UNSPECIFIED Unspecified. It's reserved as an unexpected value, should not be used.
PRODUCT_TYPE_SUBSCRIPTION The product is a subscription.
PRODUCT_TYPE_BUNDLE_SUBSCRIPTION The product is a bundled subscription plan, which includes multiple subscription elements.

BundleDetails

Details for a bundle product.

JSON representation
{
  "bundleElements": [
    {
      object (BundleElement)
    }
  ],
  "entitlementMode": enum (EntitlementMode)
}
Fields
bundleElements[]

object (BundleElement)

The individual products that are included in the bundle.

entitlementMode

enum (EntitlementMode)

The entitlement mode of the bundle product.

BundleElement

The individual product that is included in the bundle.

JSON representation
{
  "product": string
}
Fields
product

string

Required. Output only. Product resource name that identifies the bundle element. The format is 'partners/{partner_id}/products/{productId}'.

EntitlementMode

The entitlement mode of a bundle product.

Enums
ENTITLEMENT_MODE_UNSPECIFIED Unspecified. It's reserved as an unexpected value, should not be used.
ENTITLEMENT_MODE_FULL All the bundle elements must be fully activated in a single request.
ENTITLEMENT_MODE_INCREMENTAL The bundle elements could be incrementally activated.

Methods

list

To retrieve the products that can be resold by the partner.