2. Fetch and Manage Tokens
Retrieve tokens using Razorpay APIs to create subsequent payments.
Once you capture a payment, Curlec Checkout returns a razorpay_payment_id
. You can use this ID to fetch the token_id
, which is used to create and charge subsequent payments.
You can retrieve the token_id
in the following ways:
- API
Use the below endpoint to fetch the token_id
using a payment_id
.
Note
You can also retrieve the token_id
via the
id
mandatory
string
The unique identifier of the payment to be retrieved. For example, pay_1Aa00000000002
.
Watch Out!
The UPI tokens are not populated in the API response if the save_vpa
feature is not enabled in your account. Please raise a request with our
id
mandatory
string
The unique identifier of the customer for whom tokens are to be retrieved. For example, cust_1Aa00000000002
.
The following endpoint deletes a token.
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?