# Create Entity (Banking Connectivity)

Create a WHITELABEL entity representing an individual or organization. Set `national_entity` to `INDIVIDUAL` or `ENTITY` and provide the corresponding `entity_detail` sub-object. See [Entity types](/reference/banking-connectivity#entity-types) for details.

Sensitive fields like `tax_id` and `document_number` are masked in responses (only last 4 digits returned).

**POST** `/banking/entities`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Create Entity (Banking Connectivity)

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `x-idempotency-key` (string, required)
  Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is retried due to network issues or timeouts. See [authentication](/reference/authentication#idempotency) for details (UUID).

## Body

Content type: `application/json`

- `account_id` (string, required)
  The unique identifier of the merchant's WHITELABEL account. Found on the [WHITELABEL dashboard](https://dashboard.whitelabel.com/) (UUID, 36 characters).
- `merchant_entity_id` (string, required)
  The merchant's own identifier for this entity, used for reconciliation.
- `national_entity` ("INDIVIDUAL" | "ENTITY", required)
  The type of entity being created.
- `phone` (object, required)
  The entity's phone number.
  - `country_code` (string, required)
    The phone country code (e.g., `+1`).
  - `number` (string, required)
    The phone number without the country code.
- `address` (object, required)
  The entity's primary address.
  - `address_line_1` (string, required)
    The primary street address.
  - `address_line_2` (string)
    The secondary address line (apartment, suite, etc.).
  - `building_number_1` (string)
    The primary building number.
  - `building_number_2` (string)
    The secondary building number.
  - `city` (string, required)
    The city name.
  - `state` (string, required)
    The state or province.
  - `zip_code` (string, required)
    The postal or ZIP code.
  - `country` (string, required)
    The country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
- `entity_detail` (object, required)
  The detailed information for the entity. Provide either `individual` or `entity` based on the `national_entity` value.
  - `individual` (object)
    Individual person details. Required when `national_entity` is `INDIVIDUAL`.
    - `first_name` (string)
      The individual's first name.
    - `last_name` (string)
      The individual's last name.
    - `email` (string)
      The individual's email address.
    - `date_of_birth` (string)
      The date of birth (YYYY-MM-DD).
    - `gender` ("M" | "F")
      The individual's gender.
    - `country_of_residence` (string)
      The country of residence ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
    - `tax_information` (object[])
      Tax identification records for the individual.
      - `country` (string, required)
        The tax jurisdiction country code.
      - `tax_id` (string, required)
        The tax identification number.
      - `tax_id_type` ("SSN" | "EIN" | "ITIN" | "VAT" | "ABN" | "NIF" | "TIN" | "OTHER", required)
        The type of tax identification.
      - `is_primary` (boolean, required)
        Whether this is the primary tax residency.
    - `document` (object)
      The primary identification document.
      - `document_type` (string, required)
        The type of identity document.
      - `document_number` (string, required)
        The document number.
      - `issuing_country` (string, required)
        The country that issued the document ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
      - `issued_at` (string)
        The date the document was issued (YYYY-MM-DD).
      - `expires_at` (string)
        The document expiration date (YYYY-MM-DD).
  - `entity` (object)
    Business or organization details. Required when `national_entity` is `ENTITY`.
    - `name` (string)
      The business or organization name.
    - `country` (string)
      The country of incorporation ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
    - `tax_information` (object[])
      Business tax identification records.
      - `country` (string, required)
        The tax jurisdiction country code.
      - `tax_id` (string, required)
        The tax identification number.
      - `tax_id_type` ("SSN" | "EIN" | "ITIN" | "VAT" | "ABN" | "NIF" | "TIN" | "OTHER", required)
        The type of tax identification.
      - `is_primary` (boolean, required)
        Whether this is the primary tax residency.
    - `entity_type` ("CORPORATION")
      The type of business entity.
    - `beneficial_owners` (object[])
      The beneficial owners of the business entity.
      - `first_name` (string, required)
        The owner's first name.
      - `last_name` (string, required)
        The owner's last name.
      - `email` (string, required)
        The owner's email address.
      - `date_of_birth` (string, required)
        The owner's date of birth (YYYY-MM-DD).
      - `gender` ("M" | "F")
        The owner's gender.
      - `country_of_residence` (string, required)
        The owner's country of residence ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
      - `tax_information` (object[])
        Tax identification records for the owner.
        - `country` (string)
          The tax jurisdiction country code.
        - `tax_id` (string)
          The tax identification number.
        - `tax_id_type` ("SSN" | "EIN" | "ITIN" | "VAT" | "ABN" | "NIF" | "TIN" | "OTHER")
          The type of tax identification.
        - `is_primary` (boolean)
          Whether this is the primary tax residency.
      - `document` (object)
        The owner's primary identification document.
        - `document_type` (string)
          The type of identity document.
        - `document_number` (string)
          The document number.
        - `issuing_country` (string)
          The country that issued the document.
        - `issued_at` (string)
          The date the document was issued (YYYY-MM-DD).
        - `expires_at` (string)
          The document expiration date (YYYY-MM-DD).
      - `ownership_percentage` (number, required)
        The percentage of ownership in the business (0-100).
      - `title` (string)
        The owner's title or role in the organization.
      - `address` (object)
        The owner's residential address.
        - `address_line_1` (string)
          The primary street address.
        - `address_line_2` (string)
          The secondary address line.
        - `building_number_1` (string)
          The primary building number.
        - `building_number_2` (string)
          The secondary building number.
        - `city` (string)
          The city name.
        - `state` (string)
          The state or province.
        - `zip_code` (string)
          The postal or ZIP code.
        - `country` (string)
          The country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).

Example:

```json
{
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "merchant_entity_id": "merchant_user_12345",
  "national_entity": "INDIVIDUAL",
  "phone": {
    "country_code": "+1",
    "number": "2025551234"
  },
  "address": {
    "address_line_1": "123 Main St",
    "address_line_2": "Apt 4B",
    "building_number_1": "123",
    "building_number_2": null,
    "city": "San Francisco",
    "state": "CA",
    "zip_code": "94102",
    "country": "US"
  },
  "entity_detail": {
    "individual": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@example.com",
      "date_of_birth": "1990-01-15",
      "gender": "M",
      "country_of_residence": "US",
      "tax_information": [
        {
          "country": "US",
          "tax_id": "123-45-6789",
          "tax_id_type": "SSN",
          "is_primary": true
        }
      ],
      "document": {
        "document_type": "SSN",
        "document_number": "123-45-6789",
        "issuing_country": "US",
        "issued_at": "2010-01-15",
        "expires_at": "2030-01-15"
      }
    },
    "entity": {
      "name": "Acme Corporation Inc",
      "country": "US",
      "tax_information": [
        {
          "country": "US",
          "tax_id": "12-3456789",
          "tax_id_type": "EIN",
          "is_primary": true
        }
      ],
      "entity_type": "CORPORATION",
      "beneficial_owners": [
        {
          "first_name": "Jane",
          "last_name": "Smith",
          "email": "jane@acme.com",
          "date_of_birth": "1985-03-20",
          "gender": "F",
          "country_of_residence": "US",
          "tax_information": [
            {
              "country": "US",
              "tax_id": "987-65-4321",
              "tax_id_type": "SSN",
              "is_primary": true
            }
          ],
          "document": {
            "document_type": "SSN",
            "document_number": "987-65-4321",
            "issuing_country": "US",
            "issued_at": "2005-03-20",
            "expires_at": null
          },
          "ownership_percentage": 100,
          "title": "CEO",
          "address": {
            "address_line_1": "789 Oak St",
            "address_line_2": null,
            "building_number_1": "789",
            "building_number_2": null,
            "city": "San Francisco",
            "state": "CA",
            "zip_code": "94103",
            "country": "US"
          }
        }
      ]
    }
  }
}
```

## Responses

### 201

Created (Individual)

- `id` (string)
- `account_id` (string)
- `merchant_entity_id` (string)
- `national_entity` (string)
- `phone` (object)
  - `country_code` (string)
  - `number` (string)
- `address` (object)
  - `address_line_1` (string)
  - `address_line_2` (any)
  - `building_number_1` (string)
  - `building_number_2` (any)
  - `city` (string)
  - `state` (string)
  - `zip_code` (string)
  - `country` (string)
- `entity_detail` (object)
  - `individual` (any)
  - `entity` (object)
    - `name` (string)
    - `country` (string)
    - `tax_information` (object[])
      - `country` (string)
      - `tax_id_last_4` (string)
      - `tax_id_type` (string)
      - `is_primary` (boolean)
    - `entity_type` (string)
    - `beneficial_owners` (object[])
      - `first_name` (string)
      - `last_name` (string)
      - `email` (string)
      - `date_of_birth` (string)
      - `gender` (string)
      - `country_of_residence` (string)
      - `tax_information` (object[])
        - `country` (string)
        - `tax_id_last_4` (string)
        - `tax_id_type` (string)
        - `is_primary` (boolean)
      - `document` (object)
        - `document_type` (string)
        - `document_number_last_4` (string)
        - `issuing_country` (string)
        - `issued_at` (string)
        - `expires_at` (any)
      - `ownership_percentage` (integer)
      - `title` (string)
      - `address` (object)
        - `address_line_1` (string)
        - `address_line_2` (any)
        - `building_number_1` (string)
        - `building_number_2` (any)
        - `city` (string)
        - `state` (string)
        - `zip_code` (string)
        - `country` (string)
- `created_at` (string)
- `updated_at` (string)

Example:

```json
{
  "id": "ent_770e8400-e29b-41d4-a716-446655440000",
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "merchant_entity_id": "merchant_company_789",
  "national_entity": "ENTITY",
  "phone": {
    "country_code": "+1",
    "number": "4155551234"
  },
  "address": {
    "address_line_1": "456 Market St",
    "address_line_2": null,
    "building_number_1": "456",
    "building_number_2": null,
    "city": "San Francisco",
    "state": "CA",
    "zip_code": "94102",
    "country": "US"
  },
  "entity_detail": {
    "individual": null,
    "entity": {
      "name": "Acme Corporation Inc",
      "country": "US",
      "tax_information": [
        {
          "country": "US",
          "tax_id_last_4": "6789",
          "tax_id_type": "EIN",
          "is_primary": true
        }
      ],
      "entity_type": "CORPORATION",
      "beneficial_owners": [
        {
          "first_name": "Jane",
          "last_name": "Smith",
          "email": "jane@acme.com",
          "date_of_birth": "1985-03-20",
          "gender": "F",
          "country_of_residence": "US",
          "tax_information": [
            {
              "country": "US",
              "tax_id_last_4": "4321",
              "tax_id_type": "SSN",
              "is_primary": true
            }
          ],
          "document": {
            "document_type": "SSN",
            "document_number_last_4": "4321",
            "issuing_country": "US",
            "issued_at": "2005-03-20",
            "expires_at": null
          },
          "ownership_percentage": 100,
          "title": "CEO",
          "address": {
            "address_line_1": "789 Oak St",
            "address_line_2": null,
            "building_number_1": "789",
            "building_number_2": null,
            "city": "San Francisco",
            "state": "CA",
            "zip_code": "94103",
            "country": "US"
          }
        }
      ]
    }
  },
  "created_at": "2026-02-01T10:00:00Z",
  "updated_at": "2026-02-01T10:00:00Z"
}
```

### 400

Bad Request

- `code` (string)
- `messages` (string[])
- `http_code` (integer)

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "national_entity is required"
  ],
  "http_code": 400
}
```

### 409

Conflict

Example:

```json
{}
```