Asynchronous product import

Webservice URL : https://sws.spartoo.se/mp/xml_import_products_async.php

This webservice should be used in the same way as xml_import_products
The only difference with this webservice is that it integrates the products asynchronously.
When you click on this webservice, it returns a URL.
If you click on this URL, you will get the status of the file integration.

List of Parameters

The settings of this webservice must be registered in POST

Settings Description
partner Must contain your unique code :
xml XML character string containing the list of elements to be created or updated


Optional settings that can be passed in POST

Settings Description
force_description Set to 1 if you want to force product descriptions to be updated: delete existing descriptions, edit the description of a product with zero stock, etc.
force_overwrite Set to 1 if you want to remove stock errors from the catalogue. Be careful to send the rest of the catalogue without overwriting immediately afterwards.
async Set to 1 if you wish to use the asynchronous method



XML format returned


<root>
	<url>string</url>
	<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

XML response field description


This webservice return you the url to call to get back the webservice responses. If there was an error, it will be printed in a status markup. Otherwise, you will get an xml contening the import result.
This result will be the same format as xml_import_products. Below is the list of statuses returned by the webservice:
Status id Status
1 Fichier pas encore traité
2 Aucune difference trouvé dans le fichier transferé
3 Resultat plus disponible
4 Erreur lors du transfert de fichier