API Connector for RevenueCat

How can I use the API connector to use RevenueCat webhooks to update my database?

I have in-app purchases set up in my app. I am trying to use the API connector to post the receipt to RevenueCat, and then have a separate backend workflow (detect data request) to update the database to give/revoke premium access.

I set up the API connector to post the receipt, along with the RevenueCat webhooks, but it’s just not working. Sometimes it uses the same receipt over and over, sometimes the webhooks are triggered inconsistently…

I’ve been trying to solve this for a while, but I’ve had no luck. If anyone can help, it would be MUCH appreciated!! : )

Try to be more concise on this part so we can help you. This post is the only thing we have to work with.

I solved some of the issues, but the main problem I am dealing with now is posting the receipt to revenuecat.

In the API connector, I have set up a post action to https://api.revenuecat.com/v1/receipts

I’ve added 2 headers:
Authorization = Bearer appl_pk****
Content-Type = application/json

Also, I’ve added 2 parameters:
fetch_token & app_user_id

Then from there, I pasted real sandbox data into the fetch_token value input, along with a valid test user string into the app_user_id value input box.

I initialized the workflow then, and the response that popped up was valid. However, now when i go to pass through that data, it’s not working. I think I’m doing something wrong in the api connector plugin, but I’m not 100% sure.

Thanks for the help!! : )

One thing i might be doing wrong is:

After I initialize in the api connector with the real values, I am then deleting it and leaving the value input boxes for app_user_id & fetch_token blank. Is this wrong?

Have you deleted the /initialize of the URL in the webhook once you have initialized it?