Hi, I’m implementing one-time purchases using RevenueCat.
I’ve set up a webhook to receive data when a user successfully completes a purchase. However, for security reasons, I don’t fully trust the data received via the webhook and want to verify the purchase using RevenueCat's REST API (v2).
I’ve gone through the documentation but couldn’t find a clear endpoint to validate one-time purchases. Could you help me with the following questions?
- Which endpoint should I use to validate a one-time purchase?
- What parameters should I include in the request? For example, should I use
id
,transaction_id
, orapp_user_id
from the webhook data? - Can the
/v2/projects/{project_id}/purchases/{purchase_id}
endpoint be used for this purpose? If so, what value should be passed as{purchase_id}
?