Products
/- Mirakl Platform
- Rest Seller APIs
- STO01 - Import a stock file
OF01 - Import a file to create, update or delete offers
OF04 - Get information and statistics about offer imports
OF02 - Get information and statistics about an offer import
OF03 - Get the error report file for an offer import
OF21 - List offers of a shop
OF24 - Create, update, or delete offers
OF22 - Get information about an offer
OF52 - Export offers CSV or JSON file asynchronously
OF53 - Poll the status of an asynchronous offer export (OF52)
OF54 - Retrieve offer files once asynchronous offer export is complete (OF52)
P11 - List offers for each given product
PRI01 - Import a price file
PRI02 - Get information and statistics about an offer pricing import
PRI03 - Get the error report for a price import in CSV format
STO02 - Get information and statistics about an offer stock import
STO03 - Get the error report for a stock import in CSV format
OF26 - Get the quantity of stock available for an offer.
OF51 - Get offers CSV file
STO01 - Import a stock fi...
Description
Import a .csv file to update stock for offers, either globally or per warehouse.
Returns an import identifier to track the status of the import and retrieve an error report if applicable.
Call Frequency
Recommended usage: Every 5 minutes when stock needs updating
Maximum usage: Once per minute
Read More
Security
Shop-API-Key(Required scopes: ROLE_SHOP_ADMINROLE_PARTNER_OFFER_STOCK_WRITE)
Import CSV file to upload. Use multipart/form-data with name file.
Csv format:
"offer-sku";"quantity";"warehouse-code";"update-delete"- 1 line = 1 offer quantity
- List quantities per warehouse for the same offer together
- If warehouse-code is not provided, the quantity provided for the offer-sku will be considered as a global one
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/offers/stock/imports
curl -i -X POST \
https://your-instance.mirakl.net/api/offers/stock/imports \
-H 'Content-Type: multipart/form-data' \
-F 'file=@path/to/file'