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": "d53f953f-f974-476b-a88d-d963bcc6abb6", "NetworkId": "3b309dd4-8069-427b-8b2d-5e5b2fdce76c", "Code": "sample string 3", "Name": "sample string 4", "Street1": "sample string 5", "Street2": "sample string 6", "CountryId": "54bbdd6c-6e79-49eb-9ec7-e567d810bcf8", "CountryDescription": "sample string 8", "StateId": "6bb2eea9-22c7-459f-a604-2825f498ecf8", "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": "68d96871-79f0-42c7-91f0-c38beec130a8", "IdCountryDelivery": "9e806634-eb4d-4cfc-8530-66eb0fbcc599", "TaxPayerId": "sample string 19", "TaxpayerCategoryId": "02fe9a34-d5e4-4f03-a8d5-50be3bf23b18", "TaxpayerCategoryDescription": "sample string 21", "IndustryId": "5c0bd700-6582-4bf2-85ea-594db9bc0d81", "IndustryDescription": "sample string 23", "CreationDate": "2025-09-17T22:00:00.183721Z", "Type": 64, "UpdateDate": "2025-09-17T22:00:00.183721Z", "ContactName": "sample string 27", "ContactEmail": "sample string 28", "ContactPhone1": "sample string 29", "ContactPhone2": "sample string 30", "Active": true, "DesactivationType": 64, "Plan": 64, "CompaniesGroupId": "14d78ac5-62ef-4483-af87-f6260e0ae0b3", "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": "236d355a-b591-4a3c-ae6b-b4c2512b253c", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 }, { "Id": "236d355a-b591-4a3c-ae6b-b4c2512b253c", "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>14d78ac5-62ef-4483-af87-f6260e0ae0b3</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>236d355a-b591-4a3c-ae6b-b4c2512b253c</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>236d355a-b591-4a3c-ae6b-b4c2512b253c</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>54bbdd6c-6e79-49eb-9ec7-e567d810bcf8</CountryId> <CreationDate>2025-09-17T22:00:00.183721Z</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>d53f953f-f974-476b-a88d-d963bcc6abb6</Id> <IdCountryDelivery>9e806634-eb4d-4cfc-8530-66eb0fbcc599</IdCountryDelivery> <IdStateDelivery>68d96871-79f0-42c7-91f0-c38beec130a8</IdStateDelivery> <IndustryDescription>sample string 23</IndustryDescription> <IndustryId>5c0bd700-6582-4bf2-85ea-594db9bc0d81</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>3b309dd4-8069-427b-8b2d-5e5b2fdce76c</NetworkId> <PermissionsType>32</PermissionsType> <Plan>64</Plan> <StateDelivery>sample string 17</StateDelivery> <StateDescription>sample string 10</StateDescription> <StateId>6bb2eea9-22c7-459f-a604-2825f498ecf8</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>02fe9a34-d5e4-4f03-a8d5-50be3bf23b18</TaxpayerCategoryId> <Type>64</Type> <UpdateDate>2025-09-17T22:00:00.183721Z</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": "87895b6d-0d0a-469f-ad77-7d4185144257", "NetworkId": "48cbc923-c550-4d69-b0c3-ebd0d0624f6e", "Code": "sample string 3", "Name": "sample string 4", "Street1": "sample string 5", "Street2": "sample string 6", "CountryId": "71b3b073-795d-4e1f-a26f-6af5d0d4ac2c", "CountryDescription": "sample string 8", "StateId": "535e953d-a903-4ced-92f2-8c8437871134", "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": "726d01ee-91b4-4ecb-83b1-c064dedf7bbf", "IdCountryDelivery": "0d0f0d72-076b-425c-93bf-d9e872b90c1f", "TaxPayerId": "sample string 19", "TaxpayerCategoryId": "726a3a47-88e0-458e-bf35-36d9c4872c0d", "TaxpayerCategoryDescription": "sample string 21", "IndustryId": "da84451d-feea-4983-88e3-4b1f66eecb81", "IndustryDescription": "sample string 23", "CreationDate": "2025-09-17T22:00:00.1993478Z", "Type": 64, "UpdateDate": "2025-09-17T22:00:00.1993478Z", "ContactName": "sample string 27", "ContactEmail": "sample string 28", "ContactPhone1": "sample string 29", "ContactPhone2": "sample string 30", "Active": true, "DesactivationType": 64, "Plan": 64, "CompaniesGroupId": "70e99125-efa1-45ca-84fe-4e080254e404", "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": "437ecb4f-463f-4f73-86b3-46dc1a73bdd3", "FileName": "sample string 2", "FileFullUrl": "sample string 3", "FileExtension": "sample string 4", "FileContent": "QEA=", "DocumentStatus": 0 }, { "Id": "437ecb4f-463f-4f73-86b3-46dc1a73bdd3", "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>70e99125-efa1-45ca-84fe-4e080254e404</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>437ecb4f-463f-4f73-86b3-46dc1a73bdd3</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>437ecb4f-463f-4f73-86b3-46dc1a73bdd3</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>71b3b073-795d-4e1f-a26f-6af5d0d4ac2c</CountryId> <CreationDate>2025-09-17T22:00:00.1993478Z</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>87895b6d-0d0a-469f-ad77-7d4185144257</Id> <IdCountryDelivery>0d0f0d72-076b-425c-93bf-d9e872b90c1f</IdCountryDelivery> <IdStateDelivery>726d01ee-91b4-4ecb-83b1-c064dedf7bbf</IdStateDelivery> <IndustryDescription>sample string 23</IndustryDescription> <IndustryId>da84451d-feea-4983-88e3-4b1f66eecb81</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>48cbc923-c550-4d69-b0c3-ebd0d0624f6e</NetworkId> <PermissionsType>32</PermissionsType> <Plan>64</Plan> <StateDelivery>sample string 17</StateDelivery> <StateDescription>sample string 10</StateDescription> <StateId>535e953d-a903-4ced-92f2-8c8437871134</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>726a3a47-88e0-458e-bf35-36d9c4872c0d</TaxpayerCategoryId> <Type>64</Type> <UpdateDate>2025-09-17T22:00:00.1993478Z</UpdateDate> <ZipCode>sample string 11</ZipCode> <ZipCodeDelivery>sample string 15</ZipCodeDelivery> </CompanyDto>