Mirakl Marketplace APIs

General Notes

Backward compatibility information

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:

  • Your integration must allow for new fields to be added in API responses. From time to time, we add new fields as part of new features.
  • Do not expect fields to always have the same order in API calls. The order can change when fields are added to APIs.
  • Your integration must allow for new values to be added in enumeration fields. We can add new values in enumeration fields to support new features. We advise that you use strings to deserialize enumeration fields. Alternatively, you can configure your deserializer to accept unknown enumeration values.

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.

Undocumented attributes

Some APIs may return more data than indicated in the documentation. Do not rely on this undocumented data, there is no guarantee about it.

Authentication

You can authenticate through API by sending your API key in a header.

HTTPS only

All requests must use the HTTPS protocol.

API return codes

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.

Success 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.

Error Codes

  • 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.

Rate limits

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.

Request Content-Type

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.

Response Content-Type

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.

List of values as URL parameters

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.

UTF-8 encoding

Text data is encoded in UTF-8.

Locale

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.

Date formats

APIs can use different date formats (compliant with ISO 8601):

  • date-time with the pattern YYYY-MM-DDThh:mm:ss[.SSS]±hh:mm.
    • The offset +00:00 can be replaced by Z (the zero UTC offset).
    • All APIs provide date-times in UTC, with the trailing Z.
    • Milliseconds may be omitted if equals to .000.
  • date-time-without-timezone with the pattern YYYY-MM-DDThh:mm:ss[.SSS].
    • The timezone does not appear.
    • Milliseconds may be omitted if equals to .000.
  • time with the pattern hh:mm[:ss][.SSS]±hh:mm. Time only, with timezone
    • The offset +00:00 can be replaced by Z (the zero UTC offset).
    • Seconds may be omitted if equals to :00.
    • Milliseconds may be omitted if equals to .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 time
  • hh: 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 UTC

For GET requests, use URL encoding (for example, 2019-08-29T02:34:00+02:00 becomes 2019-08-29T02%3A34%3A00%2B02%3A00).

Shop Selection

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.

Offset pagination & sort

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.

Seek pagination & sort

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:

  • criterion is the name of the criterion to sort by (e.g: date_created, title, ...)
  • direction is the sort direction. Can be one of ASC, DESC
Languages
Servers
URL to be replaced by your Mirakl instance URL
https://your-instance.mirakl.net/

Stores

Operations

Platform Settings

Operations

AF01 - List all custom fields

Request

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
entitiesstring

A comma separated list of entities on which the additional fields must apply. Accepted values are OFFER, SHOP, ORDER and ORDER_LINE. Ex: OFFER,SHOP.

shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/additional_fields?entities=string&shop_id=0'

Responses

OK

Bodyapplication/json
additional_fieldsArray of objectsrequired
total_countinteger(int32)Deprecatedrequired
Response
application/json
{ "additional_fields": [ {}, {}, {}, {}, {} ] }

CH11 - List all enabled channels

Request

Results are sorted by code

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/channels?shop_id=0'

Responses

OK

Bodyapplication/json
channelsArray of objects

List of channels

Response
application/json
{ "channels": [ {}, {}, {}, {}, {} ] }

CUR01 - List currency codes and labels

Request

List currency codes and labels activated on the platform

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/currencies?shop_id=0'

Responses

OK

Bodyapplication/json
currenciesArray of objectsrequired

List of currencies

Response
application/json
{ "currencies": [ {}, {}, {} ] }

DO01 - List all document types

Request

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
entitiesstring

A comma separated list of values, representing the type of entities the document type should be related to. Accepted values are ORDER, SHOP. Ex: ORDER,SHOP

shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/documents?entities=string&shop_id=0'

Responses

OK

Bodyapplication/json
documentsArray of objectsrequired

Document types

Response
application/json
{ "documents": [ {}, {}, {}, {} ] }

L01 - List locale codes and labels

Request

List locale codes and labels from your platform to automate product format exports (API H01, PM01, VL01) from your PIM system

Call Frequency
Maximum usage: Once per day

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/locales?shop_id=0'

Responses

OK

Bodyapplication/json
localesArray of objectsrequired

List of locales

Response
application/json
{ "locales": [ {}, {}, {}, {}, {}, {} ] }

OF61 - List offer conditions

Request

Sorted by sort index, set in the back-office

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
activeboolean

Filter offer condition on their active status. If true, only active offer conditions are returned. If false, only inactive offer conditions are returned. If not specified, all offer conditions are returned.

shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/offers/states?active=true&shop_id=0'

Responses

OK

Bodyapplication/json
offer_statesArray of objectsrequired

Offer conditions

total_countinteger(int32)Deprecatedrequired

Total count (no pagination)

Response
application/json
{ "offer_states": [ {}, {} ], "total_count": 2 }

PC01 - List platform configurations

Request

List platform configurations such as general information, modules and features activated.

Note: This configuration represents modules and major features enabled during platform setup. This differs from the PC02 API which export the platform business settings configurable by the operator in the back office.

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/platform/configuration?shop_id=0'

Responses

OK

Bodyapplication/json
featuresobjectrequired

Features activated on the platform

modulesobjectrequired

Modules activated on the platform

platform_configurationobjectrequired

High level platform configurations

platform_namestringrequired

Operator platform name

tenant_namestringrequired

Tenant platform name

timezonestringrequired

Platform timezone

