Ongoing WMS logo

Ongoing WMS Developer

UpdateInvoice

This function allows you to update invoices.

Tags: UpdateInvoice, UpdateInvoice, UpdateInvoiceResult

Request XML

POST /xxx/Automation.asmx HTTP/1.1
Host: localhost
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 str(50) Req. Your username
Password str(50) Req. Your password
UpdateInvoice object Req. An element UpdateInvoice.
UpdateInvoice
InvoiceId int Ongoing WMS internal id of the invoice you wish to update.
UpdateInvoiceIsExported object
> IsExported bool Whether or not the invoice should be marked as exported.
UpdateInvoiceTitle object
> InvoiceTitle str(500) The new title of the invoice
UpdateInvoicePeriodFrom object
> InvoicePeriodFrom dateTime The start date of the invoice period
UpdateInvoicePeriodTo object
> InvoicePeriodTo dateTime The end date of the invoice period

Response XML

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
        <InvoiceIds>
          <int>int</int>
          <int>int</int>
        </InvoiceIds>
      </UpdateInvoiceResult>
    </UpdateInvoiceResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

UpdateInvoiceResult
Success bool True if successful, false otherwise.
Message str(*) Error message, if the call was unsuccessful.
InvoiceId int The invoice id which was updated.