Skip to main content
Question

Which information about the products do I need to store using the RevenueCat Webhook?

  • 13 August 2024
  • 1 reply
  • 16 views

Hello,

I am integrating RevenueCat with my iOS and Android mobile applications to process payments. On the back end, I use the information from the webhook to manage my sales. The offer_id value is needed for the mobile app, so I store it. However, in the Renewal webhook request that comes with a downgrade or upgrade, the offer_id remains the same, but only the product_id changes. Should I store the product_id along with the offer_id in my database? Do you have any other suggestions? Thank you in advance.

That’s really up to you and your workflow. However, some developers choose to store the entire webhook as JSON, that way they can query what they need if their business logic ever changes in the future.