Manage Mandates and Tokens

Track mandate funds, cancel tokens and delete tokens for UPI Reserve Pay (SBMD).


Once your UPI Reserve Pay integration is live, you can use the following APIs to monitor and manage active mandates.

Use the recurring_details object to monitor the utilisation of funds within an active mandate. This object is available in the response of the

and APIs. This object contains the following parameters:

Handy Tips

To find the remaining amount available for future debits, subtract the amount_debited from the amount_blocked. This allows you to manage customer expectations and ensure you do not initiate a debit that exceeds the remaining authorised limit.

The blocked amount under a UPI Reserve Pay token can be released in two ways:

Use the

below to release the blocked funds. When this API is called, all remaining funds under the token are unblocked and credited to the customer's bank account instantly.

Released funds reflect in the customer's account instantly. The bank statement may not display this as a separate credit entry, but the account balance is updated immediately.

Handy Tips

Ensure customers are informed that their funds remain blocked until you explicitly release them or the token expires.

The following endpoint initiates cancellation of the mandate from NPCI.

PUT
/customers/:customer_id/tokens/:token_id/cancel
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
-X PUT https://api.razorpay.com/v1/customers/cust_1Aa00000000002/tokens/token_1Aa00000000001/cancel

Path Parameters

customer_id

mandatory

string The unique identifier of the customer with whom the token is linked. For example, cust_1Aa00000000002.

token_id

mandatory

string The unique identifier of the token that is to be cancelled. For example, token_1Aa00000000001.

Watch Out!

You cannot delete an active token. Before deleting a token, you must first cancel the mandate using the

. Attempting to delete a token that has not been cancelled will result in an error. Only proceed with deletion once the token status is cancelled.

Deleting a token removes it from Razorpay's database. The deleted token will not appear on the Dashboard or when all tokens are fetched. However, it does not cancel the mandate at NPCI. To cancel the mandate first, use the

.

The following endpoint deletes a token.

DELETE
/customers/:customer_id/tokens/:token_id

Path Parameters

customer_id

mandatory

string The unique identifier of the customer with whom the token is linked. For example, cust_1Aa00000000002.

token_id

mandatory

string The unique identifier of the token that is to be deleted. For example, token_1Aa00000000001.


Is this integration guide useful?


UPI Reserve Pay manage
track mandate funds
cancel token
delete token
SBMD token management