---
title: "v2-acceptOrderLines - Accept or refuse order lines"
method: PUT
path: "/v2/orders/{order_id}/accept"
tags: ["Orders"]
---

# v2-acceptOrderLines - Accept or refuse order lines

`PUT /v2/orders/{order_id}/accept`

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

## Path parameters

- `order_id` string, required

## Request body

- AcceptOrderLinesRequest
  - `order_lines` AcceptOrderLine[], required — Information about ordered products
    - `accepted` boolean, required — Indicates if an order line is accepted (true) or refused (false).
    - `id` string, required — Unique order line identifier used by Mirakl Connect. This identifier can be used as a primary key, but it must not be shared with final users.

## Response `202`

Accepted. The accept request will be processed asynchronously.

- AsynchronousActionResponse
  - `action_id` string, required — The unique identifier for the asynchronous action. It should be used with the [v2-getActionStatus API](#operation/v2-getActionStatus) to retrieve current action status and potential errors.
  - `tracking_id` string — **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.

## Other responses

- `400` — The order status has not been updated because of wrong or missing parameters.
- `404` — The order status has not been updated because the order does not exist.

---

[API](https://skmtc.net/mirakl/apis/mirakl-connect-apis.md) · [All operations](https://skmtc.net/mirakl/apis/mirakl-connect-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mirakl/mirakl-connect-apis/revisions/cc009fec5cdd/schema)
