Hi there!
We’re implementing RevenueCat in our app and using webhooks to handle and store lifecycle changes.
The major issue we’ve run into however is that both:
- Webhooks don’t have a global subscription id (i.e. the Paddle ID from https://www.revenuecat.com/docs/api-v2#tag/Subscription-Data-Model)
- The API doesn’t have the original_transaction_id (it only has the current store_subscription_identifier)
Due to this, there isn’t a any common id between both the API and webhooks that we can reliably use to query / create subscription data in our database / server-side.
These have both been asked for recently in:
Our use-case and the reason we need a global id between the API and webhooks is that we have our own verify / activate API method that queries the RevenueCat API. That currently creates a subscription with the API’s store_subscription_identifier. But by the time the webhook comes in, the original_transaction_id (which doesn’t change between webhooks) is different resulting in two records rather than one.
The best solution would be to add the ReveueCat subscription id (e.g. sub1ab2c3d4e5) to all subscription webhooks. This is already available in the API and would mean there is a common and global ID for both sources of information.
We’re struggling to get the integration working without this so really appreciate any advice / assistance! Thanks
