# 查询收款人列表

> 按创建时间和筛选条件分页查询收款人。

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: transfer/v3-beneficiaries/query-list
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/beneficiary/queryList:
    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:
                onBehalfOf:
                  type: string
                  description: 请求实际对应的商户号，仅在代其他商户发起请求时填写。
                beneficiaryId:
                  type: integer
                  description: Onerway 收款人 ID（64 位整数）。
                status:
                  type: string
                  description: 收款人状态，参见[收款人状态](/zh/transfer/api-reference/v3-enums#beneficiarystatus-收款人状态)。
                  x-onerway-constraints:
                    - kind: rule
                      text: 省略或空白：pass,unnecessary
                    - kind: rule
                      text: 省略时查询 pass、unnecessary 状态的收款人。
                destinationCountry:
                  type: string
                  description: 收款账户所在国家或地区，参见[国家/地区枚举](/zh/transfer/api-reference/v3-enums#国家地区枚举)。
                  x-onerway-constraints:
                    - kind: rule
                      text: 最大长度：12。
                targetCurrency:
                  type: string
                  description: 目标币种，参见[币种枚举](/zh/transfer/api-reference/v3-enums#币种枚举)。
                  x-onerway-constraints:
                    - kind: rule
                      text: 最大长度：128。
                accountIdentifier:
                  type: string
                  description: 银行账户标识筛选值
                walletIdentifier:
                  type: string
                  description: 收款人的钱包账号，用于模糊匹配筛选查询结果。匹配时忽略英文字母大小写和普通空格。
                  x-onerway-constraints:
                    - kind: rule
                      text: 最大长度：64。
                paymentMethod:
                  type: string
                  description: 付款方式，参见[枚举说明](/zh/transfer/api-reference/v3-enums#paymentmethod-付款方式)。
                  enum:
                    - BANK_TRANSFER
                    - SWIFT
                    - E_WALLET
                    - CASH_PICKUP
                  x-enum-descriptions:
                    BANK_TRANSFER: 银行转账
                    SWIFT: SWIFT 汇款
                    E_WALLET: 电子钱包
                    CASH_PICKUP: 现金支取
                entityType:
                  type: string
                  description: 收款人的主体类型，取值见[枚举说明](/zh/transfer/api-reference/v3-enums#entitytype-主体类型)。
                  enum:
                    - INDIVIDUAL
                    - BUSINESS
                  x-enum-descriptions:
                    INDIVIDUAL: 个人
                    BUSINESS: 企业
                startTime:
                  type: string
                  description: 创建时间区间起点；时区：北京时间（UTC+8）。
                  x-onerway-constraints:
                    - kind: rule
                      text: yyyy-MM-dd HH:mm:ss
                    - kind: rule
                      text: 开始时间不得晚于结束时间，查询范围不得超过 3 个日历月。
                endTime:
                  type: string
                  description: 创建时间区间终点；时区：北京时间（UTC+8）。
                  x-onerway-constraints:
                    - kind: rule
                      text: yyyy-MM-dd HH:mm:ss
                current:
                  type: integer
                  description: 页码，从 1 开始。
                  x-onerway-constraints:
                    - kind: rule
                      text: ≥1
                size:
                  type: integer
                  description: 每页记录数。
                  x-onerway-constraints:
                    - kind: rule
                      text: ≥1
              required:
                - startTime
                - endTime
            examples:
              default:
                summary: 请求结构示例（替换为当前商户数据）
                value:
                  startTime: 2026-01-01 00:00:00
                  endTime: 2026-01-31 23:59:59
                  current: 1
                  size: 10
                  status: unnecessary
      responses:
        "200":
          description: 成功示例
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      respCode:
                        type: string
                        description: 响应码；`20000` 表示请求处理成功，其余为错误码。
                      respMsg:
                        type: string
                        description: 响应码对应的可读说明。
                      data:
                        type: object
                        properties:
                          current:
                            type: integer
                            description: 页码，从 1 开始。
                          size:
                            type: integer
                            description: 每页记录数。
                          total:
                            type: integer
                            description: 总记录数。
                          records:
                            type: array
                            description: 当前页记录；无匹配时为空数组
                            items:
                              type: object
                              properties:
                                entityType:
                                  type: string
                                  description: 收款人的主体类型，取值见[枚举说明](/zh/transfer/api-reference/v3-enums#entitytype-主体类型)。
                                  enum:
                                    - INDIVIDUAL
                                    - BUSINESS
                                  x-enum-descriptions:
                                    INDIVIDUAL: 个人
                                    BUSINESS: 企业
                                merchantRefId:
                                  type: string
                                  description: 商户为收款人设置的外部标识。
                                individual:
                                  type: object
                                  properties:
                                    name:
                                      type: object
                                      properties:
                                        firstName:
                                          type: string
                                          description: 收款人的名。
                                        lastName:
                                          type: string
                                          description: 收款人的姓。
                                      description: 个人姓名
                                    identity:
                                      type: object
                                      properties:
                                        idType:
                                          type: string
                                          description: 证件类型
                                        idNumber:
                                          type: string
                                          description: 证件号码
                                        issuingCountry:
                                          type: string
                                          description: 证件签发国家或地区代码，参见[国家/地区枚举](/zh/transfer/api-reference/v3-enums#国家地区枚举)。
                                        expiryDate:
                                          type: string
                                          description: 证件到期日期，格式为 yyyy-MM-dd。
                                        issueDate:
                                          type: string
                                          description: 证件签发日期，格式为 yyyy-MM-dd。
                                      description: 证件信息
                                    dateOfBirth:
                                      type: string
                                      description: 出生日期，格式为 yyyy-MM-dd。
                                  description: 个人主体信息，仅适用于 entityType=INDIVIDUAL。
                                business:
                                  type: object
                                  properties:
                                    companyName:
                                      type: string
                                      description: 收款人的公司名称。
                                    tin:
                                      type: string
                                      description: 税务识别号
                                    registrationNumber:
                                      type: string
                                      description: 企业注册号
                                    registrationDate:
                                      type: string
                                      description: 企业注册日期，格式为 yyyy-MM-dd。
                                  description: 企业主体信息，仅适用于 entityType=BUSINESS。
                                contact:
                                  type: object
                                  properties:
                                    email:
                                      type: string
                                      description: 收款人的邮箱。
                                    mobile:
                                      type: object
                                      properties:
                                        areaCode:
                                          type: string
                                          description: 国际电话区号，包含 +
                                        number:
                                          type: string
                                          description: 电话号码，不包含区号
                                      description: 手机联系方式
                                  description: 联系方式
                                address:
                                  type: object
                                  properties:
                                    countryCode:
                                      type: string
                                      description: 国家或地区代码；当前响应取收款账户国家或地区，参见[国家/地区枚举](/zh/transfer/api-reference/v3-enums#国家地区枚举)。
                                    state:
                                      type: string
                                      description: 收款人地址所在的省或州。具体规则请参考[收款人字段规则查询](/zh/transfer/api-reference/endpoints/v3-beneficiaries-schema)返回的校验规则。
                                    city:
                                      type: string
                                      description: 收款人地址所在的城市。具体规则请参考[收款人字段规则查询](/zh/transfer/api-reference/endpoints/v3-beneficiaries-schema)返回的校验规则。
                                    addressLine1:
                                      type: string
                                      description: 主要街道地址，通常包含门牌号和街道名称。
                                    addressLine2:
                                      type: string
                                      description: 楼栋、楼层、房间或单元等补充信息。
                                    addressLine3:
                                      type: string
                                      description: 其他必要的地址补充信息。
                                    postalCode:
                                      type: string
                                      description: 收款人地址的邮政编码。
                                  description: 收款人的地址信息。
                                account:
                                  type: object
                                  properties:
                                    countryCode:
                                      type: string
                                      description: 国家或地区代码，参见[国家/地区枚举](/zh/transfer/api-reference/v3-enums#国家地区枚举)。
                                    currency:
                                      type: string
                                      description: 账户币种，参见[币种枚举](/zh/transfer/api-reference/v3-enums#币种枚举)。
                                    bankAccount:
                                      type: object
                                      properties:
                                        accountHolderName:
                                          type: string
                                          description: 银行账户持有人名称
                                        bankName:
                                          type: string
                                          description: 收款银行名称。
                                        accountType:
                                          type: string
                                          description: 银行账户类型，参见[枚举说明](/zh/transfer/api-reference/v3-enums#accounttype-银行账户类型)。
                                          enum:
                                            - CHECKING
                                            - SAVING
                                            - ORDINARY
                                          x-enum-descriptions:
                                            CHECKING: 支票账户
                                            SAVING: 储蓄账户
                                            ORDINARY: 普通账户
                                        accountIdentifier:
                                          type: object
                                          properties:
                                            type:
                                              type: string
                                              description: 银行账号标识类型，取值见[枚举说明](/zh/transfer/api-reference/v3-enums#type-银行账号标识类型)。
                                              enum:
                                                - IBAN
                                                - LOCAL_ACCOUNT
                                              x-enum-descriptions:
                                                IBAN: 国际银行账户号码
                                                LOCAL_ACCOUNT: 本地银行账号
                                            value:
                                              type: string
                                              description: IBAN 或本地银行账号，与 type 一致
                                          description: 银行账号及其类型
                                        swiftCode:
                                          type: string
                                          description: 收款银行的 SWIFT 代码。
                                        routingNumber:
                                          type: string
                                          description: 银行代码或本地清算路由代码，用于识别收款银行或其在当地清算网络中的路由。具体代码类型取决于收款国家：英国使用 Sort
                                            Code，美国使用 ABA Routing Number。
                                        branchNumber:
                                          type: string
                                          description: 收款账户所属银行分支机构的代码。
                                      description: 银行账户信息
                                    walletAccount:
                                      type: object
                                      properties:
                                        walletProvider:
                                          type: string
                                          description: 钱包服务商，参见[钱包服务商](/zh/transfer/api-reference/v3-enums#walletprovider-walletformat-钱包服务商与账号格式)。
                                        walletFormat:
                                          type: string
                                          description: 所选 walletProvider
                                            对应的钱包账号格式，参见[钱包账号格式](/zh/transfer/api-reference/v3-enums#walletprovider-walletformat-钱包服务商与账号格式)。
                                        walletIdentifier:
                                          type: string
                                          description: 收款人的钱包账号，账号格式取决于 walletProvider 和 walletFormat。
                                      description: 电子钱包账户信息
                                    cashPickupAccount:
                                      type: object
                                      properties:
                                        pickupBankName:
                                          type: string
                                          description: 现金支取机构名称
                                        pickupBranchId:
                                          type: string
                                          description: 领取网点编号
                                        pickupBranchName:
                                          type: string
                                          description: 领取网点名称
                                        pickupBranchAddress:
                                          type: string
                                          description: 领取网点地址
                                      description: 现金支取网点信息
                                  description: 收款账户信息
                                beneficiaryId:
                                  type: string
                                  description: Onerway 收款人 ID。
                                merchantNo:
                                  type: string
                                  description: 请求发起方的商户号。
                                onBehalfOf:
                                  type: string
                                  description: 请求实际对应的商户号，仅在代其他商户发起请求时填写。
                                status:
                                  type: string
                                  description: 收款人状态，参见[收款人状态](/zh/transfer/api-reference/v3-enums#beneficiarystatus-收款人状态)。
                                  enum:
                                    - pass
                                    - unnecessary
                                    - disable
                                    - deleted
                                  x-enum-descriptions:
                                    pass: 审核通过
                                    unnecessary: 无需审核
                                    disable: 停用
                                    deleted: 已删除
                                paymentMethod:
                                  type: string
                                  description: 付款方式，参见[枚举说明](/zh/transfer/api-reference/v3-enums#paymentmethod-付款方式)。
                                  enum:
                                    - BANK_TRANSFER
                                    - SWIFT
                                    - E_WALLET
                                    - CASH_PICKUP
                                  x-enum-descriptions:
                                    BANK_TRANSFER: 银行转账
                                    SWIFT: SWIFT 汇款
                                    E_WALLET: 电子钱包
                                    CASH_PICKUP: 现金支取
                                createTime:
                                  type: string
                                  description: 创建时间；时区：北京时间（UTC+8）。
                                updateTime:
                                  type: string
                                  description: 更新时间；时区：北京时间（UTC+8）。
                        description: 成功业务数据；失败不作为有效业务数据读取
                        x-onerway-constraints:
                          - kind: rule
                            text: 分页字段是 current、size、total、records，与交易列表的 pageNo/pageSize 不同。无匹配时
                              records=[]。
                      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
                          param:
                            type: string
                        required:
                          - type
                          - code
                          - message
                          - requestId
                          - errorDetails
                          - param
                    required:
                      - respCode
                      - respMsg
                      - error
              examples:
                "40004":
                  summary: 查询时间范围超过 3 个日历月。
                  description: 查询时间范围超过 3 个日历月。
                  value:
                    respCode: "40004"
                    respMsg: Validation Failed
                    error:
                      type: validation_error
                      code: beneficiary_query_list_failed
                      message: query time range cannot exceed three months
                      requestId: req_00000000000000000000000000000001
                      errorDetails:
                        []
                      param: endTime
                success:
                  summary: 成功示例
                  value:
                    respCode: "20000"
                    respMsg: Success
                    data:
                      current: 1
                      size: 10
                      total: 1
                      records:
                        - beneficiaryId: "10001"
                          merchantNo: "10000"
                          status: unnecessary
                          entityType: BUSINESS
                          paymentMethod: BANK_TRANSFER
                          business:
                            companyName: Example Demo Company
                            registrationNumber: demo_registration_001
                            registrationDate: 2020-01-01
                            tin: demo_tax_id
                          contact:
                            email: demo@example.com
                          address:
                            countryCode: US
                            state: Example State
                            city: Example City
                            addressLine1: Example Address
                            postalCode: "00000"
                          account:
                            countryCode: US
                            currency: USD
                            bankAccount:
                              accountHolderName: Example Demo Company
                              bankName: Example Bank
                              accountType: CHECKING
                              accountIdentifier:
                                type: LOCAL_ACCOUNT
                                value: demo_account_001
                              routingNumber: "000000000"
                failure:
                  summary: 查询时间范围超过 3 个日历月。
                  value:
                    respCode: "40004"
                    respMsg: Validation Failed
                    error:
                      type: validation_error
                      code: beneficiary_query_list_failed
                      message: query time range cannot exceed three months
                      requestId: req_00000000000000000000000000000001
                      errorDetails:
                        []
                      param: endTime
```
