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

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/

Platform Settings

Operations

Invoicing and Accounting

Operations

Products

Operations

Messages

Operations

Offers

Operations

Orders

Operations

Picklists

Operations

Promotions

Operations

Returns

Operations

Stores

Operations

Multiple shipments

Operations

ST01 - Create shipments

Request

Limited to 1000 shipments at a time

Call Frequency
Maximum usage: On each new shipment
Read More

Bodyapplication/json
shipmentsArray of objects[ 1 .. 1000 ] itemsrequired

Shipments list

curl -i -X POST \
  https://your-instance.mirakl.net/api/shipments \
  -H 'Content-Type: application/json' \
  -d '{
    "shipments": [
      {
        "invoice_reference": "ABCDEF012345",
        "order_id": "ORDER_01-A",
        "shipment_lines": [
          {
            "offer_sku": "OFFER_SKU_1",
            "package_reference": "package_ref_1",
            "quantity": 1
          },
          {
            "offer_sku": "OFFER_SKU_2",
            "package_reference": "package_ref_2",
            "quantity": 3
          }
        ],
        "shipped": false,
        "shipping_from": {
          "warehouse": {
            "code": "DEFAULT_WAREHOUSE"
          }
        },
        "tracking": {
          "carrier_code": "UPS",
          "carrier_name": "UPS",
          "carrier_standard_code": "UPS",
          "tracking_number": "1Z2356F1ZJ98L9733M5",
          "tracking_url": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums={trackingId}"
        }
      },
      {
        "invoice_reference": "ABCDEF012345",
        "order_id": "ORDER_01-A",
        "shipment_lines": [
          {
            "order_line_id": "ORDER_01-A-1",
            "package_reference": "package_ref_1",
            "quantity": 1
          },
          {
            "order_line_id": "ORDER_01-A-2",
            "package_reference": "package_ref_2",
            "quantity": 3
          }
        ],
        "shipped": true,
        "tracking": {
          "carrier_name": "Custom carrier",
          "tracking_url": "http://www.customcarrier.com/tracking"
        }
      }
    ]
  }'

Responses

Created

Bodyapplication/json
shipment_errorsArray of objectsrequired

Shipment creation errors

shipment_successArray of objectsrequired

Shipment creation success

Response
application/json
{ "shipment_errors": [ {}, {} ], "shipment_success": [ {}, {} ] }

ST07 - Update shipment shipping origin

Request

Limited to 100 shipments at a time

Call Frequency

Bodyapplication/json
shipmentsArray of objects[ 1 .. 100 ] itemsrequired

Shipments list

curl -i -X PUT \
  https://your-instance.mirakl.net/api/shipments \
  -H 'Content-Type: application/json' \
  -d '{
    "shipments": [
      {
        "id": "5b2269b6-3918-43bc-9262-fddd815398f3",
        "shipping_from": {
          "warehouse": {
            "code": "WHC1"
          }
        }
      },
      {
        "id": "0e450a4c-704f-4e2c-845a-71b65b4ff16a",
        "shipping_from": {
          "warehouse": {
            "code": "WHC2"
          }
        }
      }
    ]
  }'

Responses

OK

Bodyapplication/json
shipment_errorsArray of objectsrequired

Shipment update errors

shipment_successArray of objectsrequired

Shipment update success

Response
application/json
{ "shipment_errors": [ {} ], "shipment_success": [ {} ] }

ST11 - List shipments

Request

Call Frequency
Maximum usage: at each shipment page display
Read More
Pagination

This resource supports seek pagination (see documentation)

Sort fields
sort field can have the following values:
  • dateCreated (Default) - Sort by creation date (asc by default)
Query
order_idArray of strings

Order id for filtering. This parameter can be supplied multiple times (order_id=OR01-A&order_id=OR02-A...).

shipment_state_codeArray of strings

Shipment state code for filtering. This parameter can be supplied multiple times (shipment_state_code=SHIPPING&shipment_state_code=SHIPPED...).

shipment_customer_debit_state_codeArray of strings

Shipment customer debit state code for filtering. This parameter can be supplied multiple times (shipment_customer_debit_state_code=WAITING_TAX_CONFIRMATION&shipment_customer_debit_state_code=DEBIT_OK...).

