v1
latestOpenAPI 3.0.32026-07-26172157253.6 KBRazorpay Payments
Cancel Razorpay Subscription
Cancel a Razorpay subscription after evaluating the caller's UPDATE policy on payments.razorpay_subscriptions.
post/api/payments/razorpay/{environment}/subscriptions/{subscriptionId}/cancel
Path parameters
environment'test' | 'live' required
Payment provider environment.
subscriptionIdstring required
Razorpay subscription ID.
Request body
Response
Razorpay subscription cancelled
Example response
{
"subscription": {
"subscriptionId": "sub_123",
"planId": "plan_123",
"customerId": "cust_123",
"authorizationPaymentId": "pay_123"
}
}