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

ユーザーグループの一覧を取得するには、`/api/usergroups`エンドポイントに`GET`リクエストを送信します。

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

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

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

## クエリ パラメータ

| Name             | Type    | 説明                            | デフォルト値 |
| ---------------- | ------- | ----------------------------- | ------ |
| `page`           | integer | ページ番号                         | 1      |
| `items_per_page` | integer | 1ページあたりの表示数                   | 10     |
| `type`           | string  | ユーザーグループのタイプ（`A`, `C`）        |        |
| `status`         | string  | ユーザーグループのステータス（`A`, `D`, `H`） |        |

## レスポンス

### 200

```json
{
  "3": {
    "usergroup_id": "3",
    "status": "D",
    "type": "C",
    "usergroup": "卸会員"
  },
  "4": {
    "usergroup_id": "4",
    "status": "A",
    "type": "A",
    "usergroup": "管理者"
  }
}
```

### 400

```json
{}
```

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