curl --request POST \
--url https://openplatform.gateapi.io/transfer/open/institution/v1/pay/charge \
--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 '
{
"merchantBatchNo": "1234565454511231",
"accountId": "1979044675",
"currency": "USDT",
"amount": "1"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"merchantBatchNo": "1234565454511231",
"status": "PAID",
"fromAccountId": "2124267192",
"toAccountId": "1979044675",
"currency": "USDT",
"amount": "1",
"createTime": 1763455435851
}
}Initiate an account-to-account charge. X-GatePay-On-Behalf-Of specifies the initiating account ID for this transaction, and accountId specifies the payer account ID (the debited account). In the current version, this is a synchronous API and returns the final execution result directly.
curl --request POST \
--url https://openplatform.gateapi.io/transfer/open/institution/v1/pay/charge \
--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 '
{
"merchantBatchNo": "1234565454511231",
"accountId": "1979044675",
"currency": "USDT",
"amount": "1"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"merchantBatchNo": "1234565454511231",
"status": "PAID",
"fromAccountId": "2124267192",
"toAccountId": "1979044675",
"currency": "USDT",
"amount": "1",
"createTime": 1763455435851
}
}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 /transfer/open/institution/v1/pay/charge endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.
X-GatePay-On-Behalf-Of, which identifies the initiating account for this charge and can be either an institution account ID or a sub-account ID.accountId means the payer account ID (the debited account).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.
Required delegated subject header. Provide the initiating account ID for this transaction. It can be an institution account ID or a sub-account ID.