POST company/Invoice/Update

Request Information

URI Parameters

None.

Body Parameters

InvoiceDto
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

CompanyId

integer

None.

CustomerId

integer

None.

CustomerName

string

None.

CustomerEmail

string

None.

BillingAddress

string

None.

InvoiceNumber

string

None.

InvoiceNumberInt

integer

None.

InvoiceNumberDisplay

string

None.

InvoiceType

byte

None.

InvoiceStatus

byte

None.

SourceType

byte

None.

InvoiceDate

date

None.

DueDate

date

None.

CurrencyCode

string

None.

TaxRatePercent

decimal number

None.

SubtotalAmount

decimal number

None.

DiscountAmount

decimal number

None.

TaxAmount

decimal number

None.

ShippingAmount

decimal number

None.

TotalAmount

decimal number

None.

AmountPaid

decimal number

None.

AmountOutstanding

decimal number

None.

PaymentTermsDays

integer

None.

ReferenceNumber

string

None.

NotesInternal

string

None.

NotesPublic

string

None.

TermsAndConditions

string

None.

LastEmailSentOn

date

None.

LastEmailSentTo

string

None.

IsDeleted

boolean

None.

CreatedByUserId

integer

None.

CreatedOn

date

None.

ModifiedByUserId

integer

None.

ModifiedOn

date

None.

Lines

Collection of InvoiceLineDto

None.

Payments

Collection of InvoicePaymentDto

None.

CompanyName

string

None.

AuditLinks

Collection of InvoiceAuditLinkDto

None.

LinkedAuditIds

Collection of integer

None.

AuditReferences

Collection of InvoiceAuditReferenceDto

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "CompanyId": 2,
  "CustomerId": 3,
  "CustomerName": "sample string 4",
  "CustomerEmail": "sample string 5",
  "BillingAddress": "sample string 6",
  "InvoiceNumber": "sample string 7",
  "InvoiceNumberInt": 8,
  "InvoiceNumberDisplay": "sample string 9",
  "InvoiceType": 64,
  "InvoiceStatus": 64,
  "SourceType": 64,
  "InvoiceDate": "2026-06-01T14:44:29.9195419-04:00",
  "DueDate": "2026-06-01T14:44:29.9195419-04:00",
  "CurrencyCode": "sample string 14",
  "TaxRatePercent": 1.0,
  "SubtotalAmount": 15.0,
  "DiscountAmount": 16.0,
  "TaxAmount": 17.0,
  "ShippingAmount": 18.0,
  "TotalAmount": 19.0,
  "AmountPaid": 20.0,
  "AmountOutstanding": 21.0,
  "PaymentTermsDays": 1,
  "ReferenceNumber": "sample string 22",
  "NotesInternal": "sample string 23",
  "NotesPublic": "sample string 24",
  "TermsAndConditions": "sample string 25",
  "LastEmailSentOn": "2026-06-01T14:44:29.9195419-04:00",
  "LastEmailSentTo": "sample string 26",
  "IsDeleted": true,
  "CreatedByUserId": 28,
  "CreatedOn": "2026-06-01T14:44:29.9195419-04:00",
  "ModifiedByUserId": 1,
  "ModifiedOn": "2026-06-01T14:44:29.9195419-04:00",
  "Lines": [
    {
      "InvoiceLineId": 1,
      "InvoiceId": 2,
      "LineNumber": 3,
      "LineType": 0,
      "Description": "sample string 4",
      "Quantity": 5.0,
      "UnitPrice": 6.0,
      "LineSubtotal": 7.0,
      "DiscountAmount": 8.0,
      "TaxableAmount": 9.0,
      "TaxAmount": 10.0,
      "LineTotal": 11.0,
      "AuditId": 1,
      "TemplateId": 1,
      "LocationId": 1,
      "TaxRateId": 1,
      "TaxRatePercent": 1.0,
      "IsDeleted": true,
      "CreatedByUserId": 13,
      "CreatedOn": "2026-06-01T14:44:29.9195419-04:00",
      "ModifiedByUserId": 1,
      "ModifiedOn": "2026-06-01T14:44:29.9195419-04:00"
    },
    {
      "InvoiceLineId": 1,
      "InvoiceId": 2,
      "LineNumber": 3,
      "LineType": 0,
      "Description": "sample string 4",
      "Quantity": 5.0,
      "UnitPrice": 6.0,
      "LineSubtotal": 7.0,
      "DiscountAmount": 8.0,
      "TaxableAmount": 9.0,
      "TaxAmount": 10.0,
      "LineTotal": 11.0,
      "AuditId": 1,
      "TemplateId": 1,
      "LocationId": 1,
      "TaxRateId": 1,
      "TaxRatePercent": 1.0,
      "IsDeleted": true,
      "CreatedByUserId": 13,
      "CreatedOn": "2026-06-01T14:44:29.9195419-04:00",
      "ModifiedByUserId": 1,
      "ModifiedOn": "2026-06-01T14:44:29.9195419-04:00"
    }
  ],
  "Payments": [
    {
      "InvoicePaymentId": 1,
      "InvoiceId": 2,
      "PaymentDate": "2026-06-01T14:44:29.9195419-04:00",
      "Amount": 4.0,
      "CurrencyCode": "sample string 5",
      "ExchangeRateToInvoice": 1.0,
      "PaymentMethod": 1,
      "ReferenceNumber": "sample string 6",
      "Notes": "sample string 7",
      "CreatedByUserId": 8,
      "CreatedOn": "2026-06-01T14:44:29.9195419-04:00",
      "IsDeleted": true
    },
    {
      "InvoicePaymentId": 1,
      "InvoiceId": 2,
      "PaymentDate": "2026-06-01T14:44:29.9195419-04:00",
      "Amount": 4.0,
      "CurrencyCode": "sample string 5",
      "ExchangeRateToInvoice": 1.0,
      "PaymentMethod": 1,
      "ReferenceNumber": "sample string 6",
      "Notes": "sample string 7",
      "CreatedByUserId": 8,
      "CreatedOn": "2026-06-01T14:44:29.9195419-04:00",
      "IsDeleted": true
    }
  ],
  "CompanyName": "sample string 30",
  "AuditLinks": [
    {
      "InvoiceAuditLinkId": 1,
      "InvoiceId": 2,
      "AuditId": 3,
      "AmountAllocated": 1.0,
      "CreatedOn": "2026-06-01T14:44:29.9195419-04:00",
      "CreatedByUserId": 5
    },
    {
      "InvoiceAuditLinkId": 1,
      "InvoiceId": 2,
      "AuditId": 3,
      "AmountAllocated": 1.0,
      "CreatedOn": "2026-06-01T14:44:29.9195419-04:00",
      "CreatedByUserId": 5
    }
  ],
  "LinkedAuditIds": [
    1,
    2
  ],
  "AuditReferences": [
    {
      "AuditId": 1,
      "AuditName": "sample string 2",
      "LocationName": "sample string 3",
      "CompletedOn": "2026-06-01T14:44:29.9195419-04:00"
    },
    {
      "AuditId": 1,
      "AuditName": "sample string 2",
      "LocationName": "sample string 3",
      "CompletedOn": "2026-06-01T14:44:29.9195419-04:00"
    }
  ]
}

application/xml, text/xml

Sample:
<InvoiceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Li.CQATS.Audit.Library.Invoices">
  <AmountOutstanding>21</AmountOutstanding>
  <AmountPaid>20</AmountPaid>
  <AuditLinks>
    <InvoiceAuditLinkDto>
      <AmountAllocated>1</AmountAllocated>
      <AuditId>3</AuditId>
      <CreatedByUserId>5</CreatedByUserId>
      <CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn>
      <InvoiceAuditLinkId>1</InvoiceAuditLinkId>
      <InvoiceId>2</InvoiceId>
    </InvoiceAuditLinkDto>
    <InvoiceAuditLinkDto>
      <AmountAllocated>1</AmountAllocated>
      <AuditId>3</AuditId>
      <CreatedByUserId>5</CreatedByUserId>
      <CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn>
      <InvoiceAuditLinkId>1</InvoiceAuditLinkId>
      <InvoiceId>2</InvoiceId>
    </InvoiceAuditLinkDto>
  </AuditLinks>
  <AuditReferences>
    <InvoiceAuditReferenceDto>
      <AuditId>1</AuditId>
      <AuditName>sample string 2</AuditName>
      <CompletedOn>2026-06-01T14:44:29.9195419-04:00</CompletedOn>
      <LocationName>sample string 3</LocationName>
    </InvoiceAuditReferenceDto>
    <InvoiceAuditReferenceDto>
      <AuditId>1</AuditId>
      <AuditName>sample string 2</AuditName>
      <CompletedOn>2026-06-01T14:44:29.9195419-04:00</CompletedOn>
      <LocationName>sample string 3</LocationName>
    </InvoiceAuditReferenceDto>
  </AuditReferences>
  <BillingAddress>sample string 6</BillingAddress>
  <CompanyId>2</CompanyId>
  <CompanyName>sample string 30</CompanyName>
  <CreatedByUserId>28</CreatedByUserId>
  <CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn>
  <CurrencyCode>sample string 14</CurrencyCode>
  <CustomerEmail>sample string 5</CustomerEmail>
  <CustomerId>3</CustomerId>
  <CustomerName>sample string 4</CustomerName>
  <DiscountAmount>16</DiscountAmount>
  <DueDate>2026-06-01T14:44:29.9195419-04:00</DueDate>
  <InvoiceDate>2026-06-01T14:44:29.9195419-04:00</InvoiceDate>
  <InvoiceId>1</InvoiceId>
  <InvoiceNumber>sample string 7</InvoiceNumber>
  <InvoiceNumberDisplay>sample string 9</InvoiceNumberDisplay>
  <InvoiceNumberInt>8</InvoiceNumberInt>
  <InvoiceStatus>64</InvoiceStatus>
  <InvoiceType>64</InvoiceType>
  <IsDeleted>true</IsDeleted>
  <LastEmailSentOn>2026-06-01T14:44:29.9195419-04:00</LastEmailSentOn>
  <LastEmailSentTo>sample string 26</LastEmailSentTo>
  <Lines>
    <InvoiceLineDto>
      <AuditId>1</AuditId>
      <CreatedByUserId>13</CreatedByUserId>
      <CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn>
      <Description>sample string 4</Description>
      <DiscountAmount>8</DiscountAmount>
      <InvoiceId>2</InvoiceId>
      <InvoiceLineId>1</InvoiceLineId>
      <IsDeleted>true</IsDeleted>
      <LineNumber>3</LineNumber>
      <LineSubtotal>7</LineSubtotal>
      <LineTotal>11</LineTotal>
      <LineType>Unknown</LineType>
      <LocationId>1</LocationId>
      <ModifiedByUserId>1</ModifiedByUserId>
      <ModifiedOn>2026-06-01T14:44:29.9195419-04:00</ModifiedOn>
      <Quantity>5</Quantity>
      <TaxAmount>10</TaxAmount>
      <TaxRateId>1</TaxRateId>
      <TaxRatePercent>1</TaxRatePercent>
      <TaxableAmount>9</TaxableAmount>
      <TemplateId>1</TemplateId>
      <UnitPrice>6</UnitPrice>
    </InvoiceLineDto>
    <InvoiceLineDto>
      <AuditId>1</AuditId>
      <CreatedByUserId>13</CreatedByUserId>
      <CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn>
      <Description>sample string 4</Description>
      <DiscountAmount>8</DiscountAmount>
      <InvoiceId>2</InvoiceId>
      <InvoiceLineId>1</InvoiceLineId>
      <IsDeleted>true</IsDeleted>
      <LineNumber>3</LineNumber>
      <LineSubtotal>7</LineSubtotal>
      <LineTotal>11</LineTotal>
      <LineType>Unknown</LineType>
      <LocationId>1</LocationId>
      <ModifiedByUserId>1</ModifiedByUserId>
      <ModifiedOn>2026-06-01T14:44:29.9195419-04:00</ModifiedOn>
      <Quantity>5</Quantity>
      <TaxAmount>10</TaxAmount>
      <TaxRateId>1</TaxRateId>
      <TaxRatePercent>1</TaxRatePercent>
      <TaxableAmount>9</TaxableAmount>
      <TemplateId>1</TemplateId>
      <UnitPrice>6</UnitPrice>
    </InvoiceLineDto>
  </Lines>
  <LinkedAuditIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LinkedAuditIds>
  <ModifiedByUserId>1</ModifiedByUserId>
  <ModifiedOn>2026-06-01T14:44:29.9195419-04:00</ModifiedOn>
  <NotesInternal>sample string 23</NotesInternal>
  <NotesPublic>sample string 24</NotesPublic>
  <PaymentTermsDays>1</PaymentTermsDays>
  <Payments>
    <InvoicePaymentDto>
      <Amount>4</Amount>
      <CreatedByUserId>8</CreatedByUserId>
      <CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn>
      <CurrencyCode>sample string 5</CurrencyCode>
      <ExchangeRateToInvoice>1</ExchangeRateToInvoice>
      <InvoiceId>2</InvoiceId>
      <InvoicePaymentId>1</InvoicePaymentId>
      <IsDeleted>true</IsDeleted>
      <Notes>sample string 7</Notes>
      <PaymentDate>2026-06-01T14:44:29.9195419-04:00</PaymentDate>
      <PaymentMethod>Cash</PaymentMethod>
      <ReferenceNumber>sample string 6</ReferenceNumber>
    </InvoicePaymentDto>
    <InvoicePaymentDto>
      <Amount>4</Amount>
      <CreatedByUserId>8</CreatedByUserId>
      <CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn>
      <CurrencyCode>sample string 5</CurrencyCode>
      <ExchangeRateToInvoice>1</ExchangeRateToInvoice>
      <InvoiceId>2</InvoiceId>
      <InvoicePaymentId>1</InvoicePaymentId>
      <IsDeleted>true</IsDeleted>
      <Notes>sample string 7</Notes>
      <PaymentDate>2026-06-01T14:44:29.9195419-04:00</PaymentDate>
      <PaymentMethod>Cash</PaymentMethod>
      <ReferenceNumber>sample string 6</ReferenceNumber>
    </InvoicePaymentDto>
  </Payments>
  <ReferenceNumber>sample string 22</ReferenceNumber>
  <ShippingAmount>18</ShippingAmount>
  <SourceType>64</SourceType>
  <SubtotalAmount>15</SubtotalAmount>
  <TaxAmount>17</TaxAmount>
  <TaxRatePercent>1</TaxRatePercent>
  <TermsAndConditions>sample string 25</TermsAndConditions>
  <TotalAmount>19</TotalAmount>
