> ## 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.

# Collection Query V2

> Collection order 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

* [Global Cashier Payment API](/docs/en/api/version2/GlobalCashier)
* [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/cashier/cashier.openapi.json POST /global/cashier/collect/query/v2
openapi: 3.0.1
info:
  title: 全球收银台
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试-interface
security: []
tags: []
paths:
  /global/cashier/collect/query/v2:
    post:
      tags: []
      summary: Cashier Collection Query
      description: 代收订单查询
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (retrieved from the backend; must use the
                    Cashier-specific APPID, currency is CASHIER)
                orderId:
                  type: string
                  description: Merchant order ID
                orderNo:
                  type: string
                  description: Platform order ID
                sign:
                  type: string
                  description: Signature
              required:
                - appId
                - orderId
                - orderNo
                - sign
              additionalProperties: false
            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 ID
                      orderNo:
                        type: string
                        description: Platform order ID
                      currency:
                        type: string
                        description: >-
                          Currency (available after selecting a specific payment
                          method)
                      amount:
                        type: string
                        description: Order amount
                      actualAmount:
                        type: string
                        description: Actual received amount
                      fee:
                        type: string
                        description: Transaction fee
                      status:
                        type: integer
                        description: >-
                          Status (0 Not Started, 1 In Progress, 2 Success
                          (final), 3 Failed (final), -1 Exception Pending
                          Confirmation)
                      payTime:
                        type: string
                        description: >-
                          Payment success time (present when status=2, local
                          time), format: yyyy-MM-dd HH:mm:ss
                      errorMsg:
                        type: string
                        description: Failure reason (present when status=3)
                      originalCurrency:
                        type: string
                        description: Original payment currency
                      floatExchangeRate:
                        type: string
                        description: Exchange rate used in currency conversion
                      originalAmount:
                        type: string
                        description: Original payment amount
                      sign:
                        type: string
                        description: Signature
                    additionalProperties: false
                    description: 响应数据
                additionalProperties: false
          headers: {}
      deprecated: false
      security: []

````