salesreps_Update

<< Back to index

Update/insert the specified sales reps.
Parameters: salesreps: Array of sales reps 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/soap HTTP/1.1
Host: demo1337.centraqa.com
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.silkvms.com/webservices/Salesreps_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:salesreps_Update>
      <ns1:login>
        <ns1:username>demo</ns1:username>
        <ns1:password>demo</ns1:password>
      </ns1:login>
      <ns1:salesreps>
        <ns1:salesrep>
          <ns1:id>string</ns1:id>
          <ns1:email>string</ns1:email>
          <ns1:name>string</ns1:name>
          <ns1:percent>string</ns1:percent>
          <ns1:mastersalesrep>
            <ns1:salesrep>
              <ns1:id>string</ns1:id>
              <ns1:percent>string</ns1:percent>
            </ns1:salesrep>
          </ns1:mastersalesrep>
        </ns1:salesrep>
      </ns1:salesreps>
    </ns1:salesreps_Update>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response:

HTTP/1.1 200 OK
Date: Thu, 02 May 2024 15:38:44 GMT
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
x-centra-request-id: 1_705ee9b1c832c71ef16a46e921078dd8
x-correlation-id: centra_1_705ee9b1c832c71ef16a46e921078dd8
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=ttVb7Y%2Bz760PyHv8ZKJv8nK0oxEEPS2o%2BS22W7K%2Fqduvol%2BRNp4leV3qp8%2Fsn91RDF5KL0w6nXtdieKQuqY9GLwpO%2FwvOo%2BgXJrvoUaefAQjvUqN3A9gMsIimXEf3we%2Bpa8WT6%2Bp6t8%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 87d9199c0b489593-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>
    <salesrepsUpdateResponse>OK</salesrepsUpdateResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>