# KYC 状态通知

> 接收用户的 KYC 补充资料请求、审核结果及补充资料请求撤销通知。

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/kyc-status
info:
  title: KYC 状态通知
  version: original
  description: 接收用户的 KYC 补充资料请求、审核结果及补充资料请求撤销通知。
webhooks:
  kyc.status:
    post:
      summary: KYC 状态通知
      description: 接收用户的 KYC 补充资料请求、审核结果及补充资料请求撤销通知。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request_id:
                  type: string
                  description: 用于通知去重的唯一标识。
                  x-onerway-signature-participation: included
                event_type:
                  type: string
                  description: 事件类型标识。
                  x-onerway-constraints:
                    - kind: values
                      text: 三种 action 均固定为 `EMFIN.KYC_STATUS`。
                  x-onerway-signature-participation: included
                created_at:
                  type: string
                  description: 通知创建时间，采用 ISO 8601 格式。
                  x-onerway-signature-participation: included
                version:
                  type: string
                  description: Webhook 消息版本。
                  x-onerway-signature-participation: included
                data:
                  type: object
                  properties:
                    userId:
                      type: integer
                      description: 本次通知所涉及用户的 ID。
                    merchantNo:
                      type: string
                      description: 该用户所属的商户号。
                    action:
                      type: string
                      description: 触发本次通知的操作。
                      enum:
                        - COMPLIANCE_KYC_RFI
                        - COMPLIANCE_KYC_REVIEW
                        - COMPLIANCE_REVOKE_RFI
                      x-enum-descriptions:
                        COMPLIANCE_KYC_RFI: 合规要求补充 KYC 资料，通过[KYC RFI
                          补充材料](/zh/embedded-finance/api-reference/endpoints/submit-additional-materials)接口提交所需材料。
                        COMPLIANCE_KYC_REVIEW: 合规完成 KYC 审核。
                        COMPLIANCE_REVOKE_RFI: 合规撤销此前的 KYC 补充资料请求。
                      x-onerway-constraints:
                        - kind: range
                          max: 32
                          unit: 字符
                    kycStatus:
                      type: string
                      description: 被通知用户的 KYC 状态。
                      enum:
                        - INFORMATION_REQUESTED
                        - APPROVED
                        - REJECTED
                        - UNDER_REVIEW
                      x-enum-descriptions:
                        INFORMATION_REQUESTED: 需要补充 KYC 资料。
                        APPROVED: KYC 审核通过。
                        REJECTED: KYC 审核被拒绝。
                        UNDER_REVIEW: 补充资料请求撤销后，KYC 处于审核中。
                      x-onerway-constraints:
                        - kind: range
                          max: 32
                          unit: 字符
                        - kind: consistency
                          text: "`COMPLIANCE_KYC_RFI` 固定对应 `INFORMATION_REQUESTED`；`COMPLIANCE_KYC_REVIEW`
                            对应 `APPROVED` 或 `REJECTED`；`COMPLIANCE_REVOKE_RFI`
                            固定对应 `UNDER_REVIEW`。"
                    kycActionId:
                      type:
                        - integer
                        - "null"
                      description: KYC 操作 ID；商户处理通知时无需使用此字段。
                      x-onerway-value:
                        nullable: true
                    remark:
                      type: string
                      description: KYC 通知说明。
                      x-onerway-constraints:
                        - kind: range
                          max: 800
                          unit: 字符
                        - kind: rule
                          text: 当 `action` 为 `COMPLIANCE_KYC_REVIEW` 且 `kycStatus` 为 `REJECTED`
                            时，此字段说明拒绝原因。
                    requestedInfomation:
                      type: array
                      description: KYC 补充资料明细；字段名保留实际报文拼写。
                      items:
                        type: object
                        properties:
                          actionId:
                            type: integer
                            description: 补充资料明细 ID。
                          documentName:
                            type:
                              - string
                              - "null"
                            description: 要求补充的资料类别；审核结果通知中可能为 `null`。
                            x-onerway-constraints:
                              - kind: range
                                max: 32
                                unit: 字符
                            x-onerway-value:
                              nullable: true
                          documentDesc:
                            type:
                              - string
                              - "null"
                            description: 补充资料的附加说明；未提供时为 `null`。
                            x-onerway-constraints:
                              - kind: range
                                max: 512
                                unit: 字符
                            x-onerway-value:
                              nullable: true
                      x-onerway-constraints:
                        - kind: rule
                          text: "`COMPLIANCE_KYC_RFI` 时查看补充资料明细；`COMPLIANCE_KYC_REVIEW`
                            时忽略；`COMPLIANCE_REVOKE_RFI` 时仅作为已撤销请求的历史记录，无需继续补充。"
                    faceAuths:
                      type:
                        - array
                        - "null"
                      description: KYC 审核通过时返回的人脸认证信息。
                      items:
                        type: object
                        properties:
                          ownerName:
                            type: string
                            description: 人脸认证链接对应的人员姓名。
                            x-onerway-constraints:
                              - kind: range
                                max: 256
                                unit: 字符
                          faceAuthUrl:
                            type: string
                            description: 该人员的人脸认证链接；审核通过时每项均有值。
                            x-onerway-constraints:
                              - kind: range
                                max: 1024
                                unit: 字符
                      x-onerway-constraints:
                        - kind: rule
                          text: 审核通过时，数组至少包含一项，且每项的 `faceAuthUrl` 都有值。
                      x-onerway-value:
                        nullable: true
                        when:
                          en: Null unless `action` is `COMPLIANCE_KYC_REVIEW` and `kycStatus` is
                            `APPROVED`.
                          zh: 仅当 `action` 为 `COMPLIANCE_KYC_REVIEW` 且 `kycStatus` 为 `APPROVED` 时不为
                            `null`；其他情况为 `null`。
                  description: KYC 状态通知详情。
                  x-onerway-signature-participation: included
            examples:
              information_requested:
                summary: 要求补充 KYC 资料
                value:
                  request_id: example_kyc_notification_001
                  event_type: EMFIN.KYC_STATUS
                  created_at: 2026-10-16T10:41:32+08:00
                  version: v1.0
                  data:
                    userId: 12345678
                    merchantNo: 800***
                    action: COMPLIANCE_KYC_RFI
                    kycStatus: INFORMATION_REQUESTED
                    kycActionId: null
                    remark: Additional KYC information requested
                    requestedInfomation:
                      - actionId: 100001
                        documentName: EDD_SUPPORTING_DOCUMENTS
                        documentDesc: null
                      - actionId: 100002
                        documentName: RELATIONSHIP_CLARIFICATION
                        documentDesc: null
                      - actionId: 100003
                        documentName: OTHER
                        documentDesc: example_additional_document_details
                    faceAuths: null
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: replace_with_unix_timestamp
                  x-signature: replace_with_hmac_sha256_signature
              review_approved:
                summary: KYC 审核通过
                value:
                  request_id: example_kyc_notification_002
                  event_type: EMFIN.KYC_STATUS
                  created_at: 2026-10-16T11:00:00+08:00
                  version: v1.0
                  data:
                    userId: 12345678
                    merchantNo: 800***
                    action: COMPLIANCE_KYC_REVIEW
                    kycStatus: APPROVED
                    kycActionId: null
                    remark: KYC review approved
                    requestedInfomation:
                      - actionId: 100001
                        documentName: null
                        documentDesc: null
                    faceAuths:
                      - ownerName: EXAMPLE USER
                        faceAuthUrl: https://example.com/face-auth?authorizationToken=replace_with_face_auth_token
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: replace_with_unix_timestamp
                  x-signature: replace_with_hmac_sha256_signature
              review_rejected:
                summary: KYC 审核被拒绝
                value:
                  request_id: example_kyc_notification_003
                  event_type: EMFIN.KYC_STATUS
                  created_at: 2026-10-16T11:05:00+08:00
                  version: v1.0
                  data:
                    userId: 12345678
                    merchantNo: 800***
                    action: COMPLIANCE_KYC_REVIEW
                    kycStatus: REJECTED
                    kycActionId: null
                    remark: example_kyc_rejection_reason
                    requestedInfomation:
                      - actionId: 100001
                        documentName: null
                        documentDesc: null
                    faceAuths: null
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: replace_with_unix_timestamp
                  x-signature: replace_with_hmac_sha256_signature
              information_request_revoked:
                summary: KYC 补充资料请求已撤销
                value:
                  request_id: example_kyc_notification_004
                  event_type: EMFIN.KYC_STATUS
                  created_at: 2026-10-16T10:43:42+08:00
                  version: v1.0
                  data:
                    userId: 12345678
                    merchantNo: 800***
                    action: COMPLIANCE_REVOKE_RFI
                    kycStatus: UNDER_REVIEW
                    kycActionId: 100004
                    remark: The KYC information request was canceled
                    requestedInfomation:
                      - actionId: 100001
                        documentName: EDD_SUPPORTING_DOCUMENTS
                        documentDesc: null
                      - actionId: 100002
                        documentName: RELATIONSHIP_CLARIFICATION
                        documentDesc: null
                      - actionId: 100003
                        documentName: OTHER
                        documentDesc: example_additional_document_details
                    faceAuths: null
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: replace_with_unix_timestamp
                  x-signature: replace_with_hmac_sha256_signature
      responses:
        "200":
          description: 成功接收并受理通知后，返回 HTTP 200 和 `respCode=20000`；响应码不是 `20000` 时 Onerway
            会重试。
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                  respMsg:
                    type: string
                required:
                  - respCode
                  - respMsg
              examples:
                return_success:
                  summary: 返回成功 JSON
                  value:
                    respCode: "20000"
                    respMsg: success
      x-onerway-verification:
        scheme: header-hmac
        signature:
          header: x-signature
          encoding: hex
        timestamp:
          header: x-timestamp
          tolerance: 300
        algorithm: hmac-sha256
        rule: timestamp-dot-raw-body
        reference: /zh/embedded-finance/api-reference/webhook-description
      x-onerway-header-fields:
        - name: x-signature
          schema:
            type: string
            description: Webhook 签名请求头。
        - name: x-timestamp
          schema:
            type: string
            description: Webhook 验证时间戳请求头。
```
