Data model

The lists, their key fields, and status values.

Lists live in features/keystone/models. Money is stored in cents.

ListKey fields
BarberProfileowner, businessName, slug, bio, photoPath, phone, email, location, timezone, currencyCode, bookingOpen, slotMinutes, bufferMinutes, minNoticeHours, maxAdvanceDays, cancellationWindowHours, unpaidHoldHours, noShowFeeCents, workStyle (own_space, chair_rental, mobile)
Servicename, description, photoPath, priceCents, durationMinutes, depositCents, active, sortOrder
WeeklyHoursdayOfWeek, isWorking, startMinute, endMinute, breakStartMinute, breakEndMinute (minutes after midnight)
TimeOffstartsAt, endsAt, reason
ClientfirstName, lastName, phone, email, status (active, vip, blocked), preferences, lastVisitAt
ClientNoteclient, appointment, body
Appointmentclient, service, startsAt, endsAt, serviceNameSnapshot, priceCents, depositCents, status, source, paymentStatus, clientNotes, internalNotes, cancellationReason, publicAccessTokenHash
Productname, priceCents, stock, active
ProductSaleproduct, client, appointment, productNameSnapshot, quantity, unitPriceCents, totalCents
Paymentappointment, method, kind, status, amountCents, tipCents, productsCents, providerReference, paidAt
PaymentProvidername, code (pp_manual or pp_stripe), isInstalled, adapter function keys
PaymentSessionappointment, paymentProvider, status, amountCents, currencyCode, providerPaymentId, expiresAt, capturedAt
ChairRentalhostName, hostContact, rentCents, period (weekly, monthly), startsOn, endsOn, status (active, ended), terms
User, RoleAccounts and permission flags

Status values

FieldValues
Appointment.statusrequested, confirmed, completed, cancelled, no_show
Appointment.sourceonline, phone, walk_in
Appointment.paymentStatusunpaid, deposit_paid, paid, refunded
Payment.methodcash, card, transfer, stripe
Payment.kinddeposit, service, refund, no_show_fee
Payment.statuspaid, refunded
PaymentSession.statuspending, captured, expired, cancelled, refunded

Payment and PaymentSession cannot be created, changed or deleted through the API; only the server commands write them. Appointment.paymentStatus and depositCents are also read-only.

On this page