Skip to main content
Handy Tips
You can also search for the Token on your Dashboard.

2.1. Fetch Token by Payment ID

The following endpoint fetches a token id using the Payment id. /payments/:id
Curl
Response
Handy Tips
You can also retrieve the token_id from the payment.authorized webhook.

Path Parameter

id mandatory : string The unique identifier of the payment to be retrieved. For example, pay_1Aa00000000002.

2.2. Fetch Tokens by Customer ID

A customer can have multiple tokens and these tokens can be used to create subsequent payments for multiple products or services. The following endpoint fetches tokens linked to a customer.
Watch Out!This endpoint will not fetch the details of expired, rejected and unused tokens./customers/:id/tokens
Curl
Response

Path Parameter

id mandatory : string The unique identifier of the customer for whom tokens are to be retrieved. For example, cust_1Aa00000000002.

2.3. Delete Tokens

The following endpoint deletes a token. /customers/:customer_id/tokens/:token_id
Curl
Response

Path Parameter

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.