---
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> `/shippings`

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

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

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

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

## リクエスト：ボディ

| Name               | Type   | 必須 | 説明    | デフォルト値 |
| ------------------ | ------ | -- | ----- | ------ |
| `shipping`         | string | ○  | 配送方法名 |        |
| `company_id`       | int32  |    | 会社ID  |        |
| `delivery_time`    | string |    |       |        |
| `icon`             | string |    |       |        |
| `localization`     | string |    |       |        |
| `max_weight`       | float  |    |       |        |
| `min_weight`       | float  |    |       |        |
| `position`         | int32  |    |       |        |
| `rate_calculation` | string |    |       | M      |
| `rates`            | array  |    |       |        |
| `service_id`       | int32  |    |       | 0      |
| `service_params`   | array  |    |       |        |
| `shipping_id`      | int32  |    |       |        |
| `status`           | string |    |       | A      |
| `tax_ids`          | string |    |       |        |
| `usergroup_ids`    | string |    |       | 0      |

## レスポンス

### 200

```json
{
  "shipping_id": 14
}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/shipping-methods/api-shipping-method-create/index.mdx
