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

Invoicing and Accounting

Operations

Products

Operations

Messages

Operations

Offers

Operations

OF21 - List offers of a shop

Request

Call Frequency
Maximum usage: On each shop's offers page view
Read More
Pagination

This resource supports offset pagination (see documentation)

Sort fields
sort field can have the following values:
  • totalPrice (Default) - Sort by total price (asc by default)
  • price - Sort by price, total price (asc by default)
  • productTitle - Sort by product title, total price (asc by default)
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Query
offer_state_codesstring

List of offer state codes

skustring

Offer's sku

product_idstring

Product's sku

favoriteboolean

Filter only favorite offers

Default false
pricing_channel_codestring

Filter used to pick prices on a specific channel

pricing_customer_organization_idstring

For Customer Pricing users only. Customer identifier code the API will use to return all prices and applicable price for this organization. Ignored if value does not exist.

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?favorite=false&offer_state_codes=string&pricing_channel_code=string&pricing_customer_organization_id=string&product_id=string&shop_id=0&sku=string'

Responses

OK

Bodyapplication/json
offersArray of objectsrequired

Offers for a shop

total_countinteger(int32)required

Offer total count

Response
application/json
{ "offers": [ {} ], "total_count": 1 }

OF24 - Create, update, or delete offers

Request

Returns the import identifier to track the status of the update.

You must send all offer fields. Offer fields that are not sent are reset to their default value.

Call Frequency
Maximum usage: Once per minute
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.

Bodyapplication/json
offersArray of objectsrequired

Offers list

curl -i -X POST \
  'https://your-instance.mirakl.net/api/offers?shop_id=0' \
  -H 'Content-Type: application/json' \
  -d '{
    "offers": [
      {
        "all_prices": [
          {
            "channel_code": "US",
            "discount_end_date": "2019-04-29T22:00:00Z",
            "discount_start_date": "2019-04-01T22:00:00Z",
            "unit_discount_price": "49",
            "unit_origin_price": 50,
            "volume_prices": [
              {
                "quantity_threshold": 5,
                "unit_discount_price": 45,
                "unit_origin_price": 48
              }
            ]
          }
        ],
        "allow_quote_requests": false,
        "available_ended": "2019-05-29T22:00:00Z",
        "available_started": "2019-03-01T22:00:00Z",
        "description": "Offer for product MKP100000000154824",
        "discount": {
          "end_date": "2019-05-31T22:00:00Z",
          "price": 49,
          "ranges": [
            {
              "price": 45,
              "quantity_threshold": 5
            }
          ],
          "start_date": "2019-03-31T22:00:00Z"
        },
        "eco_contributions": [
          {
            "eco_contribution_amount": 3.59,
            "epr_category_code": "FR-DEA",
            "producer_id": "FR123456_89ABCD"
          },
          {
            "eco_contribution_amount": 0.99,
            "epr_category_code": "DE-WEEE",
            "producer_id": "ProducerID1"
          }
        ],
        "internal_description": "Offer for product MKP100000000154824",
        "leadtime_to_ship": 5,
        "logistic_class": "M",
        "max_order_quantity": 3,
        "min_order_quantity": 1,
        "min_quantity_alert": 2,
        "offer_additional_fields": [
          {
            "code": "ecotax",
            "value": "20"
          }
        ],
        "package_quantity": "2",
        "price": 50,
        "price_additional_info": "Apply Discount prices",
        "product_id": "9400016774345",
        "product_id_type": "EAN",
        "product_tax_code": "tax",
        "quantity": "5000",
        "shop_sku": "Offer_SKU_001",
        "state_code": "11",
        "update_delete": "update"
      }
    ]
  }'

Responses

Created

Headers
Locationany

Pre-calculated URL to call to get the import status

Bodyapplication/json
import_idinteger(int64)required

Offer import identifier

Response
application/json
{ "import_id": 2044 }

OF22 - Get information about an offer

Request

Path
offerinteger(int64)required

Offer identifier

Query
pricing_channel_codestring

Filter used to pick prices on a specific channel

pricing_customer_organization_idstring

For Customer Pricing users only. Customer identifier code the API will use to return all prices and applicable price for this organization. Ignored if value does not exist.

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/{offer}?pricing_channel_code=string&pricing_customer_organization_id=string&shop_id=0'

Responses

OK

Bodyapplication/json
activebooleanrequired

Is the offer active

all_pricesArray of objectsrequired

All prices for the offer
For Dropship specifically: the list of purchasing prices of the offer, also referred to as costs or wholesale prices

allow_quote_requestsboolean

Whether the offer is eligible for quotation

applicable_pricingobject

Pricing defined for the offer, including the prices for the selected channel if available
For Dropship specifically: the list of applicable purchasing prices of the offer, also referred to as costs or wholesale prices.

available_end_datestring(date-time)

Available end date

available_start_datestring(date-time)

Available start date

category_codestringrequired

Product category code

category_labelstringrequired

Product category label

channelsArray of stringsuniquerequired

List of channel codes on which the offer can be sold

currency_iso_codestringrequired

The currency of the shop (iso format)

