Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Develop
Test
Publish
Monetize
Engage users
Device specifications
Resources
Skip to main content
For an overview of Quick Subscribe, see Quick Subscribe Overview. When you’re ready to get started, contact your Amazon representative to have them enable Quick Subscribe on your account. Then, follow the steps on this page.

Prerequisites

Quick Subscribe is a feature contained within the Appstore In-App Purchasing (IAP) API. Before you set up Quick Subscribe, you must do the following:

Considerations

Before your start, review the following considerations and recommendations:
  • Optimize your app’s size to provide faster download and install times. It’s generally recommended to minimize the size of an app to 50 MB or less. Reducing the app size increases accessibility by allowing more users to install it and decreases the time required for installation and initial use. Additionally, smaller apps are less likely to be uninstalled due to storage constraints.
  • The offers you present through Quick Subscribe work best for paid subscriptions. Quick Subscribe supports apps that offer a free trial. However, if your app uses a freemium model for acquisition, Quick Subscribe might not be the most optimal fit for your app. In a freemium model, the app itself is free and users can access a basic set of content and services without a paid subscription, but you charge a premium for additional content or advanced functionality.
  • A purchase made through Quick Subscribe happens outside of your app. In the standard IAP flow without Quick Subscribe, a customer signs in to your app and then makes a purchase from within your app. However, with Quick Subscribe, the customer makes the purchase outside of the app first, after which the app opens and signs them in. Therefore, implementing Quick Subscribe has some differences from the standard IAP implementation. For help with integrating Quick Subscribe, use the steps on this page.

Step 1: Configure Quick Subscribe in the Developer Console

To configure Quick Subscribe for your app
  1. Go to the Developer Console dashboard, and sign in to your account.
  2. From the navigation bar, choose My Apps.
  3. Find your app in the list and expand the row.
  4. In the In-App Items column, click the link to open the In-App Items screen.
  5. Select Create Quick Subscription.
  6. An overlay pop-up appears as shown in the following image.
    Create new quick subscription. Choose default subscription. Select term. Choose target devices. Available action buttons are Cancel, Create Quick Subscription for Test, and Create Quick Subscription for Test and Live.

    Create new quick subscription dialog

    In the Choose default subscription drop-down, the list is populated with your existing IAP subscriptions. Choose the subscription on which you want to enable Quick Subscribe.
  7. In the Select term drop-down, choose a term for the quick subscription.
  8. If you would like to offer additional subscriptions for Quick Subscribe, select Add another quick subscription.
  9. Choose your target devices for Quick Subscribe by checking the boxes.
  10. Choose whether to create the quick subscription for Live App Testing (LAT) only or for both LAT and your live app.
    • To create a quick subscription for LAT only, select Create Quick Subscription for Test.
    • To create the quick subscription for both LAT and the live app, select Create Quick Subscription for Test and Live.
After you create a quick subscription, you can delete or modify it by selecting Actions next to the Quick Subscribe item.

Step 2: Implement getPurchaseUpdates

The method retrieves the customer’s receipts. When a customer makes a purchase through Quick Subscribe, the purchase happens outside of the app. Therefore, Quick Subscribe requires that your app calls to verify the customer’s purchase status. With this call, you can make sure that the customer receives the content that they purchased when the app opens. If you fail to properly implement , it can prevent a customer from accessing the content that they purchased. Call in the onResume() method. The method takes one boolean parameter, reset, with the following behavior:
  • When set to false: Appstore returns only the new receipts that your app hasn’t sent a fulfillment result for. These receipts appear in every getPurchaseUpdates(false) call until your app acknowledges the receipts by sending a fulfillment result.
  • When set to true: Appstore returns all of the receipts for this user.
The following code shows how to call the method.
For more information on how to integrate the method, see IAP API documentation, Implement getPurchaseUpdates method.

Implementation requirements

Follow these requirements to properly implement the method:
  • You must call in the onResume() lifecycle method of the Android activity.
  • To get only the latest receipts that your app hasn’t sent a fulfillment result for, use the false flag when calling in onResume(). If you use the true flag, the response returns the full history of receipts, and you would have to add extra filtering logic to handle the response.
  • Add a “Restore Purchases” option in your app which calls with the true flag when selected by a customer.
  • The receipts received through must always be persisted and must be mapped to the app’s login ID. Use this mapping to unlock the subscribed content to customers when they open the app.

