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

# Refund Query

> Query the result of a refund order

<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

* [International Credit Card (VISA/MASTER) Payment API](/docs/en/api/version2/creditcard)
* [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/card/card.openapi.json POST /usd/refund/refundQuery
openapi: 3.0.1
info:
  title: 默认模块
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试-interface
security: []
tags: []
paths:
  /usd/refund/refundQuery:
    post:
      tags: []
      summary: Credit Card Refund Query
      description: 发起退款的订单的结果查询
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (obtained from backend, must pass corresponding
                    business ID based on currency in URL)
                orderId:
                  type: string
                  description: Merchant refund application order number
                refundNo:
                  type: string
                  description: >-
                    Platform refund number (platform order number returned when
                    refund was applied, if provided, prioritize checking this
                    field)
                sign:
                  type: string
                  description: Signature
              required:
                - appId
                - 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:
                      appId:
                        type: string
                        description: Merchant order number (must be unique)
                      orderNo:
                        type: string
                        description: >-
                          Platform order number (original collection platform
                          order number)
                      orderId:
                        type: string
                        description: Merchant application order number
                      refundNo:
                        type: string
                        description: Platform refund number
                      status:
                        type: string
                        description: >-
                          Refund status: 1 indicates refund application success,
                          0 indicates processing, 2 indicates failure. Refund
                          result is based on this status
                      errorMsg:
                        type: string
                        description: Error message (may not always have a value)
                      sign:
                        type: string
                        description: Signature
                    additionalProperties: false
                additionalProperties: false
          headers: {}
      deprecated: false
      security: []

````