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

# 加纳塞地代付查询

<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">密钥私钥(生成签名)</h4>
    </div>

    <div />
  </div>

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

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

## 相关主题

* [加纳支付接口](/docs/zh/api/version2/Ghana)
* [HaiPay API 文档简介](/docs/zh/api-reference/overview)
* [HaiPay 配置与签名指南](/docs/zh/guide/config_settings_and_signature_rules_guide)


## OpenAPI

````yaml docs/zh/api-reference/ghs/ghs.openapi.json POST /ghs/pay/query
openapi: 3.0.1
info:
  title: 加纳塞地 API
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试环境
security: []
paths:
  /ghs/pay/query:
    post:
      summary: 加纳塞地代付查询
      requestBody:
        $ref: '#/components/requestBodies/QueryRequest'
      responses:
        '200':
          $ref: '#/components/responses/PayQueryResponse'
components:
  requestBodies:
    QueryRequest:
      required: true
      content:
        application/json:
          schema:
            type: object
            properties:
              appId:
                type: integer
                format: int64
                description: 业务ID
              orderId:
                type: string
                description: 商户订单号
              orderNo:
                type: string
                description: 平台订单号（可选）
              sign:
                type: string
                description: 签名
            required:
              - appId
              - orderId
              - sign
            additionalProperties: false
          example:
            appId: 1054
            orderId: GHSORDER001
            orderNo: '6023071013539074'
            sign: signature
  responses:
    PayQueryResponse:
      description: 成功
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PayQueryEnvelope'
  schemas:
    PayQueryEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/PayQueryData'
    EnvelopeBase:
      type: object
      properties:
        status:
          type: string
          description: 接口状态：1正常，0异常
        error:
          type: string
          description: 错误码
        msg:
          type: string
          description: 提示信息
    PayQueryData:
      type: object
      properties:
        orderId:
          type: string
        orderNo:
          type: string
        amount:
          type: string
        fee:
          type: string
        status:
          type: integer
          description: 0未开始，1放款中，2放款成功（终态），3放款失败（终态），-1异常待确认
        payTime:
          type: string
          description: 成功时间，加纳当地时间，格式 yyyy-MM-dd HH:mm:ss
        errorMsg:
          type: string
        certificateId:
          type: string
        sign:
          type: string

````