Step 4: Integrate with RVS

The Receipt Verification Service (RVS) lets you validate purchases made by your app’s users. For details about RVS, see Receipt Verification Service for Appstore SDK IAP. When you make a request to the RVS server, the JSON response returned includes a purchaseMetadataMap field. If the purchase was initiated using Quick Subscribe, the purchaseMetadataMap appears as {"QuickSubscribe":"true"}, as seen in the following example.
If the purchase wasn’t initiated using Quick Subscribe, purchaseMetadataMap appears as null. The following table provides a description for all fields in the response object.
FieldData TypeDescription
autoRenewingBooleanIndicates if customer’s subscription will auto renew.
betaProductBooleanIndicates whether the product purchased is a Live App Testing product.
cancelDateLong integerThe date the purchase was canceled, or the subscription expired. The field is null if the purchase was not canceled. Time is in milliseconds.
cancelReasonIntegerIndicates why a product was canceled. Possible values are null, 0, 1, or 2, where each integer represents a cancellation reason:
null - The purchase was not canceled.
0 - The cancel reason is currently unavailable and will render at a later time.
1 - Your customer canceled the order.
2 - The purchase was canceled by Amazon’s system. For example, a customer purchases a subscription with an invalid payment and the purchase could not be completed in the grace period. This code is also returned if Amazon customer support canceled the order at the request of a customer or if a customer in the European Union withdrew from the subscription.
deferredDateLong integerFor tiered subscriptions, when a subscription is modified and the proration mode is deferred, indicates the date when the subscription plan will change. Will be null after the plan change takes effect.
deferredSkuStringFor tiered subscriptions, when a subscription is modified and the proration mode is deferred, indicates the upcoming plan’s SKU. Will be null after the plan change takes effect.
freeTrialEndDateLong integerIndicates that the subscription is in a free trial. Provides the free trial end date of the subscription in epoch (milliseconds). The field is null if the subscription is not in a free trial period.
fulfillmentDateLong integerIn a subscription purchase, the date of the acknowledgement of fulfillment. Stored as the number of milliseconds since the epoch. Null if subscription fulfillment isn’t confirmed. Always null for consumables and entitlements.
fulfillmentResultStringIn a subscription purchase, the status of fulfillment. Valid values:
  • FULFILLED: You provided the content and the customer consumed the content.
Null if subscription fulfillment isn’t confirmed. Always null for consumables and entitlements.
gracePeriodEndDateLong integerIndicates that the subscription is in grace period. Provides the grace period end date of the subscription in epoch (milliseconds). The field is null if the subscription is not in a grace period.
parentProductIdStringNull. Reserved for future use.
productIdStringThe SKU that you defined for this item in your app.
productTypeStringType of product purchased. Valid product types are CONSUMABLE, SUBSCRIPTION, and ENTITLED.
promotionsList<Promotion>Details of the promotional pricing or retention offer of a subscription purchase. Null if there is no promotion.
purchaseDateLong integerThe date of the purchase, stored as the number of milliseconds since the epoch. For subscription items, purchaseDate represents the initial purchase date, not the purchase date of subsequent renewals.
purchaseMetadataMapMap<String, String>If the purchase was initiated via Quick Subscribe, the value is {"QuickSubscribe":"true"}. Otherwise null.
quantityIntegerQuantity purchased. Always null or 1.
receiptIdStringGlobally unique identifier for the purchase.
renewalDateLong integerThe date that a subscription purchase needs to be renewed. The date is stored as the number of milliseconds since the epoch.
termStringDuration that a subscription IAP will remain valid (the term starts on the date of purchase). The term consists of a number and a time period (Day, Week, Month, Year), such as 1 Week or 2 Months.
termSkuStringUnique SKU that corresponds to the subscription term.
testTransactionBooleanIndicates whether this purchase was made as a part of Amazon’s publishing and testing process.

Step 5: Send fulfillment result to Amazon

