PUT V2/odata/Customer({key})

Updates Customer entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

integer

Required

Body Parameters

QicsUnity.Api.Areas.V2.Models.Customer
NameDescriptionTypeAdditional information
CategoryId

Gets or sets CategoryId

integer

None.

CompanyId

Gets or sets CustomerCompany.CompanyId

integer

None.

CustomerCode

Gets or sets the customer code

string

None.

CustomerId

Gets or sets the CustomerId

integer

None.

CustomerCompanyId

Gets or sets CustomerCompany.CustomerCompanyId

integer

None.

CostCenterId

Gets or sets CustomerCompany.CostCenterId

integer

None.

VatCodeId

Gets or sets CustomerCompany.VatCodeId

integer

None.

PriceIndex

Gets or sets CustomerCompany.PriceIndex

decimal number

None.

InvoiceAddressSameAsVisitAddress

Gets or sets a value indicating whether invoice address is the same as visit address

boolean

None.

IsActive

Gets or sets a value indicating whether this customer is active

boolean

None.

CustomerType

Gets or sets CustomerType

QicsUnity.Api.Areas.V2.Models.CustomerType

None.

ManagerResourceCompanyId

Gets or sets ManagerResourceCompanyId

integer

None.

Name

Gets or sets the name

string

None.

VisitAddressAddress1

Gets or sets the first address line

string

None.

VisitAddressAddress2

Gets or sets the second address line

string

None.

VisitAddressAddress3

Gets or sets the third address line

string

None.

VisitAddressCity

Gets or sets the city

string

None.

VisitAddressContactPerson

Gets or sets the contact person

string

None.

VisitAddressCountry

Gets or sets the country

string

None.

VisitAddressCountryCode

Gets or sets the country code

string

None.

VisitAddressCounty

Gets or sets the county

string

None.

VisitAddressEmailAddress

Gets or sets the email address

string

None.

VisitAddressPhoneNumber

Gets or sets the phone number

string

None.

VisitAddressZipCode

Gets or sets the zip code

string

None.

InvoiceAddressAddress1

Gets or sets the first address line

string

None.

InvoiceAddressAddress2

Gets or sets the second address line

string

None.

InvoiceAddressAddress3

Gets or sets the third address line

string

None.

InvoiceAddressCity

Gets or sets the city

string

None.

InvoiceAddressContactPerson

Gets or sets the contact person

string

None.

InvoiceAddressCountry

Gets or sets the country

string

None.

InvoiceAddressCountryCode

Gets or sets the country code

string

None.

InvoiceAddressCounty

Gets or sets the county

string

None.

InvoiceAddressEmailAddress

Gets or sets the email address

string

None.

InvoiceAddressPhoneNumber

Gets or sets the phone number

string

None.

InvoiceAddressZipCode

Gets or sets the zip code

string

None.

AlternativeInvoiceName

Gets or sets an alternative invoice name

string

None.

CollectInvoices

Gets or sets a value indicating whether invoices will be grouped into one

boolean

None.

ContactPersonName

Gets or sets a name of the contact person

string

None.

InvoiceCustomerCompanyId

Gets or sets InvoiceCustomerCompanyId

integer

None.

InvoiceLayoutId

Gets or sets InvoiceLayoutId

integer

None.

InvoiceSpecification

Gets or sets a value indicating whether invoice will have detailed specification. If null is set, the value is taken from company.

boolean

None.

SendInvoiceMethod

Gets or sets send method

QicsUnity.Api.Areas.V2.Models.InvoiceSendMethodType

None.

SendInvoiceBcc

Gets or sets SendInvoiceBcc property

string

None.

SendInvoiceCc

Gets or sets SendInvoiceCc property

string

None.

SendInvoiceTo

Gets or sets SendInvoiceTo property

string

None.

SendInvoiceRecipientName

Gets or sets SendInvoiceRecipientName property

string

None.

SendInvoiceEmailTemplateId

Gets or sets SendInvoiceEmailTemplateId property

integer

None.

VatNumber

Gets or sets VAT number

string

None.

PaymentConditionId

Gets or sets PaymentConditionId

integer

None.

LegalEntity

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

string

None.

Identification

Gets or sets Identification

string

None.

OurReference

