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

# acceptOrderLines - Accept or refuse order lines

`PUT /orders/{order_id}/accept`

> **Deprecated.**

<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. We recommend integrating this API in synchronous mode.

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

No content

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