

# 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
<a name="API_SubscriptionSummary_Contents"></a>

 ** appId **   <a name="appmonetization-Type-SubscriptionSummary-appId"></a>
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 **   <a name="appmonetization-Type-SubscriptionSummary-billingAnchorDate"></a>
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 **   <a name="appmonetization-Type-SubscriptionSummary-effectiveAt"></a>
The time when the subscription took effect.  
Type: Timestamp  
Required: Yes

 ** userId **   <a name="appmonetization-Type-SubscriptionSummary-userId"></a>
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 **   <a name="appmonetization-Type-SubscriptionSummary-billingCycle"></a>
The billing cycle of the subscription, such as monthly or annual.  
Type: String  
Valid Values: `MONTHLY | ANNUAL | ONE_TIME`   
Required: No

 ** planId **   <a name="appmonetization-Type-SubscriptionSummary-planId"></a>
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
<a name="API_SubscriptionSummary_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/appmonetization-2022-07-26/SubscriptionSummary) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appmonetization-2022-07-26/SubscriptionSummary) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appmonetization-2022-07-26/SubscriptionSummary) 