Gets or sets OurReference

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "CompanyId": 1,
  "CustomerCode": "sample 1",
  "CustomerId": 1,
  "CustomerCompanyId": 2,
  "CostCenterId": 1,
  "VatCodeId": 1,
  "PriceIndex": 1.0,
  "InvoiceAddressSameAsVisitAddress": true,
  "IsActive": true,
  "CustomerType": 0,
  "ManagerResourceCompanyId": 1,
  "Name": "sample 5",
  "VisitAddressAddress1": "sample 6",
  "VisitAddressAddress2": "sample 7",
  "VisitAddressAddress3": "sample 8",
  "VisitAddressCity": "sample 9",
  "VisitAddressContactPerson": "sample 10",
  "VisitAddressCountry": "sample 11",
  "VisitAddressCountryCode": "sample 12",
  "VisitAddressCounty": "sample 13",
  "VisitAddressEmailAddress": "sample 14",
  "VisitAddressPhoneNumber": "sample 15",
  "VisitAddressZipCode": "sample 16",
  "InvoiceAddressAddress1": "sample 17",
  "InvoiceAddressAddress2": "sample 18",
  "InvoiceAddressAddress3": "sample 19",
  "InvoiceAddressCity": "sample 20",
  "InvoiceAddressContactPerson": "sample 21",
  "InvoiceAddressCountry": "sample 22",
  "InvoiceAddressCountryCode": "sample 23",
  "InvoiceAddressCounty": "sample 24",
  "InvoiceAddressEmailAddress": "sample 25",
  "InvoiceAddressPhoneNumber": "sample 26",
  "InvoiceAddressZipCode": "sample 27",
  "AlternativeInvoiceName": "sample 28",
  "CollectInvoices": true,
  "ContactPersonName": "sample 29",
  "InvoiceCustomerCompanyId": 1,
  "InvoiceLayoutId": 1,
  "InvoiceSpecification": true,
  "SendInvoiceMethod": 0,
  "SendInvoiceBcc": "sample 30",
  "SendInvoiceCc": "sample 31",
  "SendInvoiceTo": "sample 32",
  "SendInvoiceRecipientName": "sample 33",
  "SendInvoiceEmailTemplateId": 1,
  "VatNumber": "sample 34",
  "PaymentConditionId": 1,
  "LegalEntity": "sample 35",
  "Identification": "sample 36",
  "OurReference": "sample 37"
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <AlternativeInvoiceName>sample 28</AlternativeInvoiceName>
  <CategoryId>1</CategoryId>
  <CollectInvoices>true</CollectInvoices>
  <CompanyId>1</CompanyId>
  <ContactPersonName>sample 29</ContactPersonName>
  <CostCenterId>1</CostCenterId>
  <CustomerCode>sample 1</CustomerCode>
  <CustomerCompanyId>2</CustomerCompanyId>
  <CustomerId>1</CustomerId>
  <CustomerType>Customer</CustomerType>
  <Identification>sample 36</Identification>
  <InvoiceAddressAddress1>sample 17</InvoiceAddressAddress1>
  <InvoiceAddressAddress2>sample 18</InvoiceAddressAddress2>
  <InvoiceAddressAddress3>sample 19</InvoiceAddressAddress3>
  <InvoiceAddressCity>sample 20</InvoiceAddressCity>
  <InvoiceAddressContactPerson>sample 21</InvoiceAddressContactPerson>
  <InvoiceAddressCountry>sample 22</InvoiceAddressCountry>
  <InvoiceAddressCountryCode>sample 23</InvoiceAddressCountryCode>
  <InvoiceAddressCounty>sample 24</InvoiceAddressCounty>
  <InvoiceAddressEmailAddress>sample 25</InvoiceAddressEmailAddress>
  <InvoiceAddressPhoneNumber>sample 26</InvoiceAddressPhoneNumber>
  <InvoiceAddressSameAsVisitAddress>true</InvoiceAddressSameAsVisitAddress>
  <InvoiceAddressZipCode>sample 27</InvoiceAddressZipCode>
  <InvoiceCustomerCompanyId>1</InvoiceCustomerCompanyId>
  <InvoiceLayoutId>1</InvoiceLayoutId>
  <InvoiceSpecification>true</InvoiceSpecification>
  <IsActive>true</IsActive>
  <LegalEntity>sample 35</LegalEntity>
  <ManagerResourceCompanyId>1</ManagerResourceCompanyId>
  <Name>sample 5</Name>
  <OurReference>sample 37</OurReference>
  <PaymentConditionId>1</PaymentConditionId>
  <PriceIndex>1</PriceIndex>
  <SendInvoiceBcc>sample 30</SendInvoiceBcc>
  <SendInvoiceCc>sample 31</SendInvoiceCc>
  <SendInvoiceEmailTemplateId>1</SendInvoiceEmailTemplateId>
  <SendInvoiceMethod>Manual</SendInvoiceMethod>
  <SendInvoiceRecipientName>sample 33</SendInvoiceRecipientName>
  <SendInvoiceTo>sample 32</SendInvoiceTo>
  <VatCodeId>1</VatCodeId>
  <VatNumber>sample 34</VatNumber>
  <VisitAddressAddress1>sample 6</VisitAddressAddress1>
  <VisitAddressAddress2>sample 7</VisitAddressAddress2>
  <VisitAddressAddress3>sample 8</VisitAddressAddress3>
  <VisitAddressCity>sample 9</VisitAddressCity>
  <VisitAddressContactPerson>sample 10</VisitAddressContactPerson>
  <VisitAddressCountry>sample 11</VisitAddressCountry>
  <VisitAddressCountryCode>sample 12</VisitAddressCountryCode>
  <VisitAddressCounty>sample 13</VisitAddressCounty>
  <VisitAddressEmailAddress>sample 14</VisitAddressEmailAddress>
  <VisitAddressPhoneNumber>sample 15</VisitAddressPhoneNumber>
  <VisitAddressZipCode>sample 16</VisitAddressZipCode>
</Customer>

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.