POST api/Companies

Добавление новой записи

Request Information

URI Parameters

None.

Body Parameters

Класс Company

Company
NameDescriptionTypeAdditional information
CompanyId

ИД

integer

None.

CTypeId

Форма собственности -> TypeOfCompanies.ctype_id

integer

None.

CompanyName

Название компании

string

Max length: 200

LegalAddress

Юридический адрес

string

Max length: 512

ActualAddress

Фактический адрес

string

Max length: 512

Site

Веб страница

string

Max length: 255

CountryId

Страна -> Countries.CountryId

integer

None.

RegionId

Регион -> Regions.reg_id

string

Max length: 2

Phone1

Телефон 1

string

Max length: 20

Phone2

Телефон 2

string

Max length: 20

Fax

Факс

string

Max length: 20

Description

Деятельность компании, описание

string

Max length: 512

Email

Электронная почта

string

Data type: EmailAddress

Matching regular expression pattern: \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

Max length: 50

BusinessScopeId

Сфера деятельности -> BusinessScopes.BusinessScopeId

integer

Required

Bin

business identification number

string

Required

String length: inclusive between 0 and 12

CreatedBy

Кто создал

string

None.

CreationTime

Дата создания

date

None.

ModifiedBy

Кто изменил

string

None.

ModifiedTime

Дата изменения

date

None.

logo

Ссылка на фото

string

None.

domesticProduction

0 -domestic, 1 non domestic

boolean

None.

KBE

КБЕ

string

Max length: 2

IIK

ИИК

string

Max length: 20

BankName

Названия Банка

string

Max length: 250

BIK

БИК

string

Max length: 10

FromYear

С какого года существует компания?

integer

None.

IsNDS

Плательщик НДС?

boolean

None.

show_logo

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "CTypeId": 1,
  "CompanyName": "sample string 2",
  "LegalAddress": "sample string 3",
  "ActualAddress": "sample string 4",
  "Site": "sample string 5",
  "CountryId": 1,
  "RegionId": "sample string 6",
  "Phone1": "sample string 7",
  "Phone2": "sample string 8",
  "Fax": "sample string 9",
  "Description": "sample string 10",
  "Email": "sample string 11",
  "BusinessScopeId": 1,
  "Bin": "sample string 12",
  "CreatedBy": "sample string 13",
  "CreationTime": "2025-12-12T04:27:57.6593123+01:00",
  "ModifiedBy": "sample string 14",
  "ModifiedTime": "2025-12-12T04:27:57.6593123+01:00",
  "logo": "sample string 15",
  "domesticProduction": true,
  "KBE": "sample string 17",
  "IIK": "sample string 18",
  "BankName": "sample string 19",
  "BIK": "sample string 20",
  "FromYear": 1,
  "IsNDS": true,
  "show_logo": 1
}

application/xml, text/xml

Sample:
<Company xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SadiWeb.Models">
  <ActualAddress>sample string 4</ActualAddress>
  <BIK>sample string 20</BIK>
  <BankName>sample string 19</BankName>
  <Bin>sample string 12</Bin>
  <BusinessScopeId>1</BusinessScopeId>
  <CTypeId>1</CTypeId>
  <CompanyId>1</CompanyId>
  <CompanyName>sample string 2</CompanyName>
  <CountryId>1</CountryId>
  <CreatedBy>sample string 13</CreatedBy>
  <CreationTime>2025-12-12T04:27:57.6593123+01:00</CreationTime>
  <Description>sample string 10</Description>
  <Email>sample string 11</Email>
  <Fax>sample string 9</Fax>
  <FromYear>1</FromYear>
  <IIK>sample string 18</IIK>
  <IsNDS>true</IsNDS>
  <KBE>sample string 17</KBE>
  <LegalAddress>sample string 3</LegalAddress>
  <ModifiedBy>sample string 14</ModifiedBy>
  <ModifiedTime>2025-12-12T04:27:57.6593123+01:00</ModifiedTime>
  <Phone1>sample string 7</Phone1>
  <Phone2>sample string 8</Phone2>
  <RegionId>sample string 6</RegionId>
  <Site>sample string 5</Site>
  <domesticProduction>true</domesticProduction>
  <logo>sample string 15</logo>
  <show_logo>1</show_logo>
