curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/gift/create \
--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 '
{
"title": "创建礼品卡示例",
"templateId": "255267012439183360",
"currency": "USDT",
"amount": "0.99"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"card_num": "2002356433468640",
"card_key": "yJgkiqAVCwS0tC8W5D+t9iFqwtxp9CUSHGBFYDDJ608=",
"amount": "0.99",
"currency": "USDT",
"status": 1,
"card_temp_id": "255267012439183360",
"creator": 10002,
"creator_name": "GateUser-8118f6f8",
"exchange_uid": 0,
"owner": 10002,
"give_count": 0,
"last_give_time": 0,
"create_time": 1737942105582
}
}创建一张新的礼品卡,指定标题、封面、币种和金额。
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/gift/create \
--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 '
{
"title": "创建礼品卡示例",
"templateId": "255267012439183360",
"currency": "USDT",
"amount": "0.99"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"card_num": "2002356433468640",
"card_key": "yJgkiqAVCwS0tC8W5D+t9iFqwtxp9CUSHGBFYDDJ608=",
"amount": "0.99",
"currency": "USDT",
"status": 1,
"card_temp_id": "255267012439183360",
"creator": 10002,
"creator_name": "GateUser-8118f6f8",
"exchange_uid": 0,
"owner": 10002,
"give_count": 0,
"last_give_time": 0,
"create_time": 1737942105582
}
}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/create 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。
X-GatePay-On-Behalf-Of。商户客户端ID
"mZ96D37oKk-HrWJc"
签名
"b8c4705ff4c1357f2a27925dd180c1e1f4a244148f312a2dee5afbcc6f4b150e9ffceee455c5a298f895d43a64ee829eebdfd262539d45c41f7aee4336fd8c8c"
时间戳(毫秒)
"1738934053475"
随机数
"5417061546"
必填代理归属请求头。请填写本次请求的发起方账户 ID;在机构代理商户 API 中通常填写目标子账户 ID,在机构代扣与划转接口中可填写机构账户 ID 或子账户 ID。
创建礼品卡请求参数