Step 4: Get Card Token
Retrieve the tokenized card details for the customer.
Endpoint Information
Name: Get Card Token
Method: GET
URL: {{base_url}}/api/v1/get-withdrawal-customer/card
Description
Fetch the list of cards linked to the customer. You will need the card_token from this response to process the withdrawal.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
merchantAccountId | string | Yes | Your merchant account ID |
customerReferenceId | string | Yes | The ID from Step 1 |
email | string | Yes | The customer's email |
Response
Success Response
{
"success": true,
"message": "success",
"data": [
{
"card_token": "b1fbc631-8089-4000-806c-4984adacb3b3",
"card_number": "411111XXXXXX1111",
"card_type": "VISA",
"card_name": "JO****OE",
"customer": {
"customer_reference_id": "8160a328-4906-4835-9071-599702e96f33"
}
}
]
}