> ## Documentation Index
> Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Disbursement Query

<div class="flex flex-col gap-4">
  <div class="api-section-heading flex flex-col gap-y-4 w-full">
    <div class="flex items-baseline border-b pb-2.5 border-gray-100 dark:border-gray-800 w-full">
      <h4 class="api-section-heading-title flex-1 mb-0">Secret Key & Private Key (Generate Signature)</h4>
    </div>

    <div />
  </div>

  <input id="secret-key" placeholder="Secret Key" class="px-3 py-2 border rounded-md" />

  <input id="private-key" placeholder="Private Key" class="px-3 py-2 border rounded-md" />
</div>

## Related Topics

* [Thailand Payment API](/docs/en/api/version2/Thailand)
* [HaiPay API Reference Overview](/docs/en/api-reference/overview)
* [HaiPay Configuration and Signature Guide](/docs/en/guide/config_settings_and_signature_rules_guide)


## OpenAPI

````yaml docs/en/api-reference/thb/thb.openapi.json POST /thb/pay/query
openapi: 3.0.1
info:
  title: 默认模块
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试-interface
security: []
tags: []
paths:
  /thb/pay/query:
    post:
      tags: []
      summary: THB Disbursement Query
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (obtained from backend, must pass the
                    corresponding business ID according to the currency in the
                    URL)
                orderId:
                  type: string
                  description: Merchant order number
                orderNo:
                  type: string
                  description: Platform order number (faster response)
                sign:
                  type: string
                  description: Signature
              required:
                - appId
                - orderId
                - sign
            examples: {}
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: '1: Normal, 0: Exception'
                  error:
                    type: string
                    description: Error code
                  msg:
                    type: string
                    description: Error description
                  data:
                    type: object
                    properties:
                      orderId:
                        type: string
                        description: Merchant Order Number (must be unique)
                      orderNo:
                        type: string
                        description: Platform Order Number
                      amount:
                        type: string
                        description: Transaction Amount
                      fee:
                        type: string
                        description: Service Fee
                      status:
                        type: integer
                        description: >-
                          Status (0 Not Started, 1 Processing, 2 Success
                          (final), 3 Failure (final), -1 Exception Pending
                          Confirmation)
                      payTime:
                        type: string
                        pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$
                        description: >-
                          Payment Success Time (prsent when status=2) (Thailand
                          Time), format: yyyy-MM-dd HH:mm:ss
                      errorMsg:
                        type: string
                        description: Payment Failure Reason (present when status=3)
                      sign:
                        type: string
                        description: Signature
                    additionalProperties: false
                additionalProperties: false
      deprecated: false
      security: []

````