---
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> `/shipments/{SHIPMENT_ID}`

指定された配送情報を更新するには、`/api/shipments/{SHIPMENT_ID}`エンドポイントに`PUT`リクエストを送信します。

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

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

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

## PATH パラメータ

| Name          | Type    | 説明      |
| ------------- | ------- | ------- |
| `SHIPMENT_ID` | integer | 配送情報のID |

## リクエスト：ボディ

| Name              | Type   | 必須 | 説明      |
| ----------------- | ------ | -- | ------- |
| `carrier`         | string | ○  | 配送キャリア名 |
| `order_id`        | int32  | ○  | 注文ID    |
| `products`        | array  | ○  | 商品データ   |
| `shipping`        | string | ○  | 配送方法名   |
| `shipping_id`     | int32  | ○  | 配送方法ID  |
| `user_id`         | int32  | ○  | ユーザーID  |
| `tracking_number` | string |    | 追跡番号    |
| `comments`        | string |    | コメント    |

## レスポンス

### 204

```json
{}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/shipments/api-shipment-update/index.mdx
