Skip to main content

Step 4: Get Card Token

Retrieve the stored card token(s) linked to a customer. You will need the card_token from this response to process the withdrawal.

Endpoint

GET /api/v1/get-withdrawal-customer/card

Query Parameters

ParameterRequiredDescription
merchantAccountIdYesYour merchant account ID
customerReferenceIdYesThe ID from Step 1
emailYesThe customer's email

Response Example

{
"success": true,
"message": "success",
"data": [
{
"card_token": "b1fbc631-8089-4000-806c-4984adacb3b3",
"card_number": "411111XXXXXX1111",
"expiry_date": "*******",
"card_type": "VISA",
"card_name": "JO****OE",
"customer": {
"customer_reference_id": "8160a328-4906-4835-9071-599702e96f33",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]"
},
"solution": {
"alias_name": "Trust Payments"
}
}
]
}