Skip to main content

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 isExperiment and aiPricingModelId from that response to improve analytics attribution.
  • Identify the user by providing either customerUserId or profileId. 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

Validated.