Importing Stock into Mirakl
This task will update the stock levels on existing products in your Mirakl account, based on data supplied in an XML file. It does not support creating new products in Mirakl.
You can set different stock levels across multiple warehouses by providing the same SKU more than once, along with different warehouse codes. You can also delete the stock for a SKU in a specific warehouse, by setting the mode to Delete.
If you don't specify a warehouse code, the global stock level will be updated in Mirakl. This will automatically delete any stock in specific warehouses.
Settings
Mirakl Connection
Required
The Mirakl connection to use. See the Connecting to Mirakl article if you require more information on how to create/manage connections.
Fail File
Required
The name of the file to write failed records to. The data will be output in the same XML format as the Input File. A sample can be found below.
Input File
Required
The name of the file containing the data you want to import into Mirakl. The data must be in XML format, a sample of which is shown below.
Fail File
Required
The name of the file to write successfully imported records to. The data will be output in the same XML format as the Input File. A sample can be found below.
Prevent Reprocessing
Required
Set to 'True' to prevent the same record being processed more than once. This works based on the value of the ExternalId element provided within the Input File.
Shop ID
Optional
If your user has access to multiple shops, use this setting to specify which shop the task should use. If not specified, your default shop will be used.
Timeout
Optional
The length of time to wait for responses from the Mirakl API. If not specified, the timeout will default to 100 seconds.
Zynk Settings
Examples
Sample output file:
<?xml version="1.0" encoding="utf-8"?>
<Stocks xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Stock>
<OfferSku>PROD0001</OfferSku>
<Quantity>10</Quantity>
<WarehouseCode>MAIN</WarehouseCode>
<Mode>Update</Mode>
</Stock>
<Stock>
<OfferSku>PROD0001</OfferSku>
<Quantity>4</Quantity>
<WarehouseCode>SHOP</WarehouseCode>
<Mode>Update</Mode>
</Stock>
<Stock>
<OfferSku>PROD0002</OfferSku>
<Quantity>5</Quantity>
<Mode>Update</Mode>
</Stock>
<Stock>
<OfferSku>PROD0003</OfferSku>
<WarehouseCode>MAIN</WarehouseCode>
<Mode>Delete</Mode>
</Stock>
</Stocks>