Quick Stock Update

Webservice URL : https://sws.spartoo.net/mp/xml_maj_stock.php

This webservice allows you to update the stock of a product without going through a larger product webservice import that is more complicated and longer.
It updates the stock in real time, as soon as the stock is modified on your website.

You are not required to use this webservice, the stock can also be updated with the product import webservice.
To use this webservice, you must have filled in the field "size_reference" when you created the product.

List of parameters



Parameter Description
partner Must contain your unique identifier code:
reference_partenaire Reference of the product to be updated. Corresponds to the product import webservice field reference_partenaire.
products_size_reference Reference of the size to be updated. Corresponds to the product import webservice field size_reference
products_quantity New stock quantity


XML format returned


<root>
	<errors>int</errors>
</root>


List of webservice error codes


Code Description
1 No error with parameters
-1 The parameter partenaire has not been set up or it is empty
-2 The parameter partenaire does not exist
-12 The parameter reference_partenaire has not been set up or it is empty
-13 The parameter products_size_reference has not been set up or it is empty
-14 Cannot find product in our database
-16 Impossible to update the stock to the quantity requested
-18 The stock is the same as database and it has not been updated
-20 Unable to update stock. Size is no longer valid for the product, the stock for this product and this size is 0.
-428 Your account has been deactivated. You will no longer have access to our online services.
-429 You have made too many online requests during this 1-hour time period.