Response
application/json
{ "features": { "circular_economy_data_collection": false, "competitive_pricing_tool": false, "direct_payment_customer_store": {}, "disable_seller_alternative_carrier": false, "lead_time_to_ship_by_sellers_enabled": "YES", "multi_currency": true, "no_reply_needed": true, "offer_prices_decimals": "2", "operator_csv_delimiter": "SEMICOLON", "order_conditions": {}, "order_tax_mode": "TAX_EXCLUDED", "order_workflows": {}, "pricing": {}, "product_data_validation_by_channel": true, "shipment": {}, "shop_tax_options": {}, "tax_collection": {}, "tax_id_number": {} }, "modules": { "mirakl_catalog_integrator": true, "mirakl_catalog_manager": false, "mirakl_platform_services": false, "offer_management": true, "order_management": true, "promotions": true, "quotes": true, "tax_manager": {} }, "platform_configuration": { "customer_model": {}, "platform_model": {} }, "platform_name": "", "tenant_name": "tenantname-prod", "timezone": "Europe/Paris" }

RE01 - List reasons

Request

This API returns cancellation, refund, incident, and message reasons.
Reasons are sorted by type then sort index (set in the back-office)

Call Frequency
Maximum usage: Each time a page must display a list of reasons
Read More
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/reasons?shop_id=0'

Responses

OK

Bodyapplication/json
reasonsArray of objectsrequired

List of reasons detailed

total_countinteger(int32)Deprecatedrequired

Total count of elements returned by the query (no pagination)

Response
application/json
{ "reasons": [ {}, {}, {}, {}, {}, {}, {}, {} ] }

SH11 - List all active shipping zones

Request

Results are sorted by index, set in the back-office

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/shipping/zones?shop_id=0'

Responses

OK

Bodyapplication/json
shipping_zonesArray of objectsrequired

List of shipping zones

Response
application/json
{ "shipping_zones": [ {}, {}, {}, {}, {} ] }

SH12 - List all active shipping methods

Request

Results are sorted by index, set in the back-office

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/shipping/types?shop_id=0'

Responses

OK

Bodyapplication/json
shipping_typesArray of objects

List of shipping types

Response
application/json
{ "shipping_types": [ {}, {}, {}, {}, {} ] }

SH21 - List all carriers

Request

Results are sorted alphabetically by carrier label

Call Frequency
Maximum usage: Once per day
Read More

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/shipping/carriers?shop_id=0'

Responses

OK

Bodyapplication/json
carriersArray of objectsrequired

List of carriers

Response
application/json
{ "carriers": [ {}, {}, {}, {}, {} ] }

SH31 - List all logistic classes

Request

Results are sorted by index, set in the back-office

Call Frequency
Maximum usage: Once per day
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/shipping/logistic_classes?shop_id=0'

Responses

OK

Bodyapplication/json
logistic_classesArray of objectsrequired

List of logistic classes

Response
application/json
{ "logistic_classes": [ {}, {}, {}, {}, {}, {} ] }

V01 - Health Check endpoint

Request

Use this endpoint to check that Mirakl Platform is up.
You can ignore the response body that is subject to change, checking the response code is enough.

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/version?shop_id=0'

Responses

OK

RE02 - List reasons by type⚠️ No Integration Allowed ⚠️Deprecated

Request

This API returns cancellation, refund, incident, and message reasons.
Reasons are sorted by sort index (set in the back-office)

Call Frequency
Maximum usage: Each time a page must display a list of reasons
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Path
reason_typestringrequired

Reason type

Enum"INCIDENT_CLOSE""REFUND""MPS_REFUND""MESSAGING""ORDER_MESSAGING""MPS_ORDER_MESSAGING""MPS_OFFER_MESSAGING""OFFER_MESSAGING""CANCELATION"
Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/reasons/{reason_type}?shop_id=0'

Responses

OK

Bodyapplication/json
reasonsArray of objectsrequired

List of reasons

total_countinteger(int32)Deprecatedrequired

Total count of elements returned by the query (No pagination)

Response
application/json
{ "reasons": [ {}, {}, {}, {}, {}, {} ] }

RE11 - List of reasons with type: incident open⚠️ No Integration Allowed ⚠️Deprecated

Request

Note: Result returns only reasons where the user's role have the right
Note: Reasons are sorted by sort index, set in the back-office

Call Frequency
Maximum usage: Once on incident creation page view

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/reasons/incident_open?shop_id=0'

Responses

OK

Bodyapplication/json
reasonsArray of objectsrequired

List of reasons

total_countinteger(int32)Deprecatedrequired

Total count of elements returned by the query (No pagination)

Response
application/json
{ "reasons": [ {}, {}, {}, {}, {} ] }

RE12 - List of reasons with type: incident close⚠️ No Integration Allowed ⚠️Deprecated

Request

Note: Result returns only reasons where the user's role have the right
Note: Reasons are sorted by sort index, set in the back-office

Call Frequency
Maximum usage: Once on incident closing page view

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/reasons/incident_close?shop_id=0'

Responses

OK

Bodyapplication/json
reasonsArray of objectsrequired

List of reasons

total_countinteger(int32)Deprecatedrequired

Total count of elements returned by the query (No pagination)

Response
application/json
{ "reasons": [ {}, {}, {}, {} ] }

RE14 - List of reasons with type: messaging⚠️ No Integration Allowed ⚠️Deprecated

Request

Note: Result returns only reasons where the user's role have the right
Note: Reasons are sorted by sort index, set in the back-office

Call Frequency
Maximum usage: Once on message creation page view

Query
shop_idinteger(int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/reasons/messaging?shop_id=0'

Responses

OK

Bodyapplication/json
reasonsArray of objectsrequired

List of reasons

total_countinteger(int32)Deprecatedrequired

Total count of elements returned by the query (No pagination)

Response
application/json
{ "reasons": [ {}, {}, {}, {}, {}, {}, {} ] }

Invoicing and Accounting

Operations

Products

Operations

Messages

Operations

Offers

Operations

Orders

Operations

Incidents

Operations

Picklists

Operations

Promotions

Operations

Returns

Operations

Multiple shipments

Operations