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

None.

Name

Gets or sets name

string

None.

Code

Gets or sets code

string

None.

CurrencyId

Gets or sets CurrencyId

integer

None.

InvoiceLanguage

Gets or sets InvoiceLanguage

QicsUnity.Api.Areas.V2.Models.LanguageType

None.

InvoiceLayoutId

Gets or sets InvoiceLayoutId

integer

None.

InvoiceNumberLength

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

integer

None.

InvoiceNumberPrefix

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

string

None.

PriceIndex

Gets or sets price index

decimal number

None.

InvoiceNumberCounter

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

integer

None.

XsltInvoiceProcessingBatchContent

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

Collection of byte

None.

HasXsltInvoiceProcessingBatchFile

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

boolean

None.

VatAmountSumMode

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

QicsUnity.Api.Areas.V2.Models.VatAmountSumMode

None.

DefaultInvoiceSendMethod

Gets or sets default invoice send method type

QicsUnity.Api.Areas.V2.Models.InvoiceSendMethodType

None.

ContactPerson

Gets or sets ContactPerson

string

None.

Address1

Gets or sets Address1

string

None.

Address2

Gets or sets Address2

string

None.

Address3

Gets or sets Address3

string

None.

ZipCode

Gets or sets ZipCode

string

None.

City

Gets or sets City

string

None.

County

Gets or sets County

string

None.

Country

Gets or sets Country

string

None.

CountryCode

Gets or sets CountryCode

string

None.

EmailAddress

Gets or sets EmailAddress

string

None.

PhoneNumber1

Gets or sets PhoneNumber1

string

None.

PhoneNumber2

Gets or sets PhoneNumber2

string

None.

BankAccount

Gets or sets BankAccount

string

None.

BankIdentificationCode

Gets or sets BankIdentificationCode

string

None.

ChamberOfCommerceNumber

Gets or sets ChamberOfCommerceNumber

string

None.

LegalEntity

Gets or sets LegalEntity (supported values: NL:KVK, NL:OIN, Other)

string

None.

VatNumber

Gets or sets VatNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "Name": "sample 2",
  "Code": "sample 3",
  "CurrencyId": 4,
  "InvoiceLanguage": 0,
  "InvoiceLayoutId": 1,
  "InvoiceNumberLength": 5,
  "InvoiceNumberPrefix": "sample 6",
  "PriceIndex": 7.0,
  "InvoiceNumberCounter": 8,
  "XsltInvoiceProcessingBatchContent": "QEA=",
  "HasXsltInvoiceProcessingBatchFile": true,
  "VatAmountSumMode": 0,
  "DefaultInvoiceSendMethod": 0,
  "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",
  "LegalEntity": "sample 25",
  "VatNumber": "sample 26"
}

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 25</LegalEntity>
  <Name>sample 2</Name>
  <PhoneNumber1>sample 20</PhoneNumber1>
  <PhoneNumber2>sample 21</PhoneNumber2>
  <PriceIndex>7</PriceIndex>
  <VatAmountSumMode>RoundBeforeSum</VatAmountSumMode>
  <VatNumber>sample 26</VatNumber>
  <XsltInvoiceProcessingBatchContent>QEA=</XsltInvoiceProcessingBatchContent>
  <ZipCode>sample 14</ZipCode>
</Company>

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.