Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete fitbit subscription api

ANSWERED

Hi,

 

I am trying to hit delete subscription api but getting 404 Not Found in response

Please guide in the same.

 

Thanks

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @Govida,

 

Can you tell me if you have more than one subscriber endpoint? If so, are you specifying the correct subscriber id in your delete subscription endpoint? A subscriber id is the id of the subscriber that will receive the subscription notifications. If omitted the default subscriber will be used. This parameter is case sensitive. If you don't specify a subscriber id in your endpoint, the changes will apply only to your default subscriber.

 

If you only have one subscriber id, can you confirm the user you are subscribed to has existing subscriptions? This can be confirmed by executing the Get List of Subscriptions endpoint against the user id in question. If an empty array is returned for the collection type you are trying to delete subscriptions from, a subscription doesn't exist for that collection type.

 

I hope this helps. Let me know if you have any additional questions.

 

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Hi @Govida,

 

Can you tell me if you have more than one subscriber endpoint? If so, are you specifying the correct subscriber id in your delete subscription endpoint? A subscriber id is the id of the subscriber that will receive the subscription notifications. If omitted the default subscriber will be used. This parameter is case sensitive. If you don't specify a subscriber id in your endpoint, the changes will apply only to your default subscriber.

 

If you only have one subscriber id, can you confirm the user you are subscribed to has existing subscriptions? This can be confirmed by executing the Get List of Subscriptions endpoint against the user id in question. If an empty array is returned for the collection type you are trying to delete subscriptions from, a subscription doesn't exist for that collection type.

 

I hope this helps. Let me know if you have any additional questions.

 

Best Answer
0 Votes

Hi John,

 

Yes, we do have 2 subscribers registered. Earlier we were not sending subscriber id in api call, I included that and now delete subscription is working fine.

Thank you for your reply!

 

Best Answer
0 Votes