Tools /

Accept downgrade after failed payment

After a failed renewal payment, switch to the Free plan and stop Razorpay from retrying the charge.

downgrade_after_payment_failure

Plan
All plans
Usage
Free
Effect
Changes your account (asks first)

Parameters

ParameterTypeDescription
confirmrequiredbooleanMust be true. Only set it after the user has explicitly agreed to this action.

Example

You ask your assistant:

“My card expired — just move me to the free plan.”

It calls downgrade_after_payment_failure with:

arguments
{
  "confirm": true
}

and gets back:

result
Switched to the Free plan. Razorpay will not retry the failed payment.