invoices_Update

<< Back to index

Update/insert the specified invoices.
Parameters: invoices: Array of invoice objects.

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

Request:

POST /amsdemo1337/system/service/module/navision/api HTTP/1.1
Host: demo1337.centraqa.com
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.silkvms.com/webservices/Invoices_Update"

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.silkvms.com/webservices/">
  <SOAP-ENV:Body>
    <ns1:invoices_Update>
      <ns1:invoices>
        <ns1:invoice>
          <ns1:id>string</ns1:id>
          <ns1:store>string</ns1:store>
          <ns1:status>string</ns1:status>
          <ns1:serialno>string</ns1:serialno>
          <ns1:documenttype>string</ns1:documenttype>
          <ns1:type>string</ns1:type>
          <ns1:currency>string</ns1:currency>
          <ns1:currencyrate>string</ns1:currencyrate>
          <ns1:basecurrency>string</ns1:basecurrency>
          <ns1:total>string</ns1:total>
          <ns1:vat>string</ns1:vat>
          <ns1:totalpaid>string</ns1:totalpaid>
          <ns1:invoicedate>string</ns1:invoicedate>
          <ns1:orderdate>string</ns1:orderdate>
          <ns1:duedate>string</ns1:duedate>
          <ns1:buyer>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:buyer>
          <ns1:account>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:account>
          <ns1:order>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:order>
          <ns1:shipment>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:shipment>
          <ns1:refund>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:refund>
          <ns1:paymentterms>string</ns1:paymentterms>
          <ns1:shippingterms>string</ns1:shippingterms>
          <ns1:internalinformation>string</ns1:internalinformation>
          <ns1:ponumber>string</ns1:ponumber>
          <ns1:billingaddress>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
            <ns1:company>string</ns1:company>
            <ns1:attn>string</ns1:attn>
            <ns1:firstname>string</ns1:firstname>
            <ns1:lastname>string</ns1:lastname>
            <ns1:address1>string</ns1:address1>
            <ns1:address2>string</ns1:address2>
            <ns1:city>string</ns1:city>
            <ns1:state>string</ns1:state>
            <ns1:zipcode>string</ns1:zipcode>
            <ns1:country>string</ns1:country>
            <ns1:email>string</ns1:email>
            <ns1:telephone>string</ns1:telephone>
            <ns1:fax>string</ns1:fax>
            <ns1:vat>string</ns1:vat>
            <ns1:url>string</ns1:url>
            <ns1:companyregistrationid>string</ns1:companyregistrationid>
          </ns1:billingaddress>
          <ns1:shippingaddress>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
            <ns1:company>string</ns1:company>
            <ns1:attn>string</ns1:attn>
            <ns1:firstname>string</ns1:firstname>
            <ns1:lastname>string</ns1:lastname>
            <ns1:address1>string</ns1:address1>
            <ns1:address2>string</ns1:address2>
            <ns1:city>string</ns1:city>
            <ns1:state>string</ns1:state>
            <ns1:zipcode>string</ns1:zipcode>
            <ns1:country>string</ns1:country>
            <ns1:email>string</ns1:email>
            <ns1:telephone>string</ns1:telephone>
            <ns1:fax>string</ns1:fax>
            <ns1:vat>string</ns1:vat>
            <ns1:url>string</ns1:url>
            <ns1:companyregistrationid>string</ns1:companyregistrationid>
          </ns1:shippingaddress>
          <ns1:items>
            <ns1:invoiceitem>
              <ns1:itemid>string</ns1:itemid>
              <ns1:qty>string</ns1:qty>
              <ns1:price>string</ns1:price>
              <ns1:tax>string</ns1:tax>
              <ns1:subtotal>string</ns1:subtotal>
              <ns1:description>string</ns1:description>
              <ns1:product>
                <ns1:id>string</ns1:id>
                <ns1:description>string</ns1:description>
              </ns1:product>
              <ns1:variation>
                <ns1:id>string</ns1:id>
                <ns1:description>string</ns1:description>
              </ns1:variation>
              <ns1:size>
                <ns1:id>string</ns1:id>
                <ns1:description>string</ns1:description>
              </ns1:size>
              <ns1:discount>string</ns1:discount>
              <ns1:sku>string</ns1:sku>
            </ns1:invoiceitem>
            <ns1:additional>
              <ns1:subtotal>string</ns1:subtotal>
              <ns1:description>string</ns1:description>
              <ns1:key>string</ns1:key>
              <ns1:id>string</ns1:id>
            </ns1:additional>
          </ns1:items>
          <ns1:locked>string</ns1:locked>
        </ns1:invoice>
      </ns1:invoices>
    </ns1:invoices_Update>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response:

HTTP/1.1 200 OK
Date: Sun, 05 May 2024 23:36:16 GMT
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
x-centra-request-id: 1_6953f0939097f8b1ba8a611448a5352d
x-correlation-id: centra_1_6953f0939097f8b1ba8a611448a5352d
expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
pragma: no-cache
content-security-policy-report-only: default-src 'self' https://centra-pdf-generator.s3.eu-west-1.amazonaws.com/; style-src 'self' 'unsafe-inline' https://www.gstatic.com/charts/; img-src 'self' data: https://demo1337.centraqa.com/ https://maps.gstatic.com/ https://www.googletagmanager.com/ https://www.gstatic.com/ https://script.hotjar.com/ https://www.google-analytics.com/; connect-src 'self' https://centra.systems/ https://www.google-analytics.com/ https://*.hotjar.com:* https://vc.hotjar.io:* https://surveystats.hotjar.io wss://*.hotjar.com https://www.gstatic.com/charts/; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://centra.systems/ https://www.googletagmanager.com/gtm.js https://www.google-analytics.com/analytics.js https://maps.googleapis.com/ https://static.hotjar.com https://script.hotjar.com 'unsafe-inline' https://www.gstatic.com/charts/; frame-src https://vars.hotjar.com; font-src https://script.hotjar.com; object-src 'none'; report-uri https://centra.report-uri.com/r/d/csp/reportOnly;
x-mem: 4.0 MB
x-max-mem: 4.0 MB
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=zSzmwrFqThAB4P4pTtQL1SazFMXwLV8vM1mF0WbENa6IAYWt3t5q8jBhCHINcGmHa3IrJ2U7q4qK1upsOyR%2FZPL%2FJQl2CBgt4aQpnWnAbdHGAcYmDYL7Y8OA%2BSZ7bR%2FzjBixZUW1cyc%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 87f48d3e4a9d5708-DUB
alt-svc: h3=":443"; ma=86400

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
    <invoicesUpdateResponse>OK</invoicesUpdateResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>