When you send a fulfillment result, you ensure that Amazon can confirm whether users can access the content that they paid for. Always communicate the fulfillment result to Amazon. To do this, use the method included in the Appstore SDK. If you don’t send a fulfillment result, Amazon automatically cancels the subscription to make sure that customers don’t continue to pay for subscriptions that aren’t fulfilled. After a customer signs in, call with status when the subscription is fulfilled. If the customer already has a subscription that wasn’t purchased through Amazon, call with status to indicate that the customer has signed in, but the purchase isn’t applicable. For details about when to send other fulfillment results, see Implementation requirements. If you’ve previously integrated with the Acknowledge Receipt API, you can continue to use it in place of the method. You must use either the method or the Acknowledge Receipt API in your app to communicate the fulfillment result to Amazon.

Implementation requirements

Follow these requirements to properly implement the method. To communicate the fulfillment status to Amazon, you must call every time a receipt is processed from a object. The following table lists the conditions under which you send each fulfillment result.
Guidelines for calling notifyFulfillment
Fulfillment resultCondition to send
The customer has successfully created their account and can access content on your service.
The customer already has an existing account and subscription for your service.
The customer is not eligible to sign up for an account for your service.
For any other reason you can’t fulfill the order.

Auto-cancellation

Amazon uses auto-cancellation to make sure that customers don’t continue to pay for subscriptions that aren’t fulfilled. If you don’t update a purchase receipt to the status by using or the Acknowledge Receipt API within 14 days of purchase, Appstore automatically cancels and refunds the subscription. However, if within 14 days of purchase, you update the purchase receipt to the , , or status, Appstore immediately cancels and refunds the subscription.

Acknowledge Receipt API

The Acknowledge Receipt API uses the acknowledgeReceipt operation which allows you to notify Amazon that a subscription purchase has been fulfilled, so customers won’t lose access.The acknowledgeReceipt operation is a REST API, much like the verifyReceiptId operation used in RVS, but you must use a PUT request, rather than a GET request.The version number of the acknowledgeReceipt operation is 1.0. For more details on the query parameters, review the following table.

Query parameters

The Acknowledge Receipt API response uses the following query parameters.
Query ParameterDescriptionRequired
developerThe shared secret used to identify the developer issuing the request. Your shared secret can be found on the Shared Key page for your developer account with the Amazon Appstore.Yes
userID representing a distinct Amazon customer for your Appstore app: PurchaseResponse.getUserData().getUserId().Yes
receiptIdUnique ID for the purchase: PurchaseResponse.getReceipt().getReceiptId() or PurchaseUpdatesResponse.getReceipts() → Receipt.getReceiptId().Yes
fulfillmentResultThe status of order fulfillment. Valid Values:
  • FULFILLED: You provided the content and the customer consumed the content.
  • EXISTING_PURCHASE: You were unable to provide the content to the customer because the customer already has an existing account and subscription for your service.
  • NOT_ELIGIBLE: You were unable to provide the content to the customer because the customer is not eligible to sign up for an account for your service.
  • UNAVAILABLE: You were unable to provide the content to the customer for a reason not covered by the other fulfillment result values.
Sending a fulfillment result of EXISTING_PURCHASE, NOT_ELIGIBLE, or UNAVAILABLE immediately cancels and refunds the purchase.
Yes

Response codes

After making the HTTP request, the Acknowledge Receipt API responds with one of the following codes.
Response CodeDescription
HTTP 200Success: The Receipt ID, User ID, and shared secret are all valid. The subscription is marked as fulfilled.
HTTP 400The transaction represented by this receiptId is invalid, or no transaction was found for this receiptId.
HTTP 410The transaction represented by this receiptId is no longer valid. Treat it as a canceled receipt.
HTTP 429The request was throttled. Reduce your calling rate and retry after some time.
HTTP 496Invalid shared secret
HTTP 497Invalid User ID
HTTP 500There was an Internal Server Error

Acknowledge Receipt FAQ

The following are frequently asked questions (FAQ) about the Acknowledge Receipt API.

Step 6: Integrate with RTN

With Quick Subscribe, customers subscribe to your app through Amazon, but outside of your app. This could lead to your app missing some information about a customer’s purchase state. The method sends data only when an app is opened. Real-Time Notifications (RTN) provides customer purchase information for all transactions, including the ones that occur outside your app. When your server receives a purchase notification from Amazon’s RTN server, use the Receipt Verification Service (RVS) to validate the receipt. With RTN, Amazon sends you updates about a customer’s subscription events, such as when a customer purchases, renews, or cancels a subscription. This information is important for apps with Quick Subscribe because it makes sure your app always has the most up-to-date information about the user’s subscription. For details about how to set up RTN, see Use Real-Time Notifications.

