API For Obtaining Card Details

Brief description

  • Get card details

Request URL

  • /open/api/card/info

Request method

  • POST

Parameters

Parameter nameRequiredTypeDescription
cardIdYesstringCard ID

Request example

{
    cardId: c_xxxxxxxxxxx
}

Return parameter description

Parameter name

Type

Description

success

boolean

Success flag

error

boolean

Failure flag

msg

string

Return processing message

code

integer

Return code

+model

object

Return data object data

+cardHolder

object

└firstName

string

Cardholder last name

└lastName

string

Cardholder 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

└link

string

Card details information link(redirect to issue bank link, 24 hours)

└cardSeqNo

string

Virtual card serial number

└deposit

integer

Deposit accumulation

└consume

integer

Consumption accumulation

└balance

integer

Card balance (equal to deposit accumulation - consumption accumulation)

└cvc

string

└number

string

Card number

└cardBin

string

Card segment (first 6 digits of the card number)

└last4

string

Last four digits

└status

string

INIT: Card opening
ACTIVE: Activated
FREEZE: Frozen
EXPIRED: Expired

└expYear

integer

Card expiration year

└expMonth

integer

Card expiration month

└gmtCreate

string

Card opening time

+tags

array

Card tag list

Return example

{
  "code": "0",
  "msg": "success",
  "model": {
    "cardHolder": {
      "firstName": "Yang",
      "lastName": "Wenxue",
      "street": "Zhangyan Village 40",
      "city": null,
      "state": null,
      "country": "CHN",
      "zipCode": "062150"
    },
    "card": {
      "userId": "500417494499129131050",
      "customerId": "465251",
      "cardHolderId": "500417494499129131050",
      "holderName": "WENXUE YANG",
      "cardId": "465251_USD24",
      "link": "https://***",
      "cardSeqNo": "465251_USD24",
      "deposit": null,
      "consume": null,
      "balance": 285,
      "cvc": "•••",
      "number": "•••• 7907",
      "cardBin": "•••• 7",
      "last4": "7907",
      "status": "ACTIVE",
      "expYear": null,
      "expMonth": null,
      "gmtCreate": "1749464251000",
      "vendorCardBinId": null,
      "monthlyFeeCard": false,
      "pendingMonthlyFee": null,
      "paidMonthlyFee": null
    },
    "tags": null
  },
  "traceId": "6847e844c76bff2a83ba29b826ea6ff1",
  "success": true,
  "error": false
}

Notes

  • For more error codes, please see the error code description on the home page