# POST /api/v1/advisory-firms/{firm_id}/account-map

> Add an external account stub to the map

- **Tag:** intercompany-cleanup
- **Operation ID:** `create_account_map_entry_api_v1_advisory_firms__firm_id__account_map_post`

## Description

Registers an account the firm does not ingest (e.g. the parent company's card) so orphan classification can point at it.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `firm_id` (path, string, required)

## Request body

Schema: `AccountMapEntryCreate`

- `display_name` (string · required)
- `entity_role` (string) — operating | holding | fund | parent | external_related | other
- `business_id` (string)
- `last4` (string)
- `account_type` (string)
- `notes` (string)
- `known_description_strings` (array · string)

## Responses

### 201 — Successful Response

Schema: `SuccessEnvelope_AccountMapEntryResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (AccountMapEntryResponse)

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 422 — Validation Error - Invalid data format

## Code samples

### cURL

```bash
curl -X POST 'https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}/account-map' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "display_name": "string"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}/account-map', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "display_name": "string"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {
  "display_name": "string"
}

response = httpx.post("https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}/account-map", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/intercompany-cleanup/create-account-map-entry
- OpenAPI slice: https://www.ondayzero.com/docs/reference/intercompany-cleanup/create-account-map-entry/openapi.json
- Other endpoints in **intercompany-cleanup**: https://www.ondayzero.com/docs/reference/intercompany-cleanup