last_updated_fromstring(date-time)

Filter shipments updated after the given date.

last_updated_tostring(date-time)

Filter shipments updated before the given date.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/shipments?last_updated_from=2019-08-24T14%3A15%3A22Z&last_updated_to=2019-08-24T14%3A15%3A22Z&order_id=string&shipment_customer_debit_state_code=string&shipment_state_code=string'

Responses

OK

Bodyapplication/json
dataArray of objectsrequired

Page of data

next_page_tokenstring

Token to access the next page. Absent if the current page is the last one.

previous_page_tokenstring

Token to access the previous page. Absent if the current page is the first one.

Response
application/json
{ "data": [ {}, {}, {}, {} ], "next_page_token": "bGltaXQ9MTAmYWZ0ZXI9MjAxOS0wOC0xMlQxMDowMzoyMy43NzNaJmFmdGVyPU1JUi1RTDNXVE1DSi1BJmFmdGVyPTEmc29ydD1kYXRlQ3JlYXRlZCxBU0M=", "previous_page_token": null }

ST06 - Delete shipments

Request

Limited to 1000 shipments at a time

Call Frequency
Maximum usage: On each shipment deletion
Read More

Bodyapplication/json
shipmentsArray of objects[ 1 .. 1000 ] itemsrequired

Shipment ids

curl -i -X PUT \
  https://your-instance.mirakl.net/api/shipments/delete \
  -H 'Content-Type: application/json' \
  -d '{
    "shipments": [
      {
        "id": "e2055970-dd6c-4d66-b005-096d6e6e0f30"
      },
      {
        "id": "89174558-2845-44ef-bd57-78db027947f7"
      },
      {
        "id": "14d134a1-eb3a-442c-b16c-05a35486d1bf"
      }
    ]
  }'

Responses

OK

Bodyapplication/json
shipment_errorsArray of objects

Shipment workflow update errors

shipment_successArray of objects

Shipment workflow update success

Response
application/json
{ "deletion_errors": [ {}, {} ], "deletion_success": [ {} ] }

ST12 - List items to ship

Request

Call Frequency
Maximum usage: Every 5 minutes
Read More
Pagination

This resource supports seek pagination (see documentation)

Sort fields
sort field can have the following values:
  • shippingDate (Default) - Sort by shipping date (asc by default)
Query
order_idArray of strings

Order id for filtering. This parameter can be supplied multiple times (order_id=OR01-A&order_id=OR02-A...).

fulfillment_center_codeArray of strings

Fulfillment center code for filtering. This parameter can be supplied multiple times (fulfillment_center_code=ABC&fulfillment_center_code=DEF...).

shipping_date_fromstring(date-time)

Filter items that moved to shipping status after the given date.

shipping_date_tostring(date-time)

Filter items that moved to shipping status before the given date.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/shipments/items_to_ship?fulfillment_center_code=string&order_id=string&shipping_date_from=2019-08-24T14%3A15%3A22Z&shipping_date_to=2019-08-24T14%3A15%3A22Z'

Responses

OK

Bodyapplication/json
dataArray of objectsrequired

Page of data

next_page_tokenstring

Token to access the next page. Absent if the current page is the last one.

previous_page_tokenstring

Token to access the previous page. Absent if the current page is the first one.

Response
application/json
{ "data": [ {} ], "next_page_token": null, "previous_page_token": null }

ST23 - Update carrier tracking information for shipments

Request

If the carrier is not registered, the complete tracking url can be provided. Limited to 1000 shipments at a time.

Call Frequency
Maximum usage: On each shipment tracking info update
Read More

Bodyapplication/json
shipmentsArray of objects[ 1 .. 1000 ] itemsrequired

Shipments list

curl -i -X POST \
  https://your-instance.mirakl.net/api/shipments/tracking \
  -H 'Content-Type: application/json' \
  -d '{
    "shipments": [
      {
        "id": "f40bf65e-a320-41d3-878c-36ce9e1144ce",
        "tracking": {
          "carrier_code": "UPS",
          "carrier_name": "UPS",
          "carrier_standard_code": "UPS",
          "tracking_number": "1Z2356F1ZJ98L9733M5",
          "tracking_url": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums={trackingId}"
        }
      },
      {
        "id": "ff341bfe-ebeb-4211-848b-77fcbcd91723",
        "tracking": {
          "carrier_code": "UPS",
          "carrier_name": "UPS",
          "carrier_standard_code": "UPS",
          "tracking_number": "1Z2356F1ZJ98L9733M5",
          "tracking_url": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums={trackingId}"
        }
      }
    ]
  }'

