Skip to main content
Question

Delete Subscriber doesn't work

  • April 27, 2023
  • 1 reply
  • 53 views

Forum|alt.badge.img+1

I’m trying to delete a user as part of a UI test flow and I’m using this API - https://www.revenuecat.com/reference/delete-subscriber

After entering my V1 api secret token and the user I want to delete’s ID, I get the following bas script

 

curl --request DELETE \
     --url https://api.revenuecat.com/v1/subscribers/my-user-id \
     --header 'accept: application/json' \
     --header 'authorization: Bearer sk_token'

 

This however returns just

 

{"code":7227,"message":"Content-Type not application/json"}

 

My token is for V1 of the API and the user id is right, I’m not passing in any JSON.

 

Why am I getting this error?

This post has been closed for comments

1 reply

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 576 replies
  • May 2, 2023

Hi, are you trying to run this request via that web page’s prompt? If so it doesn’t always work. I recommend copying the request into your local command line and running it there.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings