PUT V2/odata/Invoice({key})

Updates Invoice entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

integer

Required

Body Parameters

QicsUnity.Api.Areas.V2.Models.Invoice
NameDescriptionTypeAdditional information
InvoiceHeaderId

Gets or sets InvoiceHeaderId

integer

None.

AsyncServerCommandId

Gets or sets AsyncServerCommandId

integer

None.

InvoiceNumber

Gets or sets InvoiceNumber

string

None.

InvoiceHeaderState

Gets or sets InvoiceHeaderState

QicsUnity.Api.Areas.V2.Models.InvoiceHeaderState

None.

CurrencyId

Gets or sets CurrencyId

integer

None.

InvoiceDate

Gets or sets InvoiceDate

date

None.

WorkInProgressDate

Gets or sets WorkInProgressDate

date

None.

CustomerCompanyId

Gets or sets CustomerCompanyId

integer

None.

InvoiceCustomerCompanyId

Gets or sets InvoiceCustomerCompanyId

integer

None.

InvoiceNotes

Gets or sets InvoiceNotes

string

None.

InvoiceText

Gets or sets InvoiceText

string

None.

ContactPerson

Gets or sets ContactPerson

string

None.

InvoiceReference

Gets or sets InvoiceReference

string

None.

CreatedOn

Gets or sets CreatedOn

date

None.

RejectionReason

Gets or sets RejectionReason

string

None.

ProcessingFailureReason

Gets or sets ProcessingFailureReason

string

None.

InvoiceHeaderType

Gets or sets InvoiceHeaderType

QicsUnity.Api.Areas.V2.Models.InvoiceHeaderType

None.

OriginalInvoiceHeaderId

Gets or sets InvoiceHeader.OriginalInvoiceHeaderId

integer

None.

OriginalInvoiceNumber

Gets or sets InvoiceHeader.OriginalInvoiceHeader.InvoiceNumber

string

None.

OriginalInvoiceHeaderState

Gets or sets InvoiceHeader.OriginalInvoiceHeader.InvoiceHeaderState

QicsUnity.Api.Areas.V2.Models.InvoiceHeaderState

None.

IsCorrected

Gets or sets a value indicating whether an invoice of type Correction exists for this invoice

boolean

None.

ProcessedInvoicePdf

Gets or sets the processed invoice PDF stream

System.IO.Stream

None.

ProcessedInvoiceXml

Gets or sets the processed invoice XML stream

System.IO.Stream

None.

PaymentConditionId

Gets or sets PaymentConditionId

integer

None.

PaymentTerm

Gets or sets PaymentTerm

integer

None.

PaymentConditionType

Gets or sets PaymentConditionType

QicsUnity.Api.Areas.V2.Models.PaymentConditionType

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceHeaderId": 1,
  "AsyncServerCommandId": 2,
  "InvoiceNumber": "sample 3",
  "InvoiceHeaderState": 0,
  "CurrencyId": 4,
  "InvoiceDate": "2019-07-16T01:26:13.5523017+00:00",
  "WorkInProgressDate": "2019-07-16T01:26:13.5523017+00:00",
  "CustomerCompanyId": 6,
  "InvoiceCustomerCompanyId": 7,
  "InvoiceNotes": "sample 8",
  "InvoiceText": "sample 9",
  "ContactPerson": "sample 10",
  "InvoiceReference": "sample 11",
  "CreatedOn": "2019-07-16T01:26:13.5523017+00:00",
  "RejectionReason": "sample 13",
  "ProcessingFailureReason": "sample 14",
  "InvoiceHeaderType": 0,
  "OriginalInvoiceHeaderId": 1,
  "OriginalInvoiceNumber": "sample 15",
  "OriginalInvoiceHeaderState": 0,
  "IsCorrected": true,
  "ProcessedInvoicePdf": null,
  "ProcessedInvoiceXml": null,
  "PaymentConditionId": 17,
  "PaymentTerm": 1,
  "PaymentConditionType": 0
}

application/xml, text/xml

Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <AsyncServerCommandId>2</AsyncServerCommandId>
  <ContactPerson>sample 10</ContactPerson>
  <CreatedOn xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2019-07-16T01:26:13.5523017Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedOn>
  <CurrencyId>4</CurrencyId>
  <CustomerCompanyId>6</CustomerCompanyId>
  <InvoiceCustomerCompanyId>7</InvoiceCustomerCompanyId>
  <InvoiceDate>2019-07-16T01:26:13.5523017+00:00</InvoiceDate>
  <InvoiceHeaderId>1</InvoiceHeaderId>
  <InvoiceHeaderState>Proposed</InvoiceHeaderState>
  <InvoiceHeaderType>Normal</InvoiceHeaderType>
  <InvoiceNotes>sample 8</InvoiceNotes>
  <InvoiceNumber>sample 3</InvoiceNumber>
  <InvoiceReference>sample 11</InvoiceReference>
  <InvoiceText>sample 9</InvoiceText>
  <IsCorrected>true</IsCorrected>
  <OriginalInvoiceHeaderId>1</OriginalInvoiceHeaderId>
  <OriginalInvoiceHeaderState>Proposed</OriginalInvoiceHeaderState>
  <OriginalInvoiceNumber>sample 15</OriginalInvoiceNumber>
  <PaymentConditionId>17</PaymentConditionId>
  <PaymentConditionType>DirectDebit</PaymentConditionType>
  <PaymentTerm>1</PaymentTerm>
  <ProcessedInvoicePdf xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
  <ProcessedInvoiceXml xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
  <ProcessingFailureReason>sample 14</ProcessingFailureReason>
  <RejectionReason>sample 13</RejectionReason>
  <WorkInProgressDate>2019-07-16T01:26:13.5523017+00:00</WorkInProgressDate>
</Invoice>

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.