Discussions
Can't cancel a Subscription Order using API
Hello! I have some subscriptions that were originally created through Clickfunnels pages. I'm building a feature in my application to allow users to cancel their subscriptions.
I've successfully integrated the API and can retrieve order details using a GET request with the order ID. However, I'm having trouble canceling these subscriptions. I've followed the documentation and tried both PUT and PATCH requests to update the service_status to canceled, but nothing changes.
I've also tried including the canceled_at, churned_at, and cancel_reason fields in the request, but still no success.
One detail to mention: the order I’m testing this with was created from a preview page (a test order). Could this be why the cancellation doesn’t work? Does this feature only work with real production orders?
Thanks in advance for any help!
Hey Gustavo, you can only modify "External Orders" via the API:
https://developers.myclickfunnels.com/docs/orders#external-orders-private-beta%EF%B8%8F
API reference currently shows the properties you can modify for regular orders in the Update endpoint, which is just the notes
property.
The correct way to cancel a regular subscription is for your customer to do this in the ClickFunnels Customer Center.
For a seamless experience, you can log them via SSO automatically when they click a link in the app. Which also has the benefit that you don't have to create and maintain any subscription-related logic at all inside your application and delegate it over to us :)