POST V2/odata/Company

Inserts Company entity

Request Information

URI Parameters

None.

Body Parameters

QicsUnity.Api.Areas.V2.Models.Company
NameDescriptionTypeAdditional information
CompanyId

Gets or sets CompanyId

integer

Required

64-bit signed integer

Name

Gets or sets name

string

Required

Code

Gets or sets code

string

Required

CurrencyId

Gets or sets CurrencyId

integer

Required

64-bit signed integer

InvoiceLanguage

Gets or sets InvoiceLanguage

QicsUnity.Api.Areas.V2.Models.LanguageType

Required

InvoiceLayoutId

Gets or sets InvoiceLayoutId

integer

64-bit signed integer

Nullable

InvoiceNumberLength

Gets or sets the length of generated part of invoice number for invoices being processed for this company

integer

InvoiceNumberPrefix

Gets or sets the prefix for invoice number of invoices being processed for this company

string

PriceIndex

Gets or sets price index

decimal number

Required

InvoiceNumberCounter

Gets or sets the value of invoice number that will be assigned to next invoice processed for this company

integer

XsltInvoiceProcessingBatchContent

Gets or sets the content of a invoice processing batch XSLT file

Collection of byte

HasXsltInvoiceProcessingBatchFile

Gets or sets a value indicating whether invoice processing batch XSLT file is present

boolean

VatAmountSumMode

Gets or sets mode of VAT amount calculation of invoices for current company

QicsUnity.Api.Areas.V2.Models.VatAmountSumMode

Nullable

DefaultInvoiceSendMethod

Gets or sets default invoice send method type

QicsUnity.Api.Areas.V2.Models.InvoiceSendMethodType

Nullable

ContactPerson

Gets or sets ContactPerson

string

Address1

Gets or sets Address1

string

Address2

Gets or sets Address2

string

Address3

Gets or sets Address3

string

ZipCode

Gets or sets ZipCode

string

City

Gets or sets City

string

County

Gets or sets County

string

Country

Gets or sets Country

string

CountryCode

Gets or sets CountryCode

string

EmailAddress

Gets or sets EmailAddress

string

PhoneNumber1

Gets or sets PhoneNumber1

string

PhoneNumber2

Gets or sets PhoneNumber2

string

BankAccount

Gets or sets BankAccount

string

BankIdentificationCode

Gets or sets BankIdentificationCode

string

ChamberOfCommerceNumber

Gets or sets ChamberOfCommerceNumber

string

LegalEntityCode

Gets or sets LegalEntityCode (supported values: 0106, 9954, 0190, 9944, Other)

string

LegalEntity

Gets or sets LegalEntity (supported values: NL:KVK, NL:OIN, NL:BTW, 0106-NL:KVK, 9954-NL:OIN, 0190-NL:OIN, 9944-NL:BTW, Other)

string

VatNumber

Gets or sets VatNumber

string

OnlinePaymentProvider

Gets or sets online payment provider

QicsUnity.Api.Areas.V2.Models.OnlinePaymentProvider

Nullable

MollieOAuthUserId

Gets or sets MollieOAuthUserId

integer

64-bit signed integer

Nullable

MollieProfileId

Gets or sets MollieProfileId

string

MollieProfileName

Gets or sets MollieProfileName

string

MolliePaymentExpiresAfterDays

Gets or sets MolliePaymentExpiresAfterDays

integer

Nullable

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": "1",
  "Name": "sample 2",
  "Code": "sample 3",
  "CurrencyId": "4",
  "InvoiceLanguage": "Company",
  "InvoiceLayoutId": "1",
  "InvoiceNumberLength": "5",
  "InvoiceNumberPrefix": "sample 6",
  "PriceIndex": "7",
  "InvoiceNumberCounter": "8",
  "XsltInvoiceProcessingBatchContent": "QEA=",
  "HasXsltInvoiceProcessingBatchFile": true,
  "VatAmountSumMode": "RoundBeforeSum",
  "DefaultInvoiceSendMethod": "Manual",
  "ContactPerson": "sample 10",
  "Address1": "sample 11",
  "Address2": "sample 12",
  "Address3": "sample 13",
  "ZipCode": "sample 14",
  "City": "sample 15",
  "County": "sample 16",
  "Country": "sample 17",
  "CountryCode": "sample 18",
  "EmailAddress": "sample 19",
  "PhoneNumber1": "sample 20",
  "PhoneNumber2": "sample 21",
  "BankAccount": "sample 22",
  "BankIdentificationCode": "sample 23",
  "ChamberOfCommerceNumber": "sample 24",
  "LegalEntityCode": "sample 25",
  "LegalEntity": "sample 26",
  "VatNumber": "sample 27",
  "OnlinePaymentProvider": "None",
  "MollieOAuthUserId": "1",
  "MollieProfileId": "sample 28",
  "MollieProfileName": "sample 29",
  "MolliePaymentExpiresAfterDays": "1"
}

