---
title: "🔒 #26565 Создание юр. лица компании. Первое юр. лицо забирает документы компании."
method: POST
path: "/company/organization/create"
tags: ["Company"]
---

# 🔒 #26565 Создание юр. лица компании. Первое юр. лицо забирает документы компании.

`POST /company/organization/create`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/company/organization/create`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

#26565 Создание юр. лица компании. Первое юр. лицо забирает документы компании.

**Access:** `authorized` (10 ) · **Scope:** `write`

**Allows:** `company:organizations` (все обязательны; без ресурса)

### TypeScript (copy-paste)

**`POST /company/organization/create`**

<details open><summary><b>Body</b></summary>

```typescript
export interface CompanyOrganizationCreateBody {
  ID?: string | null
  type: Company_OrganizationType
  title: string
  fullTitle: string
  inn: string
  kpp?: string | null
  ogrn: string
  urAddress: string
  factAddress?: string | null
  nds?: number | null
  head: {
  fullName: string
  position?: string | null
}
  bank?: {
  bic: string
  title: string
  corrAccount: string
  account: string
} | null
  accountantEmails: Array<string>
  docs?: {
  INN?: string | null
  requisites?: string | null
  other1?: string | null
  other2?: string | null
} | null
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type CompanyOrganizationCreateResponse = IServerResponse<Record<string, any>>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Request body

- CompanyOrganizationCreateBody: JSON body for `company/organization/create`
  - `ID` string, uuid, nullable
  - `type` 'ooo' | 'ao' | 'ip', required: `ooo` = "ooo", `ao` = "ao", `ip` = "ip"
  - `title` string, required
  - `fullTitle` string, required
  - `inn` string, required
  - `kpp` string, nullable
  - `ogrn` string, required
  - `urAddress` string, required
  - `factAddress` string, nullable
  - `nds` integer, nullable
  - `head` object, required
    - `fullName` string, required
    - `position` string, nullable
  - `bank` object, nullable
    - `bic` string, required
    - `title` string, required
    - `corrAccount` string, required
    - `account` string, required
  - `accountantEmails` string[], required
  - `docs` object, nullable
    - `INN` string, uuid, nullable
    - `requisites` string, uuid, nullable
    - `other1` string, uuid, nullable
    - `other2` string, uuid, nullable

## Response `200`

OK — `IServerResponse<Record<string, any>>`

- object
  - `code` integer, required
  - `data` object, required: Response payload (нет ResponseData / doc.schema)
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest: Invalid requisites
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege company:organizations required
- `406`: TimeResync — расхождение rts с сервером
- `422`: UnprocessableContent: Organization with same ID already exists

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
