Query Card
Info
This endpoint retrieves the card information of the card tokenized by the add card endpoints (direct, redirect).
Endpoint
https://ccapi.iotpaycloud.com/v3/cc_querycard
Method
POST
Header
Content-Type: application/json;charset=UTF-8
Request
| Name | Required | Type | Sample | Description |
|---|---|---|---|---|
| mchId | y | String(30) | 0000701 | assigned by IOTPay |
| cardId | y | String(30) | 604567999 | assigned by merchant, must be unique |
| sign | y | String(32) | C380BEC2BFD727A4B6845133519F3AD6 | Sign algorithm |
Response
| name | required | type | sample | description |
|---|---|---|---|---|
| retCode | y | String | SUCCESS or FAIL | |
| retMsg | y | String | cardId is not binding | if failed, message will contain the reason |
| retData | y | JSON | if retCode=SUCCESS, card info returned |
retData contains card information:
| name | required | type | sample | description |
|---|---|---|---|---|
| cardId | y | String | 604567999 | Id that has been queried |
| cardNum | y | String | 432567******2266 | Actual credit card number associated with the cardId |
| expiryDate | y | String | 1123 | expiryDate of the queried card |
| holder | y | String | test | holder of the queried card |
| cvv | y | String | 123 | cvv of the queried card |