application/xml, text/xml

Sample:
<Company xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <Address1>sample 11</Address1>
  <Address2>sample 12</Address2>
  <Address3>sample 13</Address3>
  <BankAccount>sample 22</BankAccount>
  <BankIdentificationCode>sample 23</BankIdentificationCode>
  <ChamberOfCommerceNumber>sample 24</ChamberOfCommerceNumber>
  <City>sample 15</City>
  <Code>sample 3</Code>
  <CompanyId>1</CompanyId>
  <ContactPerson>sample 10</ContactPerson>
  <Country>sample 17</Country>
  <CountryCode>sample 18</CountryCode>
  <County>sample 16</County>
  <CurrencyId>4</CurrencyId>
  <DefaultInvoiceSendMethod>Manual</DefaultInvoiceSendMethod>
  <EmailAddress>sample 19</EmailAddress>
  <HasXsltInvoiceProcessingBatchFile>true</HasXsltInvoiceProcessingBatchFile>
  <InvoiceLanguage>Company</InvoiceLanguage>
  <InvoiceLayoutId>1</InvoiceLayoutId>
  <InvoiceNumberCounter>8</InvoiceNumberCounter>
  <InvoiceNumberLength>5</InvoiceNumberLength>
  <InvoiceNumberPrefix>sample 6</InvoiceNumberPrefix>
  <LegalEntity>sample 26</LegalEntity>
  <LegalEntityCode>sample 25</LegalEntityCode>
  <MollieOAuthUserId>1</MollieOAuthUserId>
  <MolliePaymentExpiresAfterDays>1</MolliePaymentExpiresAfterDays>
  <MollieProfileId>sample 28</MollieProfileId>
  <MollieProfileName>sample 29</MollieProfileName>
  <Name>sample 2</Name>
  <OnlinePaymentProvider>None</OnlinePaymentProvider>
  <PhoneNumber1>sample 20</PhoneNumber1>
  <PhoneNumber2>sample 21</PhoneNumber2>
  <PriceIndex>7</PriceIndex>
  <VatAmountSumMode>RoundBeforeSum</VatAmountSumMode>
  <VatNumber>sample 27</VatNumber>
  <XsltInvoiceProcessingBatchContent>QEA=</XsltInvoiceProcessingBatchContent>
  <ZipCode>sample 14</ZipCode>
</Company>

Response Information

Resource Description

QicsUnity.Api.Areas.V2.Models.Company
NameDescriptionTypeAdditional information
CompanyId

Gets or sets CompanyId

integer

Required

64-bit signed integer

Name

Gets or sets name

string

Required

Code

Gets or sets code

string

Required

CurrencyId

Gets or sets CurrencyId

integer

Required

64-bit signed integer

InvoiceLanguage

Gets or sets InvoiceLanguage

QicsUnity.Api.Areas.V2.Models.LanguageType

Required

InvoiceLayoutId

Gets or sets InvoiceLayoutId

integer

64-bit signed integer

Nullable

InvoiceNumberLength

Gets or sets the length of generated part of invoice number for invoices being processed for this company

integer

InvoiceNumberPrefix

Gets or sets the prefix for invoice number of invoices being processed for this company

string

PriceIndex

Gets or sets price index

decimal number

Required

InvoiceNumberCounter

Gets or sets the value of invoice number that will be assigned to next invoice processed for this company

integer

XsltInvoiceProcessingBatchContent

Gets or sets the content of a invoice processing batch XSLT file

Collection of byte

HasXsltInvoiceProcessingBatchFile

Gets or sets a value indicating whether invoice processing batch XSLT file is present

boolean

VatAmountSumMode

Gets or sets mode of VAT amount calculation of invoices for current company

QicsUnity.Api.Areas.V2.Models.VatAmountSumMode

Nullable

DefaultInvoiceSendMethod

Gets or sets default invoice send method type

QicsUnity.Api.Areas.V2.Models.InvoiceSendMethodType

Nullable

ContactPerson

Gets or sets ContactPerson

string

Address1

Gets or sets Address1

string

Address2

Gets or sets Address2

string

Address3

Gets or sets Address3

string

ZipCode

Gets or sets ZipCode

string

City

Gets or sets City

string

County

Gets or sets County

string

Country

Gets or sets Country

string

CountryCode

Gets or sets CountryCode

string

EmailAddress

Gets or sets EmailAddress

string

PhoneNumber1

Gets or sets PhoneNumber1

string

PhoneNumber2

Gets or sets PhoneNumber2

string

BankAccount

Gets or sets BankAccount

string

BankIdentificationCode

Gets or sets BankIdentificationCode

string

ChamberOfCommerceNumber

Gets or sets ChamberOfCommerceNumber

string

LegalEntityCode

