Skip to main content
POST
Refund (Direct Payment)

Overview

This page documents the POST /payment/open/institution/v1/pay/address/refund endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above. Initiate a refund for a direct (non-convert) address payment order.

Notes

  • Authentication uses the standard GatePay signed headers.
  • This page documents the institution-path variant of the same API.
  • Except for sub-account creation and sub-account query APIs, institution requests should include X-GatePay-On-Behalf-Of.
  • Use refundRequestId as the merchant refund request ID (do not use the deprecated refundGateId).
  • The response uses the standard status / code / errorMessage / data wrapper; business fields are under data.
  • For shared signing rules, see /api-reference/version/100/en/common/securityAndSignature.

Headers

X-GatePay-Certificate-ClientId
string
required

Merchant client ID, obtained from GatePay platform

X-GatePay-Signature
string
required

HMAC-SHA256 signature for request validation

X-GatePay-Timestamp
string
required

Millisecond timestamp; the difference from server time must not exceed 30 seconds.

X-GatePay-Nonce
string
required

Random nonce for replay attack prevention

X-GatePay-On-Behalf-Of
string
required

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.

Body

application/json
prepayId
string
required

The ID of the corresponding payment order

refundAmount
string
required

The amount to be refunded

receiverId
integer<int64>
required

The Gate user ID of the recipient of the refund for address payment

refundRequestId
string
required

Merchant refund request ID

refundReason
string

The reason for the refund

Response

200 - application/json

SUCCESS

Standard response wrapper; business fields are under data

status
string

Status

Example:

"SUCCESS"

code
string

Business code

Example:

"000000"

errorMessage
string

Error message

data
object

Address refund business data