Query Checkout Order
Query checkout order details by prepay ID or merchant trade number. Either prepayId or merchantTradeNo is required.
Overview
This page documents theGET /v2/pay/order/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.
- Provide at least one of
prepayIdormerchantTradeNo. - This endpoint returns the order-query payload directly and does not use the outer
bizType/bizStatuscallback envelope. - For centralized payment orders, interpret
pay_amounttogether withorderAmount. - Treat this endpoint as the final confirmation and reconciliation source rather than something used only during exceptions.
- For shared signing rules, see /api-reference/version/100/en/common/securityAndSignature.
Headers
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"
Query Parameters
Pre-order ID (either prepayId or merchantTradeNo required)
Merchant order number (either prepayId or merchantTradeNo required)

