Hello! I'm working on re-activating cancelled subs...
# support
s
Hello! I'm working on re-activating cancelled subscriptions. But I'm getting a 404 error when trying to use the
/subscriptions/api/v1/subscriptions/{id}/activate
route. I've noticed that the active route only exists in the admin namespace. What do you recommend for activating cancelled subscriptions?
c
Hey Sarah 👋🏼 It looks like you are correct and there is no route to activate a subscription through the API. This may be for security reasons so users can’t activate the subscription by passing any requirements. It looks like in the stock flow there is a job that is queued on
order_finalized
which handles the creation/activation of the subscription https://github.com/solidusio/solidus_subscriptions/blob/a73c9825adfcf25111c74346c1[…]75506/app/subscribers/solidus_subscriptions/order_subscriber.rb
n
@Sarah Naas If you want to reactivate cancelled subscriptions I think you can take a look at the
resume
API endpoint
👍🏼 1
s
Thanks!
c
It looks like I completely misread your original question, thanks @Nicolò Rebughini for clarifying!
👍 1
s
So resuming a subscription doesn't work on cancelled subscriptions. What's the difference between pausing and cancelling a subscription?
c
I think pausing would be if a customer wants to skip an instalment, where as cancelling is a final state.