---
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> `/statuses/{STATUS_ID}`

指定された注文ステータスを更新するには、`/api/statuses/{STATUS_ID}`エンドポイントに`PUT`リクエストを送信します。

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

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

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

## PATH パラメータ

| Name        | Type    | 説明      |
| ----------- | ------- | ------- |
| `STATUS_ID` | integer | ステータスID |

## リクエスト：ボディ

| Name           | Type   | 必須 | 説明       |
| -------------- | ------ | -- | -------- |
| `description`  | string | ○  | 注文ステータス名 |
| `email_header` | string |    |          |
| `email_subj`   | string |    |          |
| `is_default`   | string |    |          |
| `lang_code`    | string |    |          |
| `params`       | array  |    |          |
| `status`       | string |    |          |
| `status_id`    | int32  |    |          |
| `type`         | int32  |    |          |

## レスポンス

### 204

```json
{
  "status_id": "12"
}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/statuses/api-status-update/index.mdx
