Company

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

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

Access: authorized (10 ) · Scope: write

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

TypeScript (copy-paste)

POST /company/organization/create

<details open><summary><b>Body</b></summary>
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>
export type CompanyOrganizationCreateResponse = IServerResponse<Record<string, any>>

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

Полный файл типов: /docs/types · raw: /docs/api-types.ts

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

Headers

devIDstring uuid required

UUID устройства клиента

tzstring required
Example:Europe/Moscow

Таймзона клиента (IANA или offset)

appstring required
Example:kosmodrom-web

Имя клиентского приложения

appVerstring required
Example:1.0.0

Версия клиента

rKeystring

Уникальный ключ запроса для логов/саппорта

Request body

IDstring uuid nullable
type'ooo' | 'ao' | 'ip' required

ooo = "ooo", ao = "ao", ip = "ip"

titlestring required
fullTitlestring required
innstring required
kppstring nullable
ogrnstring required
urAddressstring required
factAddressstring nullable
ndsinteger nullable
accountantEmailsstring[] required

Response

OK — IServerResponse<Record<string, any>>

codeinteger required
dataobject required

Response payload (нет ResponseData / doc.schema)

srvTSinteger required

Server timestamp (ms)

rkeystring required

Request key

Example response

{
  "code": 200
}

Changes

No recorded changes to this operation across all 1 revision of this API.