Skip to main content
Question

How do I validate purchases on the backend using getPurchase?

  • March 12, 2025
  • 1 reply
  • 9 views

Forum|alt.badge.img

In the docs of https://www.revenuecat.com/docs/api-v2#tag/Purchase, it requires purchaseId which seems to be missing from the react native SDK?

I have tried using both transactionIds in customer info and in the transaction object but it the api fails to return so. Is this because the IDs are only in sandbox/test purchases in Android?

 

 

Using the get all https://www.revenuecat.com/docs/api-v2#tag/Customer/operation/list-subscriptions is less than ideal when one user has multiple purchases.

1 reply

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 262 replies
  • March 14, 2025

Hi! The purchase_id does not refer to the transaction identifier from the store, but is an ID generated by RevenueCat and is not included in the SDK. If you are using our webhooks to notify your backend, I would recommend using the store transaction_id in order to match it with the response from the API.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings