Resources and Fields
Common formats
| Item | Format |
|---|---|
| ID | A resource's id is a UUID string. Every object has an object field naming its resource type |
| Time | ISO 8601 UTC, e.g. 2026-11-20T02:00:00Z |
| Amount | A string in the currency's major unit, with no thousands separators or symbols, e.g. TWD "1200", USD "12.50". The currency is in the same object's currency |
| Currency | Currency code, e.g. TWD |
If {id} in the path is not a UUID, does not belong to this merchant, or has been deleted, the request returns 404 resource_missing.
Merchant
GET /merchant returns the merchant the key belongs to.
| Field | Type | Description |
|---|---|---|
id | string | Merchant ID |
object | string | Always merchant |
name | string | Merchant name |
slug | string | Booking page URL handle |
timezone | string | The merchant's time zone (IANA name) |
currency | string | Currency code |
locale | string | Default language of the booking page: zh_TW, en, ja |
Service
json
{
"id": "0198c5f4-0000-7000-8000-000000000001",
"object": "service",
"name": "Trial class",
"description": null,
"duration_minutes": 60,
"price": "1800",
"currency": "TWD",
"is_bookable": true,
"category": { "id": "0198c5f6-0000-7000-8000-000000000001", "name": "Classes" },
"staff_ids": ["0198c5f5-0000-7000-8000-000000000001"],
"sort_order": 0
}| Field | Type | Description |
|---|---|---|
id | string | Service ID |
object | string | Always service |
name | string | Service name |
description | string or null | Service description |
duration_minutes | number | Service duration in minutes |
price | string | Price, as a string in the major unit |
currency | string | Currency code |
is_bookable | boolean | Whether the service is open for booking |
category | object or null | Category, with id and name |
staff_ids | array | IDs of staff members who provide this service, in ascending ID order. Each ID can be retrieved with GET /staff/{id} |
sort_order | number | Display order |
Deleted services are not listed.
Staff
json
{
"id": "0198c5f5-0000-7000-8000-000000000001",
"object": "staff",
"name": "Sample Instructor"
}| Field | Type | Description |
|---|---|---|
id | string | Staff ID |
object | string | Always staff |
name | string | Name |
/staff lists only members of this merchant; staff members who have left are not listed.
Appointment
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/Taipei",
"local_date": "2026-11-20",
"local_start_time": "10:00",
"local_end_time": "11:00",
"party_size": 1,
"total_price": "1800",
"currency": "TWD",
"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": "Sample Customer",
"phone": "+886900000000",
"email": "customer@example.com"
},
"items": [
{
"service": { "id": "0198c5f4-0000-7000-8000-000000000001", "name": "Trial class" },
"staff": { "id": "0198c5f5-0000-7000-8000-000000000001", "name": "Sample Instructor" },
"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"
}| Field | Type | Description |
|---|---|---|
id | string | Appointment ID |
object | string | Always appointment |
reference | string or null | The appointment reference number |
series_id | string or null | Series ID |
status | string | pending, confirmed, completed, cancelled, no_show |
source | string or null | Booking source: web, line_liff, line_conversation, merchant_panel |
start_at | string | Start time, in ISO 8601 UTC |
end_at | string | Service end time, in ISO 8601 UTC |
timezone | string | The merchant's time zone (IANA name) |
local_date | string | The date in the merchant's time zone, YYYY-MM-DD |
local_start_time | string | The start time in the merchant's time zone, HH:mm |
local_end_time | string | The end time in the merchant's time zone, HH:mm |
party_size | number | Number of people |
total_price | string | Total amount, as a string in the major unit |
currency | string | Currency code |
payment_status | string | unpaid, partially_paid, fully_paid |
deposit | object or null | The deposit. null when there is no deposit. See Deposit |
status_reason | string or null | The reason entered when the appointment was canceled or marked as a no-show. null otherwise or when none was entered |
customer | object or null | The customer. null when there is no customer. See Customer in an appointment |
items | array | The appointment items. See Items |
created_at | string or null | When the appointment was created, in ISO 8601 UTC |
updated_at | string or null | When the appointment was last updated, in ISO 8601 UTC |
Deleted appointments are not listed.
Deposit
| Field | Type | Description |
|---|---|---|
amount | string | Deposit amount, as a string in the major unit |
paid | string | Deposit paid, as a string in the major unit |
due_at | string or null | Deposit due time, in ISO 8601 UTC |
reported_at | string or null | When the customer reported paying, in ISO 8601 UTC |
Customer in an appointment
When the key has customers:read:
| Field | Type | Description |
|---|---|---|
id | string | Customer ID |
object | string | Always customer |
name | string or null | Name |
phone | string or null | Phone number |
email | string or null |
When the key lacks customers:read, only id and object are included:
json
{ "id": "0198c5f3-0000-7000-8000-000000000001", "object": "customer" }Items
| Field | Type | Description |
|---|---|---|
service.id | string | Service ID |
service.name | string or null | Service name |
staff | object or null | Staff member. null when no staff member is assigned; otherwise contains id and name (name can be null) |
start_at | string or null | Item start time, in ISO 8601 UTC |
end_at | string or null | Item service end time, in ISO 8601 UTC |
duration_minutes | number | Service duration in minutes |
quantity | number | Number of people |
unit_price | string | Unit price, as a string in the major unit |
pricing_basis | string | per_booking (one price for the whole group) or per_person (priced by number of people) |
line_total | string | The amount for this item, as a string in the major unit |
If an item's staff.id is a staff member who is no longer with this merchant, GET /staff/{id} returns 404.
Customer
json
{
"id": "0198c5f3-0000-7000-8000-000000000001",
"object": "customer",
"name": "Sample Customer",
"email": "customer@example.com",
"phone": "+886900000000",
"preferred_locale": "en",
"created_at": "2026-11-01T08:00:00Z",
"updated_at": "2026-11-15T06:29:40Z"
}| Field | Type | Description |
|---|---|---|
id | string | Customer ID |
object | string | Always customer |
name | string or null | Name |
email | string or null | |
phone | string or null | Phone number |
preferred_locale | string or null | Preferred language: zh_TW, en, ja |
created_at | string or null | When the customer was created, in ISO 8601 UTC |
updated_at | string or null | When the customer was last updated, in ISO 8601 UTC |
Archived customers are not listed, and GET /customers/{id} returns 404 for them.
Payment
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"
}| Field | Type | Description |
|---|---|---|
id | string | Payment ID |
object | string | Always payment |
appointment_id | string | ID of the appointment the payment is recorded on |
amount | string | Amount, as a numeric string in the major unit, with no sign |
currency | string | Currency code |
method | string | cash, points (the merchant's points), bank_transfer, line_pay, newebpay, payuni, stripe, other |
created_at | string | When the payment was recorded, in ISO 8601 UTC |
- Payments on deleted appointments are not listed, and
GET /payments/{id}returns 404 for them. GET /payments/{id}returns 404 for the ID of a refund.
Refund
The same fields as a payment. object is always refund, and amount has no sign either.
- Refunds on deleted appointments are not listed, and
GET /refunds/{id}returns 404 for them. GET /refunds/{id}returns 404 for the ID of a payment.