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

# The User Data Format object

### Description

The User Data Format object describes a piece of user data and the validation rules applied to its format.

The [POST Validate the format of User data](/api-reference/user-data-format/validate-user-data-format) endpoint allows you to check that the format of the `CompanyNumber` is correct and retrieve the validation rules applied to it.

The `CompanyNumber` must be in the correct format for Business Legal Users to be KYC/B verified.

### Attributes

<ParamField body="CompanyNumber" type="string">
  Information about the registration number of a legal entity. For details, see the [Company number](/guides/users/verification/company-number) article.

  <Expandable title="properties">
    <ParamField body="CompanyNumber" type="string">
      The registration number of a legal entity, assigned by the relevant national authority.

      **Note:** Any non-alphanumeric characters, like dashes or spaces, are removed before applying the validation rules.
    </ParamField>

    <ParamField body="CountryCode" type="string">
      Format: Two-letter country code ([ISO 3166-1 alpha-2 format](/api-reference/overview/data-formats))

      The country of the registration of the legal entity, against which the company number format is validated.
    </ParamField>

    <ParamField body="IsValid" type="boolean">
      Whether the format of the value is valid for the country.
    </ParamField>

    <ParamField body="ValidationRules" type="array">
      The list of regular expressions applicable to the country. Rules only exist for countries listed in the [Company number](/guides/users/verification/company-number) article.

      **Note:** Any non-alphanumeric characters, like dashes or spaces, are removed before applying the validation rules.
    </ParamField>
  </Expandable>
</ParamField>

### Related resources

<CardGroup cols={2}>
  <Card title="Guide" href="/guides/users/verification/company-number">
    Company number
  </Card>

  <Card title="Guide" href="/guides/users/verification/requirements">
    Verification requirements
  </Card>
</CardGroup>
