If you've previously made a payment and you or your customer chose to save the credit card information,
you may use the Get Token List API to display the saved cards of your customers.
This API can also be used to obtain tokens from other payment methods that support tokenization,
such as OVO, BRI Direct Debit, Allobank, and others.
{
"customer": {
"id": "WT_CC001"
},
"channel": {
"id": "CREDIT_CARD"
},
"issuer": {
"id": "BANK_MANDIRI"
}
}
curl --location --request GET '/tokenization/v2/get-token' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer": {
"id": "WT_CC001"
},
"channel": {
"id": "CREDIT_CARD"
},
"issuer": {
"id": "BANK_MANDIRI"
}
}'
{
"customer": {
"id": "text"
},
"tokens": [
{
"id": "doku-gateway-creditcard",
"masked_account": "********5464",
"card": {
"cardholder_name": "EGXXXXXXI",
"expiry": "26/12",
"brand": "VISA",
"issuer": "BCA",
"country": "ID",
"bin": 123456,
"hashed_card_number": "0H9NEF3TY840WC8GWC48CHMW90309C3C43",
"payer_account_id": "0H9NEF3TY840WC8GWC48CHMW90309C3C43",
"encrypted_expiry": "NZdUASLwMQWy2eaq4ADZIPV9PC5iFSku80BNz6Mu9+g=|DEV-AA|2|2|noFCnMnn5v7WoYyZfujcwg=="
}
}
]
}