# 匹配入金 RFI补充材料

> 提交要求补充的材料，或在无法提供材料时请求后续审核处理。

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/deposits/submit-deposit-rfi-response
info:
  title: 匹配入金 RFI补充材料
  version: original
  description: 提交要求补充的材料，或在无法提供材料时请求后续审核处理。
servers:
  - url: https://sandbox-baas.onerway.com/embedded-finance
    description: sandbox
  - url: https://baas.onerway.com
    description: production
paths:
  /api/v2/deposit/rfi/additional/material:
    post:
      summary: 匹配入金 RFI补充材料
      description: 提交要求补充的材料，或在无法提供材料时请求后续审核处理。
      parameters:
        - name: apiKey
          in: header
          required: true
          description: 用于访问嵌入式金融 API 的 API key。
          schema:
            type: string
            description: 用于访问嵌入式金融 API 的 API key。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userId:
                  type: integer
                  description: 该笔入金补充资料请求所属用户的 ID。
                rechargeId:
                  type: integer
                  description: 匹配入金 RFI 通知中的入金交易 ID。
                requestedInfomation:
                  type: string
                  description: 为匹配入金补充资料请求提交的文件。
                  contentMediaType: application/json
                  contentSchema:
                    type: array
                    items:
                      type: object
                      properties:
                        actionId:
                          type: integer
                          description: 匹配入金 RFI 通知中对应明细的 ID。
                        documentName:
                          type: string
                          description: 资料名称，必须与匹配入金 RFI 通知中该 `actionId` 对应的 `documentName` 完全一致。
                          x-onerway-constraints:
                            - kind: range
                              max: 64
                              unit: 字符
                        fileId:
                          type: integer
                          description: 文件上传接口返回的文件 ID。每条明细填写一个文件 ID；提交多个文件时，在不同条目中重复 `actionId` 和
                            `documentName`。
                      required:
                        - actionId
                        - documentName
                        - fileId
                  x-onerway-required: conditional
                  x-onerway-condition:
                    - 当 `remark` 为空时必填。
                  x-onerway-constraints:
                    - kind: consistency
                      text: 当 `remark` 为空时，匹配入金 RFI 通知中的每个 `actionId` 都必须至少提供一个文件。`remark`
                        非空时不检查材料是否齐全，可不传此字段。
                  x-onerway-format: json_string
                remark:
                  type: string
                  description: 仅无法提供要求的材料时填写的原因或备注。
                  x-onerway-constraints:
                    - kind: range
                      max: 512
                      unit: 字符
                    - kind: rule
                      text: 非空值表示无法补充材料，并跳过材料完整性检查。此字段非空时，`responseType` 必填。
                responseType:
                  type: string
                  description: 无法补充材料时，请求我方采取的处理方式。
                  enum:
                    - CONTINUE
                    - REJECT
                  x-enum-descriptions:
                    CONTINUE: 请求在无补充材料的情况下继续审核；最终结果通过匹配入金结果 Webhook 回调通知。
                    REJECT: 请求对待审核交易作审核拒绝处理；匹配入金结果 Webhook 回调的 `data.status` 为 `F`。
                  x-onerway-required: conditional
                  x-onerway-condition:
                    - 当 `remark` 非空时必填。
              required:
                - userId
                - rechargeId
            examples:
              submit_materials:
                summary: 提交要求补充的材料
                value:
                  userId: 12345678
                  rechargeId: 123456789
                  requestedInfomation: '[{"actionId":100001,"documentName":"BUSINESS_ADDRESS_PROOF","fileId":1001001},{"actionId":100001,"documentName":"BUSINESS_ADDRESS_PROOF","fileId":1001002},{"actionId":100002,"documentName":"OWNERSHIP_STRUCTURE_PROOF","fileId":1001003}]'
              continue_without_materials:
                summary: 无材料时继续审核
                value:
                  userId: 12345678
                  rechargeId: 123456789
                  remark: The requested documents are unavailable. Please continue the review
                    without additional materials.
                  responseType: CONTINUE
              reject_without_materials:
                summary: 无材料时要求审核拒绝
                value:
                  userId: 12345678
                  rechargeId: 123456789
                  remark: The requested documents are unavailable. Please reject this deposit
                    review.
                  responseType: REJECT
      responses:
        "200":
          description: 匹配入金 RFI 响应提交成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: Onerway 返回的响应码；`20000` 表示请求成功。
                  respMsg:
                    type: string
                    description: 响应码对应的可读消息。
                  data:
                    type:
                      - object
                      - "null"
                    properties:
                      {}
                    description: 响应数据；成功示例中为 `null`。
                    x-onerway-value:
                      nullable: true
              examples:
                success:
                  summary: 匹配入金 RFI 响应提交成功
                  value:
                    respCode: "20000"
                    respMsg: Success
                    data: null
      security:
        - apiKeyAuth:
            []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apiKey
```
