Hi there,
I’m using this script to connect a stripe subscription to a RC User ID (aka posting receipts):
curl -X POST \
https://api.revenuecat.com/v1/receipts \
-H 'Content-Type: application/json' \
-H 'X-Platform: stripe' \
-H 'Authorization: Bearer YOUR_REVENUECAT_STRIPE_APP_PUBLIC_API_KEY' \
-d '{ "app_user_id": "my_app_user_id",
"fetch_token": "sub_xxxxxxxxxx"
}'
Sometimes I make a mistake and then delete the RC customer, so I can reconnect them again. But now I’m running into various issues.
First, after deleting in RC, I still can’t post the receipt to another RC User ID. I get a "Failed: Bad Request" response.
Second, even after deletion, I still see the user ID in Stripe (I’m using the RC plugin in Stripe to open the customer page on the right). So the user is after all not really deleted, what would the failed request explain.
After deleting I can’t find the customer anymore in the RC UI though.
Also, the original user ID didn’t have the entitlement although the stripe purchase was visible in the history.
Something has changed I feel, what could I do to investigate or fix this?