Skip to main content

DELETE /api/v1/subscriptions/:id

Cancel a subscription immediately so there are no further payments, subscription will remain active until period end.

Request

$ curl -X DELETE https://api.payhere.co/api/v1/subscriptions/:id \
-H "Accept: application/json" \
-H "Authorization: Bearer ${api_key_here}"

Params

  • id - Subscription to cancel

Response

204 No content

Errors

  • 404 Not found
  • 401 Unauthorized