curl --request GET \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/card/consume/CONSUME202605220001/info \
--header 'Content-Type: application/json' \
--header 'Api-Key: your_api_key' \
--header 'Timestamp: 1716307200000' \
--header 'Access-Token: your_access_token'
{
"code": 0,
"msg": "Success",
"data": {
"consume_no": "",
"card_no": "",
"type": "Consumption",
"amount": "100.00",
"local_currency": "USD",
"fee": "1.00",
"status": "Success",
"time": 1716307200000
}
}
Card Transactions
Get Card Consumption Details
GET
/
open-api
/
v1
/
card
/
consume
/
{consume_no}
/
info
curl --request GET \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/card/consume/CONSUME202605220001/info \
--header 'Content-Type: application/json' \
--header 'Api-Key: your_api_key' \
--header 'Timestamp: 1716307200000' \
--header 'Access-Token: your_access_token'
{
"code": 0,
"msg": "Success",
"data": {
"consume_no": "",
"card_no": "",
"type": "Consumption",
"amount": "100.00",
"local_currency": "USD",
"fee": "1.00",
"status": "Success",
"time": 1716307200000
}
}
Retrieves details of a single consumption record.
Request Headers
string
required
apiKey (merchant credential, bound to IP whitelist)
string
required
Unix timestamp in milliseconds. The deviation from the server time must be within 60 seconds, and future timestamps are not accepted.
string
required
Login token (required for all interfaces except Get Token).
string
default:"application/json"
Fixed to
application/jsonPath Parameters
string
required
Consumption order number.
Response Parameters
number
Response status code.
0 indicates success.string
Response message.
object
Response data.
Show data
Show data
string
Consumption order number
string
Consumption related order number
string
Card order number
string
Cardholder order number
string
Consumption type, see [Appendix - Constants]
string
Amount
string
Original amount
string
Original currency
string
Fee (sum of
fee_list)object
string
Status, see [Appendix - Constants] Common Status
number
Consumption time (Unix milliseconds)
curl --request GET \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/card/consume/CONSUME202605220001/info \
--header 'Content-Type: application/json' \
--header 'Api-Key: your_api_key' \
--header 'Timestamp: 1716307200000' \
--header 'Access-Token: your_access_token'
{
"code": 0,
"msg": "Success",
"data": {
"consume_no": "",
"card_no": "",
"type": "Consumption",
"amount": "100.00",
"local_currency": "USD",
"fee": "1.00",
"status": "Success",
"time": 1716307200000
}
}
