---
title: "注文の更新"
---

> Documentation Index
> Fetch the complete documentation index at: https://apidocs.cs-cart.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# 注文の更新

<span class="api-method api-method-put">`PUT`</span> `/orders/{ORDER_ID}`

指定された注文を更新するには、`/api/orders/{ORDER_ID}`に対してPUTを送信します。 APIからは注文のステータスのみを更新することができます。 `{ORDER_ID}`は、注文のIDです。

## リクエスト：ヘッダー

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Basic <認証情報>`     |

> **認証情報について**
>
> 認証情報は、ユーザーのEメールアドレスとAPIキーをコロンで連結したものをBase64エンコードしたものです。

## PATH パラメータ

| Name       | Type    | 説明    |
| ---------- | ------- | ----- |
| `ORDER_ID` | integer | 注文のID |

## リクエスト：ボディ

| Name                | Type    | 必須 | 説明              | デフォルト値 |
| ------------------- | ------- | -- | --------------- | ------ |
| `status`            | string  | 必須 | 注文ステータス         |        |
| `notify_user`       | integer |    | ユーザーに通知するかどうか   | 1      |
| `notify_department` | integer |    | 注文担当部署に通知するかどうか | 1      |

## レスポンス

### 200

```json
{}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/orders/api-order-update/index.mdx