</Company>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Company
NameDescriptionTypeAdditional information
CompanyId

ИД

integer

None.

CTypeId

Форма собственности -> TypeOfCompanies.ctype_id

integer

None.

CompanyName

Название компании

string

Max length: 200

LegalAddress

Юридический адрес

string

Max length: 512

ActualAddress

Фактический адрес

string

Max length: 512

Site

Веб страница

string

Max length: 255

CountryId

Страна -> Countries.CountryId

integer

None.

RegionId

Регион -> Regions.reg_id

string

Max length: 2

Phone1

Телефон 1

string

Max length: 20

Phone2

Телефон 2

string

Max length: 20

Fax

Факс

string

Max length: 20

Description

Деятельность компании, описание

string

Max length: 512

Email

Электронная почта

string

Data type: EmailAddress

Matching regular expression pattern: \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

Max length: 50

BusinessScopeId

Сфера деятельности -> BusinessScopes.BusinessScopeId

integer

Required

Bin

business identification number

string

Required

String length: inclusive between 0 and 12

CreatedBy

Кто создал

string

None.

CreationTime

Дата создания

date

None.

ModifiedBy

Кто изменил

string

None.

ModifiedTime

Дата изменения

date

None.

logo

Ссылка на фото

string

None.

domesticProduction

0 -domestic, 1 non domestic

boolean

None.

KBE

КБЕ

string

Max length: 2

IIK

ИИК

string

Max length: 20

BankName

Названия Банка

string

Max length: 250

BIK

БИК

string

Max length: 10

FromYear

С какого года существует компания?

integer

None.

IsNDS

Плательщик НДС?

boolean

None.

show_logo

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "CTypeId": 1,
  "CompanyName": "sample string 2",
  "LegalAddress": "sample string 3",
  "ActualAddress": "sample string 4",
  "Site": "sample string 5",
  "CountryId": 1,
  "RegionId": "sample string 6",
  "Phone1": "sample string 7",
  "Phone2": "sample string 8",
  "Fax": "sample string 9",
  "Description": "sample string 10",
  "Email": "sample string 11",
  "BusinessScopeId": 1,
  "Bin": "sample string 12",
  "CreatedBy": "sample string 13",
  "CreationTime": "2025-12-12T04:27:57.674934+01:00",
  "ModifiedBy": "sample string 14",
  "ModifiedTime": "2025-12-12T04:27:57.674934+01:00",
  "logo": "sample string 15",
  "domesticProduction": true,
  "KBE": "sample string 17",
  "IIK": "sample string 18",
  "BankName": "sample string 19",
  "BIK": "sample string 20",
  "FromYear": 1,
  "IsNDS": true,
  "show_logo": 1
}

application/xml, text/xml

Sample:
<Company xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SadiWeb.Models">
  <ActualAddress>sample string 4</ActualAddress>
  <BIK>sample string 20</BIK>
  <BankName>sample string 19</BankName>
  <Bin>sample string 12</Bin>
  <BusinessScopeId>1</BusinessScopeId>
  <CTypeId>1</CTypeId>
  <CompanyId>1</CompanyId>
  <CompanyName>sample string 2</CompanyName>
  <CountryId>1</CountryId>
  <CreatedBy>sample string 13</CreatedBy>
  <CreationTime>2025-12-12T04:27:57.674934+01:00</CreationTime>
  <Description>sample string 10</Description>
  <Email>sample string 11</Email>
  <Fax>sample string 9</Fax>
  <FromYear>1</FromYear>
  <IIK>sample string 18</IIK>
  <IsNDS>true</IsNDS>
  <KBE>sample string 17</KBE>
  <LegalAddress>sample string 3</LegalAddress>
  <ModifiedBy>sample string 14</ModifiedBy>
  <ModifiedTime>2025-12-12T04:27:57.674934+01:00</ModifiedTime>
  <Phone1>sample string 7</Phone1>
  <Phone2>sample string 8</Phone2>
  <RegionId>sample string 6</RegionId>
  <Site>sample string 5</Site>
  <domesticProduction>true</domesticProduction>
  <logo>sample string 15</logo>
  <show_logo>1</show_logo>
</Company>