Subscriptions

Cancel subscription

Cancel a subscription. The system automatically determines whether to withdraw (for early-stage subscriptions) or cancel (for active subscriptions) based on the subscription state.

post/api/public/v1/subscriptions/{id}/cancel

Request

  • Base URL
    http://localhost:3009
  • URL
    http://localhost:3009/api/public/v1/subscriptions/{id}/cancel
  • Auth
    HTTP basic

Path parameters

idstring required

Subscription ID (integer)

Headers

Authorizationstring required

Request body

reasonstring

Optional cancellation reason

Example request

{
  "reason": "Customer request"
}

Response

Subscription cancelled with reason

successboolean required
messagestring required

Example response

{
  "success": true,
  "message": "Subscription cancelled successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.