Download OpenAPI specification:
ふるぷら管理者向けAPI
管理者アカウントでログインします。MFA対応。
email required | string <email> |
password required | string <password> |
mfa_code | string^\d{6}$ 二要素認証コード |
{- "email": "user@example.com",
- "password": "pa$$word",
- "mfa_code": "string"
}
{- "access_token": "string",
- "refresh_token": "string",
- "expires_in": 0,
- "admin": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "role": "super_admin",
- "permissions": [
- "string"
]
}
}
システム内のユーザー一覧を取得します。ステータスや登録日でフィルタリング可能です。
page | integer >= 1 Default: 1 ページ番号 |
per_page | integer [ 1 .. 100 ] Default: 20 1ページあたりの件数 |
q | string 検索キーワード |
status | string Enum: "active" "suspended" "deleted" |
created_from | string <date> |
created_to | string <date> |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "phone": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "page": 1,
- "per_page": 20,
- "total": 0,
- "total_pages": 0
}
}
指定したユーザーの詳細情報を取得します。
userId required | string |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "phone": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z",
- "addresses": [
- {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string"
}
], - "order_count": 0,
- "total_spent": 0,
- "notes": "string"
}
ユーザーのステータスやメモを更新します。
userId required | string |
status | string Enum: "active" "suspended" |
notes | string <= 1000 characters |
{- "status": "active",
- "notes": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "phone": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z",
- "addresses": [
- {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string"
}
], - "order_count": 0,
- "total_spent": 0,
- "notes": "string"
}
システム内のショップ一覧を取得します。ステータスでフィルタリング可能です。
page | integer >= 1 Default: 1 ページ番号 |
per_page | integer [ 1 .. 100 ] Default: 20 1ページあたりの件数 |
q | string 検索キーワード |
status | string Enum: "active" "pending" "suspended" |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "owner_id": "string",
- "status": "active",
- "business_info": {
- "company_name": "string",
- "registration_number": "string",
- "representative": "string",
- "address": {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string"
}, - "phone": "string",
- "email": "user@example.com"
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "page": 1,
- "per_page": 20,
- "total": 0,
- "total_pages": 0
}
}
売上、注文、ユーザー、ショップの統計情報を取得します。
period | string Default: "month" Enum: "today" "week" "month" "year" |
{- "period": "today",
- "sales": {
- "total": 0,
- "growth": 0.1,
- "chart_data": [
- {
- "date": "2019-08-24",
- "amount": 0
}
]
}, - "orders": {
- "total": 0,
- "pending": 0,
- "processing": 0,
- "completed": 0,
- "average_value": 0
}, - "users": {
- "total": 0,
- "new_users": 0,
- "active_users": 0
}, - "shops": {
- "total": 0,
- "active": 0,
- "pending_approval": 0
}
}