- Resource: OneTimeProduct
- OneTimeProductListing
- OneTimeProductTaxAndComplianceSettings
- RegionalTaxConfig
- OneTimeProductPurchaseOption
- State
- OneTimeProductBuyPurchaseOption
- OneTimeProductRentPurchaseOption
- RegionalPricingAndAvailabilityConfig
- Availability
- OneTimeProductPurchaseOptionNewRegionsConfig
- Availability
- PurchaseOptionTaxAndComplianceSettings
- Methods
Resource: OneTimeProduct
A single one-time product for an app.
JSON representation |
---|
{ "packageName": string, "productId": string, "listings": [ { object ( |
Fields | |
---|---|
packageName |
Required. Immutable. Package name of the parent app. |
productId |
Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.). |
listings[] |
Required. Set of localized title and description data. Must not have duplicate entries with the same languageCode. |
taxAndComplianceSettings |
Details about taxes and legal compliance. |
purchaseOptions[] |
Required. The set of purchase options for this one-time product. |
restrictedPaymentCountries |
Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed. |
offerTags[] |
Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library. |
regionsVersion |
Output only. The version of the regions configuration that was used to generate the one-time product. |
OneTimeProductListing
Regional store listing for a one-time product.
JSON representation |
---|
{ "languageCode": string, "title": string, "description": string } |
Fields | |
---|---|
languageCode |
Required. The language of this listing, as defined by BCP-47, e.g., "en-US". |
title |
Required. The title of this product in the language of this listing. The maximum length is 55 characters. |
description |
Required. The description of this product in the language of this listing. The maximum length is 200 characters. |
OneTimeProductTaxAndComplianceSettings
Details about taxation, Google Play policy and legal compliance for one-time products.
JSON representation |
---|
{
"regionalTaxConfigs": [
{
object ( |
Fields | |
---|---|
regionalTaxConfigs[] |
Regional tax configuration. |
isTokenizedDigitalAsset |
Whether this one-time product is declared as a product representing a tokenized digital asset. |
RegionalTaxConfig
Details about taxation in a given geographical region.
JSON representation |
---|
{ "regionCode": string, "taxTier": enum ( |
Fields | |
---|---|
regionCode |
Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. "US". |
taxTier |
Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. |
eligibleForStreamingServiceTaxRate |
You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States. |
streamingTaxType |
To collect communications or amusement taxes in the United States, choose the appropriate tax category. |
OneTimeProductPurchaseOption
A single purchase option for a one-time product.
JSON representation |
---|
{ "purchaseOptionId": string, "state": enum ( |
Fields | |
---|---|
purchaseOptionId |
Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters. |
state |
Output only. The state of the purchase option, i.e., whether it's active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead. |
regionalPricingAndAvailabilityConfigs[] |
Regional pricing and availability information for this purchase option. |
newRegionsConfig |
Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future. |
offerTags[] |
Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library. |
taxAndComplianceSettings |
Optional. Details about taxes and legal compliance. |
Union field purchase_option_type . The type of this purchase option. Exactly one must be set. purchase_option_type can be only one of the following: |
|
buyOption |
A purchase option that can be bought. |
rentOption |
A purchase option that can be rented. |
State
The current state of the purchase option.
Enums | |
---|---|
STATE_UNSPECIFIED |
Default value, should never be used. |
DRAFT |
The purchase option is not and has never been available to users. |
ACTIVE |
The purchase option is available to users. |
INACTIVE |
The purchase option is not available to users anymore. |
INACTIVE_PUBLISHED |
The purchase option is not available for purchase anymore, but we continue to expose its offer via the Play Billing Library for backwards compatibility. Only automatically migrated purchase options can be in this state. |
OneTimeProductBuyPurchaseOption
A purchase option that can be bought.
JSON representation |
---|
{ "legacyCompatible": boolean, "multiQuantityEnabled": boolean } |
Fields | |
---|---|
legacyCompatible |
Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one "buy" purchase option can be marked as backwards compatible. |
multiQuantityEnabled |
Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout. |
OneTimeProductRentPurchaseOption
A purchase option that can be rented.
JSON representation |
---|
{ "rentalPeriod": string, "expirationPeriod": string } |
Fields | |
---|---|
rentalPeriod |
Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format. |
expirationPeriod |
Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format. |
RegionalPricingAndAvailabilityConfig
Regional pricing and availability configuration for a purchase option.
JSON representation |
---|
{ "regionCode": string, "price": { object ( |
Fields | |
---|---|
regionCode |
Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., "US". |
price |
The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region. |
availability |
The availability of the purchase option. |
Availability
The availability of the purchase option.
Enums | |
---|---|
AVAILABILITY_UNSPECIFIED |
Unspecified availability. Must not be used. |
AVAILABLE |
The purchase option is available to users. |
NO_LONGER_AVAILABLE |
The purchase option is no longer available to users. This value can only be used if the availability was previously set as AVAILABLE. |
AVAILABLE_IF_RELEASED |
The purchase option is initially unavailable, but made available via a released pre-order offer. |
OneTimeProductPurchaseOptionNewRegionsConfig
Pricing information for any new regions Play may launch in the future.
JSON representation |
---|
{ "usdPrice": { object ( |
Fields | |
---|---|
usdPrice |
Required. Price in USD to use for any new regions Play may launch in. |
eurPrice |
Required. Price in EUR to use for any new regions Play may launch in. |
availability |
Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future. |
Availability
The availability of the new regions config.
Enums | |
---|---|
AVAILABILITY_UNSPECIFIED |
Unspecified availability. Must not be used. |
AVAILABLE |
The config will be used for any new regions Play may launch in the future. |
NO_LONGER_AVAILABLE |
The config is not available anymore and will not be used for any new regions Play may launch in the future. This value can only be used if the availability was previously set as AVAILABLE. |
PurchaseOptionTaxAndComplianceSettings
Details about taxation, Google Play policy and legal compliance for one-time product purchase options.
JSON representation |
---|
{
"withdrawalRightType": enum ( |
Fields | |
---|---|
withdrawalRightType |
Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to Refer to the Help Center article for more information. |
Methods |
|
---|---|
|
Deletes one or more one-time products. |
|
Reads one or more one-time products. |
|
Creates or updates one or more one-time products. |
|
Deletes a one-time product. |
|
Reads a single one-time product. |
|
Lists all one-time products under a given app. |
|
Creates or updates a one-time product. |