Canceling subscriptions
How to cancel subscriptions using Portcall API
To cancel a subscription via the Portcall API, simply call the subscription cancel API endpoint:
curl -X POST https://api.portcall.com/v1/subscriptions/{{subscription_id}}/cancel \
-H "X-API-Key YOUR_SECRET_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Replace {{subscription_id}} with the actual ID of the subscription you wish to cancel. Make sure to include your secret API key in the request headers for authentication.
Upon successful cancellation, the API will return a confirmation message along with the updated subscription status.