---
title: "Tạo công ty mới"
method: POST
path: "/admin/ir/companies"
tags: ["IRAdmin"]
---

# Tạo công ty mới

`POST /admin/ir/companies`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/admin/ir/companies`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `user-data-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/admin/ir/companies/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- FireAntApiModelsIRIRCompanyChangeRequest: Tạo hoặc cập nhật hồ sơ công ty
  - `symbol` string: Mã chứng khoán (bắt buộc khi tạo mới)
  - `companyName` string: Tên đầy đủ
  - `shortName` string: Tên viết tắt
  - `exchange` string: Sàn niêm yết: HOSE, HNX, UPCOM
  - `taxCode` string: Mã số thuế
  - `logoUrl` string: Logo
  - `website` string: Website công ty
  - `irWebsite` string: Trang quan hệ nhà đầu tư
  - `description` string: Giới thiệu
  - `contactName` string: Người phụ trách IR
  - `contactEmail` string: Email liên hệ
  - `contactPhone` string: Điện thoại liên hệ
  - `status` 0 | 1 | 2 | 3: Trạng thái (chỉ quản trị FireAnt đặt được) (0 = Pending, 1 = Active, 2 = Suspended, 3 = Closed)

## Response `200`

OK

- FireAntApiModelsIRIRCompanyDetail: Hồ sơ đầy đủ của công ty
  - `taxCode` string: Mã số thuế
  - `description` string: Giới thiệu công ty
  - `contractNo` string: Số hợp đồng
  - `oaVerifiedDate` string, date-time: Ngày xác minh Official Account
  - `alertRuleCount` integer: Số quy tắc cảnh báo đang bật
  - `keywordCount` integer: Số từ khóa giám sát
  - `peerCount` integer: Số mã đối chuẩn đã chọn
  - `oaPostCount` integer: Số bài Official Account
  - `liveSurveyCount` integer: Số khảo sát đang chạy
  - `documentCount` integer: Số tài liệu IR
  - `createdBy` string: Người tạo
  - `modifiedBy` string: Người sửa gần nhất
  - `modifiedDate` string, date-time: Thời điểm sửa gần nhất
  - `companyId` integer: ID công ty trong hệ thống IR
  - `symbol` string: Mã chứng khoán
  - `companyName` string: Tên đầy đủ
  - `shortName` string: Tên viết tắt
  - `exchange` string: Sàn niêm yết
  - `logoUrl` string: Logo
  - `website` string: Website công ty
  - `irWebsite` string: Trang quan hệ nhà đầu tư
  - `status` 0 | 1 | 2 | 3: Trạng thái sử dụng dịch vụ (0 = Pending, 1 = Active, 2 = Suspended, 3 = Closed)
  - `contactName` string: Người liên hệ phụ trách IR
  - `contactEmail` string: Email liên hệ
  - `contactPhone` string: Điện thoại liên hệ
  - `role` 1 | 2 | 3 | 4 | 5: Vai trò của người dùng hiện tại trong công ty này (1 = Owner, 2 = Admin, 3 = Editor, 4 = Analyst, 5 = Viewer)
  - `planCode` string: Mã gói dịch vụ đang dùng
  - `planName` string: Tên gói dịch vụ
  - `subscriptionStatus` 0 | 1 | 2 | 3: Trạng thái hợp đồng (0 = Draft, 1 = Active, 2 = Expired, 3 = Cancelled)
  - `subscriptionStartDate` string, date-time: Ngày bắt đầu hợp đồng
  - `subscriptionEndDate` string, date-time: Ngày kết thúc hợp đồng
  - `daysRemaining` integer: Số ngày còn lại của hợp đồng
  - `oaUserName` string: Tài khoản Official Account
  - `oaStatus` 0 | 1 | 2 | 3: Trạng thái Official Account (0 = Requested, 1 = Verified, 2 = Rejected, 3 = Revoked)
  - `oaDisplayName` string: Tên hiển thị của Official Account
  - `userCount` integer: Số người dùng đang hoạt động
  - `openTicketCount` integer: Số yêu cầu hỗ trợ đang mở
  - `isDeleted` boolean: Đã xóa mềm
  - `onboardedDate` string, date-time: Ngày bắt đầu sử dụng
  - `createdDate` string, date-time: Ngày tạo
  - `features` object: Hạn mức theo gói: khóa tính năng và giới hạn (null = không giới hạn)

## Changes

- **2026-09-25** `a481789cd81c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fireant/apis/fireant-restful-api/changes/admin/ir/companies/post.md)

---

[API](https://skmtc.dev/fireant/apis/fireant-restful-api.md) - [All operations](https://skmtc.dev/fireant/apis/fireant-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireant/apis/fireant-restful-api/revisions/c9b3aa855f95?raw)
