POST Companies
Creates a new company.
Request Information
URI Parameters
None.
Body Parameters
The data of the company.
CompanyDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
NetworkId | globally unique identifier |
None. |
|
Code | string |
None. |
|
Name | string |
None. |
|
Street1 | string |
None. |
|
Street2 | string |
None. |
|
CountryId | globally unique identifier |
None. |
|
CountryDescription | string |
None. |
|
StateId | globally unique identifier |
None. |
|
StateDescription | string |
None. |
|
ZipCode | string |
None. |
|
City | string |
None. |
|
Street1Delivery | string |
None. |
|
Street2Delivery | string |
None. |
|
ZipCodeDelivery | string |
None. |
|
CityDelivery | string |
None. |
|
StateDelivery | string |
None. |
|
CountryDelivery | string |
None. |
|
IdStateDelivery | globally unique identifier |
None. |
|
IdCountryDelivery | globally unique identifier |
None. |
|
TaxPayerId | string |
None. |
|
TaxpayerCategoryId | globally unique identifier |
None. |
|
TaxpayerCategoryDescription | string |
None. |
|
IndustryId | globally unique identifier |
None. |
|
IndustryDescription | string |
None. |
|
CreationDate | date |
None. |
|
Type | byte |
None. |
|
UpdateDate | date |
None. |
|
ContactName | string |
None. |
|
ContactEmail | string |
None. |
|
ContactPhone1 | string |
None. |
|
ContactPhone2 | string |
None. |
|
Active | boolean |
None. |
|
DesactivationType | byte |
None. |
|
Plan | byte |
None. |
|
CompaniesGroupId | globally unique identifier |
None. |
|
PermissionsType | integer |
None. |
|
IsCodeAutomaticallyGenerated | boolean |
None. |
|
Custom0 | string |
None. |
|
Custom1 | string |
None. |
|
Custom2 | string |
None. |
|
Custom3 | string |
None. |
|
EnableCustom1 | boolean |
None. |
|
EnableCustom2 | boolean |
None. |
|
EnableCustom3 | boolean |
None. |
|
EnableCustom4 | boolean |
None. |
|
LabelCustom1 | string |
None. |
|
LabelCustom2 | string |
None. |
|
LabelCustom3 | string |
None. |
|
LabelCustom4 | string |
None. |
|
CompanyDocuments | Collection of CompanyDocumentDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "793d8bde-ae8f-4926-8cc7-56acdbd01a4f", "NetworkId": "49d1813c-dcf6-4251-9efe-2e65a638eb96", "Code": "sample string 3", "Name": "sample string 4", "Street1": "sample string 5", "Street2": "sample string 6", "CountryId": "7450e3af-0aa6-419e-a212-285ad76dade7", "CountryDescription": "sample string 8", "StateId": "553fd1bf-16be-4d2e-afaa-0c51c67d6fda", "StateDescription": "sample string 10", "ZipCode": "sample string 11", "City": "sample string 12", "Street1Delivery": "sample string 13", "Street2Delivery": "sample string 14", "ZipCodeDelivery": "sample string 15", "CityDelivery": "sample string 16", "StateDelivery": "sample string 17", "CountryDelivery": "sample string 18", "IdStateDelivery": "468c6a79-9916-4ecd-ab1e-74d74e160599", "IdCountryDelivery": "81a8e055-fa1e-4d9b-a650-6381f9270866", "TaxPayerId": "sample string 19", "TaxpayerCategoryId": "f79cd65b-a266-4988-b1e0-dd3443a5194a", "TaxpayerCategoryDescription": "sample string 21", "IndustryId": "36d2cf94-6565-4e10-afb1-434d3ebdad70", "IndustryDescription": "sample string 23", "CreationDate": "2025-09-13T07:57:54.3770857Z", "Type": 64, "UpdateDate": "2025-09-13T07:57:54.3770857Z", "ContactName": "sample string 27", "ContactEmail": "sample string 28", "ContactPhone1": "sample string 29", "ContactPhone2": "sample string 30", "Active": true, "DesactivationType": 64, "Plan": 64, "CompaniesGroupId": "99fa8661-83a5-484d-b566-c3ad24628022", "PermissionsType": 32, "IsCodeAutomaticallyGenerated": true, "Custom0": "sample string 34", "Custom1": "sample string 35", "Custom2": "sample string 36", "Custom3": "sample string 37", "EnableCustom1": true, "EnableCustom2": true, "EnableCustom3": true, "EnableCustom4": true, "LabelCustom1": "sample string 42", "LabelCustom2": "sample string 43", "LabelCustom3": "sample string 44", "LabelCustom4": "sample string 45", "CompanyDocuments": [ { "Id": "09b408fd-6cdf-4aba-8c69-0146691df6ce", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 }, { "Id": "09b408fd-6cdf-4aba-8c69-0146691df6ce", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 } ] }
application/xml, text/xml
Sample:
<CompanyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model"> <Active>true</Active> <City>sample string 12</City> <CityDelivery>sample string 16</CityDelivery> <Code>sample string 3</Code> <CompaniesGroupId>99fa8661-83a5-484d-b566-c3ad24628022</CompaniesGroupId> <CompanyDocuments> <CompanyDocumentDto> <DocumentStatus>Add</DocumentStatus> <FileContent>QEA=</FileContent> <FileExtension>sample string 4</FileExtension> <FileFullUrl>sample string 3</FileFullUrl> <FileName>sample string 2</FileName> <Id>09b408fd-6cdf-4aba-8c69-0146691df6ce</Id> </CompanyDocumentDto> <CompanyDocumentDto> <DocumentStatus>Add</DocumentStatus> <FileContent>QEA=</FileContent> <FileExtension>sample string 4</FileExtension> <FileFullUrl>sample string 3</FileFullUrl> <FileName>sample string 2</FileName> <Id>09b408fd-6cdf-4aba-8c69-0146691df6ce</Id> </CompanyDocumentDto> </CompanyDocuments> <ContactEmail>sample string 28</ContactEmail> <ContactName>sample string 27</ContactName> <ContactPhone1>sample string 29</ContactPhone1> <ContactPhone2>sample string 30</ContactPhone2> <CountryDelivery>sample string 18</CountryDelivery> <CountryDescription>sample string 8</CountryDescription> <CountryId>7450e3af-0aa6-419e-a212-285ad76dade7</CountryId> <CreationDate>2025-09-13T07:57:54.3770857Z</CreationDate> <Custom0>sample string 34</Custom0> <Custom1>sample string 35</Custom1> <Custom2>sample string 36</Custom2> <Custom3>sample string 37</Custom3> <DesactivationType>64</DesactivationType> <EnableCustom1>true</EnableCustom1> <EnableCustom2>true</EnableCustom2> <EnableCustom3>true</EnableCustom3> <EnableCustom4>true</EnableCustom4> <Id>793d8bde-ae8f-4926-8cc7-56acdbd01a4f</Id> <IdCountryDelivery>81a8e055-fa1e-4d9b-a650-6381f9270866</IdCountryDelivery> <IdStateDelivery>468c6a79-9916-4ecd-ab1e-74d74e160599</IdStateDelivery> <IndustryDescription>sample string 23</IndustryDescription> <IndustryId>36d2cf94-6565-4e10-afb1-434d3ebdad70</IndustryId> <IsCodeAutomaticallyGenerated>true</IsCodeAutomaticallyGenerated> <LabelCustom1>sample string 42</LabelCustom1> <LabelCustom2>sample string 43</LabelCustom2> <LabelCustom3>sample string 44</LabelCustom3> <LabelCustom4>sample string 45</LabelCustom4> <Name>sample string 4</Name> <NetworkId>49d1813c-dcf6-4251-9efe-2e65a638eb96</NetworkId> <PermissionsType>32</PermissionsType> <Plan>64</Plan> <StateDelivery>sample string 17</StateDelivery> <StateDescription>sample string 10</StateDescription> <StateId>553fd1bf-16be-4d2e-afaa-0c51c67d6fda</StateId> <Street1>sample string 5</Street1> <Street1Delivery>sample string 13</Street1Delivery> <Street2>sample string 6</Street2> <Street2Delivery>sample string 14</Street2Delivery> <TaxPayerId>sample string 19</TaxPayerId> <TaxpayerCategoryDescription>sample string 21</TaxpayerCategoryDescription> <TaxpayerCategoryId>f79cd65b-a266-4988-b1e0-dd3443a5194a</TaxpayerCategoryId> <Type>64</Type> <UpdateDate>2025-09-13T07:57:54.3770857Z</UpdateDate> <ZipCode>sample string 11</ZipCode> <ZipCodeDelivery>sample string 15</ZipCodeDelivery> </CompanyDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
State of the action, and if created returns the company as CompanyDto and the link to de company.
CompanyDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
NetworkId | globally unique identifier |
None. |
|
Code | string |
None. |
|
Name | string |
None. |
|
Street1 | string |
None. |
|
Street2 | string |
None. |
|
CountryId | globally unique identifier |
None. |
|
CountryDescription | string |
None. |
|
StateId | globally unique identifier |
None. |
|
StateDescription | string |
None. |
|
ZipCode | string |
None. |
|
City | string |
None. |
|
Street1Delivery | string |
None. |
|
Street2Delivery | string |
None. |
|
ZipCodeDelivery | string |
None. |
|
CityDelivery | string |
None. |
|
StateDelivery | string |
None. |
|
CountryDelivery | string |
None. |
|
IdStateDelivery | globally unique identifier |
None. |
|
IdCountryDelivery | globally unique identifier |
None. |
|
TaxPayerId | string |
None. |
|
TaxpayerCategoryId | globally unique identifier |
None. |
|
TaxpayerCategoryDescription | string |
None. |
|
IndustryId | globally unique identifier |
None. |
|
IndustryDescription | string |
None. |
|
CreationDate | date |
None. |
|
Type | byte |
None. |
|
UpdateDate | date |
None. |
|
ContactName | string |
None. |
|
ContactEmail | string |
None. |
|
ContactPhone1 | string |
None. |
|
ContactPhone2 | string |
None. |
|
Active | boolean |
None. |
|
DesactivationType | byte |
None. |
|
Plan | byte |
None. |
|
CompaniesGroupId | globally unique identifier |
None. |
|
PermissionsType | integer |
None. |
|
IsCodeAutomaticallyGenerated | boolean |
None. |
|
Custom0 | string |
None. |
|
Custom1 | string |
None. |
|
Custom2 | string |
None. |
|
Custom3 | string |
None. |
|
EnableCustom1 | boolean |
None. |
|
EnableCustom2 | boolean |
None. |
|
EnableCustom3 | boolean |
None. |
|
EnableCustom4 | boolean |
None. |
|
LabelCustom1 | string |
None. |
|
LabelCustom2 | string |
None. |
|
LabelCustom3 | string |
None. |
|
LabelCustom4 | string |
None. |
|
CompanyDocuments | Collection of CompanyDocumentDto |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "bd9fa686-99ef-4923-a4e5-e364655eb5a1", "NetworkId": "e362ca20-4c1d-444c-bd1d-bc0728236ecc", "Code": "sample string 3", "Name": "sample string 4", "Street1": "sample string 5", "Street2": "sample string 6", "CountryId": "3b20af74-6234-4536-977f-250d58fac8c9", "CountryDescription": "sample string 8", "StateId": "9a0bbf63-5e2f-4d9b-8684-bb126746fe15", "StateDescription": "sample string 10", "ZipCode": "sample string 11", "City": "sample string 12", "Street1Delivery": "sample string 13", "Street2Delivery": "sample string 14", "ZipCodeDelivery": "sample string 15", "CityDelivery": "sample string 16", "StateDelivery": "sample string 17", "CountryDelivery": "sample string 18", "IdStateDelivery": "59541a6e-106c-49f7-959f-10c9bbd83574", "IdCountryDelivery": "625a2752-dd50-434c-aa49-9978ad6ae3ea", "TaxPayerId": "sample string 19", "TaxpayerCategoryId": "3b9943cb-a62c-4b5f-a338-6a9ace0b8c42", "TaxpayerCategoryDescription": "sample string 21", "IndustryId": "8ec45dfd-8534-4eda-a11c-ec7b09318475", "IndustryDescription": "sample string 23", "CreationDate": "2025-09-13T07:57:54.3770857Z", "Type": 64, "UpdateDate": "2025-09-13T07:57:54.3770857Z", "ContactName": "sample string 27", "ContactEmail": "sample string 28", "ContactPhone1": "sample string 29", "ContactPhone2": "sample string 30", "Active": true, "DesactivationType": 64, "Plan": 64, "CompaniesGroupId": "8bbc8c00-459d-4474-91ce-e03d741527f8", "PermissionsType": 32, "IsCodeAutomaticallyGenerated": true, "Custom0": "sample string 34", "Custom1": "sample string 35", "Custom2": "sample string 36", "Custom3": "sample string 37", "EnableCustom1": true, "EnableCustom2": true, "EnableCustom3": true, "EnableCustom4": true, "LabelCustom1": "sample string 42", "LabelCustom2": "sample string 43", "LabelCustom3": "sample string 44", "LabelCustom4": "sample string 45", "CompanyDocuments": [ { "Id": "0827fc83-3f77-438f-a03d-8452b6c4c221", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 }, { "Id": "0827fc83-3f77-438f-a03d-8452b6c4c221", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 } ] }
application/xml, text/xml
Sample:
<CompanyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model"> <Active>true</Active> <City>sample string 12</City> <CityDelivery>sample string 16</CityDelivery> <Code>sample string 3</Code> <CompaniesGroupId>8bbc8c00-459d-4474-91ce-e03d741527f8</CompaniesGroupId> <CompanyDocuments> <CompanyDocumentDto> <DocumentStatus>Add</DocumentStatus> <FileContent>QEA=</FileContent> <FileExtension>sample string 4</FileExtension> <FileFullUrl>sample string 3</FileFullUrl> <FileName>sample string 2</FileName> <Id>0827fc83-3f77-438f-a03d-8452b6c4c221</Id> </CompanyDocumentDto> <CompanyDocumentDto> <DocumentStatus>Add</DocumentStatus> <FileContent>QEA=</FileContent> <FileExtension>sample string 4</FileExtension> <FileFullUrl>sample string 3</FileFullUrl> <FileName>sample string 2</FileName> <Id>0827fc83-3f77-438f-a03d-8452b6c4c221</Id> </CompanyDocumentDto> </CompanyDocuments> <ContactEmail>sample string 28</ContactEmail> <ContactName>sample string 27</ContactName> <ContactPhone1>sample string 29</ContactPhone1> <ContactPhone2>sample string 30</ContactPhone2> <CountryDelivery>sample string 18</CountryDelivery> <CountryDescription>sample string 8</CountryDescription> <CountryId>3b20af74-6234-4536-977f-250d58fac8c9</CountryId> <CreationDate>2025-09-13T07:57:54.3770857Z</CreationDate> <Custom0>sample string 34</Custom0> <Custom1>sample string 35</Custom1> <Custom2>sample string 36</Custom2> <Custom3>sample string 37</Custom3> <DesactivationType>64</DesactivationType> <EnableCustom1>true</EnableCustom1> <EnableCustom2>true</EnableCustom2> <EnableCustom3>true</EnableCustom3> <EnableCustom4>true</EnableCustom4> <Id>bd9fa686-99ef-4923-a4e5-e364655eb5a1</Id> <IdCountryDelivery>625a2752-dd50-434c-aa49-9978ad6ae3ea</IdCountryDelivery> <IdStateDelivery>59541a6e-106c-49f7-959f-10c9bbd83574</IdStateDelivery> <IndustryDescription>sample string 23</IndustryDescription> <IndustryId>8ec45dfd-8534-4eda-a11c-ec7b09318475</IndustryId> <IsCodeAutomaticallyGenerated>true</IsCodeAutomaticallyGenerated> <LabelCustom1>sample string 42</LabelCustom1> <LabelCustom2>sample string 43</LabelCustom2> <LabelCustom3>sample string 44</LabelCustom3> <LabelCustom4>sample string 45</LabelCustom4> <Name>sample string 4</Name> <NetworkId>e362ca20-4c1d-444c-bd1d-bc0728236ecc</NetworkId> <PermissionsType>32</PermissionsType> <Plan>64</Plan> <StateDelivery>sample string 17</StateDelivery> <StateDescription>sample string 10</StateDescription> <StateId>9a0bbf63-5e2f-4d9b-8684-bb126746fe15</StateId> <Street1>sample string 5</Street1> <Street1Delivery>sample string 13</Street1Delivery> <Street2>sample string 6</Street2> <Street2Delivery>sample string 14</Street2Delivery> <TaxPayerId>sample string 19</TaxPayerId> <TaxpayerCategoryDescription>sample string 21</TaxpayerCategoryDescription> <TaxpayerCategoryId>3b9943cb-a62c-4b5f-a338-6a9ace0b8c42</TaxpayerCategoryId> <Type>64</Type> <UpdateDate>2025-09-13T07:57:54.3770857Z</UpdateDate> <ZipCode>sample string 11</ZipCode> <ZipCodeDelivery>sample string 15</ZipCodeDelivery> </CompanyDto>