</InvoiceDto>

multipart/form-data

Sample:
<InvoiceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Li.CQATS.Audit.Library.Invoices"><AmountOutstanding>21</AmountOutstanding><AmountPaid>20</AmountPaid><AuditLinks><InvoiceAuditLinkDto><AmountAllocated>1</AmountAllocated><AuditId>3</AuditId><CreatedByUserId>5</CreatedByUserId><CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn><InvoiceAuditLinkId>1</InvoiceAuditLinkId><InvoiceId>2</InvoiceId></InvoiceAuditLinkDto><InvoiceAuditLinkDto><AmountAllocated>1</AmountAllocated><AuditId>3</AuditId><CreatedByUserId>5</CreatedByUserId><CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn><InvoiceAuditLinkId>1</InvoiceAuditLinkId><InvoiceId>2</InvoiceId></InvoiceAuditLinkDto></AuditLinks><AuditReferences><InvoiceAuditReferenceDto><AuditId>1</AuditId><AuditName>sample string 2</AuditName><CompletedOn>2026-06-01T14:44:29.9195419-04:00</CompletedOn><LocationName>sample string 3</LocationName></InvoiceAuditReferenceDto><InvoiceAuditReferenceDto><AuditId>1</AuditId><AuditName>sample string 2</AuditName><CompletedOn>2026-06-01T14:44:29.9195419-04:00</CompletedOn><LocationName>sample string 3</LocationName></InvoiceAuditReferenceDto></AuditReferences><BillingAddress>sample string 6</BillingAddress><CompanyId>2</CompanyId><CompanyName>sample string 30</CompanyName><CreatedByUserId>28</CreatedByUserId><CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn><CurrencyCode>sample string 14</CurrencyCode><CustomerEmail>sample string 5</CustomerEmail><CustomerId>3</CustomerId><CustomerName>sample string 4</CustomerName><DiscountAmount>16</DiscountAmount><DueDate>2026-06-01T14:44:29.9195419-04:00</DueDate><InvoiceDate>2026-06-01T14:44:29.9195419-04:00</InvoiceDate><InvoiceId>1</InvoiceId><InvoiceNumber>sample string 7</InvoiceNumber><InvoiceNumberDisplay>sample string 9</InvoiceNumberDisplay><InvoiceNumberInt>8</InvoiceNumberInt><InvoiceStatus>64</InvoiceStatus><InvoiceType>64</InvoiceType><IsDeleted>true</IsDeleted><LastEmailSentOn>2026-06-01T14:44:29.9195419-04:00</LastEmailSentOn><LastEmailSentTo>sample string 26</LastEmailSentTo><Lines><InvoiceLineDto><AuditId>1</AuditId><CreatedByUserId>13</CreatedByUserId><CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn><Description>sample string 4</Description><DiscountAmount>8</DiscountAmount><InvoiceId>2</InvoiceId><InvoiceLineId>1</InvoiceLineId><IsDeleted>true</IsDeleted><LineNumber>3</LineNumber><LineSubtotal>7</LineSubtotal><LineTotal>11</LineTotal><LineType>Unknown</LineType><LocationId>1</LocationId><ModifiedByUserId>1</ModifiedByUserId><ModifiedOn>2026-06-01T14:44:29.9195419-04:00</ModifiedOn><Quantity>5</Quantity><TaxAmount>10</TaxAmount><TaxRateId>1</TaxRateId><TaxRatePercent>1</TaxRatePercent><TaxableAmount>9</TaxableAmount><TemplateId>1</TemplateId><UnitPrice>6</UnitPrice></InvoiceLineDto><InvoiceLineDto><AuditId>1</AuditId><CreatedByUserId>13</CreatedByUserId><CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn><Description>sample string 4</Description><DiscountAmount>8</DiscountAmount><InvoiceId>2</InvoiceId><InvoiceLineId>1</InvoiceLineId><IsDeleted>true</IsDeleted><LineNumber>3</LineNumber><LineSubtotal>7</LineSubtotal><LineTotal>11</LineTotal><LineType>Unknown</LineType><LocationId>1</LocationId><ModifiedByUserId>1</ModifiedByUserId><ModifiedOn>2026-06-01T14:44:29.9195419-04:00</ModifiedOn><Quantity>5</Quantity><TaxAmount>10</TaxAmount><TaxRateId>1</TaxRateId><TaxRatePercent>1</TaxRatePercent><TaxableAmount>9</TaxableAmount><TemplateId>1</TemplateId><UnitPrice>6</UnitPrice></InvoiceLineDto></Lines><LinkedAuditIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:int>1</d2p1:int><d2p1:int>2</d2p1:int></LinkedAuditIds><ModifiedByUserId>1</ModifiedByUserId><ModifiedOn>2026-06-01T14:44:29.9195419-04:00</ModifiedOn><NotesInternal>sample string 23</NotesInternal><NotesPublic>sample string 24</NotesPublic><PaymentTermsDays>1</PaymentTermsDays><Payments><InvoicePaymentDto><Amount>4</Amount><CreatedByUserId>8</CreatedByUserId><CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn><CurrencyCode>sample string 5</CurrencyCode><ExchangeRateToInvoice>1</ExchangeRateToInvoice><InvoiceId>2</InvoiceId><InvoicePaymentId>1</InvoicePaymentId><IsDeleted>true</IsDeleted><Notes>sample string 7</Notes><PaymentDate>2026-06-01T14:44:29.9195419-04:00</PaymentDate><PaymentMethod>Cash</PaymentMethod><ReferenceNumber>sample string 6</ReferenceNumber></InvoicePaymentDto><InvoicePaymentDto><Amount>4</Amount><CreatedByUserId>8</CreatedByUserId><CreatedOn>2026-06-01T14:44:29.9195419-04:00</CreatedOn><CurrencyCode>sample string 5</CurrencyCode><ExchangeRateToInvoice>1</ExchangeRateToInvoice><InvoiceId>2</InvoiceId><InvoicePaymentId>1</InvoicePaymentId><IsDeleted>true</IsDeleted><Notes>sample string 7</Notes><PaymentDate>2026-06-01T14:44:29.9195419-04:00</PaymentDate><PaymentMethod>Cash</PaymentMethod><ReferenceNumber>sample string 6</ReferenceNumber></InvoicePaymentDto></Payments><ReferenceNumber>sample string 22</ReferenceNumber><ShippingAmount>18</ShippingAmount><SourceType>64</SourceType><SubtotalAmount>15</SubtotalAmount><TaxAmount>17</TaxAmount><TaxRatePercent>1</TaxRatePercent><TermsAndConditions>sample string 25</TermsAndConditions><TotalAmount>19</TotalAmount></InvoiceDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.