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
useIapPurchaseUpdates(purchaseUpdatesRequest: PurchaseUpdatesRequest): { iapPurchaseUpdatesLoading: any; iapPurchaseUpdatesError: any; iapPurchaseUpdates: any; } useIapPurchaseUpdates hook should be called in your main screen component. This hook automatically invokes getPurchaseUpdates API and populates states during main screen launch and App state transitions from BG - FG. “iapPurchaseUpdates” state returned by this hook has unfulfilled and canceled consumable purchases. Amazon recommends that you persist the returned PurchaseUpdates data and query the system only for updates by calling the hook with reset flag being false. This hook ensures to keep getting you latest purchase updates.

Parameters

purchaseUpdatesRequest

PurchaseUpdatesRequest Purchase Updates request parameters

Returns

{ iapPurchaseUpdatesLoading: any; iapPurchaseUpdatesError: any; iapPurchaseUpdates: any; } States and value of Purchase updates
Last modified on July 22, 2026