Gets or sets LegalEntityCode (supported values: 0106, 9954, 0190, 9944, Other)

string

LegalEntity

Gets or sets LegalEntity (supported values: NL:KVK, NL:OIN, NL:BTW, 0106-NL:KVK, 9954-NL:OIN, 0190-NL:OIN, 9944-NL:BTW, Other)

string

VatNumber

Gets or sets VatNumber

string

OnlinePaymentProvider

Gets or sets online payment provider

QicsUnity.Api.Areas.V2.Models.OnlinePaymentProvider

Nullable

MollieOAuthUserId

Gets or sets MollieOAuthUserId

integer

64-bit signed integer

Nullable

MollieProfileId

Gets or sets MollieProfileId

string

MollieProfileName

Gets or sets MollieProfileName

string

MolliePaymentExpiresAfterDays

Gets or sets MolliePaymentExpiresAfterDays

integer

Nullable

Response Formats

application/json, text/json

Sample:
{
  "CompanyId": "1",
  "Name": "sample 2",
  "Code": "sample 3",
  "CurrencyId": "4",
  "InvoiceLanguage": "Company",
  "InvoiceLayoutId": "1",
  "InvoiceNumberLength": "5",
  "InvoiceNumberPrefix": "sample 6",
  "PriceIndex": "7",
  "InvoiceNumberCounter": "8",
  "XsltInvoiceProcessingBatchContent": "QEA=",
  "HasXsltInvoiceProcessingBatchFile": true,
  "VatAmountSumMode": "RoundBeforeSum",
  "DefaultInvoiceSendMethod": "Manual",
  "ContactPerson": "sample 10",
  "Address1": "sample 11",
  "Address2": "sample 12",
  "Address3": "sample 13",
  "ZipCode": "sample 14",
  "City": "sample 15",
  "County": "sample 16",
  "Country": "sample 17",
  "CountryCode": "sample 18",
  "EmailAddress": "sample 19",
  "PhoneNumber1": "sample 20",
  "PhoneNumber2": "sample 21",
  "BankAccount": "sample 22",
  "BankIdentificationCode": "sample 23",
  "ChamberOfCommerceNumber": "sample 24",
  "LegalEntityCode": "sample 25",
  "LegalEntity": "sample 26",
  "VatNumber": "sample 27",
  "OnlinePaymentProvider": "None",
  "MollieOAuthUserId": "1",
  "MollieProfileId": "sample 28",
  "MollieProfileName": "sample 29",
  "MolliePaymentExpiresAfterDays": "1"
}

application/xml, text/xml

Sample:
<Company xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <Address1>sample 11</Address1>
  <Address2>sample 12</Address2>
  <Address3>sample 13</Address3>
  <BankAccount>sample 22</BankAccount>
  <BankIdentificationCode>sample 23</BankIdentificationCode>
  <ChamberOfCommerceNumber>sample 24</ChamberOfCommerceNumber>
  <City>sample 15</City>
  <Code>sample 3</Code>
  <CompanyId>1</CompanyId>
  <ContactPerson>sample 10</ContactPerson>
  <Country>sample 17</Country>
  <CountryCode>sample 18</CountryCode>
  <County>sample 16</County>
  <CurrencyId>4</CurrencyId>
  <DefaultInvoiceSendMethod>Manual</DefaultInvoiceSendMethod>
  <EmailAddress>sample 19</EmailAddress>
  <HasXsltInvoiceProcessingBatchFile>true</HasXsltInvoiceProcessingBatchFile>
  <InvoiceLanguage>Company</InvoiceLanguage>
  <InvoiceLayoutId>1</InvoiceLayoutId>
  <InvoiceNumberCounter>8</InvoiceNumberCounter>
  <InvoiceNumberLength>5</InvoiceNumberLength>
  <InvoiceNumberPrefix>sample 6</InvoiceNumberPrefix>
  <LegalEntity>sample 26</LegalEntity>
  <LegalEntityCode>sample 25</LegalEntityCode>
  <MollieOAuthUserId>1</MollieOAuthUserId>
  <MolliePaymentExpiresAfterDays>1</MolliePaymentExpiresAfterDays>
  <MollieProfileId>sample 28</MollieProfileId>
  <MollieProfileName>sample 29</MollieProfileName>
  <Name>sample 2</Name>
  <OnlinePaymentProvider>None</OnlinePaymentProvider>
  <PhoneNumber1>sample 20</PhoneNumber1>
  <PhoneNumber2>sample 21</PhoneNumber2>
  <PriceIndex>7</PriceIndex>
  <VatAmountSumMode>RoundBeforeSum</VatAmountSumMode>
  <VatNumber>sample 27</VatNumber>
  <XsltInvoiceProcessingBatchContent>QEA=</XsltInvoiceProcessingBatchContent>
  <ZipCode>sample 14</ZipCode>
</Company>