paymentterms_Update

<< Back to index

Update/insert the specified payment terms.
Parameters: paymentterms: Array of payment term objects.

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

Request:

POST /amscentrademo1/system/service/module/soap/api HTTP/1.1
Host: demo2.centra.com
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.centra.com/webservices/Paymentterms_Update"

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.centra.com/webservices/">
  <SOAP-ENV:Body>
    <ns1:paymentterms_Update>
      <ns1:login>
        <ns1:username>demo</ns1:username>
        <ns1:password>demo</ns1:password>
      </ns1:login>
      <ns1:paymentterms>
        <ns1:paymentterms>
          <ns1:id>string</ns1:id>
          <ns1:name>string</ns1:name>
          <ns1:description>string</ns1:description>
          <ns1:duedays>string</ns1:duedays>
        </ns1:paymentterms>
      </ns1:paymentterms>
    </ns1:paymentterms_Update>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response:

HTTP/1.1 200 OK
Server: nginx
Date: Mon, 27 Sep 2021 14:14:03 GMT
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
X-Centra-Request-ID: 1_5e26330bb70609c2653f61235afae88c
X-Correlation-ID: centra_1_5e26330bb70609c2653f61235afae88c
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://demo2.centracdn.net/ 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

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.centra.com/webservices/">
  <SOAP-ENV:Body>
    <ns1:result/>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>