# 企业KYC

> 新增或更新企业 KYC 信息。

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/kyc/submit-business-kyc
info:
  title: 企业KYC
  version: original
  description: 新增或更新企业 KYC 信息。
servers:
  - url: https://sandbox-baas.onerway.com/embedded-finance
    description: sandbox
  - url: https://baas.onerway.com
    description: production
paths:
  /api/v2/kyc/business:
    post:
      summary: 企业KYC
      description: 新增或更新企业 KYC 信息。
      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: 不传或传入 null 表示为新用户新增企业 KYC；传入现有用户 ID 表示更新该用户的企业 KYC
                    信息。更新时仍需提交所有必填字段。
                kycType:
                  type: string
                  description: 企业 KYC 类型。
                  enum:
                    - AGENCY
                  x-enum-descriptions:
                    AGENCY: 代理机构企业 KYC。
                  x-onerway-constraints:
                    - kind: range
                      max: 32
                      unit: 字符
                businessName:
                  type: string
                  description: 企业注册名称。
                  x-onerway-constraints:
                    - kind: range
                      max: 256
                      unit: 字符
                businessNature:
                  type: string
                  description: 企业的业务性质。
                  x-onerway-constraints:
                    - kind: range
                      max: 256
                      unit: 字符
                registrationCertType:
                  type: string
                  description: 企业注册证件类型。
                  enum:
                    - CERTIFICATE_OF_INCORPORATION
                  x-enum-descriptions:
                    CERTIFICATE_OF_INCORPORATION: 公司注册证书。
                  x-onerway-constraints:
                    - kind: range
                      max: 32
                      unit: 字符
                registrationNumber:
                  type: string
                  description: 企业注册号。
                  x-onerway-constraints:
                    - kind: range
                      max: 64
                      unit: 字符
                registrationDate:
                  type: string
                  description: 企业注册日期。
                  x-onerway-constraints:
                    - kind: range
                      max: 32
                      unit: 字符
                    - kind: rule
                      text: 使用 YYYY-MM-DD 格式。
                registrationCountry:
                  type: string
                  description: 注册国家的两位国家代码。使用 ISO 3166-1 alpha-2 两位代码。
                  x-onerway-constraints:
                    - kind: range
                      max: 2
                      unit: 字符
                contactEmail:
                  type: string
                  description: 企业联系邮箱。
                  x-onerway-constraints:
                    - kind: range
                      max: 64
                      unit: 字符
                phone:
                  type: string
                  description: 企业联系电话。
                  x-onerway-constraints:
                    - kind: range
                      max: 16
                      unit: 字符
                addressProofs:
                  type: integer
                  description: 地址证明文件上传接口返回的 fileId。
                legalPersonIdType:
                  type: string
                  description: 法人证件类型。
                  enum:
                    - RESIDENT_PERMIT
                    - PASSPORT
                    - DRIVER_LICENSE
                  x-enum-descriptions:
                    RESIDENT_PERMIT: 居留许可。
                    PASSPORT: 护照。
                    DRIVER_LICENSE: 驾驶证。
                legalPersonIdNo:
                  type: string
                  description: 法人证件号码。
                  x-onerway-constraints:
                    - kind: range
                      max: 64
                      unit: 字符
                legalPersonIdFront:
                  type: integer
                  description: 法人证件正面影像的文件 ID。
                legalPersonIdBack:
                  type: integer
                  description: 法人证件背面影像的文件 ID。
                  x-onerway-required: conditional
                  x-onerway-condition:
                    - 当 legalPersonIdType 为 RESIDENT_PERMIT 或 DRIVER_LICENSE 时必填。
                legalPersonFaceMap:
                  type: string
                  description: 法人现场影像。
                  x-onerway-constraints:
                    - kind: rule
                      text: 传入 1 至 3 个文件上传接口返回的文件 ID，多个 ID 用逗号分隔。
                tradingName:
                  type: string
                  description: 企业营业名称。
                  x-onerway-constraints:
                    - kind: range
                      max: 256
                      unit: 字符
                businessEntityType:
                  type: string
                  description: 企业的法人实体类型。
                  enum:
                    - COMPANY
                    - PARTNERSHIP
                    - SOLE_PROPRIETORSHIP
                    - LIMITED_LIABILITY_PARTNERSHIP
                    - UNINCORPORATED_PARTNERSHIP
                    - PRIVATE_COMPANY
                    - OTHER
                  x-enum-descriptions:
                    COMPANY: 公司。
                    PARTNERSHIP: 合伙企业。
                    SOLE_PROPRIETORSHIP: 独资企业。
                    LIMITED_LIABILITY_PARTNERSHIP: 有限责任合伙企业。
                    UNINCORPORATED_PARTNERSHIP: 非法人合伙企业。
                    PRIVATE_COMPANY: 私人公司。
                    OTHER: 其他企业类型。
                  x-onerway-constraints:
                    - kind: range
                      max: 64
                      unit: 字符
                registeredAddress:
                  type: string
                  description: 企业注册地址。
                  contentMediaType: application/json
                  contentSchema:
                    type: object
                    properties:
                      detailAddress:
                        type: string
                        description: 完整注册地址。
                        x-onerway-constraints:
                          - kind: range
                            max: 512
                            unit: 字符
                      province:
                        type: string
                        description: 省或州。
                        x-onerway-constraints:
                          - kind: range
                            max: 32
                            unit: 字符
                      city:
                        type: string
                        description: 城市。
                        x-onerway-constraints:
                          - kind: range
                            max: 20
                            unit: 字符
                      zip:
                        type: string
                        description: 邮政编码。
                        x-onerway-constraints:
                          - kind: range
                            min: 5
                            max: 8
                            unit: 字符
                      flatOrUnit:
                        type: string
                        description: 公寓或单元号。
                        x-onerway-constraints:
                          - kind: range
                            max: 20
                            unit: 字符
                      houseName:
                        type: string
                        description: 楼宇或房屋名称。
                        x-onerway-constraints:
                          - kind: range
                            max: 20
                            unit: 字符
                      houseNumber:
                        type: string
                        description: 楼宇或房屋号码。
                        x-onerway-constraints:
                          - kind: range
                            max: 10
                            unit: 字符
                      streetName:
                        type: string
                        description: 街道名称。
                        x-onerway-constraints:
                          - kind: range
                            max: 30
                            unit: 字符
                    required:
                      - detailAddress
                      - province
                      - city
                      - zip
                      - streetName
                  x-onerway-format: json_string
                businessOperatingAddress:
                  type: string
                  description: 企业营业地址。
                  contentMediaType: application/json
                  contentSchema:
                    type: object
                    properties:
                      detailAddress:
                        type: string
                        description: 完整营业地址。
                        x-onerway-constraints:
                          - kind: range
                            max: 512
                            unit: 字符
                      province:
                        type: string
                        description: 省或州。
                        x-onerway-constraints:
                          - kind: range
                            max: 32
                            unit: 字符
                      city:
                        type: string
                        description: 城市。
                        x-onerway-constraints:
                          - kind: range
                            max: 20
                            unit: 字符
                      zip:
                        type: string
                        description: 邮政编码。
                        x-onerway-constraints:
                          - kind: range
                            min: 5
                            max: 8
                            unit: 字符
                      flatOrUnit:
                        type: string
                        description: 公寓或单元号。
                        x-onerway-constraints:
                          - kind: range
                            max: 20
                            unit: 字符
                      houseName:
                        type: string
                        description: 楼宇或房屋名称。
                        x-onerway-constraints:
                          - kind: range
                            max: 20
                            unit: 字符
                      houseNumber:
                        type: string
                        description: 楼宇或房屋号码。
                        x-onerway-constraints:
                          - kind: range
                            max: 10
                            unit: 字符
                      streetName:
                        type: string
                        description: 街道名称。
                        x-onerway-constraints:
                          - kind: range
                            max: 30
                            unit: 字符
                    required:
                      - detailAddress
                      - province
                      - city
                      - zip
                      - streetName
                  x-onerway-format: json_string
                operatingCountriesOrRegions:
                  type: string
                  description: 企业营业所在国家或地区。
                  x-onerway-constraints:
                    - kind: rule
                      text: 传入包含 1 至 5 个国家或地区代码的 JSON 数组字符串。
                certificateOfIncorporation:
                  type: string
                  description: 公司注册证书的文件 ID。
                businessRegistrationCertificate:
                  type: string
                  description: 公司营业登记证书的文件 ID。
                articlesOfAssociation:
                  type: string
                  description: 公司章程的文件 ID。
                formNnc1OrNar1:
                  type: string
                  description: 公司 NNC1 或 NAR1 表格的文件 ID。
                otherDocuments:
                  type: string
                  description: 企业附加材料。
                  x-onerway-constraints:
                    - kind: rule
                      text: 传入包含 1 至 10 个文件 ID 的 JSON 数组字符串。
                businessOwners:
                  type: string
                  description: 企业关联人信息列表。
                  contentMediaType: application/json
                  contentSchema:
                    type: array
                    items:
                      type: object
                      properties:
                        fullLegalName:
                          type: string
                          description: 关联人的法定全名。
                          x-onerway-constraints:
                            - kind: range
                              max: 256
                              unit: 字符
                        positionOrRelationship:
                          type: array
                          description: 关联人的角色或关系，可多选。
                          items:
                            type: string
                            enum:
                              - DIRECTOR
                              - UBO
                              - PPTA
                              - OTHER
                            x-enum-descriptions:
                              DIRECTOR: 董事。
                              UBO: 最终受益所有人。
                              PPTA: PPTA 关联类型。
                              OTHER: 其他关联类型。
                          x-onerway-constraints:
                            - kind: rule
                              text: 至少选择一种关联人类型。
                        dateOfBirth:
                          type: string
                          description: 关联人的出生日期。
                          x-onerway-constraints:
                            - kind: rule
                              text: 使用 YYYY-MM-DD 格式。
                        residentialAddress:
                          type: string
                          description: 关联人的居住地址。
                          contentMediaType: application/json
                          contentSchema:
                            type: object
                            properties:
                              location:
                                type: string
                                description: 国家或地区。
                                x-onerway-constraints:
                                  - kind: range
                                    max: 16
                                    unit: 字符
                              areaOrCity:
                                type: string
                                description: 城市或区域。
                                x-onerway-constraints:
                                  - kind: range
                                    max: 64
                                    unit: 字符
                              district:
                                type: string
                                description: 郡、县或区。
                                x-onerway-constraints:
                                  - kind: range
                                    max: 64
                                    unit: 字符
                              addressLine1:
                                type: string
                                description: 街道地址。
                                x-onerway-constraints:
                                  - kind: range
                                    max: 256
                                    unit: 字符
                              addressLine2:
                                type: string
                                description: 补充地址信息。
                                x-onerway-constraints:
                                  - kind: range
                                    max: 256
                                    unit: 字符
                              postalCode:
                                type: string
                                description: 邮政编码。
                                x-onerway-constraints:
                                  - kind: range
                                    max: 32
                                    unit: 字符
                            required:
                              - location
                              - areaOrCity
                              - addressLine1
                              - postalCode
                          x-onerway-format: json_string
                        idIssuingCountryOrRegion:
                          type: string
                          description: 证件签发国家或地区的两位代码。
                          x-onerway-constraints:
                            - kind: range
                              max: 2
                              unit: 字符
                        identificationType:
                          type: string
                          description: 关联人的证件类型。
                          enum:
                            - ID_CARD
                            - DRIVER_LICENSE
                            - PASSPORT
                          x-enum-descriptions:
                            ID_CARD: 身份证。
                            DRIVER_LICENSE: 驾驶证。
                            PASSPORT: 护照。
                          x-onerway-constraints:
                            - kind: range
                              max: 32
                              unit: 字符
                        identificationNumber:
                          type: string
                          description: 关联人的证件号码。
                          x-onerway-constraints:
                            - kind: range
                              max: 128
                              unit: 字符
                        shareholdingPercentage:
                          type: string
                          description: 关联人的持股比例。
                          x-onerway-constraints:
                            - kind: range
                              min: 0
                              max: 100
                              unit: 百分比
                            - kind: rule
                              text: 必须可转换为数字；当 positionOrRelationship 包含 UBO 时，数值不得低于 25。
                        identificationDocumentFront:
                          type: string
                          description: 身份证明文件正面的文件 ID。
                        identificationDocumentBack:
                          type: string
                          description: 身份证明文件背面的文件 ID。
                        proofOfAddress:
                          type: string
                          description: 居住地址证明的文件 ID。
                        otherDocuments:
                          type: array
                          description: 此关联人的附加材料。
                          items:
                            type: string
                          x-onerway-constraints:
                            - kind: range
                              max: 10
                              unit: 个文件
                      required:
                        - fullLegalName
                        - positionOrRelationship
                        - dateOfBirth
                        - residentialAddress
                        - idIssuingCountryOrRegion
                        - identificationType
                        - identificationNumber
                        - shareholdingPercentage
                        - identificationDocumentFront
                        - identificationDocumentBack
                        - proofOfAddress
                  x-onerway-format: json_string
              required:
                - kycType
                - businessName
                - businessNature
                - registrationCertType
                - registrationNumber
                - registrationDate
                - registrationCountry
                - contactEmail
                - phone
                - legalPersonIdType
                - legalPersonIdNo
                - legalPersonIdFront
                - legalPersonFaceMap
                - businessEntityType
                - registeredAddress
                - businessOperatingAddress
                - operatingCountriesOrRegions
                - certificateOfIncorporation
                - businessRegistrationCertificate
                - articlesOfAssociation
                - formNnc1OrNar1
                - otherDocuments
                - businessOwners
            examples:
              create:
                summary: 为新用户提交企业 KYC
                value:
                  userId: null
                  kycType: AGENCY
                  businessName: Demo Company Ltd
                  businessNature: services
                  registrationCertType: CERTIFICATE_OF_INCORPORATION
                  registrationNumber: DEMO-REG-001
                  registrationDate: 2026-03-02
                  registrationCountry: GB
                  contactEmail: demo@example.com
                  phone: "0000000000"
                  legalPersonIdType: PASSPORT
                  legalPersonIdNo: DEMO-ID-001
                  legalPersonIdFront: 123456789
                  legalPersonFaceMap: "123456789"
                  tradingName: Demo Payments
                  businessEntityType: COMPANY
                  registeredAddress: '{"detailAddress":"1 Example Street,
                    London","province":"London","city":"London","zip":"SW1A
                    1AA","streetName":"Example Street"}'
                  businessOperatingAddress: '{"detailAddress":"1 Example Street,
                    London","province":"London","city":"London","zip":"SW1A
                    1AA","streetName":"Example Street"}'
                  operatingCountriesOrRegions: '["GB"]'
                  certificateOfIncorporation: demo_file_001
                  businessRegistrationCertificate: demo_file_002
                  articlesOfAssociation: demo_file_003
                  formNnc1OrNar1: demo_file_004
                  otherDocuments: '["demo_file_005"]'
                  businessOwners: '[{"fullLegalName":"DEMO
                    OWNER","positionOrRelationship":["DIRECTOR","UBO"],"dateOfBirth":"1990-01-01","residentialAddress":"{\"location\":\"GB\",\"areaOrCity\":\"London\",\"addressLine1\":\"1
                    Example Street\",\"postalCode\":\"SW1A
                    1AA\"}","idIssuingCountryOrRegion":"GB","identificationType":"PASSPORT","identificationNumber":"DEMO-ID-002","shareholdingPercentage":"100","identificationDocumentFront":"demo_file_006","identificationDocumentBack":"demo_file_007","proofOfAddress":"demo_file_008"}]'
              update:
                summary: 更新现有用户的企业 KYC
                value:
                  userId: 12345678
                  kycType: AGENCY
                  businessName: Demo Company Ltd
                  businessNature: services
                  registrationCertType: CERTIFICATE_OF_INCORPORATION
                  registrationNumber: DEMO-REG-001
                  registrationDate: 2026-03-02
                  registrationCountry: GB
                  contactEmail: demo@example.com
                  phone: "0000000000"
                  legalPersonIdType: PASSPORT
                  legalPersonIdNo: DEMO-ID-001
                  legalPersonIdFront: 123456789
                  legalPersonFaceMap: "123456789"
                  tradingName: Demo Payments
                  businessEntityType: COMPANY
                  registeredAddress: '{"detailAddress":"1 Example Street,
                    London","province":"London","city":"London","zip":"SW1A
                    1AA","streetName":"Example Street"}'
                  businessOperatingAddress: '{"detailAddress":"1 Example Street,
                    London","province":"London","city":"London","zip":"SW1A
                    1AA","streetName":"Example Street"}'
                  operatingCountriesOrRegions: '["GB"]'
                  certificateOfIncorporation: demo_file_001
                  businessRegistrationCertificate: demo_file_002
                  articlesOfAssociation: demo_file_003
                  formNnc1OrNar1: demo_file_004
                  otherDocuments: '["demo_file_005"]'
                  businessOwners: '[{"fullLegalName":"DEMO
                    OWNER","positionOrRelationship":["DIRECTOR","UBO"],"dateOfBirth":"1990-01-01","residentialAddress":"{\"location\":\"GB\",\"areaOrCity\":\"London\",\"addressLine1\":\"1
                    Example Street\",\"postalCode\":\"SW1A
                    1AA\"}","idIssuingCountryOrRegion":"GB","identificationType":"PASSPORT","identificationNumber":"DEMO-ID-002","shareholdingPercentage":"100","identificationDocumentFront":"demo_file_006","identificationDocumentBack":"demo_file_007","proofOfAddress":"demo_file_008"}]'
      responses:
        "200":
          description: 企业 KYC 请求成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: Onerway 返回的响应码；`20000` 表示请求成功。
                  respMsg:
                    type: string
                    description: 响应码对应的可读消息。
                  data:
                    type: object
                    properties:
                      merchantNo:
                        type: string
                        description: 此次请求所属的商户号。
                      userId:
                        type: integer
                        description: 此次企业 KYC 请求关联的用户 ID。
                    description: 企业 KYC 提交结果。
              examples:
                success:
                  summary: 企业 KYC 请求成功
                  value:
                    respCode: "20000"
                    respMsg: Success
                    data:
                      merchantNo: 800***
                      userId: 12345678
      security:
        - apiKeyAuth:
            []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apiKey
```
