patch-api2-dashboard-subscriptions-cancel
Cancel Subscription (Turn off Auto Renewal)
This API can be used to cancel an active subscripition.
Headers
- Type: string
Content - Type requiredapplication/json
- Type: string
Accept requiredapplication/json
- Type: string
Authorization Bearer token for admin authorization, who is making a call on behalf of the customer
Body
application/json
- Type: string
cancellation _reason min length:1requiredReason provided by the admin at the time of cancellation
- Type: string
cancellation _type min length:1enumrequiredType of cancellation -- either "hard_cancelled" or "soft_cancelled". If “soft_cancelled”, end users can enjoy the benefits until the “end_time” of the subscription. If “hard_cancelled”, subscription benefits are terminated immediately.
hard _cancelled soft _cancelled
- Type: integerFormat: int64
subscription _id requiredPunchh-generated unique ID of the subscription that needs to be cancelled
Responses
- Type: array string[] 1… unique!
200 OK
- Type: object
401 - Type: string
error min length:1required
- Type: object
406 - Type: string
invalid min length:1
- Type: object
422 - Type: object
errors
patch/api2/dashboard/subscriptions/cancel
[
"Subscription auto renewal cancelled."
]