# 查询可用付款方式

> 按收款国家、账户币种及主体类型查询当前商户可用的付款方式。

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: transfer/v3-beneficiaries/query-payment-methods
info:
  title: 查询可用付款方式
  version: original
  description: 按收款国家、账户币种及主体类型查询当前商户可用的付款方式。
servers:
  - url: https://sandbox-transfer-api.onerway.com
    description: sandbox
  - url: https://transfer-api.onerway.com
    description: production
paths:
  /api/v3/acct/queryPaymentMethods:
    post:
      summary: 查询可用付款方式
      description: 按收款国家、账户币种及主体类型查询当前商户可用的付款方式。
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: Onerway 分配的账户服务 API key 请求 Header；必须使用与请求域名相同环境的值。
          schema:
            type: string
            description: Onerway 分配的账户服务 API key 请求 Header；必须使用与请求域名相同环境的值。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                destinationCountry:
                  type: string
                  description: 收款账户所在国家或地区，参见[国家/地区枚举](/zh/transfer/api-reference/v3-enums#国家地区枚举)。
                  x-onerway-constraints:
                    - kind: rule
                      text: 2 个字符
                accountCurrency:
                  type: string
                  description: 收款账户币种，参见[币种枚举](/zh/transfer/api-reference/v3-enums#币种枚举)。
                  x-onerway-constraints:
                    - kind: rule
                      text: 使用系统支持的三位大写字母币种代码，例如 USD。
                entityType:
                  type: string
                  description: 收款人的主体类型，取值见[枚举说明](/zh/transfer/api-reference/v3-enums#entitytype-主体类型)。
                  enum:
                    - INDIVIDUAL
                    - BUSINESS
                  x-enum-descriptions:
                    INDIVIDUAL: 个人
                    BUSINESS: 企业
                onBehalfOf:
                  type: string
                  description: 请求实际对应的商户号，仅在代其他商户发起请求时填写。
              required:
                - destinationCountry
                - accountCurrency
                - entityType
            examples:
              default:
                summary: 请求结构示例（替换为当前商户数据）
                value:
                  destinationCountry: US
                  accountCurrency: USD
                  entityType: BUSINESS
      responses:
        "200":
          description: 成功示例
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      respCode:
                        type: string
                        description: 响应码；`20000` 表示请求处理成功，其余为错误码。
                      respMsg:
                        type: string
                        description: 响应码对应的可读说明。
                      data:
                        type: object
                        properties:
                          destinationCountry:
                            type: string
                            description: 收款账户所在国家或地区，参见[国家/地区枚举](/zh/transfer/api-reference/v3-enums#国家地区枚举)。
                          accountCurrency:
                            type: string
                            description: 收款账户币种，参见[币种枚举](/zh/transfer/api-reference/v3-enums#币种枚举)。
                          entityType:
                            type: string
                            description: 收款人的主体类型，取值见[枚举说明](/zh/transfer/api-reference/v3-enums#entitytype-主体类型)。
                            enum:
                              - INDIVIDUAL
                              - BUSINESS
                            x-enum-descriptions:
                              INDIVIDUAL: 个人
                              BUSINESS: 企业
                          paymentMethods:
                            type: array
                            description: 付款方式，参见[枚举说明](/zh/transfer/api-reference/v3-enums#paymentmethod-付款方式)。
                            items:
                              type: string
                              enum:
                                - BANK_TRANSFER
                                - SWIFT
                                - E_WALLET
                                - CASH_PICKUP
                              x-enum-descriptions:
                                BANK_TRANSFER: 银行转账
                                SWIFT: SWIFT 汇款
                                E_WALLET: 电子钱包
                                CASH_PICKUP: 现金支取
                        description: 成功业务数据；失败不作为有效业务数据读取
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            description: 错误类型。
                          code:
                            type: string
                            description: 本接口错误标识。
                          declineCode:
                            type: string
                            description: 拒绝原因码，可能为空。
                          message:
                            type: string
                            description: 错误详细说明
                          param:
                            type: string
                            description: 失败字段或条件；无法定位时可能为空
                          docUrl:
                            type: string
                            description: 错误文档链接，可能为空。
                          requestId:
                            type: string
                            description: 服务端错误跟踪标识，req_ + 32 位十六进制字符；不是商户请求编号
                          errorDetails:
                            type: array
                            description: 具体错误明细；见下列分支
                            items:
                              type: object
                              properties:
                                errorCode:
                                  type: string
                                  description: 业务或校验明细码。
                                message:
                                  type: string
                                  description: 明细说明
                        description: 结构化失败信息；并非每个失败分支都有该字段
                  - type: object
                    properties:
                      respCode:
                        type: string
                      respMsg:
                        type: string
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                          code:
                            type: string
                          message:
                            type: string
                          requestId:
                            type: string
                          errorDetails:
                            type: array
                            items:
                              type: object
                              properties:
                                errorCode:
                                  type: string
                                message:
                                  type: string
                              required:
                                - errorCode
                                - message
                          param:
                            type: string
                        required:
                          - type
                          - code
                          - message
                          - requestId
                          - errorDetails
                          - param
                    required:
                      - respCode
                      - respMsg
                      - error
              examples:
                "40004":
                  summary: destinationCountry 使用小写 us。
                  description: destinationCountry 使用小写 us。
                  value:
                    respCode: "40004"
                    respMsg: Illegal parameter [destinationCountry]
                    error:
                      type: validation_error
                      code: "40004"
                      message: Illegal parameter [destinationCountry]
                      requestId: req_00000000000000000000000000000001
                      errorDetails:
                        - errorCode: "40004"
                          message: Illegal parameter [destinationCountry]
                      param: destinationCountry
                success:
                  summary: 成功示例
                  value:
                    respCode: "20000"
                    respMsg: Success
                    data:
                      destinationCountry: US
                      accountCurrency: USD
                      entityType: BUSINESS
                      paymentMethods:
                        - BANK_TRANSFER
                failure:
                  summary: destinationCountry 使用小写 us。
                  value:
                    respCode: "40004"
                    respMsg: Illegal parameter [destinationCountry]
                    error:
                      type: validation_error
                      code: "40004"
                      message: Illegal parameter [destinationCountry]
                      requestId: req_00000000000000000000000000000001
                      errorDetails:
                        - errorCode: "40004"
                          message: Illegal parameter [destinationCountry]
                      param: destinationCountry
```
