curl --request POST \
--url https://openplatform.gateapi.io/transfer/open/institution/v1/pay/convert \
--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 '
{
"clientReqId": "<string>",
"quoteId": "<string>",
"buyAmount": "<string>",
"buyCurrency": "<string>",
"sellAmount": "<string>",
"sellCurrency": "<string>"
}
'{
"status": "<string>",
"code": "<string>",
"errorMessage": "<string>",
"data": {
"order_id": "<string>",
"userId": "<string>",
"sellCurrency": "<string>",
"buyCurrency": "<string>",
"sellAmount": "<string>",
"buyAmount": "<string>",
"status": "<string>",
"rate": "<string>",
"quoteId": "<string>",
"createTime": "<string>"
}
}Initiate convert using quoteId and amounts from preview; parameters must match preview.
curl --request POST \
--url https://openplatform.gateapi.io/transfer/open/institution/v1/pay/convert \
--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 '
{
"clientReqId": "<string>",
"quoteId": "<string>",
"buyAmount": "<string>",
"buyCurrency": "<string>",
"sellAmount": "<string>",
"sellCurrency": "<string>"
}
'{
"status": "<string>",
"code": "<string>",
"errorMessage": "<string>",
"data": {
"order_id": "<string>",
"userId": "<string>",
"sellCurrency": "<string>",
"buyCurrency": "<string>",
"sellAmount": "<string>",
"buyAmount": "<string>",
"status": "<string>",
"rate": "<string>",
"quoteId": "<string>",
"createTime": "<string>"
}
}The clientId assigned when the merchant registers an application in the Gate merchant console.
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
Request signature. GatePay uses this signature to verify whether the request is valid.
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"
The institution account id being acted on behalf of (sub-account ID).
"2124538349"
Client request ID for idempotency
Quote ID from preview
Buy amount; must match preview
Buy currency; must match preview
Sell amount; must match preview
Sell currency; must match preview