API For Obtaining Card Details
Description
Obtain card details
Request URL
/open/api/card/info
Request Method
POST
Request Parameter
Parameter | Mandatory | Type | Description |
---|---|---|---|
cardId | Y | string | Virtual Card ID |
Request Example
{
"cardId": "c_xxxxxxxxxxx"
}
Response Parameter
Parameter | Type | Description |
---|---|---|
+cardHolder | object | Cardholder Information |
└firstName | string | Cardholder's surname |
└lastName | string | Cardholder Name |
└street | string | Street |
└city | string | City |
└state | string | State |
└country | string | Country |
└zipCode | string | Zipcode |
+card | object | Card information |
└userId | string | User ID |
└cardHolderId | string | Cardholder ID |
└cardId | string | Card ID |
└customerId | string | Custom Customer ID |
└cardSeqNo | string | CARD series number |
└deposit | integer | Deposit, 1000 represents $10.00 |
└consume | integer | Consumption, 1000 represents $10.00 |
└balance | integer | Balance, 1000 represents $10.00 |
└cvc | string | Cvc virtual card verification code, also known as cvv in VISA cards |
└number | string | Card number |
└cardBin | string | Card section (top 6 digits of card number) |
└last4 | string | Last four digits |
└status | string | INIT: Card opening INIT CREATE CARD: Create Virtual Card INIT CREATE CARD HOLDER: Create Cardholder INIT ACTIVE CARD: Activate Card CREATE CARD FAILED REFUND: Card creation failed, full refund ACTIVE: Activated FREEZE: Frozen CANCELLING: Deleting card CANCELED: Deleted DELETED: Permanently delete EXPIRED: Expired WAIT_CANCEL:Waiting for card deletion |
└monthlyFeeCard | bool | Regular card or monthly fee card |
└pendingMonthlyFee | integer | Total monthly pending charges |
└paidMonthlyFee | integer | Total monthly payment |
└statusText | string | Card Status Text |
└expYear | integer | Card expiration year |
└expMonth | integer | Card Expiration Month |
└gmtCreate | string | Card opening time |
tags | array | Card Label List |
└ | string | Card Label |
Response Example
{
"success": true,
"error":false,
"msg": "success",
"code": 0,
"model": {
"cardHolder": {
"firstName": "Milton",
"lastName": "Schmitt",
"address": {
"street": "1010 Pine St LOT 12-E",
"city": "Vienna",
"state": "GA",
"country": "US",
"zipCode": "31092"
}
},
"card": {
"userId": "u_xxxxxxxx",
"cutomerId": "user_id_123",
"cardHolderId": "ch_xxxxxxxxxx",
"holderName": "Milton Schmitt",
"cardId": "c_xxxxxxxxxx",
"cardSeqNo": "CXXXXXXXX",
"deposit": 1000,
"consume": 0,
"balance": 1000,
"cvc": "123",
"number": "40000099900XXXXX",
"cardBin": "400000",
"last4": "9360",
"status": "ACTIVE",
"statusText": "已激活",
"expYear": 2025,
"expMonth": 2,
"gmtCreate": 1646648710000
},
"tags": [
"test"
]
},
"traceId": 1646651433202
}
Updated about 2 months ago