New featureSDK v0.3.11
Custom attributes on appointments
Custom booking frontends can now attach arbitrary data to an appointment at creation time — a booking source, a party size, an external reference id, or small JSON strings. Custom attributes are a flat map of string keys to string values (the same idea as Shopify order note/custom attributes): no data types, no access rules, not searchable — just a simple bag of key-value pairs that travels with the appointment.What’s in the release:POST /storefront/appointmentsaccepts an optionalcustomAttributesobject — a map of string keys to string values.- Appointment responses now echo
customAttributes. - The merchant dashboard shows custom attributes on the appointment detail page.
- Keys and values are always strings (a value can itself be a JSON string — it is stored verbatim and never parsed).
- Limits: up to 250 attributes per appointment, keys up to 255 characters, values up to 5000 characters.
- Not searchable by design — attributes are stored inline with the appointment for fast reads, not indexed for querying.
@opencals/storefront-sdk
v0.3.11 and higher. CreateAppointment gains an
optional customAttributes field.