Enum"AED""ARS""AUD""BAM""BGN""BHD""BRL""CAD""CHF""CLP"
descriptionstringrequired

Offer description

eco_contributionsArray of objects<= 20 items

Eco-contributions of the offer - only available if the operator setting Activate data collection related to circular economy regulations has been enabled.

favorite_rankinteger(int32)

Favorite rank for the offer, when the favorite feature is enabled and the offer is a favorite

fulfillmentobjectrequired

Fulfillment information

inactivity_reasonsArray of strings

Reasons for offers inactivity, mandatory if an offer is inactive

Items Enum"PRODUCT_STATUS_NEW""PRODUCT_STATUS_INVALID""PRODUCT_STATUS_REJECTED""PRODUCT_STATUS_UNAUTHORIZED_TO_SELL""PRODUCT_STATUS_PENDING""PRODUCT_STATUS_SYNCHRO_ERROR""PRODUCT_DISABLED""SHOP_NOT_OPEN""ZERO_QUANTITY""NO_MIN_SHIPPING_RATE"
internal_descriptionstring

The offer's description as shown in the back office

leadtime_to_shipinteger(int32)required

Offer's lead time to ship value. If this value has been set to 0, value is returned as 1 (unless platform's default lead time to ship value is also 0). If no lead time to ship was specified for the offer, platform's default value is returned.

logistic_classobjectrequired

The logistic class associated to the offer

max_order_quantityinteger(int32)required

Highest quantity of product items per order

min_order_quantityinteger(int32)required

Lowest quantity of product items per order

min_quantity_alertinteger(int32)required

Mininum quantity of the offer

min_shipping_pricenumber(with decimals)required

Unit price of the minimum shipping rate

min_shipping_price_additionalnumber(with decimals)required

Additional unit price associated to the minimum shipping rate

min_shipping_typestringrequired

Code of the shipping type associated to the minimum shipping rate

min_shipping_zonestringrequired

Code of the shipping zone associated to the minimum shipping rate

offer_additional_fieldsArray of objects

Custom fields of the offer

offer_idinteger(int64)required

Identifier of the offer

package_quantityinteger(int32)required

Indivisible quantity of the same product

pricenumber(with decimals)

Price of the offer
For Dropship specifically: the purchasing price of the offer, also referred to as cost or wholesale price

price_additional_infostring

Additional price information for the offer

product_brandstring

Brand of the product

product_descriptionstring

Description of the product

product_referencesArray of objectsrequired

Product references

product_skustringrequired

Product SKU

product_tax_codestring

Offer product tax code

product_titlestringrequired

Product title

quantityinteger(int32)required

Available quantity of the offer

shipping_deadlinestring(date-time)required

Estimated shipping date, that includes business closing days and cut-off configured on the platform. Add the earliest and latest delivery times to calculate the estimated delivery date to customers

shop_skustringrequired

Shop's sku of the offer

state_codestringrequired

Offer condition

total_pricenumber(with decimals)

Total price of the offer (price + minimum shipping rate)
For Dropship specifically: the purchasing price of the offer + minimum shipping rate

discountobjectDeprecated

Discount of the offer

Please use 'applicablePricing' instead

Response
application/json
{ "active": true, "all_prices": [ {}, {}, {} ], "allow_quote_requests": false, "applicable_pricing": { "channel_code": null, "context": {}, "discount_end_date": "2023-01-31T22:00:00Z", "discount_start_date": "2023-03-31T22:00:00Z", "price": 29, "unit_discount_price": 29, "unit_origin_price": 30, "volume_prices": [] }, "available_end_date": "2019-09-29T22:00:00Z", "available_start_date": "2019-03-31T22:00:00Z", "category_code": "3016100", "category_label": "Shoes", "channels": [ "FR", "US" ], "currency_iso_code": "USD", "description": "Offer for product MKP100000000154824", "discount": { "discount_price": null, "end_date": "2019-04-29T22:00:00Z", "origin_price": 50, "ranges": [], "start_date": "2019-03-31T22:00:00Z" }, "eco_contributions": [ {}, {} ], "fulfillment": { "center": {} }, "leadtime_to_ship": 10, "logistic_class": { "code": "M", "label": "Medium" }, "max_order_quantity": 5, "min_order_quantity": 1, "min_shipping_price": 0, "min_shipping_price_additional": 0, "min_shipping_type": "CLC", "min_shipping_zone": "DOM1", "offer_additional_fields": [ {}, {}, {} ], "offer_id": 2135, "package_quantity": 1, "price": 49, "price_additional_info": "Apply Discount prices", "product_brand": "Capture", "product_description": "Cobalt, fuchsia, leopard print: imitation suede upper. Synthetic lining, upper and sole. Almond toe court with cushioned sole. Heel height 9cm.", "product_references": [ {} ], "product_sku": "MKP100000000154824", "product_title": "Capture Coloured Court Shoe - 10", "quantity": 1000000, "shipping_deadline": "2019-09-01T23:59:59.999Z", "shop_sku": "S2002", "state_code": "11", "total_price": 49 }

Orders

Operations

Incidents

Operations

Picklists

Operations

Promotions

Operations

Returns

Operations

Multiple shipments

Operations