Responses

OK

Bodyapplication/json
shipment_errorsArray of objects

Shipment workflow update errors

shipment_successArray of objects

Shipment workflow update success

Response
application/json
{ "shipment_errors": [ {} ], "shipment_success": [ {} ] }

ST24 - Validate shipments as shipped

Request

Limited to 1000 shipments at a time

Call Frequency
Maximum usage: On each shipment shipping
Read More

Bodyapplication/json
shipmentsArray of objects[ 1 .. 1000 ] itemsrequired

Shipment ids

curl -i -X PUT \
  https://your-instance.mirakl.net/api/shipments/ship \
  -H 'Content-Type: application/json' \
  -d '{
    "shipments": [
      {
        "id": "f40bf65e-a320-41d3-878c-36ce9e1144ce"
      },
      {
        "id": "c8ca3759-a81b-4abe-afd0-93a418e83ae8"
      },
      {
        "id": "ff341bfe-ebeb-4211-848b-77fcbcd91723"
      }
    ]
  }'

Responses

OK

Bodyapplication/json
shipment_errorsArray of objects

Shipment workflow update errors

shipment_successArray of objects

Shipment workflow update success

Response
application/json
{ "shipment_errors": [ {} ], "shipment_success": [ {}, {} ] }

ST26 - Validate shipments as ready to pick up

Request

Limited to 1000 shipments at a time

Call Frequency
Maximum usage: On each shipment ready to pick up

Bodyapplication/json
shipmentsArray of objects[ 1 .. 1000 ] itemsrequired

Shipment ids

curl -i -X PUT \
  https://your-instance.mirakl.net/api/shipments/ready_for_pick_up \
  -H 'Content-Type: application/json' \
  -d '{
    "shipments": [
      {
        "id": "f40bf65e-a320-41d3-878c-36ce9e1144ce"
      },
      {
        "id": "c8ca3759-a81b-4abe-afd0-93a418e83ae8"
      },
      {
        "id": "ff341bfe-ebeb-4211-848b-77fcbcd91723"
      }
    ]
  }'

Responses

OK

Bodyapplication/json
shipment_errorsArray of objects

Shipment workflow update errors

shipment_successArray of objects

Shipment workflow update success

Response
application/json
{ "shipment_errors": [ {} ], "shipment_success": [ {}, {} ] }

ST31 - Update shipment additional information

Request

Limited to 100 shipments at a time

Call Frequency

Bodyapplication/json
shipmentsArray of objects[ 1 .. 100 ] itemsrequired

List of shipments additional information

curl -i -X PUT \
  https://your-instance.mirakl.net/api/shipments/additional_information \
  -H 'Content-Type: application/json' \
  -d '{
    "shipments": [
      {
        "id": "4dd549d5-3b5b-4237-a77c-a084359f93z",
        "shipment_additional_information": [
          {
            "code": "IMEI",
            "type": "STRING",
            "value": "38021999921000"
          },
          {
            "code": "DELIVERY_BILL_ID",
            "type": "STRING",
            "value": "invalid value with spaces"
          }
        ]
      },
      {
        "id": "245365B0-D003-4DB7-B23F-5C0A48E93E53",
        "shipment_additional_information": [
          {
            "code": "DELIVERY_BILL_DATE",
            "type": "DATE",
            "value": "2024-01-01"
          },
          {
            "code": "DELIVERY_BILL_ID",
            "type": "STRING",
            "value": "IUYHJ777-98"
          }
        ]
      }
    ]
  }'

Responses

OK

Bodyapplication/json
shipment_update_errorsArray of objects

Shipment additional information update errors

shipment_update_successArray of objects

Shipment additional information update success

Response
application/json
{ "shipment_update_errors": [ {} ], "shipment_update_success": [ {} ] }