# API: Get Credit Card
# getClientCreditCard
Get credit card
# Required parameters
Parameter | Description |
---|---|
id | Client ID |
# Optional parameters
Parameter | Description |
---|---|
card_id | Credit Card ID. Primary card will be returned in case this parameter is not provided |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getClientCreditCard&id=ID
# PHP Samples
# Response
{
"success": true,
"card": {
"id": 77,
"status": "Active",
"cardname": "John Doe",
"cardtype": "Visa",
"cardnum": "4242424242424242",
"expdate": "1225",
"token": null,
"token_gateway_id": "0",
"card_contact_id": "0",
"cardcreated": "2022-09-09 08:00:00",
"cardupdated": "2022-09-09 08:00:00",
"expirymonth": "12",
"expiryyear": "25",
"cardnum_pretty": "4242 4242 4242 4242",
"last4": "4242"
},
"call": "getClientCreditCard",
"server_time": 1662726111
}