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": "cecd50e8-382f-472f-9c91-03f8f2021587", "NetworkId": "2bf002f2-672b-4060-8b8f-ad130ecd2384", "Code": "sample string 3", "Name": "sample string 4", "Street1": "sample string 5", "Street2": "sample string 6", "CountryId": "6e166a98-5d3a-4dba-a336-05d5a289ae1b", "CountryDescription": "sample string 8", "StateId": "16e5cf07-60be-44a1-98c6-a1e5e2f9abeb", "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": "cc395eb6-4065-4d28-ac3a-9c8a55c6a00f", "IdCountryDelivery": "56e69bd3-cd17-404e-997d-1f9cb6b252f4", "TaxPayerId": "sample string 19", "TaxpayerCategoryId": "80cfc0b8-4d68-41ce-8c4b-f116471cc752", "TaxpayerCategoryDescription": "sample string 21", "IndustryId": "4edf1b5c-23d4-439b-83e1-a0f72e9aee17", "IndustryDescription": "sample string 23", "CreationDate": "2025-06-12T08:04:40.8619478Z", "Type": 64, "UpdateDate": "2025-06-12T08:04:40.8619478Z", "ContactName": "sample string 27", "ContactEmail": "sample string 28", "ContactPhone1": "sample string 29", "ContactPhone2": "sample string 30", "Active": true, "DesactivationType": 64, "Plan": 64, "CompaniesGroupId": "3b07f791-7adc-470e-8115-974c5b76db59", "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": "6a3f3f58-69f4-4240-9075-14bd4a55cd2a", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 }, { "Id": "6a3f3f58-69f4-4240-9075-14bd4a55cd2a", "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>3b07f791-7adc-470e-8115-974c5b76db59</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>6a3f3f58-69f4-4240-9075-14bd4a55cd2a</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>6a3f3f58-69f4-4240-9075-14bd4a55cd2a</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>6e166a98-5d3a-4dba-a336-05d5a289ae1b</CountryId> <CreationDate>2025-06-12T08:04:40.8619478Z</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>cecd50e8-382f-472f-9c91-03f8f2021587</Id> <IdCountryDelivery>56e69bd3-cd17-404e-997d-1f9cb6b252f4</IdCountryDelivery> <IdStateDelivery>cc395eb6-4065-4d28-ac3a-9c8a55c6a00f</IdStateDelivery> <IndustryDescription>sample string 23</IndustryDescription> <IndustryId>4edf1b5c-23d4-439b-83e1-a0f72e9aee17</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>2bf002f2-672b-4060-8b8f-ad130ecd2384</NetworkId> <PermissionsType>32</PermissionsType> <Plan>64</Plan> <StateDelivery>sample string 17</StateDelivery> <StateDescription>sample string 10</StateDescription> <StateId>16e5cf07-60be-44a1-98c6-a1e5e2f9abeb</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>80cfc0b8-4d68-41ce-8c4b-f116471cc752</TaxpayerCategoryId> <Type>64</Type> <UpdateDate>2025-06-12T08:04:40.8619478Z</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": "75e67f28-5f50-4f18-8a25-a5ee35262283", "NetworkId": "52beddfe-415a-4663-9972-8728bfe3829d", "Code": "sample string 3", "Name": "sample string 4", "Street1": "sample string 5", "Street2": "sample string 6", "CountryId": "14eb5314-5cbb-4d35-ba64-1619739965ee", "CountryDescription": "sample string 8", "StateId": "c46cc298-a76b-41db-8ad5-77d0e1611afc", "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": "80ed371c-4f4c-489d-9e04-a4c1a39c4533", "IdCountryDelivery": "d180eb73-2194-41e1-8687-e0b4c47f39cc", "TaxPayerId": "sample string 19", "TaxpayerCategoryId": "e3b7c585-31a3-4a11-bd60-9b2c3273ddbf", "TaxpayerCategoryDescription": "sample string 21", "IndustryId": "bc2e047f-d23f-4516-901c-589b9fca2712", "IndustryDescription": "sample string 23", "CreationDate": "2025-06-12T08:04:40.8619478Z", "Type": 64, "UpdateDate": "2025-06-12T08:04:40.8619478Z", "ContactName": "sample string 27", "ContactEmail": "sample string 28", "ContactPhone1": "sample string 29", "ContactPhone2": "sample string 30", "Active": true, "DesactivationType": 64, "Plan": 64, "CompaniesGroupId": "9d9ded24-2e82-472e-b4b6-3806ae620865", "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": "eeea7475-37b2-4e30-9d91-dea90041f9f5", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 }, { "Id": "eeea7475-37b2-4e30-9d91-dea90041f9f5", "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>9d9ded24-2e82-472e-b4b6-3806ae620865</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>eeea7475-37b2-4e30-9d91-dea90041f9f5</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>eeea7475-37b2-4e30-9d91-dea90041f9f5</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>14eb5314-5cbb-4d35-ba64-1619739965ee</CountryId> <CreationDate>2025-06-12T08:04:40.8619478Z</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>75e67f28-5f50-4f18-8a25-a5ee35262283</Id> <IdCountryDelivery>d180eb73-2194-41e1-8687-e0b4c47f39cc</IdCountryDelivery> <IdStateDelivery>80ed371c-4f4c-489d-9e04-a4c1a39c4533</IdStateDelivery> <IndustryDescription>sample string 23</IndustryDescription> <IndustryId>bc2e047f-d23f-4516-901c-589b9fca2712</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>52beddfe-415a-4663-9972-8728bfe3829d</NetworkId> <PermissionsType>32</PermissionsType> <Plan>64</Plan> <StateDelivery>sample string 17</StateDelivery> <StateDescription>sample string 10</StateDescription> <StateId>c46cc298-a76b-41db-8ad5-77d0e1611afc</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>e3b7c585-31a3-4a11-bd60-9b2c3273ddbf</TaxpayerCategoryId> <Type>64</Type> <UpdateDate>2025-06-12T08:04:40.8619478Z</UpdateDate> <ZipCode>sample string 11</ZipCode> <ZipCodeDelivery>sample string 15</ZipCodeDelivery> </CompanyDto>