laravel-payhere

Cancel Subscriptions

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

Endpoint

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.

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