Query card information
Brief Description
Retrieve card details
Request URL
/card/pay/api/core/cardInfo
Request Method
POST
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| cardId | Yes | string | Card ID |
Request Example
{
cardId: c_xxxxxxxxxxx
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| success | boolean | Success flag |
| error | boolean | Error flag |
| msg | string | Return processing message |
| code | integer | Return code |
| +model | object | Returned data object data |
| └ cardHolder | object | |
| └ └ firstName | string | Cardholder's first name |
| └ └ lastName | string | Cardholder's last name |
| └ address | object | Address information |
| └ └ street | string | Street |
| └ └ city | string | City |
| └ └ state | string | State |
| └ └ country | string | Country |
| └ └ zipCode | string | Zip code |
| └ card | object | Card information |
| └ └ userId | string | User ID |
| └ └ customerId | string | Custom customer ID |
| └ └ cardHolderId | string | Cardholder ID |
| └ └ holderName | string | Cardholder name |
| └ └ cardId | string | Virtual card ID |
| └ └ cardSeqNo | string | Virtual card sequence number |
| └ └ deposit | integer | Accumulated recharge |
| └ └ consume | integer | Accumulated consumption |
| └ └ balance | integer | Card balance (equal to recharge - consumption) |
| └ └ cvc | string | |
| └ └ number | string | Card number |
| └ └ cardBin | string | Card bin (first 6 digits of the card number) |
| └ └ last4 | string | Last four digits |
| └ └ status | string | Status |
| └ └ monthlyFeeCard | bool | Regular or monthly fee card |
| └ └ pendingMonthlyFee | integer | Total monthly pending fees |
| └ └ paidMonthlyFee | integer | Total fees paid per month |
| └ └ expYear | integer | Card expiration year |
| └ └ expMonth | integer | Card expiration month |
| └ └ gmtCreate | string | Card creation time |
| └ tags | array | List of card tags |
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
customerId: 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
expYear: 2025
expMonth: 2
gmtCreate: 1646648710000
}
tags: [
test
]
}
traceId: 1646651433202
}
Updated about 3 hours ago