Card Query API

Card query APIs including operation records, basic info, balance, and sensitive information.

Query Card Operation Records

Query card operation records with pagination, filterable by card ID and operation type.

ItemDetails
EndpointPOST /api/v1/merchant/card/getOperateRecordList

Request Parameters

FieldTypeRequiredDescription

merchantNo

Long

Merchant number

cardId

Long

Card ID, queries all merchant cards if omitted

clientRequestId

String(64)

Idempotent request ID for filtering

type

String(20)

Operation type: CREATE / FREEZE / UNFREEZE / TERMINATE / DEPOSIT / WITHDRAW

startTime

Long

Query start time, timestamp in milliseconds (UTC)

endTime

Long

Query end time, timestamp in milliseconds (UTC)

pageNum

Integer

Page number, minimum 1

pageSize

Integer

Page size, range 1–100

Response Parameters

FieldTypeDescription
data.records[]ArrayOperation record list
records[].operateRecordIdLongOperation record ID
records[].cardIdLongCard ID
records[].clientRequestIdStringIdempotent request ID
records[].typeStringOperation type
records[].statusStringStatus: P Processing / S Success / F Failed
records[].amountBigDecimalAmount
records[].currencyStringCurrency
records[].operateTimeLongOperation time, timestamp in milliseconds (UTC)
records[].feeList[]ArrayFee detail list
feeList[].feeTypeStringFee type: CREATE / DEPOSIT
feeList[].feeAmountBigDecimalFee amount
feeList[].feeCurrencyStringFee currency
data.totalLongTotal records
data.currentLongCurrent page
data.sizeLongPage size

Response Example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "records": [
      {
        "operateRecordId": 200001,
        "cardId": 100001,
        "clientRequestId": "REQ_20260101_001",
        "type": "DEPOSIT",
        "status": "SUCCESS",
        "remark": null,
        "amount": 100.00,
        "currency": "USD",
        "operateTime": 1735689600000,
        "feeList": [
          { "feeType": "SETUP_FEE", "feeAmount": 1.00, "feeCurrency": "USD" }
        ]
      }
    ],
    "total": 1,
    "current": 1,
    "size": 10
  }
}

Get Card Basic Info

Query basic status information of a card.

ItemDetails
EndpointPOST /api/v1/merchant/card/getBasicInfo

Request Parameters

FieldTypeRequiredDescription
merchantNoLongMerchant number
cardIdLongCard ID

Response Parameters

FieldTypeDescription

data.cardId

Long

Card ID

data.cardholderId

Long

Cardholder ID

data.productId

Long

Card product ID

data.status

String

Card status:

  • PROCESSING Creating
  • INFO_REQUIRED Pending info
  • FAILED Creation failed
  • ACTIVE Active
  • FREEZING Freezing
  • FROZEN Frozen
  • SYSTEM_FROZEN System frozen
  • UNFREEZING Unfreezing
  • EXPIRED Expired

data.blockedFlag

Boolean

Whether the card is blocked

Response Example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "cardId": 100001,
    "cardholderId": 300001,
    "productId": 1,
    "status": "ACTIVE",
    "blockedFlag": false
  }
}

Get Card Balance

Query the current balance of a card.

ItemDetails
EndpointPOST /api/v1/merchant/card/getBalanceInfo

Request Parameters

FieldTypeRequiredDescription
merchantNoLongMerchant number
cardIdLongCard ID

Response Parameters

FieldTypeDescription
data.cardIdLongCard ID
data.amountBigDecimalCurrent balance
data.currencyStringBalance currency

Response Example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "cardId": 100001,
    "amount": 980.00,
    "currency": "USD"
  }
}

Get Card Sensitive Info

Query card number, CVV, expiry date, and other sensitive information.

ItemDetails
EndpointPOST /api/v1/merchant/card/getSensitiveInfo
This endpoint returns sensitive data. Ensure the calling environment is secure and avoid calling directly from client-side applications.

Request Parameters

FieldTypeRequiredDescription
merchantNoLongMerchant number
cardIdLongCard ID

Response Parameters

FieldTypeDescription
data.cardIdLongCard ID
data.cardNumberStringCard number (masked or full, depending on configuration)
data.cvvStringCVV security code
data.expiryTimeStringExpiry date, format MM/YY

Response Example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "cardId": 100001,
    "cardNumber": "4111111111111111",
    "cvv": "123",
    "expiryTime": "12/28"
  }
}