# 查询 RDR 申请状态

> 查询 RDR 服务申请记录及其当前生命周期状态。

```yaml
openapi: 3.1.0
info:
  title: 查询 RDR 申请状态
  version: 1.0.0
  description: 查询 RDR 服务申请记录及其当前生命周期状态。
paths:
  /rdr/agency-cw/enrollment/page:
    post:
      summary: 查询 RDR 申请状态
      description: 查询 RDR 服务申请记录及其当前生命周期状态。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                merchantNo:
                  type: string
                  description: Onerway 分配的商户号；用于限定查询的商户账户范围。
                id:
                  type: string
                  description: 申请单号；传入后可按单条申请记录精确查询。
                preDisputeService:
                  type: string
                  description: 申请对应的服务类型。
                  enum:
                    - RDR
                  x-enum-descriptions:
                    RDR: Visa 快速争议解决（拒付预防）服务。
                  x-onerway-constraints:
                    - kind: values
                      text: 查询 RDR 申请时固定使用 `RDR`。
                bin:
                  type: string
                  description: 收单机构 BIN（Bank Identification Number），用于标识为商户提供收单服务的机构。
                  x-onerway-condition:
                    - 按收单机构 BIN 筛选申请记录时提供。
                dba:
                  type: string
                  description: 商户对外经营名称（DBA，Doing Business As）。
                  x-onerway-condition:
                    - 按商户经营名称筛选申请记录时提供。
                caid:
                  type: string
                  description: 商户受理标识（CAID，Card Acceptor ID）。
                  x-onerway-condition:
                    - 按商户受理标识筛选申请记录时提供。
                resellerSubMerchantId:
                  type: string
                  description: 代理运营商的子商户标识。
                  x-onerway-condition:
                    - 代理运营商查询其子商户申请记录时提供。
                enrollmentStatusList:
                  type: string
                  description: 按申请状态筛选申请记录。
                  enum:
                    - PENDING_SUBMISSION
                    - SUBMITTED_AND_PENDING_ENROLLMENT
                    - ENROLLING
                    - ENROLLED
                    - ENROLLMENT_FAILED
                    - SUBMITTED_AND_PENDING_DISENROLLMENT
                    - DISENROLLING
                    - DISENROLLED
                  x-enum-descriptions:
                    PENDING_SUBMISSION: 待提交：申请已创建，尚未提交审核。
                    SUBMITTED_AND_PENDING_ENROLLMENT: 已提交，等待开通：申请已提交，正在排队等待审核与开通处理。
                    ENROLLING: 开通中：审核通过，正在执行服务开通配置。
                    ENROLLED: 已开通：服务已生效。
                    ENROLLMENT_FAILED: 开通失败：审核未通过或开通受阻，申请未能完成开通；重新提交前应查看 `comments`。
                    SUBMITTED_AND_PENDING_DISENROLLMENT: 已提交，等待关闭服务：停用请求已提交，正在等待处理。
                    DISENROLLING: 关闭中：正在执行服务停用。
                    DISENROLLED: 已关闭：服务已停用。
                  x-onerway-constraints:
                    - kind: rule
                      text: 指定一个或多个申请状态，多个状态以英文逗号分隔。
                createTimeStart:
                  type: string
                  description: 申请记录创建时间范围的起点，格式为 `yyyy-MM-dd HH:mm:ss`。
                  x-onerway-condition:
                    - 按创建时间范围筛选时提供。
                createTimeEnd:
                  type: string
                  description: 申请记录创建时间范围的终点，格式为 `yyyy-MM-dd HH:mm:ss`。
                  x-onerway-condition:
                    - 按创建时间范围筛选时提供。
                updateTimeStart:
                  type: string
                  description: 申请记录更新时间范围的起点，格式为 `yyyy-MM-dd HH:mm:ss`。
                  x-onerway-condition:
                    - 按更新时间范围筛选时提供。
                updateTimeEnd:
                  type: string
                  description: 申请记录更新时间范围的终点，格式为 `yyyy-MM-dd HH:mm:ss`。
                  x-onerway-condition:
                    - 按更新时间范围筛选时提供。
                current:
                  type: string
                  description: 查询页码，从 `1` 开始。
                sign:
                  type: string
                  description: 请求签名字符串；生成方式详见[请求签名](/zh/payments/get-started/request-signing)。
              required:
                - merchantNo
                - current
                - sign
            examples:
              query-rdr-enrollments:
                summary: 查询 RDR 申请状态
                value:
                  current: "1"
                  enrollmentStatusList: ENROLLED,DISENROLLED
                  merchantNo: replace_with_merchant_no
                  preDisputeService: RDR
                  sign: "{{SIGN}}"
      responses:
        "200":
          description: Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: 响应码；`20000`
                      表示请求处理成功，其余为错误码。完整码表见[响应码](/zh/payments/api-reference/response-codes)。
                  respMsg:
                    type: string
                    description: 响应码对应的可读说明。
                  data:
                    type: object
                    properties:
                      content:
                        type: array
                        description: 符合查询条件的 RDR 服务申请记录列表。
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: 申请单号。
                            merchantNo:
                              type: string
                              description: Onerway 分配的商户号，标识商户账户。
                            preDisputeService:
                              type: string
                              description: 申请对应的服务类型。
                              enum:
                                - RDR
                              x-enum-descriptions:
                                RDR: Visa 快速争议解决（拒付预防）服务。
                            bin:
                              type: string
                              description: 收单机构 BIN（Bank Identification Number），用于标识为商户提供收单服务的机构。
                            caid:
                              type: string
                              description: 商户受理标识（CAID，Card Acceptor ID）。
                            mcc:
                              type: string
                              description: 商户类别代码（MCC，Merchant Category Code）。
                            dba:
                              type: string
                              description: 商户对外经营名称（DBA，Doing Business As）。
                            resellerSubMerchantId:
                              type:
                                - string
                                - "null"
                              description: 代理运营商的子商户标识。
                              x-onerway-value:
                                nullable: true
                                when:
                                  en: Has a value for agency sub-merchant enrollment records. Regular merchant
                                    records can return an empty value.
                                  zh: 代理运营商子商户申请记录中有值；普通商户申请记录可能为空。
                            arn:
                              type: string
                              description: 收单参考号（ARN，Acquirer Reference Number）。
                            enrollmentStatus:
                              type: string
                              description: 当前申请状态，反映申请从提交到开通 / 关闭的全流程进度；`ENROLLED` 表示 RDR 服务已生效、开始对符合规则的 Visa
                                争议自动处理，`ENROLLMENT_FAILED` 需结合 `comments`
                                修正后重新提交。
                              enum:
                                - PENDING_SUBMISSION
                                - SUBMITTED_AND_PENDING_ENROLLMENT
                                - ENROLLING
                                - ENROLLED
                                - ENROLLMENT_FAILED
                                - SUBMITTED_AND_PENDING_DISENROLLMENT
                                - DISENROLLING
                                - DISENROLLED
                              x-enum-descriptions:
                                PENDING_SUBMISSION: 待提交：申请已创建，尚未提交审核。
                                SUBMITTED_AND_PENDING_ENROLLMENT: 已提交，等待开通：申请已提交，正在排队等待审核与开通处理。
                                ENROLLING: 开通中：审核通过，正在执行服务开通配置。
                                ENROLLED: 已开通：服务已生效。
                                ENROLLMENT_FAILED: 开通失败：审核未通过或开通受阻，申请未能完成开通；重新提交前应查看 `comments`。
                                SUBMITTED_AND_PENDING_DISENROLLMENT: 已提交，等待关闭服务：停用请求已提交，正在等待处理。
                                DISENROLLING: 关闭中：正在执行服务停用。
                                DISENROLLED: 已关闭：服务已停用。
                            notes:
                              type:
                                - string
                                - "null"
                              description: 申请或状态变更备注。
                              x-onerway-value:
                                nullable: true
                                when:
                                  en: Has a value when an application or transition note was provided; returns
                                    `null` when omitted.
                                  zh: 申请或变更时填写备注后有值；未填写备注时为 `null`。
                            comments:
                              type:
                                - string
                                - "null"
                              description: 申请的审核意见；开通失败或被拒时，Onerway 在此说明具体原因，商户据此修正后可通过 `MERCHANT_RESUBMIT`
                                重新提交。
                              x-onerway-value:
                                nullable: true
                                when:
                                  en: Has a value when review comments exist; may be empty before comments are
                                    produced.
                                  zh: 已有审核意见时有值；尚未产生审核意见时可能为空。
                            createTime:
                              type: string
                              description: 申请记录创建时间，格式为 `yyyy-MM-dd HH:mm:ss`。
                            updateTime:
                              type: string
                              description: 申请记录更新时间，格式为 `yyyy-MM-dd HH:mm:ss`。
                            sign:
                              type:
                                - string
                                - "null"
                              description: 记录级签名字符串。
                              x-onerway-value:
                                nullable: true
                                when:
                                  en: The record-level signature can return `null`.
                                  zh: 该字段可能返回 `null`。
                      current:
                        type: string
                        description: 当前返回的页码（1-based）。
                      size:
                        type: number
                        description: 当前页的记录数（固定每页 10 条）。
                      totalPages:
                        type: number
                        description: 按当前页大小计算的总页数。
                      totalElements:
                        type: number
                        description: 符合查询条件的申请记录总条数。
                    description: 业务数据对象，包含申请记录列表与分页信息。
```
