name | string | Optional. Resource name of the subscription. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}". This is available for authorizeAddon, but otherwise is response only. |
upgradeDowngradeDetails | object | Details about the previous subscription that this new subscription upgrades/downgrades from. |
processingState | string | Output only. Describes the processing state of the subscription. See more details at the lifecycle of a subscription. |
redirectUri | string | Output only. The place where partners should redirect the end-user to after creation. This field might also be populated when creation failed. However, Partners should always prepare a default URL to redirect the user in case this field is empty. |
promotions | array | Optional. Deprecated: consider using the top-level promotion_specs as the input. Optional. Resource name that identifies one or more promotions that can be applied on the product. A typical promotion for a subscription is Free trial. The format will be 'partners/{partner_id}/promotions/{promotion_id}'. |
state | string | Output only. Describes the state of the subscription. See more details at the lifecycle of a subscription. |
freeTrialEndTime | string | Output only. End of the free trial period, in ISO 8061 format. For example, "2019-08-31T17:28:54.564Z". It will be set the same as createTime if no free trial promotion is specified. |
products | array | Required. Deprecated: consider using line_items as the input. Required. Resource name that identifies the purchased products. The format will be 'partners/{partner_id}/products/{product_id}'. |
cancellationDetails | object | Describes the details of a cancelled or cancelling subscription. |
endUserEntitled | boolean | Output only. Indicates if the subscription is entitled to the end user. |
createTime | string | Output only. System generated timestamp when the subscription is created. UTC timezone. |
renewalTime | string | Output only. The time at which the subscription is expected to be renewed by Google - a new charge will be incurred and the service entitlement will be renewed. A non-immediate cancellation will take place at this time too, before which, the service entitlement for the end user will remain valid. UTC timezone in ISO 8061 format. For example: "2019-08-31T17:28:54.564Z" |
promotionSpecs | array | Optional. Subscription-level promotions. Only free trial is supported on this level. It determines the first renewal time of the subscription to be the end of the free trial period. Specify the promotion resource name only when used as input. |
updateTime | string | Output only. System generated timestamp when the subscription is most recently updated. UTC timezone. |
cycleEndTime | string | Output only. The time at which the subscription is expected to be extended, in ISO 8061 format. UTC timezone. For example: "2019-08-31T17:28:54.564Z" |
serviceLocation | object | Describes a location of an end user. |
lineItems | array | Required. The line items of the subscription. |
partnerUserToken | string | Required. Identifier of the end-user in partner’s system. The value is restricted to 63 ASCII characters at the maximum. |