リソースとフィールド
共通の形式
| 項目 | 形式 |
|---|---|
| ID | リソースの id は UUID 文字列です。各オブジェクトには、リソースの種類を示す object フィールドがあります |
| 時刻 | ISO 8601、UTC。例: 2026-11-20T02:00:00Z |
| 金額 | 通貨の主単位の数値文字列で、桁区切りと記号は含みません。例: TWD "1200"、USD "12.50"。通貨は同じオブジェクトの currency に入ります |
| 通貨 | 通貨コード。例: TWD |
パスの {id} が UUID でない場合、この店舗のものでない場合、削除済みの場合は 404 resource_missing を返します。
店舗
GET /merchant はキーが属する店舗を返します。
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 店舗 ID |
object | string | 常に merchant |
name | string | 店舗名 |
slug | string | 予約ページの URL 名 |
timezone | string | 店舗のタイムゾーン(IANA 名) |
currency | string | 通貨コード |
locale | string | 予約ページの既定の言語: zh_TW、en、ja |
サービス
json
{
"id": "0198c5f4-0000-7000-8000-000000000001",
"object": "service",
"name": "体験レッスン",
"description": null,
"duration_minutes": 60,
"price": "1800",
"currency": "JPY",
"is_bookable": true,
"category": { "id": "0198c5f6-0000-7000-8000-000000000001", "name": "レッスン" },
"staff_ids": ["0198c5f5-0000-7000-8000-000000000001"],
"sort_order": 0
}| フィールド | 型 | 説明 |
|---|---|---|
id | string | サービス ID |
object | string | 常に service |
name | string | サービス名 |
description | string または null | サービスの説明 |
duration_minutes | number | サービスの所要時間(分) |
price | string | 料金。主単位の数値文字列 |
currency | string | 通貨コード |
is_bookable | boolean | 予約を受け付けているかどうか |
category | object または null | カテゴリ。id と name を含みます |
staff_ids | array | このサービスを担当するスタッフの ID。ID の昇順です。各 ID は GET /staff/{id} で取得できます |
sort_order | number | 並び順 |
削除済みのサービスは一覧に含まれません。
スタッフ
json
{
"id": "0198c5f5-0000-7000-8000-000000000001",
"object": "staff",
"name": "サンプル講師"
}| フィールド | 型 | 説明 |
|---|---|---|
id | string | スタッフ ID |
object | string | 常に staff |
name | string | 氏名 |
/staff にはこの店舗のメンバーだけが含まれ、店舗を離れたスタッフは含まれません。
予約
json
{
"id": "0198c5f1-0000-7000-8000-000000000001",
"object": "appointment",
"reference": "7K3M9Q",
"series_id": null,
"status": "confirmed",
"source": "web",
"start_at": "2026-11-20T02:00:00Z",
"end_at": "2026-11-20T03:00:00Z",
"timezone": "Asia/Tokyo",
"local_date": "2026-11-20",
"local_start_time": "11:00",
"local_end_time": "12:00",
"party_size": 1,
"total_price": "1800",
"currency": "JPY",
"payment_status": "unpaid",
"deposit": {
"amount": "500",
"paid": "0",
"due_at": "2026-11-18T15:59:59Z",
"reported_at": null
},
"status_reason": null,
"customer": {
"id": "0198c5f3-0000-7000-8000-000000000001",
"object": "customer",
"name": "サンプル顧客",
"phone": "+886900000000",
"email": "customer@example.com"
},
"items": [
{
"service": { "id": "0198c5f4-0000-7000-8000-000000000001", "name": "体験レッスン" },
"staff": { "id": "0198c5f5-0000-7000-8000-000000000001", "name": "サンプル講師" },
"start_at": "2026-11-20T02:00:00Z",
"end_at": "2026-11-20T03:00:00Z",
"duration_minutes": 60,
"quantity": 1,
"unit_price": "1800",
"pricing_basis": "per_booking",
"line_total": "1800"
}
],
"created_at": "2026-11-15T06:29:40Z",
"updated_at": "2026-11-15T06:29:40Z"
}| フィールド | 型 | 説明 |
|---|---|---|
id | string | 予約 ID |
object | string | 常に appointment |
reference | string または null | 予約番号 |
series_id | string または null | シリーズ ID |
status | string | pending、confirmed、completed、cancelled、no_show |
source | string または null | 予約の経路: web、line_liff、line_conversation、merchant_panel |
start_at | string | 開始時刻(ISO 8601、UTC) |
end_at | string | サービスの終了時刻(ISO 8601、UTC) |
timezone | string | 店舗のタイムゾーン(IANA 名) |
local_date | string | 店舗のタイムゾーンでの日付。YYYY-MM-DD |
local_start_time | string | 店舗のタイムゾーンでの開始時刻。HH:mm |
local_end_time | string | 店舗のタイムゾーンでの終了時刻。HH:mm |
party_size | number | 人数 |
total_price | string | 合計金額。主単位の数値文字列 |
currency | string | 通貨コード |
payment_status | string | unpaid、partially_paid、fully_paid |
deposit | object または null | 予約金。予約金がない場合は null。フィールドは予約金を参照 |
status_reason | string または null | キャンセルまたは無断キャンセルのときに入力された理由。それ以外、または入力がない場合は null |
customer | object または null | 顧客。顧客がいない場合は null。フィールドは予約内の顧客を参照 |
items | array | 予約の明細。フィールドは明細を参照 |
created_at | string または null | 予約の作成時刻(ISO 8601、UTC) |
updated_at | string または null | 予約の最終更新時刻(ISO 8601、UTC) |
削除済みの予約は一覧に含まれません。
予約金
| フィールド | 型 | 説明 |
|---|---|---|
amount | string | 予約金の金額。主単位の数値文字列 |
paid | string | 支払い済みの予約金。主単位の数値文字列 |
due_at | string または null | 予約金の期限(ISO 8601、UTC) |
reported_at | string または null | 顧客が支払いを報告した時刻(ISO 8601、UTC) |
予約内の顧客
キーに customers:read がある場合:
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 顧客 ID |
object | string | 常に customer |
name | string または null | 氏名 |
phone | string または null | 電話番号 |
email | string または null | メールアドレス |
キーに customers:read がない場合は id と object だけです。
json
{ "id": "0198c5f3-0000-7000-8000-000000000001", "object": "customer" }明細
| フィールド | 型 | 説明 |
|---|---|---|
service.id | string | サービス ID |
service.name | string または null | サービス名 |
staff | object または null | スタッフ。指定がない場合は null。値がある場合は id と name を含みます(name は null の場合があります) |
start_at | string または null | 明細の開始時刻(ISO 8601、UTC) |
end_at | string または null | 明細のサービス終了時刻(ISO 8601、UTC) |
duration_minutes | number | サービスの所要時間(分) |
quantity | number | 人数 |
unit_price | string | 単価。主単位の数値文字列 |
pricing_basis | string | per_booking(グループ単位の料金)または per_person(人数に応じた料金) |
line_total | string | この明細の金額。主単位の数値文字列 |
明細の staff.id がすでにこの店舗に所属していないスタッフの場合、GET /staff/{id} は 404 を返します。
顧客
json
{
"id": "0198c5f3-0000-7000-8000-000000000001",
"object": "customer",
"name": "サンプル顧客",
"email": "customer@example.com",
"phone": "+886900000000",
"preferred_locale": "ja",
"created_at": "2026-11-01T08:00:00Z",
"updated_at": "2026-11-15T06:29:40Z"
}| フィールド | 型 | 説明 |
|---|---|---|
id | string | 顧客 ID |
object | string | 常に customer |
name | string または null | 氏名 |
email | string または null | メールアドレス |
phone | string または null | 電話番号 |
preferred_locale | string または null | 希望する言語: zh_TW、en、ja |
created_at | string または null | 作成時刻(ISO 8601、UTC) |
updated_at | string または null | 最終更新時刻(ISO 8601、UTC) |
アーカイブした顧客は一覧に含まれず、GET /customers/{id} は 404 を返します。
支払い
json
{
"id": "0198c5f4-0000-7000-8000-000000000001",
"object": "payment",
"appointment_id": "0198c5f1-0000-7000-8000-000000000001",
"amount": "500",
"currency": "TWD",
"method": "cash",
"created_at": "2026-11-20T03:05:00Z"
}| フィールド | 型 | 説明 |
|---|---|---|
id | string | 支払い ID |
object | string | 常に payment |
appointment_id | string | この支払いが記録された予約の ID |
amount | string | 金額。主要単位の数値文字列で、符号は付きません |
currency | string | 通貨コード |
method | string | cash、points(ポイント)、bank_transfer、line_pay、newebpay、payuni、stripe、other |
created_at | string | 支払いが記録された時刻(ISO 8601、UTC) |
- 削除された予約の支払いは一覧に含まれず、
GET /payments/{id}は 404 を返します。 GET /payments/{id}に返金の ID を指定した場合は 404 を返します。
返金
フィールドは支払いと同じです。object は常に refund で、amount にも符号は付きません。
- 削除された予約の返金は一覧に含まれず、
GET /refunds/{id}は 404 を返します。 GET /refunds/{id}に支払いの ID を指定した場合は 404 を返します。