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

# Update Personal Details

> Submit personal information for KYC verification during registration

## Overview

Submit user's personal details including name, date of birth, and nationality. This information is used for KYC (Know Your Customer) verification.

For US residents, SSN (Social Security Number) is required and will be securely stored for compliance purposes.

## Request

### Body

<ParamField body="onboardingId" type="string" required>
  Onboarding ID from previous step

  **Example**: `US_100a99cf-f4d3-4fa1-c123-2e9833440ebb`
</ParamField>

<ParamField body="firstName" type="string" required>
  User's first name

  **Example**: `John`
</ParamField>

<ParamField body="lastName" type="string" required>
  User's last name

  **Example**: `Doe`
</ParamField>

<ParamField body="dateOfBirth" type="string" required>
  Date of birth

  **Format**: YYYY-MM-DD

  **Example**: `1990-01-01`
</ParamField>

<ParamField body="countryOfNationality" type="string" required>
  Country of nationality

  **Format**: ISO 3166-1 alpha-2 code

  **Example**: `GB`
</ParamField>

<ParamField body="ssn" type="string">
  Social Security Number

  **Required only if**: `countryOfResidence = US`

  **Example**: `123456789`
</ParamField>

## Response

<ResponseField name="onboardingId" type="string">
  Updated onboarding ID
</ResponseField>

<ResponseField name="user" type="object">
  Updated user object with personal details
</ResponseField>

## Code Examples

<CodeGroup>
  ```javascript JavaScript theme={null}
  const response = await fetch('https://dev.api.baanx.com/v1/auth/register/personal-details', {
    method: 'POST',
    headers: {
      'x-client-key': 'your-client-key',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      onboardingId: sessionStorage.getItem('onboardingId'),
      firstName: 'John',
      lastName: 'Doe',
      dateOfBirth: '1990-01-01',
      countryOfNationality: 'GB',
      // ssn: '123456789' // Only for US residents
    })
  });

  const { user } = await response.json();
  console.log('Personal details updated');
  ```
</CodeGroup>

<Warning>
  SSN is highly sensitive. Ensure HTTPS is used and data is transmitted securely.
</Warning>

## Next Steps

<Card title="Update Address" href="/api-reference/auth/register-address">
  Add physical address information
</Card>
