pricelists_Update

<< Back to index

Update/insert the specified pricelists.
Parameters: pricelists: Array of pricelist objects.

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

Request:

POST /amsdocs/system/service/module/soap/api HTTP/1.1
Host: demo-docs.centra.com
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.centra.com/webservices/Pricelists_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:pricelists_Update>
      <ns1:login>
        <ns1:username>demo</ns1:username>
        <ns1:password>demo</ns1:password>
      </ns1:login>
      <ns1:pricelists>
        <ns1:pricelist>
          <ns1:id>string</ns1:id>
          <ns1:store>string</ns1:store>
          <ns1:type>string</ns1:type>
          <ns1:currency>string</ns1:currency>
          <ns1:description>string</ns1:description>
          <ns1:items>
            <ns1:product>
              <ns1:id>string</ns1:id>
              <ns1:price>string</ns1:price>
              <ns1:priceb>string</ns1:priceb>
              <ns1:alteredprice>string</ns1:alteredprice>
              <ns1:alteredpriceb>string</ns1:alteredpriceb>
              <ns1:variation>
                <ns1:id>string</ns1:id>
                <ns1:price>string</ns1:price>
                <ns1:priceb>string</ns1:priceb>
                <ns1:alteredprice>string</ns1:alteredprice>
                <ns1:alteredpriceb>string</ns1:alteredpriceb>
              </ns1:variation>
            </ns1:product>
          </ns1:items>
        </ns1:pricelist>
      </ns1:pricelists>
    </ns1:pricelists_Update>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response:

HTTP/1.1 200 OK
Date: Fri, 26 Apr 2024 18:20:19 GMT
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
X-Centra-Request-ID: 1_45ca70caf9ec5bc33453c780afd4df1c
X-Correlation-ID: centra_1_45ca70caf9ec5bc33453c780afd4df1c
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://demo-docs.centracdn.net/ https://maps.gstatic.com/ https://www.googletagmanager.com/ https://www.gstatic.com/ https://www.google-analytics.com/; connect-src 'self' https://centra.systems/ https://www.google-analytics.com/ https://www.gstatic.com/charts/ https://*.ingest.sentry.io/; 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://www.gstatic.com/charts/; frame-src 'none'; font-src 'self'; object-src 'none'; report-uri https://centra.report-uri.com/r/d/csp/reportOnly;
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: centrasess=d4dd693bbb73e1010771573d76ad57d5; expires=Sat, 27-Apr-2024 18:20:19 GMT; Max-Age=86400; path=/amsdocs/; secure; HttpOnly
X-mem: 4.0 MB
X-max-mem: 4.0 MB
Strict-Transport-Security: max-age=63072000
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block

<?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>