# Update Entity (Banking Connectivity)

Update an existing entity's information. Only include the fields you want to change. The `national_entity` type cannot be changed after creation.

**PATCH** `/banking/entities/{entity_id}`

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

Update Entity (Banking Connectivity)

## Authorization

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

## Path parameters

- `entity_id` (string, required)
  The `id` of the entity obtained from [Create Entity](/reference/create-entity).

## Body

Content type: `application/json`

- `account_id` (string, required)
  The unique identifier of the merchant's WHITELABEL account (UUID, 36 characters).
- `merchant_entity_id` (string)
  The merchant's own identifier for this entity.
- `phone` (object)
  Updated phone number.
  - `country_code` (string)
    The phone country code.
  - `number` (string)
    The phone number without the country code.
- `address` (object)
  Updated address. Only include fields that need to change.
  - `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)).
- `entity_detail` (object)
  Updated entity details. Only include fields that need to change.
  - `individual` (object)
    Updated individual details.
    - `email` (string)
      Updated email address.
    - `country_of_residence` (string)
      Updated country of residence.
  - `entity` (object)
    Updated business details.
    - `name` (string)
      Updated business name.

Example:

```json
{
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "merchant_entity_id": "merchant_user_12345",
  "phone": {
    "country_code": "+1",
    "number": "2025559999"
  },
  "address": {
    "address_line_1": "456 Oak Ave",
    "address_line_2": "Suite 100",
    "building_number_1": "456",
    "building_number_2": null,
    "city": "San Francisco",
    "state": "CA",
    "zip_code": "94105",
    "country": "US"
  },
  "entity_detail": {
    "individual": {
      "email": "john.new@example.com",
      "country_of_residence": "US"
    },
    "entity": {
      "name": "Acme Corp LLC"
    }
  }
}
```

## Responses

### 200

OK

- `id` (string)
  The unique identifier of the entity (prefixed `ent_`).
- `account_id` (string)
  The merchant's WHITELABEL account identifier.
- `merchant_entity_id` (string)
  The merchant's own identifier for this entity.
- `national_entity` ("INDIVIDUAL" | "ENTITY")
  The type of entity.
- `phone` (object)
  - `country_code` (string)
  - `number` (string)
- `address` (object)
  - `address_line_1` (string)
  - `address_line_2` (string)
  - `building_number_1` (string)
  - `building_number_2` (string)
  - `city` (string)
  - `state` (string)
  - `zip_code` (string)
  - `country` (string)
- `entity_detail` (object)
  - `individual` (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` (string)
  - `entity` (object)
- `created_at` (string)
  The timestamp when the entity was created (ISO 8601).
- `updated_at` (string)
  The timestamp when the entity was last updated (ISO 8601).

Example:

```json
{
  "id": "ent_660e8400-e29b-41d4-a716-446655440000",
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "merchant_entity_id": "merchant_user_12345",
  "national_entity": "INDIVIDUAL",
  "phone": {
    "country_code": "+1",
    "number": "2025559999"
  },
  "address": {
    "address_line_1": "456 Oak Ave",
    "address_line_2": "Suite 100",
    "building_number_1": "456",
    "building_number_2": null,
    "city": "San Francisco",
    "state": "CA",
    "zip_code": "94105",
    "country": "US"
  },
  "entity_detail": {
    "individual": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.new@example.com",
      "date_of_birth": "1990-01-15",
      "gender": "M",
      "country_of_residence": "US",
      "tax_information": [
        {
          "country": "US",
          "tax_id_last_4": "6789",
          "tax_id_type": "SSN",
          "is_primary": true
        }
      ],
      "document": {
        "document_type": "SSN",
        "document_number_last_4": "6789",
        "issuing_country": "US",
        "issued_at": "2010-01-15",
        "expires_at": "2030-01-15"
      }
    },
    "entity": {}
  },
  "created_at": "2026-02-01T10:00:00Z",
  "updated_at": "2026-02-01T12:00:00Z"
}
```

### 400

Bad Request

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

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "national_entity type cannot be changed after creation"
  ],
  "http_code": 400
}
```

### 404

Not Found

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

Example:

```json
{
  "code": "ENTITY_NOT_FOUND",
  "messages": [
    "Entity not found"
  ],
  "http_code": 404
}
```