Cancel a subscription
Cancels an active subscription. You can choose to cancel immediately or at the end of the current billing cycle.
Authorizations
Use your Razorpay Key ID as the username and Key Secret as the password.
Path Parameters
Unique identifier of the subscription to cancel.
"sub_00000000000001"
Body
Set to 1 to cancel the subscription at the end of the current billing cycle. Set to 0 to cancel immediately.
0, 1 0
Response
Subscription cancelled successfully.
A Razorpay Subscription object.
Unique identifier of the subscription.
"sub_00000000000001"
Entity type. Always subscription.
"subscription"
Unique identifier of the plan associated with this subscription.
"plan_00000000000001"
Current status of the subscription.
created, authenticated, active, pending, halted, cancelled, completed, expired "created"
Total number of billing cycles in the subscription.
6
Number of billing cycles that have been successfully paid.
0
Number of billing cycles remaining.
6
Indicates whether the customer should be notified. 1 for yes, 0 for no.
0, 1 1
Unix timestamp at which the subscription starts billing.
1580453311
Unix timestamp at which the subscription ends.
null
Unix timestamp of the next scheduled charge.
1580453311
Unix timestamp at which the subscription was created.
1580453311