Validate Google Play Store Purchase
POST/purchases/play-store/validate
Validates an in-app purchase or subscription completed through the Google Play Store.
This endpoint confirms the purchase token with Google and links the transaction to the user profile and paywall context.
Recommendations:
- If you previously called Get Paywall, include
isExperimentandaiPricingModelIdfrom that response to improve analytics attribution. - Identify the user by providing either
customerUserIdorprofileId. At least one is required to return the correct result.
Update: One-Time Purchase (OTP) Support
This endpoint supports both subscription and one-time purchase (OTP) validations. In addition to the existing subscriptionOfferDetails field, you can send oneTimePurchaseOfferDetails for one-time purchases.
Important: You must send either oneTimePurchaseOfferDetails or subscriptionOfferDetails, but not both. The choice depends on whether you're validating a one-time purchase or a subscription.
Request
Responses
- 200
Validated.