products_Update
Update/insert the specified products.
Parameters: products: Array of product
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/Products_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:products_Update> <ns1:login> <ns1:username>demo</ns1:username> <ns1:password>demo</ns1:password> </ns1:login> <ns1:products> <ns1:product> <ns1:id>string</ns1:id> <ns1:status>string</ns1:status> <ns1:sku>string</ns1:sku> <ns1:description>string</ns1:description> <ns1:folder> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:folder> <ns1:brand> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:brand> <ns1:collection> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:collection> <ns1:harmcode> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:harmcode> <ns1:countryoforigin>string</ns1:countryoforigin> <ns1:weight> <ns1:value>string</ns1:value> <ns1:unit>string</ns1:unit> </ns1:weight> <ns1:variations> <ns1:variation> <ns1:id>string</ns1:id> <ns1:stockid>string</ns1:stockid> <ns1:description>string</ns1:description> <ns1:sku>string</ns1:sku> <ns1:status>string</ns1:status> <ns1:sizetable> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:sizetable> <ns1:sizes> <ns1:size> <ns1:id>string</ns1:id> <ns1:qty>string</ns1:qty> <ns1:preorder>string</ns1:preorder> <ns1:description>string</ns1:description> <ns1:comment>string</ns1:comment> <ns1:sku>string</ns1:sku> <ns1:ean>string</ns1:ean> <ns1:warehouseitems> <ns1:warehouse> <ns1:id>string</ns1:id> <ns1:qty>string</ns1:qty> <ns1:cog>string</ns1:cog> </ns1:warehouse> </ns1:warehouseitems> </ns1:size> </ns1:sizes> <ns1:displays> <ns1:display> <ns1:store>string</ns1:store> <ns1:categories> <ns1:category> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:category> </ns1:categories> <ns1:categoriesremove> <ns1:category> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:category> </ns1:categoriesremove> <ns1:markets> <ns1:market> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:market> </ns1:markets> <ns1:marketsremove> <ns1:market> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:market> </ns1:marketsremove> <ns1:minimumorderamount>string</ns1:minimumorderamount> <ns1:orderdenominator>string</ns1:orderdenominator> </ns1:display> </ns1:displays> <ns1:cog>string</ns1:cog> </ns1:variation> </ns1:variations> <ns1:media> <ns1:image> <ns1:id>string</ns1:id> <ns1:image>string</ns1:image> <ns1:variation> <ns1:id>string</ns1:id> <ns1:description>string</ns1:description> </ns1:variation> </ns1:image> </ns1:media> <ns1:metadata> <ns1:storemeta> <ns1:shortdescription>string</ns1:shortdescription> <ns1:description>string</ns1:description> <ns1:metatitle>string</ns1:metatitle> <ns1:metakeywords>string</ns1:metakeywords> <ns1:metadescription>string</ns1:metadescription> <ns1:taxgroup>string</ns1:taxgroup> <ns1:store>string</ns1:store> </ns1:storemeta> </ns1:metadata> <ns1:comment>string</ns1:comment> </ns1:product> </ns1:products> </ns1:products_Update> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Response:
HTTP/1.1 200 OK Date: Sat, 23 Nov 2024 17:12:10 GMT Content-Type: text/xml; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive X-Centra-Request-ID: 1_02b9fcb8c3513feca4906be2035eedec X-Correlation-ID: centra_1_02b9fcb8c3513feca4906be2035eedec 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=ee78cc07815ed4fafa018a5035320116; expires=Sun, 24 Nov 2024 17:12:10 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>