API For Querying Order History
Brief description
- View card transaction records
Request URL
/open/api/card/trade/list
Request method
- POST
Parameters
| Parameter name | Required | Type | Description |
|---|---|---|---|
| cardId | Yes | string | Card ID |
| current | Yes | Integer | Current page |
| size | Yes | Integer | Number of queries[10-50] |
Request example
{
cardId: c_xxxxxxxxxxx,
current: 1,
size:10
}
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 |
| +records | array | list |
| └transactionId | string | card transaction id |
| └cardId | string | card id |
| └cardSeqNo | string | card serial number |
| └cardLast4 | string | last four digits of card number |
| └desp | string | description |
| └subDesp | string | sub description |
| └reason | string | reason for failure |
| └amount | integer | consumption amount |
| └currency | string | consumption amount currency |
| └type | string | transaction type: P2P peer-to-peer transfer, FRX foreign exchange, CTU cryptocurrency top-up, CRD card transaction, CDP cash deposit, CWD cash expenditure |
| └status | string | Transaction status, COMPLETE, TIMEOUT, REVERSED, etc. |
| └tradeAt | string | Transaction time |
| └size | integer | Number of record elements |
| └total | integer | Total |
| └current | integer | Current page |
Return example
{
"code": "0",
"msg": "success",
"model": {
"records": [
{
"transactionId": "0xadd46884309452fc8c71a02f57a735e8f951b0c47b08d009e01d4b819184d3f1",
"cardId": "465251_USD24",
"cardSeqNo": "465251_USD24",
"cardLast4": "7907",
"desp": "WEIXIN*Scan QR code fo",
"subDesp": "Shenzhen",
"reason": null,
"amount": "-1",
"currency": "usd",
"status": "COMPLETED",
"tradeAt": 1749539386000000,
"type": "CRD",
"transactionCountry": null
},
{
"transactionId": "0x79e25175fafb32be85d794e3994223fb08646b75379af4008dc5bdf8fac51388",
"cardId": "465251_USD24",
"cardSeqNo": "465251_USD24",
"cardLast4": "7907",
"desp": "WEIXIN*Scan QR code fo",
"subDesp": "Shenzhen",
"reason": null,
"amount": "-14",
"currency": "usd",
"status": "COMPLETED",
"tradeAt": 1749539042000000,
"type": "CRD",
"transactionCountry": null
},
{
"transactionId": "0x1d9a27c680a822c6e4f732c2984ab4ab218f94961878897dc1bd4b3087d81e93",
"cardId": "465251_USD24",
"cardSeqNo": "465251_USD24",
"cardLast4": "7907",
"desp": "Card recharge",
"subDesp": null,
"reason": null,
"amount": "100",
"currency": "usd",
"status": "COMPLETED",
"tradeAt": 1749536164000000,
"type": "P2P",
"transactionCountry": null
},
{
"transactionId": "0xc67f5b55fd15abc1615d92cdbd4031c7520d856ec3889912150de6e1044981c7",
"cardId": "465251_USD24",
"cardSeqNo": "465251_USD24",
"cardLast4": "7907",
"desp": "Card recharge",
"subDesp": null,
"reason": null,
"amount": "1000",
"currency": "usd",
"status": "COMPLETED",
"tradeAt": 1749465659000000,
"type": "P2P",
"transactionCountry": null
}
],
"size": 10,
"total": 4,
"current": 1
},
"traceId": "6847e3cdb2f9f5fa09388768b3f60dc0",
"success": true,
"error": false
}
Notes
- For more error codes, please see the error code description on the homepage
Updated about 1 month ago