---
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-post">`POST`</span> `/shipments`

新しい配送情報を作成するには、`/api/shipments`エンドポイントに`POST`リクエストを送信します。

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

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

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

## リクエスト：ボディ

| 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-create/index.mdx
