curl --request POST \
--url http://sandbox.mintlify.com/v1/pay/gift/query \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"card_number": "5202710871862281",
"key": ""
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"card_num": "6712561472330044",
"key": "r81T4rg3FKjt2+BYUgIn0CFqwtxp9CUSHGBFYDDJ608=",
"title": "",
"creator_name": "GateUser-8118f6f8",
"amount": "0.99",
"status": 2,
"currency": "USDT",
"create_time": 1737971259259,
"exchange_uid": 0,
"exchange_time": 1737971259259
}
}根据礼品卡卡号或兑换码查询礼品卡详情。当两个参数都传时优先使用 key。
curl --request POST \
--url http://sandbox.mintlify.com/v1/pay/gift/query \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"card_number": "5202710871862281",
"key": ""
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"card_num": "6712561472330044",
"key": "r81T4rg3FKjt2+BYUgIn0CFqwtxp9CUSHGBFYDDJ608=",
"title": "",
"creator_name": "GateUser-8118f6f8",
"amount": "0.99",
"status": 2,
"currency": "USDT",
"create_time": 1737971259259,
"exchange_uid": 0,
"exchange_time": 1737971259259
}
}商户客户端ID
"mZ96D37oKk-HrWJc"
签名
"b8c4705ff4c1357f2a27925dd180c1e1f4a244148f312a2dee5afbcc6f4b150e9ffceee455c5a298f895d43a64ee829eebdfd262539d45c41f7aee4336fd8c8c"
时间戳(毫秒)
"1738934053475"
随机数
"5417061546"
查询礼品卡请求参数(card_number 和 key 二选一)