curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/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-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--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
}
}Query gift card details by card number or redemption code. When both parameters are provided, key takes priority.
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/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-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--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
}
}Documentation Index
Fetch the complete documentation index at: https://docs.gate.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /payment/open/institution/v1/pay/gift/query endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.
Merchant client ID
"mZ96D37oKk-HrWJc"
Signature
"b8c4705ff4c1357f2a27925dd180c1e1f4a244148f312a2dee5afbcc6f4b150e9ffceee455c5a298f895d43a64ee829eebdfd262539d45c41f7aee4336fd8c8c"
Timestamp (milliseconds)
"1738934053475"
Nonce
"5417061546"
Required delegated-subject header. Provide the initiating account ID for this request. For institution merchant APIs, this is typically the target sub-account ID; for institution charge and transfer APIs, it can be either an institution account ID or a sub-account ID.
Query gift card request parameters (card_number and key, one of two required)