12-08-2021 12:47
12-08-2021 12:47
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.
12-08-2021 17:31
12-08-2021 17:31
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.
12-08-2021 17:31
12-08-2021 17:31
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.
12-10-2021 07:53
12-10-2021 07:53
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!