Skip to main content
POST
Query withdrawal order status

Overview

This page documents the POST /withdraw/open/institution/v1/pay/payouts/detail 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 institution-path variant of the same API.
  • Institution requests must include X-GatePay-On-Behalf-Of to indicate the initiating account context for the delegated request.
  • For shared signing rules, see /api-reference/version/100/en/common/securityAndSignature.

Institution Notes

  • Institutional requests must include X-GatePay-On-Behalf-Of to specify the institutional sub-account to operate on.

Headers

X-GatePay-Certificate-ClientId
string
required

The clientId assigned when the merchant registers an application in the Gate merchant console.

Example:

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

X-GatePay-Signature
string
required

Request signature. GatePay uses this signature to verify whether the request is valid.

X-GatePay-Timestamp
string
required

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

Example:

"1672905655498"

X-GatePay-Nonce
string
required

Random string. Must comply with HTTP header rules; recommended length is within 32 characters, composed of digits and letters.

Example:

"9578"

Body

application/json

Request body for querying batch withdrawal status.

batch_id
string
required

Unique batch ID generated by the merchant at /v1/pay/withdraw.

detail_status
string
required

Query status of sub-orders
ALL: all sub-orders
INIT :new added sub-orders
PENDING: pending sub-orders
PROCESSING: submitted withdrawal request, pending confirmation
CHECK: in review
FAIL: failed sub-orders
DONE: successful sub-orders.

Response

200 - application/json

Withdrawal batch details

Response body for querying batch withdrawal status.

status
string
required

Main order status: INIT (newly created order), PROCESSING (newly created payout order is in processing), PARTIAL (partially successful), FAIL (fully failed), SUCCESS (fully successful)

code
string
required

Error code

errorMessage
string

Error message

data
object

Batch withdrawal details