---
title: "注文の作成（スタンダード）"
description: "スタンダード"
---

> 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> `/stores/{COMPANY_ID}/orders`

新しい注文を作成するには、`/api/stores/{COMPANY_ID}/orders`に対してPOSTを送信します。 `{COMPANY_ID}`は「1」を設定します。

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

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

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

## リクエスト：ボディ

| Name          | Type    | 必須 | 説明                    |
| ------------- | ------- | -- | --------------------- |
| `user_id`     | integer | 必須 | ユーザーID（ゲストユーザーの場合はゼロ） |
| `payment_id`  | integer | 必須 | 支払い方法ID               |
| `shipping_id` | integer | 必須 | 配送方法ID                |
| `products`    | array   | 必須 | 商品リスト                 |
| `user_data`   | array   |    | ゲストユーザーの場合、必須         |

## レスポンス

```json
{}
```

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