POST Companies

Creates a new company.

Request Information

URI Parameters

None.

Body Parameters

The data of the company.

CompanyDto
NameDescriptionTypeAdditional 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": "c21f6429-babb-4b12-9409-2eeb0c66c76b",
  "NetworkId": "bddac48d-a9db-4c8f-ba2c-28d5a1629e3e",
  "Code": "sample string 3",
  "Name": "sample string 4",
  "Street1": "sample string 5",
  "Street2": "sample string 6",
  "CountryId": "0380a851-76da-4ba8-9226-d2791eeaf18d",
  "CountryDescription": "sample string 8",
  "StateId": "fd522352-8573-463f-a6c8-cfeeb4b36494",
  "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": "40dff10b-3a4a-416f-bf6f-44c85816e67e",
  "IdCountryDelivery": "249948cd-065f-4950-8556-51b27bfaed86",
  "TaxPayerId": "sample string 19",
  "TaxpayerCategoryId": "c0740768-1196-403e-96ae-9ab311e3293b",
  "TaxpayerCategoryDescription": "sample string 21",
  "IndustryId": "7c0cab7f-4673-4ad8-8791-1d0f007a271c",
  "IndustryDescription": "sample string 23",
  "CreationDate": "2025-04-25T16:24:17.7886057Z",
  "Type": 64,
  "UpdateDate": "2025-04-25T16:24:17.7886057Z",
  "ContactName": "sample string 27",
  "ContactEmail": "sample string 28",
  "ContactPhone1": "sample string 29",
  "ContactPhone2": "sample string 30",
  "Active": true,
  "DesactivationType": 64,
  "Plan": 64,
  "CompaniesGroupId": "59e5bdd8-3f3b-4595-9f3b-ab8d0f869747",
  "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": "98a5cd2a-28b1-497e-864d-9ecba865d5e9",
      "FileName": "sample string 2",
      "FileFullUrl": "sample string 3",
      "FileExtension": "sample string 4",
      "FileContent": "QEA=",
      "DocumentStatus": 0
    },
    {
      "Id": "98a5cd2a-28b1-497e-864d-9ecba865d5e9",
      "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>59e5bdd8-3f3b-4595-9f3b-ab8d0f869747</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>98a5cd2a-28b1-497e-864d-9ecba865d5e9</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>98a5cd2a-28b1-497e-864d-9ecba865d5e9</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>0380a851-76da-4ba8-9226-d2791eeaf18d</CountryId>
  <CreationDate>2025-04-25T16:24:17.7886057Z</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>c21f6429-babb-4b12-9409-2eeb0c66c76b</Id>
  <IdCountryDelivery>249948cd-065f-4950-8556-51b27bfaed86</IdCountryDelivery>
  <IdStateDelivery>40dff10b-3a4a-416f-bf6f-44c85816e67e</IdStateDelivery>
  <IndustryDescription>sample string 23</IndustryDescription>
  <IndustryId>7c0cab7f-4673-4ad8-8791-1d0f007a271c</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>bddac48d-a9db-4c8f-ba2c-28d5a1629e3e</NetworkId>
  <PermissionsType>32</PermissionsType>
  <Plan>64</Plan>
  <StateDelivery>sample string 17</StateDelivery>
  <StateDescription>sample string 10</StateDescription>
  <StateId>fd522352-8573-463f-a6c8-cfeeb4b36494</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>c0740768-1196-403e-96ae-9ab311e3293b</TaxpayerCategoryId>
  <Type>64</Type>
  <UpdateDate>2025-04-25T16:24:17.7886057Z</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.

CompanyDto
NameDescriptionTypeAdditional 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": "0f428d9b-9763-4429-be2f-8e6616bf499b",
  "NetworkId": "16f57f52-c3ad-4130-86d2-6e335e9e5c81",
  "Code": "sample string 3",
  "Name": "sample string 4",
  "Street1": "sample string 5",
  "Street2": "sample string 6",
  "CountryId": "24cdbba9-4614-4dc6-b2dc-b17d936049f6",
  "CountryDescription": "sample string 8",
  "StateId": "e2d4c7ad-a547-4fd8-8dea-449a417b08c5",
  "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": "85403718-acea-4f30-91bf-25d677a16579",
  "IdCountryDelivery": "41f979aa-483f-4e13-b7b9-50317afa1880",
  "TaxPayerId": "sample string 19",
  "TaxpayerCategoryId": "79e481eb-4ac3-474d-8f66-028eaee6abca",
  "TaxpayerCategoryDescription": "sample string 21",
  "IndustryId": "cd8f3cb3-b3e0-40f5-891d-1510745ee1e4",
  "IndustryDescription": "sample string 23",
  "CreationDate": "2025-04-25T16:24:17.7886057Z",
  "Type": 64,
  "UpdateDate": "2025-04-25T16:24:17.7886057Z",
  "ContactName": "sample string 27",
  "ContactEmail": "sample string 28",
  "ContactPhone1": "sample string 29",
  "ContactPhone2": "sample string 30",
  "Active": true,
  "DesactivationType": 64,
  "Plan": 64,
  "CompaniesGroupId": "0614f7d1-ec26-44dd-89f6-ccea0cfb1f2f",
  "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": "324fadb0-4f07-44e2-9acd-089eeb7ff458",
      "FileName": "sample string 2",
      "FileFullUrl": "sample string 3",
      "FileExtension": "sample string 4",
      "FileContent": "QEA=",
      "DocumentStatus": 0
    },
    {
      "Id": "324fadb0-4f07-44e2-9acd-089eeb7ff458",
      "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>0614f7d1-ec26-44dd-89f6-ccea0cfb1f2f</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>324fadb0-4f07-44e2-9acd-089eeb7ff458</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>324fadb0-4f07-44e2-9acd-089eeb7ff458</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>24cdbba9-4614-4dc6-b2dc-b17d936049f6</CountryId>
  <CreationDate>2025-04-25T16:24:17.7886057Z</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>0f428d9b-9763-4429-be2f-8e6616bf499b</Id>
  <IdCountryDelivery>41f979aa-483f-4e13-b7b9-50317afa1880</IdCountryDelivery>
  <IdStateDelivery>85403718-acea-4f30-91bf-25d677a16579</IdStateDelivery>
  <IndustryDescription>sample string 23</IndustryDescription>
  <IndustryId>cd8f3cb3-b3e0-40f5-891d-1510745ee1e4</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>16f57f52-c3ad-4130-86d2-6e335e9e5c81</NetworkId>
  <PermissionsType>32</PermissionsType>
  <Plan>64</Plan>
  <StateDelivery>sample string 17</StateDelivery>
  <StateDescription>sample string 10</StateDescription>
  <StateId>e2d4c7ad-a547-4fd8-8dea-449a417b08c5</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>79e481eb-4ac3-474d-8f66-028eaee6abca</TaxpayerCategoryId>
  <Type>64</Type>
  <UpdateDate>2025-04-25T16:24:17.7886057Z</UpdateDate>
  <ZipCode>sample string 11</ZipCode>
  <ZipCodeDelivery>sample string 15</ZipCodeDelivery>
</CompanyDto>