View a markdown version of this page

SubscriptionSummary - AWS App Monetization

SubscriptionSummary

A summary of a user's subscription to a plan for an app, read from the user's latest subscription record. While a change is scheduled, planId, effectiveAt and billingCycle describe the scheduled change. Call GetSubscription for the subscription in effect.

Contents

appId

The ID of the app that the subscription belongs to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [A-Za-z0-9_-]+

Required: Yes

billingAnchorDate

The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. The resolved current-period end (currentPeriodEndsAt) is available on GetSubscription for a single user; this summary carries only the anchor.

Type: Timestamp

Required: Yes

effectiveAt

The time when the subscription took effect.

Type: Timestamp

Required: Yes

userId

The opaque end-user identifier that the subscription belongs to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: [A-Za-z0-9_.~-]+

Required: Yes

billingCycle

The billing cycle of the subscription, such as monthly or annual.

Type: String

Valid Values: MONTHLY | ANNUAL | ONE_TIME

Required: No

planId

The ID of the plan on the user's latest subscription record. If a plan change is scheduled, this is the plan the subscription moves to; if a cancellation is scheduled or has taken effect, it is absent. Call GetSubscription for the plan in effect.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [a-z0-9-]+

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: