Skip to content
APILast updated

Resources and Fields ​

Common formats ​

ItemFormat
IDA resource's id is a UUID string. Every object has an object field naming its resource type
TimeISO 8601 UTC, e.g. 2026-11-20T02:00:00Z
AmountA 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
CurrencyCurrency 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.

FieldTypeDescription
idstringMerchant ID
objectstringAlways merchant
namestringMerchant name
slugstringBooking page URL handle
timezonestringThe merchant's time zone (IANA name)
currencystringCurrency code
localestringDefault 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
}
FieldTypeDescription
idstringService ID
objectstringAlways service
namestringService name
descriptionstring or nullService description
duration_minutesnumberService duration in minutes
pricestringPrice, as a string in the major unit
currencystringCurrency code
is_bookablebooleanWhether the service is open for booking
categoryobject or nullCategory, with id and name
staff_idsarrayIDs of staff members who provide this service, in ascending ID order. Each ID can be retrieved with GET /staff/{id}
sort_ordernumberDisplay order

Deleted services are not listed.

Staff ​

json
{
  "id": "0198c5f5-0000-7000-8000-000000000001",
  "object": "staff",
  "name": "Sample Instructor"
}
FieldTypeDescription
idstringStaff ID
objectstringAlways staff
namestringName

/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"
}
FieldTypeDescription
idstringAppointment ID
objectstringAlways appointment
referencestring or nullThe appointment reference number
series_idstring or nullSeries ID
statusstringpending, confirmed, completed, cancelled, no_show
sourcestring or nullBooking source: web, line_liff, line_conversation, merchant_panel
start_atstringStart time, in ISO 8601 UTC
end_atstringService end time, in ISO 8601 UTC
timezonestringThe merchant's time zone (IANA name)
local_datestringThe date in the merchant's time zone, YYYY-MM-DD
local_start_timestringThe start time in the merchant's time zone, HH:mm
local_end_timestringThe end time in the merchant's time zone, HH:mm
party_sizenumberNumber of people
total_pricestringTotal amount, as a string in the major unit
currencystringCurrency code
payment_statusstringunpaid, partially_paid, fully_paid
depositobject or nullThe deposit. null when there is no deposit. See Deposit
status_reasonstring or nullThe reason entered when the appointment was canceled or marked as a no-show. null otherwise or when none was entered
customerobject or nullThe customer. null when there is no customer. See Customer in an appointment
itemsarrayThe appointment items. See Items
created_atstring or nullWhen the appointment was created, in ISO 8601 UTC
updated_atstring or nullWhen the appointment was last updated, in ISO 8601 UTC

Deleted appointments are not listed.

Deposit ​

FieldTypeDescription
amountstringDeposit amount, as a string in the major unit
paidstringDeposit paid, as a string in the major unit
due_atstring or nullDeposit due time, in ISO 8601 UTC
reported_atstring or nullWhen the customer reported paying, in ISO 8601 UTC

Customer in an appointment ​

When the key has customers:read:

FieldTypeDescription
idstringCustomer ID
objectstringAlways customer
namestring or nullName
phonestring or nullPhone number
emailstring or nullEmail

When the key lacks customers:read, only id and object are included:

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

Items ​

FieldTypeDescription
service.idstringService ID
service.namestring or nullService name
staffobject or nullStaff member. null when no staff member is assigned; otherwise contains id and name (name can be null)
start_atstring or nullItem start time, in ISO 8601 UTC
end_atstring or nullItem service end time, in ISO 8601 UTC
duration_minutesnumberService duration in minutes
quantitynumberNumber of people
unit_pricestringUnit price, as a string in the major unit
pricing_basisstringper_booking (one price for the whole group) or per_person (priced by number of people)
line_totalstringThe 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"
}
FieldTypeDescription
idstringCustomer ID
objectstringAlways customer
namestring or nullName
emailstring or nullEmail
phonestring or nullPhone number
preferred_localestring or nullPreferred language: zh_TW, en, ja
created_atstring or nullWhen the customer was created, in ISO 8601 UTC
updated_atstring or nullWhen 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"
}
FieldTypeDescription
idstringPayment ID
objectstringAlways payment
appointment_idstringID of the appointment the payment is recorded on
amountstringAmount, as a numeric string in the major unit, with no sign
currencystringCurrency code
methodstringcash, points (the merchant's points), bank_transfer, line_pay, newebpay, payuni, stripe, other
created_atstringWhen 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.