Queries

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

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 / DEPOSIT

startTime

Long

Query start time, timestamp in seconds (UTC)

endTime

Long

Query end time, timestamp in seconds (UTC)

pageNum

Integer

Page number, minimum 1

pageSize

Integer

Page size, range 1–100

Request Example

{
  "cardId": 100001,
  "type": "DEPOSIT",
  "pageNum": 1,
  "pageSize": 10
}

Response Parameters

FieldTypeDescription
respCodeStringResponse code
respMsgStringResponse message
dataObjectPaginated data
data.totalRecordsLongTotal records
data.pageSizeLongPage size
data.currentLongCurrent page (synonym of pageNum)
data.pageNumLongCurrent page number
data.totalPagesLongTotal pages
data.records[]ArrayOperation record list for current page
data.records[].operateRecordIdLongOperation record ID
data.records[].cardIdLongCard ID
data.records[].clientRequestIdStringIdempotent request ID
data.records[].typeStringOperation type
data.records[].statusStringOperation status (P Processing / S Success / F Failed)
data.records[].remarkStringRemark
data.records[].amountBigDecimalAmount
data.records[].currencyStringCurrency
data.records[].operateTimeLongOperation time, timestamp in milliseconds (UTC)
data.records[].feeList[]ArrayFee detail list
data.records[].feeList[].feeTypeStringFee type: CREATE card creation fee / DEPOSIT deposit fee
data.records[].feeList[].feeAmountBigDecimalFee amount
data.records[].feeList[].feeCurrencyStringFee currency

Response Example

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

Get Card Basic Info

Query basic status information of a card.

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

Request Parameters

FieldTypeRequiredDescription
cardIdLongCard ID

Request Example

{
  "cardId": 100001
}

Response Parameters

FieldTypeDescription
respCodeStringResponse code
respMsgStringResponse message
dataObjectCard basic info
data.cardIdLongCard ID
data.cardholderIdLongCardholder ID
data.productIdLongCard product ID
data.statusStringCard 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.blockedFlagBooleanWhether 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
cardIdLongCard ID

Request Example

{
  "cardId": 100001
}

Response Parameters

FieldTypeDescription
respCodeStringResponse code
respMsgStringResponse message
dataObjectBalance info
data.cardIdLongCard ID
data.amountBigDecimalBalance amount
data.currencyStringCurrency

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
cardIdLongCard ID

Request Example

{
  "cardId": 100001
}

Response Parameters

FieldTypeDescription
respCodeStringResponse code
respMsgStringResponse message
dataObjectSensitive info
data.cardIdLongCard ID
data.cardNumberStringCard number
data.cvvStringCVV security code
data.expiryDateStringExpiry date, format MM/YY

Response Example

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