PUT V3/odata/Invoice({key})
Updates Invoice entity
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
InvoiceHeaderId from Invoice entity |
integer |
Required |
Body Parameters
QicsUnity.Api.Areas.V3.Models.InvoiceName | Description | Type | Additional information |
---|---|---|---|
InvoiceHeaderId |
Gets or sets InvoiceHeaderId |
integer |
Required 64-bit signed integer |
InvoiceGenerationBatchId |
Gets or sets InvoiceGenerationBatchId |
integer |
Required 64-bit signed integer |
InvoiceNumber |
Gets or sets InvoiceNumber |
string | |
InvoiceHeaderState |
Gets or sets InvoiceHeaderState |
QicsUnity.Api.Areas.V3.Models.InvoiceHeaderState |
Required |
CurrencyId |
Gets or sets CurrencyId |
integer |
Required 64-bit signed integer |
InvoiceDate |
Gets or sets InvoiceDate |
date |
date and time of day Nullable |
WorkInProgressDate |
Gets or sets WorkInProgressDate |
date |
Required date and time of day |
CustomerCompanyId |
Gets or sets CustomerCompanyId |
integer |
Required 64-bit signed integer |
InvoiceCustomerCompanyId |
Gets or sets InvoiceCustomerCompanyId |
integer |
Required 64-bit signed integer |
InvoiceLayoutId |
Gets or sets InvoiceLayoutId |
integer |
64-bit signed integer Nullable |
InvoiceNotes |
Gets or sets InvoiceNotes |
string | |
InvoiceText |
Gets or sets InvoiceText |
string | |
ContactPerson |
Gets or sets ContactPerson |
string | |
InvoiceReference |
Gets or sets InvoiceReference |
string | |
CreatedOn |
Gets or sets CreatedOn |
date |
Required date and time of day, relative to Coordinated Universal Time (UTC) |
RejectionReason |
Gets or sets RejectionReason |
string | |
ProcessingFailureReason |
Gets or sets ProcessingFailureReason |
string | |
InvoiceHeaderType |
Gets or sets InvoiceHeaderType |
QicsUnity.Api.Areas.V3.Models.InvoiceHeaderType |
Required |
OriginalInvoiceHeaderId |
Gets or sets InvoiceHeader.OriginalInvoiceHeaderId |
integer |
64-bit signed integer Nullable |
OriginalInvoiceNumber |
Gets or sets InvoiceHeader.OriginalInvoiceHeader.InvoiceNumber |
string | |
OriginalInvoiceHeaderState |
Gets or sets InvoiceHeader.OriginalInvoiceHeader.InvoiceHeaderState |
QicsUnity.Api.Areas.V3.Models.InvoiceHeaderState |
Nullable |
IsCorrected |
Gets or sets a value indicating whether an invoice of type Correction exists for this invoice |
boolean | |
ProcessedInvoicePdf |
Gets or sets the processed invoice PDF stream |
System.IO.Stream | |
ProcessedInvoiceXml |
Gets or sets the processed invoice XML stream |
System.IO.Stream | |
PaymentConditionId |
Gets or sets PaymentConditionId |
integer |
Required 64-bit signed integer |
PaymentTerm |
Gets or sets PaymentTerm |
integer |
Nullable |
PaymentConditionType |
Gets or sets PaymentConditionType |
QicsUnity.Api.Areas.V3.Models.PaymentConditionType |
Nullable |
SendInvoiceTo |
Gets or sets SendInvoiceTo address |
string |
Request Formats
application/json, text/json
{ "InvoiceHeaderId": "1", "InvoiceGenerationBatchId": "2", "InvoiceNumber": "sample 3", "InvoiceHeaderState": "Proposed", "CurrencyId": "4", "InvoiceDate": "2024-12-22T18:04:47.9207+00:00", "WorkInProgressDate": "2024-12-22T18:04:47.9207+00:00", "CustomerCompanyId": "6", "InvoiceCustomerCompanyId": "7", "InvoiceLayoutId": "1", "InvoiceNotes": "sample 8", "InvoiceText": "sample 9", "ContactPerson": "sample 10", "InvoiceReference": "sample 11", "CreatedOn": "2024-12-22T18:04:47.9207+00:00", "RejectionReason": "sample 13", "ProcessingFailureReason": "sample 14", "InvoiceHeaderType": "Normal", "OriginalInvoiceHeaderId": "1", "OriginalInvoiceNumber": "sample 15", "OriginalInvoiceHeaderState": "Proposed", "IsCorrected": true, "ProcessedInvoicePdf": null, "ProcessedInvoiceXml": null, "PaymentConditionId": "17", "PaymentTerm": "1", "PaymentConditionType": "DirectDebit", "SendInvoiceTo": "sample 18" }
application/xml, text/xml
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models"> <ContactPerson>sample 10</ContactPerson> <CreatedOn xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:DateTime>2024-12-22T18:04:47.9207Z</d2p1:DateTime> <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes> </CreatedOn> <CurrencyId>4</CurrencyId> <CustomerCompanyId>6</CustomerCompanyId> <InvoiceCustomerCompanyId>7</InvoiceCustomerCompanyId> <InvoiceDate>2024-12-22T18:04:47.9207+00:00</InvoiceDate> <InvoiceGenerationBatchId>2</InvoiceGenerationBatchId> <InvoiceHeaderId>1</InvoiceHeaderId> <InvoiceHeaderState>Proposed</InvoiceHeaderState> <InvoiceHeaderType>Normal</InvoiceHeaderType> <InvoiceLayoutId>1</InvoiceLayoutId> <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> <SendInvoiceTo>sample 18</SendInvoiceTo> <WorkInProgressDate>2024-12-22T18:04:47.9207+00:00</WorkInProgressDate> </Invoice>
Response Information
Resource Description
QicsUnity.Api.Areas.V3.Models.InvoiceName | Description | Type | Additional information |
---|---|---|---|
InvoiceHeaderId |
Gets or sets InvoiceHeaderId |
integer |
Required 64-bit signed integer |
InvoiceGenerationBatchId |
Gets or sets InvoiceGenerationBatchId |
integer |
Required 64-bit signed integer |
InvoiceNumber |
Gets or sets InvoiceNumber |
string | |
InvoiceHeaderState |
Gets or sets InvoiceHeaderState |
QicsUnity.Api.Areas.V3.Models.InvoiceHeaderState |
Required |
CurrencyId |
Gets or sets CurrencyId |
integer |
Required 64-bit signed integer |
InvoiceDate |
Gets or sets InvoiceDate |
date |
date and time of day Nullable |
WorkInProgressDate |
Gets or sets WorkInProgressDate |
date |
Required date and time of day |
CustomerCompanyId |
Gets or sets CustomerCompanyId |
integer |
Required 64-bit signed integer |
InvoiceCustomerCompanyId |
Gets or sets InvoiceCustomerCompanyId |
integer |
Required 64-bit signed integer |
InvoiceLayoutId |
Gets or sets InvoiceLayoutId |
integer |
64-bit signed integer Nullable |
InvoiceNotes |
Gets or sets InvoiceNotes |
string | |
InvoiceText |
Gets or sets InvoiceText |
string | |
ContactPerson |
Gets or sets ContactPerson |
string | |
InvoiceReference |
Gets or sets InvoiceReference |
string | |
CreatedOn |
Gets or sets CreatedOn |
date |
Required date and time of day, relative to Coordinated Universal Time (UTC) |
RejectionReason |
Gets or sets RejectionReason |
string | |
ProcessingFailureReason |
Gets or sets ProcessingFailureReason |
string | |
InvoiceHeaderType |
Gets or sets InvoiceHeaderType |
QicsUnity.Api.Areas.V3.Models.InvoiceHeaderType |
Required |
OriginalInvoiceHeaderId |
Gets or sets InvoiceHeader.OriginalInvoiceHeaderId |
integer |
64-bit signed integer Nullable |
OriginalInvoiceNumber |
Gets or sets InvoiceHeader.OriginalInvoiceHeader.InvoiceNumber |
string | |
OriginalInvoiceHeaderState |
Gets or sets InvoiceHeader.OriginalInvoiceHeader.InvoiceHeaderState |
QicsUnity.Api.Areas.V3.Models.InvoiceHeaderState |
Nullable |
IsCorrected |
Gets or sets a value indicating whether an invoice of type Correction exists for this invoice |
boolean | |
ProcessedInvoicePdf |
Gets or sets the processed invoice PDF stream |
System.IO.Stream | |
ProcessedInvoiceXml |
Gets or sets the processed invoice XML stream |
System.IO.Stream | |
PaymentConditionId |
Gets or sets PaymentConditionId |
integer |
Required 64-bit signed integer |
PaymentTerm |
Gets or sets PaymentTerm |
integer |
Nullable |
PaymentConditionType |
Gets or sets PaymentConditionType |
QicsUnity.Api.Areas.V3.Models.PaymentConditionType |
Nullable |
SendInvoiceTo |
Gets or sets SendInvoiceTo address |
string |
Response Formats
application/json, text/json
{ "InvoiceHeaderId": "1", "InvoiceGenerationBatchId": "2", "InvoiceNumber": "sample 3", "InvoiceHeaderState": "Proposed", "CurrencyId": "4", "InvoiceDate": "2024-12-22T18:04:47.9519509+00:00", "WorkInProgressDate": "2024-12-22T18:04:47.9519509+00:00", "CustomerCompanyId": "6", "InvoiceCustomerCompanyId": "7", "InvoiceLayoutId": "1", "InvoiceNotes": "sample 8", "InvoiceText": "sample 9", "ContactPerson": "sample 10", "InvoiceReference": "sample 11", "CreatedOn": "2024-12-22T18:04:47.9519509+00:00", "RejectionReason": "sample 13", "ProcessingFailureReason": "sample 14", "InvoiceHeaderType": "Normal", "OriginalInvoiceHeaderId": "1", "OriginalInvoiceNumber": "sample 15", "OriginalInvoiceHeaderState": "Proposed", "IsCorrected": true, "ProcessedInvoicePdf": null, "ProcessedInvoiceXml": null, "PaymentConditionId": "17", "PaymentTerm": "1", "PaymentConditionType": "DirectDebit", "SendInvoiceTo": "sample 18" }
application/xml, text/xml
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models"> <ContactPerson>sample 10</ContactPerson> <CreatedOn xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:DateTime>2024-12-22T18:04:47.9519509Z</d2p1:DateTime> <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes> </CreatedOn> <CurrencyId>4</CurrencyId> <CustomerCompanyId>6</CustomerCompanyId> <InvoiceCustomerCompanyId>7</InvoiceCustomerCompanyId> <InvoiceDate>2024-12-22T18:04:47.9519509+00:00</InvoiceDate> <InvoiceGenerationBatchId>2</InvoiceGenerationBatchId> <InvoiceHeaderId>1</InvoiceHeaderId> <InvoiceHeaderState>Proposed</InvoiceHeaderState> <InvoiceHeaderType>Normal</InvoiceHeaderType> <InvoiceLayoutId>1</InvoiceLayoutId> <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> <SendInvoiceTo>sample 18</SendInvoiceTo> <WorkInProgressDate>2024-12-22T18:04:47.9519509+00:00</WorkInProgressDate> </Invoice>