Step 7: Integrate one-click account information sharing

To integrate your app with the one-click account information sharing feature, follow the Integrate One-Click Account Information Sharing guide. The following diagram shows the code flow for Quick Subscribe with one-click account information sharing. See text description.
  1. App opens.
  2. Call PurchasingService.getUserData().
  3. Get UserProfileAccessConsentStatus from UserData response object by calling UserData.getUserProfileAccessConsentStatus().
  4. If user consented, go to step 5, otherwise go to step 11.
  5. Call PurchasingService.requestUserProfileAccess().
  6. If call is successful and userProfileAccessAuthCode is present in the response, go to step 7, otherwise go to step 11.
  7. Update your server with the authorization code.
  8. Call the Appstore IAP Get Access Token API to get the access token.
  9. If the call is successful, call the Appstore IAP Get User Profile API using the access token and go to step 10. If the call fails, go to step 11.
  10. Create account with email. End flow
  11. Show app’s default account sign-up or sign-in experience.
  12. Authorize with local account using username and password. End flow
The high-level steps to set up one-click account information sharing are as follows.
  1. Update app manifest.
  2. Implement getUserData().
  3. Determine customer’s consent status.
    • If customer doesn’t provide consent, use your standard account creation process.
    • If customer provides consent, proceed to next step.
  4. Get an access token by using the Appstore IAP Get Access Token REST API.
  5. Get customer’s profile data by using the Appstore IAP Get User Profile REST API.
    • Get customer’s email.
    • Create an account for your service using the customer’s email.

Step 8: Test Quick Subscribe with LAT

With Amazon’s Live App Testing (LAT) service, you can distribute an app that you intend to publish to the Amazon Appstore to a pre-defined set of testers before going live. The testers can sample the full suite of Amazon services against Amazon’s production environment, to make sure your app is working as expected.

Set up LAT for Quick Subscribe

To test Quick Subscribe with Live App Testing (LAT), first configure Quick Subscribe for LAT in the Developer Console using the steps in Configure Quick Subscribe in the Developer Console. You can configure Quick Subscribe for LAT only, or configure it for both your live and LAT apps, as shown in the following image. For LAT only, choose Create Quick Subscription for Test. For LAT and live, choose Create Quick Subscription for Test and Live. If you choose to configure Quick Subscribe for LAT only, you can later promote the configuration to your live app by selecting Actions > Promote to Live as shown in the following image. Actions menu with options Edit, Turn Off, and Promote to Live If you configured Quick Subscribe for your LAT app differently than your live app, a TEST label appears in the quick subscription details for the LAT app as shown in the following image. TEST label appears at the top of the in-app item You can test the Quick Subscribe flow through the Amazon retail website or on a Fire device. When you start a live app test, you can send invitations to testers. Testers receive an email with a link to the Amazon website with the LAT version of the app.

Test Quick Subscribe on the website

From the LAT invitation email, select the Amazon website for your marketplace. On the app detail page, select the subscription option, which appears as a paid option for a subscription term, such as $20.00 monthly. Then, select a device to deliver to, and click Get App.

Test Quick Subscribe on the device

To get started with testing Quick Subscribe on the device, you can use the LAT invitation email or the device notification. To test from the LAT invitation
  1. Use the link in the invitation email to go to the app detail page on the Amazon website.
  2. Select the App Only option.
  3. If you have multiple devices associated with your account:
    1. Click the device name in Deliver to <device name>.
    2. In the Deliver to dialog, select the device where you want to deliver app.
  4. Click Get App.
  5. On a Fire TV device associated with the Amazon account, click the icon for Your Apps & Channels (the icon appears on the navigation bar as three squares and a plus sign).
  6. Find the LAT version of your app, which has a TEST banner on the app icon. You might need to click App Library to see the app.
  7. Select the app icon to open the app detail page on the device.
  8. Select Subscription Options and download the app.
To test from the notification After you send a LAT invite, the test devices associated with the tester email receive a notification. If you open the notification when it appears, you are taken to the LAT app detail page. This notification appears for 5-10 seconds. If you miss the notification when it first appears, you can click the settings icon (the gear icon) and select Notifications to see it. You can then read the notification and go to the app detail page. Select Subscription Options and download the app.
Last modified on October 29, 2026