---
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-get">`GET`</span> `/carts`

カートの状態の一覧を取得するには、`/api/carts`に対してGETを送信します。

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

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

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

## クエリ パラメータ

| Name             | Type      | 説明                                                                                                                           | デフォルト値 |
| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------- | ------ |
| `page`           | integer   | ページ番号                                                                                                                        | 1      |
| `items_per_page` | integer   | 1ページあたりの表示数                                                                                                                  | 10     |
| `sort_by`        | string    | ソートするフィールド name / customer / date を指定可能                                                                                      | name   |
| `sort_order`     | string    | ソート順 desc / asc を指定可能                                                                                                        | desc   |
| `cname`          | string    |                                                                                                                              |        |
| `email`          | string    |                                                                                                                              |        |
| `user_id`        | integer   |                                                                                                                              |        |
| `with_info_only` | boolean   |                                                                                                                              | false  |
| `users_type`     | string    | R･･･登録ユーザー G･･･ゲスト                                                                                                           |        |
| `total_from`     | integer   |                                                                                                                              |        |
| `total_to`       | integer   |                                                                                                                              |        |
| `product_type_c` | boolean   | trueに設定すると、カートに商品があるユーザーのみが返されます。                                                                                            | false  |
| `product_type_w` | boolean   | trueに設定すると、欲しいものリストに商品があるユーザーのみが返されます。                                                                                       | false  |
| `period`         | string    | A—すべての期間 D-今日 LD-前日 W-今週 LW-先週 M-今月 LM-先月 Y—現在の年 LY-昨年 HH-過去24時間 HW-過去7日間 HM-過去30日間 C-指定された期間（time\_fromおよびtime\_toフィールドで使用） |        |
| `time_from`      | date-time | UNIXタイム                                                                                                                      |        |
| `time_to`        | date-time | UNIXタイム                                                                                                                      |        |
| `p_ids`          | string    | 指定された商品IDのカートを表示します。p\_idsを使用するには2つの方法があります。 1.配列： p\_ids\[]=1\&p\_ids\[]=2\&p\_ids\[]=3　2.文字列： p\_ids=1,2,3,4,5             |        |

## レスポンス

### 200

```json
{}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/carts/api-carts-list/index.mdx
