curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/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 '
{
"merchantTradeNo": "93840202212210025",
"env": {
"terminalType": "MINIAPP"
},
"goods": {
"goodsName": "USDT_PAY_BTC_TEST",
"goodsDetail": "yc"
},
"orderExpireTime": 1673410179000,
"merchantUserId": 1336974,
"chain": "BSC",
"fullCurrType": "BTC_BSC"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "47656656276819968",
"terminalType": "MINIAPP",
"expireTime": "1673410179000",
"chain": {
"chain_type": "BSC",
"fullCurrType": "USDT_BSC",
"address": "0x1699dB45Dc502A0395038265fCBC4Fa05d6afFBD"
}
}
}Create an address payment order on behalf of a sub-account. Returns prepay ID, expiry, and chain/deposit address info.
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/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 '
{
"merchantTradeNo": "93840202212210025",
"env": {
"terminalType": "MINIAPP"
},
"goods": {
"goodsName": "USDT_PAY_BTC_TEST",
"goodsDetail": "yc"
},
"orderExpireTime": 1673410179000,
"merchantUserId": 1336974,
"chain": "BSC",
"fullCurrType": "BTC_BSC"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "47656656276819968",
"terminalType": "MINIAPP",
"expireTime": "1673410179000",
"chain": {
"chain_type": "BSC",
"fullCurrType": "USDT_BSC",
"address": "0x1699dB45Dc502A0395038265fCBC4Fa05d6afFBD"
}
}
}The clientId assigned when the merchant registers an application in the Gate merchant console.
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
UTC timestamp in milliseconds when the request is generated. GatePay will not process requests where the difference from the receive time exceeds 10 seconds.
"1672905655498"
Random string. Must comply with HTTP header rules; recommended length is within 32 characters, composed of digits and letters.
"9578"
Request signature. GatePay uses this signature to verify whether the request is valid.
The institution account id being acted on behalf of (sub-account ID).
"2124538349"
Merchant transaction ID.
Transaction source: APP, WEB, WAP, MINIAPP, OTHERS.
Show child attributes
Goods.
Show child attributes
Order expiry timestamp, milliseconds.
Payer's unique ID on the merchant platform.
Chain name.
Currency field including chain name.
Order currency.
Order amount.
Surcharge borne by the consumer.
Tolerance amount for auto-complete.
Fiat currency.
Fiat order amount.
User-selected payment currency; omit for non-convert orders.
Callback URL after payment.
Callback URL after cancel.
Client/channel name.