Skip to content

Retry a Subscription

The PayHere Subscription Manager API allows you to cancel a subscription.

Endpoint

http
DELETE /payhere/api/subscriptions/:id/cancel

Required Parameter

  • id: The payhere_subscription_id for the subscription.

Response

This response is copied from the official PayHere knowledge base.

json
{
    "status": 1,
    "msg": "Successfully cancelled the subscription",
    "data": null
}