Solved

API: How to transfer or remove a purchase

  • 22 August 2023
  • 2 replies
  • 169 views

Badge +1

After a `POST /v1/receipts` how can I either

  • remove that purchase
  • or transfer it to another user

via API. I didn’t find a corresponding endpoint.

icon

Best answer by kaitlin 24 August 2023, 16:45

View original

2 replies

Userlevel 4
Badge +6

Hey @André,

You can post that same fetch token with a different app user id, and this will transfer it to another user. 

There’s no way to remove a purchase itself via API, but you could delete a subscriber, which will effectively delete the purchase from your dashboard: https://www.revenuecat.com/reference/delete-subscriber

Bear in mind that this is a permanent action and cannot be undone. Additionally, this will not delete or end the subscription from an app store, only remove the purchase history from RevenueCat. If this user then re-opened your app and accessed their entitlement, they could reappear in your purchase history.

Badge

Does this work for stripe? If that’s the case, please update that here; https://www.revenuecat.com/docs/stripe?utm_source=google&utm_medium=cpc&utm_campaign=Branded%20Search&utm_content=%22revenuecat%20stripe%22&utm_ad=654531068313&utm_term=stripe%20revenuecat&matchtype=p&device=c&GeoLoc=9154741&placement=&network=g&campaign_id=8437358848&adset_id=149028118689&ad_id=654531068313&utm_term=stripe%20revenuecat&utm_campaign=Branded+Search&utm_source=adwords&utm_medium=ppc&hsa_acc=5477478064&hsa_cam=8437358848&hsa_grp=149028118689&hsa_ad=654531068313&hsa_src=g&hsa_tgt=kwd-1961459721111&hsa_kw=stripe%20revenuecat&hsa_mt=p&hsa_net=adwords&hsa_ver=3&gclid=CjwKCAjwp8OpBhAFEiwAG7NaElqZTHy-GBpBYJjhG0e7VcBVo03tSVLc-47UC8wwZlhDjNnJRXPUPBoCC_QQAvD_BwE

Reply