accounts_Update

<< Back to index

Update/insert the specified accounts.
Parameters: accounts: Array of account 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/Accounts_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:accounts_Update>
      <ns1:login>
        <ns1:username>demo</ns1:username>
        <ns1:password>demo</ns1:password>
      </ns1:login>
      <ns1:accounts>
        <ns1:account>
          <ns1:id>string</ns1:id>
          <ns1:type>string</ns1:type>
          <ns1:status>string</ns1:status>
          <ns1:description>string</ns1:description>
          <ns1:other>string</ns1:other>
          <ns1:discount>string</ns1:discount>
          <ns1:market>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:market>
          <ns1:pricelist>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:pricelist>
          <ns1:internalinformation>string</ns1:internalinformation>
          <ns1:creditlimit>string</ns1:creditlimit>
          <ns1:salesrep>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:salesrep>
          <ns1:paymentterms>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:paymentterms>
          <ns1:shippingterms>
            <ns1:id>string</ns1:id>
            <ns1:description>string</ns1:description>
          </ns1:shippingterms>
          <ns1:accountaddress>
            <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:ecvatno>string</ns1:ecvatno>
          </ns1:accountaddress>
          <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:ecvatno>string</ns1:ecvatno>
          </ns1:shippingaddress>
          <ns1:invoiceaddress>
            <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:ecvatno>string</ns1:ecvatno>
          </ns1:invoiceaddress>
          <ns1:carrierinformation>
            <ns1:carrier>string</ns1:carrier>
            <ns1:service>string</ns1:service>
            <ns1:account>string</ns1:account>
            <ns1:taxid>string</ns1:taxid>
            <ns1:tracking>string</ns1:tracking>
            <ns1:packages>int</ns1:packages>
          </ns1:carrierinformation>
          <ns1:buyers>
            <ns1:buyer>
              <ns1:id>string</ns1:id>
              <ns1:store>int</ns1:store>
              <ns1:status>string</ns1:status>
              <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:market>
                <ns1:id>string</ns1:id>
                <ns1:description>string</ns1:description>
              </ns1:market>
              <ns1:pricelist>
                <ns1:id>string</ns1:id>
                <ns1:description>string</ns1:description>
              </ns1:pricelist>
              <ns1:password>string</ns1:password>
            </ns1:buyer>
          </ns1:buyers>
          <ns1:addresses>
            <ns1:address>
              <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:ecvatno>string</ns1:ecvatno>
            </ns1:address>
          </ns1:addresses>
          <ns1:additionals>
            <ns1:additional>
              <ns1:key>string</ns1:key>
              <ns1:value>string</ns1:value>
            </ns1:additional>
          </ns1:additionals>
        </ns1:account>
      </ns1:accounts>
    </ns1:accounts_Update>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response:

HTTP/1.1 200 OK
Server: nginx
Date: Mon, 27 Sep 2021 12:18:09 GMT
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
X-Centra-Request-ID: 1_bff95a0b5d930ffc904e696ebe2c5a22
X-Correlation-ID: centra_1_bff95a0b5d930ffc904e696ebe2c5a22
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>