Skip to content

v2-acceptOrderLines - Accept or refuse order lines

Request

Description

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

Call Frequency
Maximum usage: On each new order
Security
Bearer(Required scopes: connect:order:accept)
Path
order_idstringrequired

Order identifier in Mirakl Connect

Example:01JYGX2Z4V9KQ8RD3TCE5MHW7N
Bodyapplication/jsonrequired
order_linesArray of objects, non-emptyrequired

Information about ordered products

curl -i -X PUT \
  https://miraklconnect.com/api/v2/orders/01JYGX2Z4V9KQ8RD3TCE5MHW7N/accept \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "order_lines": [
      {
        "accepted": true,
        "id": "01JYGX3F6A2P8QW4KZRD9TBEH5"
      },
      {
        "accepted": false,
        "id": "01JYGX3T7C1N5RV8MYSEA2KDQ6"
      }
    ]
  }'

Responses

Accepted. The accept request will be processed asynchronously.

Bodyapplication/json
action_idstringrequired

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_idstringdeprecated

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.

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