2. Fetch and Manage Tokens
Retrieve tokens using Razorpay APIs to create subsequent payments.
Once you capture a payment, Razorpay 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 using the
Use the below endpoint to fetch token_id using the payment_id.
GET
/payments/:id
Handy Tips
You can also retrieve the token_id from the
Use the below endpoint to fetch all tokens linked to a customer.
A customer can have multiple tokens tied to them. These tokens can be used to create subsequent payments for multiple products or services.
GET
/customers/:id/tokens
The following endpoint deletes a token.
DELETE
/customers/:customer_id/tokens/:token_id
Is this integration guide useful?