---
title: "Validate the format of User data"
method: POST
path: "/v2.01/{ClientId}/users/data-formats/validation"
tags: ["userDataFormat"]
---

# Validate the format of User data

`POST /v2.01/{ClientId}/users/data-formats/validation`

<Warning icon="fa-regular fa-triangle-exclamation">   
**Caution – Veracity of data checked during verification** 

This endpoint only checks that the format of the data corresponds to that which is expected. Whether or not the data is true and correct for the specific User is checked during the user verification process when documents are submitted.  
</Warning>

Validate the format of User data

This 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.

## Path parameters

- `ClientId` string, required

## Headers

- `Authorization` string, required

## Request body

- ValidateTheFormatOfUserDataRequest
  - `CompanyNumber` ValidateTheFormatOfUserDataRequestCompanyNumber — Information about the registration number of a legal entity. For details, see the [Company number](/guides/users/verification/company-number) article.
    - `CompanyNumber` string, required — 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.
    - `CountryCode` string, required — 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.

## Response `200`

Success

- ValidateTheFormatOfUserDataResponse
  - `CompanyNumber` ValidateTheFormatOfUserDataResponseCompanyNumber — Information about the registration number of a legal entity. For details, see the [Company number](/guides/users/verification/company-number) article.
    - `CompanyNumber` string — The registration number of a legal entity, assigned by the relevant national authority.
    - `CountryCode` 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.
    - `IsValid` boolean — Whether the format of the company number is valid for the given country.
    - `ValidationRules` string[] — The validation rules applied to the company number format for the given country.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/mangopay/apis/api-reference.md) · [All operations](https://skmtc.dev/mangopay/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mangopay/api-reference/revisions/fafbd0c69654/schema)
