Skip to main content
GET
Retrieve detailed fee information for an order

Overview

This page documents the GET /api/open/v1/pay/order/fee/query endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.

Notes

  • Authentication uses the standard GatePay signed headers.
  • This page documents the standard merchant endpoint.
  • This is a GET endpoint; pass merchantTradeNo as a URL query parameter, not in POST body or form-data.
  • Response data adds totalInstitutionFeeAmount and payDetails[].institutionFeeAmount.
  • Terminology: transaction fee is collected by the platform; revenue share is institution markup; settlement amount is credited after deducting both.
  • Pending settlement still returns an error (fees being calculated).
  • For shared signing rules, see /api-reference/version/100/en/common/securityAndSignature.

Headers

X-GatePay-Certificate-ClientId
string
required

Merchant client ID

Example:

"4186d0c6-6a35-55a9-8dc6-5312769dbff8"

X-GatePay-Signature
string
required

Signature

Example:

"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8"

X-GatePay-Timestamp
string
required

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

Example:

"1672905655498"

X-GatePay-Nonce
string
required

Nonce

Example:

"9578"

Query Parameters

merchantTradeNo
string
required

Merchant order ID

Response

200 - application/json

Success

status
enum<string>

SUCCESS or FAIL

Available options:
SUCCESS,
FAIL
code
string

Error code

errorMessage
string

Error message

data
object