curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v2/standard/order/refund \
--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 '
{
"prepayId": "35214673103159414",
"refundRequestId": "202508271923022",
"refundAmount": "0.018",
"refundReason": "bourne-test"
}
'{
"code": "000000",
"data": {
"refundRequestId": "202508271923022",
"refundGateId": "1991045981847818240",
"prepayId": "35214673103159414",
"orderAmount": "10",
"refundAmount": "0.018",
"errMsg": "",
"orderCurrency": "USDT",
"payCurrency": "USDT",
"payAmount": "0.018"
},
"status": "SUCCESS",
"errorMessage": ""
}Cashier’s refund interface V2. Supports original or specified refund style, Gate or Web3 refund channel, and more options.
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v2/standard/order/refund \
--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 '
{
"prepayId": "35214673103159414",
"refundRequestId": "202508271923022",
"refundAmount": "0.018",
"refundReason": "bourne-test"
}
'{
"code": "000000",
"data": {
"refundRequestId": "202508271923022",
"refundGateId": "1991045981847818240",
"prepayId": "35214673103159414",
"orderAmount": "10",
"refundAmount": "0.018",
"errMsg": "",
"orderCurrency": "USDT",
"payCurrency": "USDT",
"payAmount": "0.018"
},
"status": "SUCCESS",
"errorMessage": ""
}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/v2/standard/order/refund endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.
refundRequestId is the merchant-side unique refund request identifier and should be used when querying refund details.refundBearType and refundAmountTypeFull are numeric enums in the request body.refundRequestId, the original order identifier, and the corresponding query result together.Merchant client ID, obtained from GatePay platform
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
HMAC-SHA256 signature for request validation
"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8a2ec24c97fa6fc5d1533dd6e968863747e1d86a45e562cbe899f9ed7e9ca7f77"
Timestamp in milliseconds, must not differ from server time by more than 5 minutes
"1672905655498"
Random nonce for replay attack prevention
"9578"
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.
Refund V2 request parameters
Merchant refund request ID
Pre-order ID
Refund amount
Reason for refund
1: Original, 2: Specified
1: Gate, 2: Web3
Gate user ID for refund recipient
Chain for refund
1: Merchant, 2: User
Memo
1: Full, 2: Partial
Whether to trigger refund result notification; true means notifications are sent to the callback URL configured for the merchant
Refund limit flag
Refund currency
Refund fund statement ID
0: Order, 1: Transaction