latestOpenAPI 3.1.02026-08-1828105315.1 KB

cc009fec5cdd

Orders

v2-acceptOrderLines - Accept or refuse order lines

<div class="extension-title">Description</div>

Use this API to accept or refuse order lines that are in the <code>AWAITING_ACCEPTANCE</code> status, from Mirakl Connect. The API also synchronizes the order line status on the sales channel.

<div class="api-description-extension"> <div class="extension-title">Call Frequency</div> <div class="recommended-call-frequency">Recommended usage: On each new order</div> <div class="max-call-frequency">Maximum usage: On each new order</div> </div>
put/v2/orders/{order_id}/accept

Path parameters

order_idstring required

Order identifier in Mirakl Connect

Request body

Example request

{
  "order_lines": [
    {
      "accepted": true,
      "id": "0002_3202630-A-2"
    }
  ]
}

Response

Accepted. The accept request will be processed asynchronously.

action_idstring required

The unique identifier for the asynchronous action. It should be used with the v2-getActionStatus API to retrieve current action status and potential errors.

tracking_idstring

Deprecated: This field was previously used to obtain the action ID. It has been replaced by action_id and contains the same value. It is retained for backward compatibility.

Example response

{
  "action_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4",
  "tracking_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4"
}