Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Presents the primary API for interacting with the Amazon Appstore purchasing framework.

Constructors

new PurchasingService()

new PurchasingService(): PurchasingService

Returns

PurchasingService

Methods

getProductData()

static getProductData(productDataRequest): Promise<ProductDataResponse> Initiates a request to retrieve item data of up to one-hundred SKUs. Usage Pattern:
  1. getProductData is typically called during product page launch for getting and displaying IAP product info (like Price) for a set of SKUs.
To simplify this process, leverage the provided useIapProductData hook from this package. By calling this hook in your product page component, the hook will automatically trigger the getPurchaseUpdates API when the product page is launched.
  1. Beyond this product page use case, your app may have specific use cases related to IAP Products. For these tailored scenarios, utilize this getProductData API.

Parameters

productDataRequest
ProductDataRequest Input parameters.

Returns

Promise<ProductDataResponse>
  • Response containing the product data and status of the request.

getPurchaseUpdates()

static getPurchaseUpdates(purchaseUpdatesRequest): Promise<PurchaseUpdatesResponse> Initiates a request to retrieve updates about items the customer has purchased and/or canceled. Usage Pattern:
  1. To ensure getting latest purchase updates, Amazon recommends invoking getPurchaseUpdates API in your app’s main screen launch and when App transitions from background to foreground (BG -> FG).
To simplify this process, leverage the provided usePurchaseUpdates hook from this package. By calling this hook in your main screen component, the hook will automatically trigger the getPurchaseUpdates API when the main screen is launched or when the app transitions from BG -> FG.
  1. Beyond this main screen use case, your app may have specific use cases related to purchases. For these tailored scenarios, utilize this getPurchaseUpdates API.

Parameters

purchaseUpdatesRequest
PurchaseUpdatesRequest Input parameters.

Returns

Promise<PurchaseUpdatesResponse>
  • Response containing the receipts data and status of the request.

Last modified on October 2, 2025