Skip to content
API最終更新日

リソースとフィールド ​

共通の形式 ​

項目形式
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 はキーが属する店舗を返します。

フィールド型説明
idstring店舗 ID
objectstring常に merchant
namestring店舗名
slugstring予約ページの URL 名
timezonestring店舗のタイムゾーン(IANA 名)
currencystring通貨コード
localestring予約ページの既定の言語: 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
}
フィールド型説明
idstringサービス ID
objectstring常に service
namestringサービス名
descriptionstring または nullサービスの説明
duration_minutesnumberサービスの所要時間(分)
pricestring料金。主単位の数値文字列
currencystring通貨コード
is_bookableboolean予約を受け付けているかどうか
categoryobject または nullカテゴリ。id と name を含みます
staff_idsarrayこのサービスを担当するスタッフの ID。ID の昇順です。各 ID は GET /staff/{id} で取得できます
sort_ordernumber並び順

削除済みのサービスは一覧に含まれません。

スタッフ ​

json
{
  "id": "0198c5f5-0000-7000-8000-000000000001",
  "object": "staff",
  "name": "サンプル講師"
}
フィールド型説明
idstringスタッフ ID
objectstring常に staff
namestring氏名

/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"
}
フィールド型説明
idstring予約 ID
objectstring常に appointment
referencestring または null予約番号
series_idstring または nullシリーズ ID
statusstringpending、confirmed、completed、cancelled、no_show
sourcestring または null予約の経路: web、line_liff、line_conversation、merchant_panel
start_atstring開始時刻(ISO 8601、UTC)
end_atstringサービスの終了時刻(ISO 8601、UTC)
timezonestring店舗のタイムゾーン(IANA 名)
local_datestring店舗のタイムゾーンでの日付。YYYY-MM-DD
local_start_timestring店舗のタイムゾーンでの開始時刻。HH:mm
local_end_timestring店舗のタイムゾーンでの終了時刻。HH:mm
party_sizenumber人数
total_pricestring合計金額。主単位の数値文字列
currencystring通貨コード
payment_statusstringunpaid、partially_paid、fully_paid
depositobject または null予約金。予約金がない場合は null。フィールドは予約金を参照
status_reasonstring または nullキャンセルまたは無断キャンセルのときに入力された理由。それ以外、または入力がない場合は null
customerobject または null顧客。顧客がいない場合は null。フィールドは予約内の顧客を参照
itemsarray予約の明細。フィールドは明細を参照
created_atstring または null予約の作成時刻(ISO 8601、UTC)
updated_atstring または null予約の最終更新時刻(ISO 8601、UTC)

削除済みの予約は一覧に含まれません。

予約金 ​

フィールド型説明
amountstring予約金の金額。主単位の数値文字列
paidstring支払い済みの予約金。主単位の数値文字列
due_atstring または null予約金の期限(ISO 8601、UTC)
reported_atstring または null顧客が支払いを報告した時刻(ISO 8601、UTC)

予約内の顧客 ​

キーに customers:read がある場合:

フィールド型説明
idstring顧客 ID
objectstring常に customer
namestring または null氏名
phonestring または null電話番号
emailstring または nullメールアドレス

キーに customers:read がない場合は id と object だけです。

json
{ "id": "0198c5f3-0000-7000-8000-000000000001", "object": "customer" }

明細 ​

フィールド型説明
service.idstringサービス ID
service.namestring または nullサービス名
staffobject または nullスタッフ。指定がない場合は null。値がある場合は id と name を含みます(name は null の場合があります)
start_atstring または null明細の開始時刻(ISO 8601、UTC)
end_atstring または null明細のサービス終了時刻(ISO 8601、UTC)
duration_minutesnumberサービスの所要時間(分)
quantitynumber人数
unit_pricestring単価。主単位の数値文字列
pricing_basisstringper_booking(グループ単位の料金)または per_person(人数に応じた料金)
line_totalstringこの明細の金額。主単位の数値文字列

明細の 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"
}
フィールド型説明
idstring顧客 ID
objectstring常に customer
namestring または null氏名
emailstring または nullメールアドレス
phonestring または null電話番号
preferred_localestring または null希望する言語: zh_TW、en、ja
created_atstring または null作成時刻(ISO 8601、UTC)
updated_atstring または 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"
}
フィールド型説明
idstring支払い ID
objectstring常に payment
appointment_idstringこの支払いが記録された予約の ID
amountstring金額。主要単位の数値文字列で、符号は付きません
currencystring通貨コード
methodstringcash、points(ポイント)、bank_transfer、line_pay、newebpay、payuni、stripe、other
created_atstring支払いが記録された時刻(ISO 8601、UTC)
  • 削除された予約の支払いは一覧に含まれず、GET /payments/{id} は 404 を返します。
  • GET /payments/{id} に返金の ID を指定した場合は 404 を返します。

返金 ​

フィールドは支払いと同じです。object は常に refund で、amount にも符号は付きません。

  • 削除された予約の返金は一覧に含まれず、GET /refunds/{id} は 404 を返します。
  • GET /refunds/{id} に支払いの ID を指定した場合は 404 を返します。