We're experiencing an issue where we get a 204 when trying to delete a user subscription, but the user subscription does not get deleted. Here's a sample cURL call:
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hi @girias-mfp,
Welcome to the forums!
A 204 is correct in this instance as this indicate.s the subscription was successfully deleted. You can confirm this by executing the Get Subscriptions endpoint.
Additionally, please note that deleting a subscription will not revoke access to the Fitbit user's account. To revoke access to a user's account, you must use the Revoke Token endpoint. Revoking a user's access_token will invalidate all refresh_tokens and subscriptions associated to that user. As a result, your application will no longer appear in the Fitbit user's shared application settings.
I hope this helps clear up any confusion. Let me know if you have any additional questions.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hi @girias-mfp,
Welcome to the forums!
A 204 is correct in this instance as this indicate.s the subscription was successfully deleted. You can confirm this by executing the Get Subscriptions endpoint.
Additionally, please note that deleting a subscription will not revoke access to the Fitbit user's account. To revoke access to a user's account, you must use the Revoke Token endpoint. Revoking a user's access_token will invalidate all refresh_tokens and subscriptions associated to that user. As a result, your application will no longer appear in the Fitbit user's shared application settings.
I hope this helps clear up any confusion. Let me know if you have any additional questions.
Hi @JohnFitbit,
I really appreciate the response. I will test and let you know if we need further help, but I think this is what we need. Thanks!
Best Answer