> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate Identity

> Validates the RUT and the card serial with Floid, sets
`dni_validated` on the account (and on the representative's person
account for a company) and completes the identity step of every open
onboarding of the account. Requires `customer-onboarding:identity`.




## OpenAPI

````yaml POST /portal/customer/onboarding/identity
openapi: 3.0.1
info:
  title: Portal Customer Onboarding API
  description: |
    The customer portal wizard over the session's open Maihue onboardings
    (maihue/onboarding D-01, D-04). The session must belong to the primary
    user of a person account or the legal representative of a company, of a
    `CHL_RUT` account, with at least one open onboarding that was invited.

    - Shared steps (consent and password per user, identity per account)
      complete in **every** open onboarding at once.
    - The payment step belongs to one onboarding: `payment/confirm` names it
      and stores the confirmed method on it.
    - The gate (`required`) is enforced only with the `maihue-onboarding`
      flag on; with it off the steps still work and nobody is redirected.
  version: '2026-10-21'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
tags:
  - name: Portal Customer Onboarding
    description: Wizard state and steps of the session.
  - name: Onboarding Invitations (operator)
    description: Account-based invitation routes kept for Horizon Enterprise.
paths:
  /portal/customer/onboarding/identity:
    post:
      tags:
        - Portal Customer Onboarding
      summary: Validate the identity
      description: |
        Validates the RUT and the card serial with Floid, sets
        `dni_validated` on the account (and on the representative's person
        account for a company) and completes the identity step of every open
        onboarding of the account. Requires `customer-onboarding:identity`.
      operationId: customerOnboardingIdentity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - dni
                - serial_number
              additionalProperties: false
              properties:
                dni:
                  type: string
                  example: 12.345.678-5
                serial_number:
                  type: string
                  example: '123456789'
      responses:
        '200':
          description: Identity validated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      identity_validated:
                        type: boolean
                  message:
                    type: string
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    Meta:
      type: object
      properties:
        correlation:
          type: string
        status:
          type: integer
        timestamp:
          type: string
          format: date-time
        version:
          type: string
          nullable: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid session
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: >-
        `onboarding-not-invited`, `type-dni-not-supported`, not the recipient
        role, or `portal-customer-onboarding` off
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Conflict:
      description: >-
        `password-step-not-ready`, `password-already-set`,
        `payment-method-not-selectable`, `legal-version-not-current` or a RUT
        mismatch
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: Too many identity attempts
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.