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

# Merchant Payment Config

> Query merchant payment configuration by application ID

<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

* [Common API](/docs/en/api/version2/CommonApi)
* [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/common/common.openapi.json POST /common/payment/config
openapi: 3.1.0
info:
  title: Common API
  description: >-
    HaiPay common APIs for account query, statement file download, payout
    voucher, exchange rate query, voucher PDF, and merchant payment config.
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试-interface
security: []
tags: []
paths:
  /common/payment/config:
    post:
      tags: []
      summary: Merchant Payment Config
      description: >-
        Query merchant available payment configuration by application ID,
        including payment methods, fee rates, settlement periods, etc.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: Application ID (required)
                  format: int64
                tranType:
                  type: string
                  description: >-
                    Payment type (optional, e.g. BANK_ACCOUNT, BANK_CARD,
                    EWALLET). Filters by payment type if provided.
                transaction:
                  type: string
                  description: >-
                    Transaction type (optional, pay=payout, collect=collection).
                    Filters by transaction type if provided.
                sign:
                  type: string
                  description: Signature (required)
              required:
                - appId
                - sign
            examples: {}
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Status code
                  error:
                    type: string
                    description: Error code
                  msg:
                    type: string
                    description: Message
                  data:
                    type: object
                    properties:
                      userId:
                        type: integer
                        description: User ID
                        format: int64
                      configs:
                        type: array
                        description: Configuration list
                        items:
                          type: object
                          properties:
                            appId:
                              type: integer
                              description: Application ID
                              format: int64
                            appName:
                              type: string
                              description: Application name
                            tranCode:
                              type: string
                              description: 'Transaction type: pay=payout, collect=collection'
                            tranType:
                              type: string
                              description: Payment type (transaction method)
                            currNo:
                              type: string
                              description: Currency code (e.g. USD, CNY)
                            payMethods:
                              type: array
                              description: Payment method list
                              items:
                                type: object
                                properties:
                                  inBankCode:
                                    type: string
                                    description: Payment method code
                                  name:
                                    type: string
                                    description: Payment method name
                                  limit:
                                    type: object
                                    description: Limit information
                                    properties:
                                      singleMinAmount:
                                        type: string
                                        description: Minimum single amount
                                      singleMaxAmount:
                                        type: string
                                        description: Maximum single amount
                            feeRate:
                              type: object
                              description: Fee rate information
                              properties:
                                feeType:
                                  type: integer
                                  description: >-
                                    Fee collection method: 0=external deduction,
                                    1=internal deduction
                                feeMode:
                                  type: integer
                                  description: >-
                                    Fee collection type: 0=rate, 1=per
                                    transaction, 2=tiered, 3=floor price
                                feeRate:
                                  type: string
                                  description: Fee rate
                                feeFixedValue:
                                  type: string
                                  description: Fixed fee
                                degrees:
                                  type: array
                                  description: Tiered fee rate list (when fee_mode=2)
                                  items:
                                    type: object
                                    properties:
                                      start:
                                        type: integer
                                        description: Range start
                                        format: int64
                                      end:
                                        type: integer
                                        description: Range end
                                        format: int64
                                      value:
                                        type: string
                                        description: Range value (tiered fee rate)
                                      name:
                                        type: string
                                        description: Range name
                            settlement:
                              type: object
                              description: Settlement information
                              properties:
                                stlMode:
                                  type: string
                                  description: >-
                                    Settlement method: D0=natural day,
                                    TN=working day, WN=weekly, MN=monthly
                                stlCycle:
                                  type: integer
                                  description: Settlement cycle value
                            supportRefund:
                              type: boolean
                              description: Whether refund is supported
                      sign:
                        type: string
                        description: Signature
                    additionalProperties: false
          headers: {}
      deprecated: false
      security: []

````