UpdateInvoice

This function allows you to update invoices.

Tags: UpdateInvoice, UpdateInvoice, UpdateInvoiceIsExported, UpdateInvoiceTitle, UpdateInvoicePeriodFrom, UpdateInvoicePeriodTo, UpdateInvoiceNumber, UpdateInvoiceResponse, UpdateInvoiceResult

Request XML

POST /xxx/Automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/UpdateInvoice"

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateInvoice xmlns="http://ongoingsystems.se/Automation">
      <UserName>string</UserName>
      <Password>string</Password>
      <UpdateInvoice>
        <InvoiceId>int</InvoiceId>
        <UpdateInvoiceIsExported>
          <IsExported>boolean</IsExported>
        </UpdateInvoiceIsExported>
        <UpdateInvoiceTitle>
          <InvoiceTitle>string</InvoiceTitle>
        </UpdateInvoiceTitle>
        <UpdateInvoicePeriodFrom>
          <InvoicePeriodFrom>dateTime</InvoicePeriodFrom>
        </UpdateInvoicePeriodFrom>
        <UpdateInvoicePeriodTo>
          <InvoicePeriodTo>dateTime</InvoicePeriodTo>
        </UpdateInvoicePeriodTo>
        <UpdateInvoiceNumber>
          <InvoiceNumber>string</InvoiceNumber>
        </UpdateInvoiceNumber>
      </UpdateInvoice>
    </UpdateInvoice>
  </soap:Body>
</soap:Envelope>

Request specification

UpdateInvoice
UserName string(50) Req. Your username
Password string(50) Req. Your password
UpdateInvoice UpdateInvoice Req.
UpdateInvoice
InvoiceId int Ongoing WMS internal id of the invoice you wish to update.
UpdateInvoiceIsExported UpdateInvoiceIsExported An element of type UpdateInvoiceIsExported.
UpdateInvoiceTitle UpdateInvoiceTitle An element of type UpdateInvoiceTitle.
UpdateInvoicePeriodFrom UpdateInvoicePeriodFrom An element of type UpdateInvoicePeriodFrom.
UpdateInvoicePeriodTo UpdateInvoicePeriodTo An element of type UpdateInvoicePeriodTo.
UpdateInvoiceNumber UpdateInvoiceNumber An element of type UpdateInvoiceNumber.
UpdateInvoiceIsExported
IsExported boolean Whether or not the invoice should be marked as exported.
UpdateInvoiceTitle
InvoiceTitle string(500) The new title of the invoice
UpdateInvoicePeriodFrom
InvoicePeriodFrom dateTime The end date of the invoice period
UpdateInvoicePeriodTo
InvoicePeriodTo dateTime The start date of the invoice period
UpdateInvoiceNumber
InvoiceNumber string

Response XML

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateInvoiceResponse xmlns="http://ongoingsystems.se/Automation">
      <UpdateInvoiceResult>
        <Success>boolean</Success>
        <Message>string</Message>
        <InvoiceId>int</InvoiceId>
      </UpdateInvoiceResult>
    </UpdateInvoiceResponse>
  </soap:Body>
</soap:Envelope>

Response specification

UpdateInvoiceResponse
UpdateInvoiceResult UpdateInvoiceResult
UpdateInvoiceResult
Success boolean True if successful, false otherwise.
Message string Error message, if the call was unsuccessful.
InvoiceId int The invoice id which was updated.