Mirakl solutions are updated through continuous delivery to provide new features, security fixes and bug fixes.
New deployed versions are backward compatible, which guarantees the durability of your integration after a Mirakl solution update, on condition that your integration follows these guidelines:
While most of our APIs support XML format, we strongly advise you to use JSON format, as our newest APIs are only available in JSON format.
Should you decide to validate our APIs output using XSD files, please note that your XSD should take into account the guidelines defined above. Mirakl does not provide XSD files for its APIs and does not offer support for writing XSD files.
Some APIs may return more data than indicated in the documentation. Do not rely on this undocumented data, there is no guarantee about it.
You can authenticate through API by sending your API key in the Authorization
header.
Example:
Authorization: YOUR_API_KEY
All requests must use the HTTPS protocol.
Mirakl API uses standard HTTP return codes.
When making HTTP requests, you can check the success or failure status of your request by using the HTTP Status Codes (i.e. 200
). You must not use the HTTP Status Messages or Reason-Phrases (i.e. OK
), as they are optional and may not be returned in HTTP responses (see RFC9110 for more information).
Our API documentation does not document Reason-Phrases but provides a short contextualized description of HTTP Status Codes.
200
: OK - Request succeeded.201
: Created - Request succeeded and resource created.202
: Accepted - Request accepted for processing.204
: No Content - Request succeeded but does not return any content.400
: Bad Request - Parameter errors or bad method usage. Bad usage of the resource. For example: a required parameter is missing, some parameters use an incorrect format, a data query is not in the expected state.401
: Unauthorized - API call without authentication. Add authentication information or use a valid authentication token.403
: Forbidden - Access to the resource is denied. Current user can not access the resource.404
: Not Found - The resource does not exist. The resource URI or the requested resource do not exist for the current user.405
: Method Not Allowed - The HTTP method (GET, POST, PUT, DELETE) is not allowed for this resource. Refer to the documentation for the list of accepted methods.406
: Not Acceptable - The requested response content type is not available for this resource. Refer to the documentation for the list of correct values of the Accept header for this request.410
: Gone - The resource is permanently gone. The requested resource is no longer available and will not be available again.415
: Unsupported Media Type - The entity content type sent to the server is not supported. Refer to the documentation for the list of correct values of the Content-type header to send data.429
: Too many requests - Rate limits are exceeded. The user has sent too many requests in the last hour. Refer to the documentation for the maximum calls count per hour.500
: Internal Server Error - The server encountered an unexpected error.Mirakl APIs are protected by rate limits. Each API has a dedicated section displaying its rate limit.
If you make too many calls, you might receive an HTTP 429
"Too Many Requests" error. The response will contain a Retry-After
header that specifies the number of seconds to wait before making a new request.
If an API request supports multiple Content-Types, add a Content-Type
header to select the format to use in the request. The API documentation lists the formats an API can consume.
If an API response supports multiple Content-Types, add an Accept
header to select the format accepted in the response. The API documentation lists the formats an API can produce.
array type fields indicate a list of values as URL parameters. You can add more parameter=value
elements to the URL. Refer to the example in the right panel.
Text data is encoded in UTF-8.
If the API returns internationalized data, you can specify the locale
parameter.
The Locale format is usually <ISO-639>_<ISO-3166>
(e.g. "en_US"). There are some exceptions where the Locale format can be <ISO-639>
(e.g. "en"). The locale returned in a response uses this format.
The APIs only accept locales that are equivalent to the languages activated in the back-office.
APIs can use different date formats (compliant with ISO 8601):
YYYY-MM-DDThh:mm:ss[.SSS]±hh:mm
.+00:00
can be replaced by Z
(the zero UTC offset).Z
..000
.YYYY-MM-DDThh:mm:ss[.SSS]
..000
.hh:mm[:ss][.SSS]±hh:mm
. Time only, with timezoneZ
(the zero UTC offset).:00
..000
.In the patterns:
YYYY
: years (four-digit)MM
: months, 01-12 (two-digit)DD
: days, 01-31 (two-digit)T
is a delimiter between the date and timehh
: hours, 00-23 (two-digit)mm
: minutes, 00-59 (two-digit)ss
: seconds, 00-60 (two-digit)SSS
: milliseconds, 000-999 (three-digit)±hh:mm
: refers to an offset from UTCFor GET requests, use URL encoding (for example, 2019-08-29T02:34:00+02:00
becomes 2019-08-29T02%3A34%3A00%2B02%3A00
).
When calling APIs as a shop, a request parameter shop_id
is available. This parameter is useful when a user is associated to multiple shops and should be specified to select the shop to be used by the API.
Some APIs support offset pagination. In this case, you can use the max
and offset
parameters:
max
: The max
parameter is used to indicate the maximum number of items returned per page. This parameter is optional. The default value of this parameter is 10. The maximum value of this parameter is 100.offset
: The offset
parameter is used to indicate the index of the first item (among all the results) in the returned page. This parameter is optional. The default value of this parameter is 0, which means that no offset is applied.With pagination, the URL of the previous and/or next page can be returned in the header's attribute Link
of the response.
When a sort
parameter is available on such an API, it can be used to sort the results.
sort
: The parameter sort
is used to indicate how the results should be sorted. This parameter is optional. The possible values for this parameter are defined in resources. The default value of this parameter is defined in resources.
order
: The parameter order
is used to indicate the sort direction. This parameter is optional. The possible values ​​for this parameter are asc
(default) or desc
.
For better performance and user experience, some APIs support "seek" pagination. This means that you cannot go directly to the N-th page.
Use the optional limit
query parameter to indicate the maximum number of items returned per page. The default value is 10. The maximum value is 100.
If there are more results to return, the response contains a next_page_token
field. Pass this value in the page_token
query parameter to return the next page of results.
The API also returns a previous_page_token
when the result is not the first page. Use it the same way as next_page_token
.
Values of next_page_token
and previous_page_token
contain all required parameters to access next and previous page. When using the page_token
parameter all other parameters are ignored, regardless of the value given to page_token
.
When a sort
parameter is available, it must follow the sort=criterion,direction
format where:
ASC
, DESC
https://your-instance.mirakl.net/
https://your-instance.mirakl.net/api/account
curl -i -X GET \
'https://your-instance.mirakl.net/api/account?shop_id=0'
OK
List of the shop's applicable taxes
The currency of the shop (iso format)
The default billing information of the shop, used for invoicing and reporting purposes
The date of the last modification of the shop. Note: The following statistics fields do not update the last_updated
date:
orders_count
offers_count
evaluations_count
grade
approval_rate
approval_delay
order_messages_response_delay
Shop platform model, current possible values :
MARKETPLACE
DROPSHIP
ONE_CREDITOR
Average time for a shop to answer to an order message (in seconds)
Total count of debited orders (or if Pay on Delivery, accepted) of the shop
List of shop’s producer identifiers per Extended Producer Responsibility (EPR) categories. Only available if the operator setting Activate data collection related to circular economy regulations is enabled.
Recycling policy - only available if the operator setting Activate data collection related to circular economy regulations has been enabled.
All the pair shipping zone / shipping type accepted by the shop
List of additional fields
The list of specific billing information of the shop, used for invoicing and reporting purposes
Applies only when the shop is professional
Shop suspension type, current possible values:
MANUAL
: Shop account has been manually suspended in the back-officePENDING_APPROVAL
: Shop account has been suspended at creationAUTOMATIC_SUSPENSION
: Shop account has been suspended by Mirakl Quality ControlINCOMPLETE_PROFILE
: Shop account is suspended because some mandatory fields are missing in its profile{ "applicable_taxes": [ { … } ], "approval_delay": 33, "approval_rate": 1, "banner": "https://url.mirakl.net/mmp/media/shop-banner/2000", "channels": [ "US" ], "closed_from": "2019-07-31T22:00:00Z", "closed_to": "2019-08-31T21:59:59Z", "contact_informations": { "city": "New York", "civility": "Mr", "country": "USA", "email": "shop@mail.com", "fax": "213-509-6997", "firstname": "John", "lastname": "Doe", "phone": "213-509-6995", "phone_secondary": "213-509-6996", "state": "Manhattan", "street1": "30, Prince Street", "street2": "1st floor", "web_site": "https://www.mirakl.com", "zip_code": "NY 10012" }, "currency_iso_code": "USD", "date_created": "2019-03-25T14:34:03Z", "default_billing_information": { "corporate_information": { … }, "default_language": "en_US", "fiscal_information": { … }, "id": "a83c1170-f8cb-45a1-aa4a-affe809d6c64", "registration_address": { … } }, "description": "Games seller", "domains": [ "PRODUCT" ], "evaluations_count": 3, "free_shipping": false, "grade": 4, "is_professional": true, "kyc": { "reason": "Missing information", "status": "REFUSED" }, "last_updated_date": "2019-03-28T09:28:59Z", "logo": "https://url.mirakl.net/mmp/media/shop-logo/2000", "model": "MARKETPLACE", "offers_count": 234, "order_messages_response_delay": 76, "orders_count": 7, "payment_details": { "paid_balance": -170.06, "payable_balance": -259.2, "pending_balance": 512.84, "reserve_balance": 0, "sub_balances": [ … ] }, "payment_info": { "@type": "ABA", "bank_account_number": "000123456789123", "bank_city": "New York", "bank_name": "Bank of America", "bank_street": "115 W 42nd St", "bank_zip": "NY 10036 US", "bic": "BOFAUS3NXXX", "owner": "John Doe", "routing_number": "789456124" }, "payment_method_mandatory": true, "premium": true, "pro_details": { "corporate_name": "ACME SHOP", "identification_number": "01234567", "tax_identification_number": "XXX-XX-XXXX" }, "producer_identifiers": [ { … }, { … } ], "recycling_policy": "When we deliver your new item, we’ll take your old one away for you. Appliance recycling: this service is available through our home delivery service. Recycling electronic items in-store: if you have an old electronic item, we can safely recycle these items in-store, for free", "return_policy": "Any product return must be the subject of a formal agreement between the Seller and Purchaser. Any product returned without this agreement shall be held on behalf of the Purchaser and shall not give rise to the granting of any credit note. Claims must be received by shop within 8 days of the delivery of the goods. Subsequently to this delay, no claims shall be accepted. Once this delay has expired, should the client not have addressed their claim in writing to shop, the client is deemed to have accepted the product.\r\nWarranties that cover the delivered goods only apply within the framework of their intended use. Defects and damage resulting from natural wear, faulty assembly or maintenance, as well as modification of the products that was not intended or specified by the Seller are excluded from the warranty. Goods must be returned in their original packaging and as new, the cost and risks of returning the goods being borne by the Purchaser. Once the returned goods have been received and inspected, shop shall send the Purchaser a credit note corresponding to the amount of the original invoice, after deduction of any compensation or expenses which arise from any reconditioning work deemed necessary. This sum is credited to the account that the Purchaser has opened with the shop.", "shipping": { "lead_time_to_ship": 2 }, "shipping_country": "USA", "shippings": [ { … }, { … }, { … } ], "shop_additional_fields": [ { … }, { … }, { … } ], "shop_id": 2000, "shop_name": "ACME SHOP", "shop_state": "OPEN", "suspension_type": null }
List of the channel codes associated to the shop. If new channel is associated without providing values for the required shop_additional_fields, default values will be set.
Professional details of the shop. Updated and not nullable if shop is declared as professional.
List of shop’s producer identifiers per Extended Producer Responsibility (EPR) categories. Only available if the operator setting Activate data collection related to circular economy regulations is enabled.
Recycling policy - only available if the operator setting Activate data collection related to circular economy regulations has been enabled.
Shipping country of the shop. Nullable.
Additional fields of the shop. Note that if the 'value' field in the child structure is absent, the corresponding additional field value will be removed for this shop. Nullable.
https://your-instance.mirakl.net/api/account
curl -i -X PUT \
'https://your-instance.mirakl.net/api/account?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"address": {
"city": "New York",
"civility": "Mr",
"country": "USA",
"firstname": "Doe",
"lastname": "John",
"phone": "213-509-6996",
"phone_secondary": "213-509-6995",
"state": "Manhattan",
"street1": "30, Prince Street",
"street2": "1st floor",
"zip_code": "NY 10012"
},
"channels": [
"US"
],
"closed_from": "2025-03-20T16:42:21Z",
"closed_to": "2026-03-20T16:42:21Z",
"description": "This is the description of this seller",
"email": "my-store@example.com",
"fax": "0245875499",
"is_professional": true,
"payment_info": {
"@type": "IBAN",
"bank_name": "CACE",
"bic": "AGRIFRPPXX2",
"iban": "FR6031047696713027315572590",
"owner": "John Doe"
},
"pro_details": {
"corporate_name": "Mirakl Inc.",
"identification_number": "44268625900078",
"tax_identification_number": "FR939383"
},
"producer_identifiers": [
{
"epr_category_code": "FR-DEA",
"producer_id": "FR123456_89ABCD"
},
{
"epr_category_code": "DE-WEEE",
"producer_id": "PRODUCERID1"
}
],
"recycling_policy": "When we deliver your new item,we’ll take your old one away for you.Appliance recycling:this service is available through our home delivery service.Recycling electronic items in-store:if you have an old electronic item,we can safely recycle these items in-store,for free",
"return_policy": "3 days return policy",
"shipping_country": "ITA",
"shop_additional_fields": [
{
"code": "segment",
"value": "1"
},
{
"code": "prio-level",
"value": "High"
}
],
"shop_name": "My Super Seller",
"web_site": "https://example.fr"
}'
{ "errors": [], "updated": { "address": { … }, "channels": [ … ], "closed_from": "2022-03-20T16:42:21Z", "closed_to": "2025-03-20T16:42:21Z", "default_billing_information": { … }, "description": "This is the description of this seller", "email": "my-store@example.com", "fax": "0245875499", "is_professional": true, "model": "MARKETPLACE", "payment_info": { … }, "payment_method_mandatory": true, "pro_details": { … }, "producer_identifiers": [ … ], "recycling_policy": "When we deliver your new item,we’ll take your old one away for you.Appliance recycling:this service is available through our home delivery service.Recycling electronic items in-store:if you have an old electronic item,we can safely recycle these items in-store,for free", "return_policy": "3 days return policy", "shipping": { … }, "shipping_country": "ITA", "shop_additional_fields": [ … ], "shop_name": "My Super Seller", "web_site": "https://example.fr" } }
You must specify at least one of the following parameters: shop_ids
, updated_since
https://your-instance.mirakl.net/api/shops/documents
curl -i -X GET \
'https://your-instance.mirakl.net/api/shops/documents?shop_id=0'
{ "shop_documents": [ { … }, { … } ] }
Document filenames must be distinct and there can be only one file per document type.
Only documents of the following types are supported: csv, doc, docx, gif, html, jpeg, latex, mp4, odp, odc, odg, ods, odt, pdf, png, pps, ppsx, ppt, pptx, quicktime, rtf, text, tiff, xls, xlsx, xml, zip
You can upload a maximum of 50 business documents for each shop. These documents are not order related documents.
https://your-instance.mirakl.net/api/shops/documents
curl -i -X POST \
https://your-instance.mirakl.net/api/shops/documents \
-H 'Content-Type: multipart/form-data' \
-F 'files[]="@path/to/file"' \
-F 'shop_documents={"shop_documents":[{"file_name":"string","type_code":"string"}]}'
{ "errors_count": 1, "shop_documents": [ { … } ] }
shop_ids
or the document_ids
.When documents are retrieved, they're wrapped into a ZIP archive except when only one document id is specified. The tree structure of this archive is as follow:
documents-timestamp.zip |__ shop_id/ | |__ image.png | |__ image(1).png | |__ foo.txt
Returns a 404
if at least one document id or one document type code is invalid
https://your-instance.mirakl.net/api/shops/documents/download
curl -i -X GET \
'https://your-instance.mirakl.net/api/shops/documents/download?document_ids=string&shop_id=0&type_codes=string'
https://your-instance.mirakl.net/api/shops/documents/{document_id}
curl -i -X DELETE \
'https://your-instance.mirakl.net/api/shops/documents/{document_id}?shop_id=0'