/v1/management/appointmentsיצירת תור באדמין והודעת WhatsApp הן פעולות נפרדות
יצירה ידנית משתמשת כברירת מחדל ב־bookingIntent:appointment. בקבלה יופיעו action:create, status:CONFIRMED והודעה עם intent:silent, state:not_requested. אל תוסיפו notificationIntent לבקשת היצירה; זה אינו שדה נתמך בה.
אם איש הצוות בוחר לשלוח אישור, שמרו תחילה את התור ובררו את תוצאת היצירה אם אינה ודאית. אחר כך הציגו הודעה נפרדת ומורשית לבדיקה, רק כשהתור הנוכחי, הנמען והתאריך והשעה באזור הזמן של העסק עדיין תואמים לתצוגה שאושרה. השתמשו בתבנית מאושרת, הסכמה תקפה ו־UUID שליחה נפרד ושמור. כשל בשליחה אינו סיבה ליצור את התור שוב או לבטלו. מסלול השליחה הנפרד הזה אינו מופעל אחרי אישור בקשת לקוח.
הרשאות לשלב הזה
appointments:readappointments:create
Behavior
Server only. Your backend authenticates its administrator and sends an owner-issued wbm_ key without an Origin header. Every call requires appointments:read plus the stated action scope and a CURRENT per-credential owner calendar grant. Scope issuance alone grants no appointment access. Provider grants never imply manager authority, unassigned access, customer data or notes. Public booking intake, customer OTP, bot/WhatsApp readiness and customer messaging consent are separate. Use the reviewed quoteVersion with identical customer/provider/service/removal choices and an available startAt. The operation UUID is durably bound to the exact request. Recovery uses the same UUID/body before any new quote or new intent. A confirmed command creates one physical appointment; an accepted replay returns the same receipt with current state. This administrative command needs no customer OTP. Recognizing or recording a contact does not establish phone proof or messaging consent; any supplied communicationPreferences must reflect the customer's actual choice. Appointment creation does not automatically send a customer confirmation. A separate staff confirmation flow must check receipt.action:create, receipt.status:CONFIRMED and receipt.notification.state:not_requested, plus the current authorized appointment still being CONFIRMED and matching the reviewed recipient, service and business-local time, appropriate messaging permission and one durable send event for that appointment. communicationPreferences and language are accepted only with bookingIntent:request; they record the actual booking choice and its update language, never blanket consent or a profile-language change. A staff-created appointment uses a separately selected approved template language and authorized messaging permission. PENDING is not final confirmation. A replay recovers the same booking and must not create a duplicate send. A command deliberately resolved as not_executed cannot execute later: the original body/UUID returns OPERATION_NOT_EXECUTED (409), and changed body/UUID reuse returns OPERATION_CONFLICT (409).
Authentication
ManagementCredential
Credential rules
One server-only owner-issued wbm_ API key can carry both management and integration permissions. Additional permissions require an explicit owner-issued grant. GET /v1/management returns the management discovery view, which may be empty for a booking-only key. For credentials with appointments:read, this discovery view omits whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write to preserve calendar-client compatibility. Discover these grants through GET /v1/management/messaging-capabilities. Template/profile command authorization still uses the stored grants. Server-only owner-issued Management authority with explicit application permissions. Calling this API does not expand a credential's grants. contacts:read/write/block/sync/fields:read/fields:write are separate approvals for canonical business contacts; fields also require current typed owner grants. contacts:record remains contact recording/recovery only. These grants create no customer phone proof, booking authority, messaging consent or automatic synchronization. Hours/blocks retain their independent resource grants. booking-policy:read/write separately delegate whole-business booking settings, without schedule/provider grants; write requires read. They preserve existing appointments and create no duration-rewrite authority. Provider duration policy additionally requires explicit provider-booking-policy:read/write and exact current providerIds; booking-duration:rewrite is separately approved and does not itself grant policy read/write. Service catalogue requires explicit services:read/write, independent of provider/calendar/schedule resources; write requires read. These operations do not expand an existing credential's grants. Public presentation and reviewed service selection require explicit website-content:read/write; write requires read, independently from services:* and provider resources. Existing provider metadata/activity/assignment additionally requires providers:read/write and a nonempty explicit current providerIds grant; write requires read. This grants no provider creation, deletion, login, invitation or schedule authority. WhatsApp template/profile management requires separate whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write application scopes. Write requires its matching read scope. These grants require explicit owner approval; Meta OAuth permissions remain separate.
Required application permissions
appointments:readappointments:create
Request
Idempotency-Keyheader · stringRequiredGenerate once for this intent. Reuse exactly with the unchanged body/If-Match during recovery; a different command must have a different UUID.
Format and constraints
{ "type": "string", "format": "uuid" }
Request body · required
application/json · BusinessCalendarCreate
All of these schema rules apply together.
-
businessCustomerIdstring · uuidRequired -
providerIdanyOf (string | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
serviceIdanyOf (string | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
withRemovalbooleanOptionaldefault:false -
startAtstring · date-timeRequired -
quoteVersionstring · uuidRequired -
externalActorRefstring; allOf (unspecified & unspecified)OptionalOptional audit label from your backend. It never grants authority or identifies a CRAD user.
All of these schema rules apply together.
minLength:1maxLength:200View nested fields
-
allOf 1unspecifiedSchema branchpattern:"[^\\s]" -
allOf 2unspecifiedSchema branchpattern:"^[^\\u0000-\\u001f\\u007f]+$"
-
-
bookingIntentstringOptionalA public booking adapter using its authenticated server sends request. When requireBookingApproval=true, creation atomically saves PENDING and reserves capacity. Native/manual appointments remain confirmed. Never expose a Management key in the browser.
Allowed values:
["appointment","request"]default:"appointment" -
languagestringOptionalOptional only for bookingIntent:request. Preferred language of this booking's updates and reminders; it does not modify the existing customer's profile language. When omitted, existing language selection remains unchanged. Preserve the original value or absence when recovering an operation.
Allowed values:
["he","ar","en"] -
communicationPreferencesobjectOptionalAllowed only for bookingIntent:request. Explicit customer choice; absence means no consent. Does not enable templates or override global opt-out.
View nested fields
-
whatsappbooleanRequired -
noticeVersionstringRequiredValue:
"website-transactional-whatsapp-v1" -
additionalPropertiesno value allowedSchema rule
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifanyOf (unspecified | unspecified)Schema ruleAt least one of these variants must match.
View branch fields and rules
-
anyOf 1unspecifiedSchema branchView branch fields and rules
-
communicationPreferencesunspecifiedCondition predicatePresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
-
anyOf 2unspecifiedSchema branchView branch fields and rules
-
languageunspecifiedCondition predicatePresence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.
-
-
-
thenobjectSchema ruleView branch fields and rules
-
bookingIntentstringRequired in this branchValue:
"request"
-
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"businessCustomerId": {
"type": "string",
"format": "uuid"
},
"providerId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"serviceId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"withRemoval": {
"type": "boolean",
"default": false
},
"startAt": {
"type": "string",
"format": "date-time"
},
"quoteVersion": {
"type": "string",
"format": "uuid"
},
"externalActorRef": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"allOf": [
{
"pattern": "[^\\s]"
},
{
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
}
],
"description": "Optional audit label from your backend. It never grants authority or identifies a CRAD user."
},
"bookingIntent": {
"enum": [
"appointment",
"request"
],
"default": "appointment",
"description": "A public booking adapter using its authenticated server sends request. When requireBookingApproval=true, creation atomically saves PENDING and reserves capacity. Native/manual appointments remain confirmed. Never expose a Management key in the browser."
},
"language": {
"enum": [
"he",
"ar",
"en"
],
"description": "Optional only for bookingIntent:request. Preferred language of this booking's updates and reminders; it does not modify the existing customer's profile language. When omitted, existing language selection remains unchanged. Preserve the original value or absence when recovering an operation."
},
"communicationPreferences": {
"type": "object",
"additionalProperties": false,
"properties": {
"whatsapp": {
"type": "boolean"
},
"noticeVersion": {
"const": "website-transactional-whatsapp-v1"
}
},
"required": [
"whatsapp",
"noticeVersion"
],
"description": "Allowed only for bookingIntent:request. Explicit customer choice; absence means no consent. Does not enable templates or override global opt-out."
}
},
"required": [
"businessCustomerId",
"startAt",
"quoteVersion"
],
"allOf": [
{
"if": {
"anyOf": [
{
"required": [
"communicationPreferences"
]
},
{
"required": [
"language"
]
}
]
},
"then": {
"required": [
"bookingIntent"
],
"properties": {
"bookingIntent": {
"const": "request"
}
}
}
}
]
} Successful responses
200 · BusinessCalendarCommand
Exact accepted operation replay; receipt is unchanged and current is rehydrated.
Cache-Control · Contains no-store. Do not cache appointments, grants or receipts.
{
"type": "string",
"const": "no-store"
} ETag · Quoted current physical version when current state is present; omitted when unavailable.
{
"type": "string",
"pattern": "^\"a(?:0|[1-9][0-9]{0,18})\"$"
} application/json · BusinessCalendarCommand
receipt preserves the accepted operation facts. current is rehydrated now and may differ or be null. notificationCurrent, when present, is current delivery state distinct from the immutable accepted notification intent. A queued notice is not evidence of delivery. Never retry unknown delivery by creating another command.
-
receiptobjectRequiredView nested fields
-
operationIdstring · uuidRequired -
actionstringRequiredAllowed values:
["create","status","mark_missed","cancel","reschedule","undo","propose_time"] -
appointmentIdstring · uuidRequired -
acceptedVersionstringRequiredOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
successorAppointmentIdanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
successorVersionanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
anyOf 2nullSchema branch
-
-
statusstringRequiredAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
startAtstring · date-timeRequired -
endAtstring · date-timeRequired -
notificationobjectRequiredView nested fields
-
intentstringRequiredAllowed values:
["silent","request_notice"] -
statestringRequiredAllowed values:
["not_requested","queued","pending","dispatching","accepted","sent","failed","unknown","unavailable","suppressed","expired"] -
routenull | stringRequiredAllowed values:
[null,"legacy_cancellation","business_calendar_change","website"] -
noticeIdanyOf (string | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
reasonanyOf (string | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:200 -
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
-
-
currentanyOf (object; allOf (unspecified) | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1object; allOf (unspecified)Schema branchCurrent authorized physical appointment. Joined customer basics require contacts:read independently; notes require appointments:notes:read AND the current notesRead grant. No email, private customer fields, raw custom_data or raw snapshot is exported. allowedActions is advisory current state; commands recheck all preconditions.
All of these schema rules apply together.
View branch fields and rules
-
appointmentIdstring · uuidRequired in this branch -
versionstringRequired in this branchOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
businessCustomerIdstring · uuidRequired in this branch -
startAtstring · date-timeRequired in this branch -
endAtstring · date-timeRequired in this branch -
statusstringRequired in this branchAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
providerIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
serviceIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
priceMajoranyOf (number | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchStored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields.
minimum:0maximum:9007199254740991 -
anyOf 2nullSchema branch
-
-
currencyanyOf (string | null)Required in this branchFrozen accepted currency, or null when an ordinary legacy appointment did not save a currency. CRAD does not infer a current catalogue currency.
At least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:100minLength:1 -
anyOf 2nullSchema branch
-
-
termsanyOf (object; allOf (unspecified & unspecified) | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1 · version = 1object; allOf (unspecified & unspecified)Schema branchAll of these schema rules apply together.
View branch fields and rules
-
versionnumberRequired in this branchValue:
1 -
policystringRequired in this branchAllowed values:
["service_duration_v1","legacy_fixed_slot_v1"] -
policyVersionintegerRequired in this branchminimum:1maximum:9007199254740991 -
serviceIdstring · uuidRequired in this branch -
providerIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
serviceNameobjectRequired in this branchView nested fields
-
hestringOptional in this branchmaxLength:4096 -
arstringOptional in this branchmaxLength:4096 -
enstringOptional in this branchmaxLength:4096 -
additionalPropertiesno value allowedSchema rule
-
-
baseDurationMinutesintegerRequired in this branchminimum:1maximum:1440 -
removalDurationMinutesintegerRequired in this branchminimum:0maximum:240 -
durationMinutesintegerRequired in this branchminimum:1maximum:1440 -
slotIntervalMinutesintegerRequired in this branchminimum:1maximum:1440 -
withRemovalbooleanRequired in this branch -
basePriceMajoranyOf (number | null)Required in this branchUnknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced.
At least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchminimum:0 -
anyOf 2nullSchema branch
-
-
removalPriceMajornumberRequired in this branchStored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields.
minimum:0maximum:9007199254740991 -
totalPriceMajoranyOf (number | null)Required in this branchUnknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced.
At least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchminimum:0 -
anyOf 2nullSchema branch
-
-
currencystringRequired in this branchmaxLength:100minLength:1 -
websiteBookingIdstring · uuidOptional in this branch -
originstringOptional in this branchValue:
"website" -
serviceUpdatedAtstring · date-timeOptional in this branch -
slotGridAnchorstringOptional in this branchPresent only for accepted treatment-duration grids that restart at each scheduled work segment after a break. Absence preserves the existing day-opening anchor, including historical appointments. Use server-returned availability slots; do not infer the rule from duration, interval, or current business settings.
Allowed values:
["segment_start"] -
basePriceRangeMajoranyOf (object | null)Optional in this branchNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
totalPriceRangeMajoranyOf (object | null)Optional in this branchNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
basePriceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
basePriceMajornullOptional in this branch
-
-
-
allOf 2unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
totalPriceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
totalPriceMajornullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
websiteBookingIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
notesanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:4000 -
anyOf 2nullSchema branch
-
-
fieldUnavailableReasonsobjectRequired in this branchView nested fields
-
priceMajorstringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
termsstringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
notesstringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
additionalPropertiesno value allowedSchema rule
-
-
timezoneanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:100 -
anyOf 2nullSchema branch
-
-
websiteVersionanyOf (integer | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1integerSchema branchminimum:1maximum:9007199254740991 -
anyOf 2nullSchema branch
-
-
customeranyOf (object | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchCurrent basic canonical contact projection, including unmapped and blocked contacts. An unavailable stored name/phone/language is null with its fieldUnavailableReasons entry; source data is preserved. Notes, email, arbitrary custom data, consent, customer proof and booking history are absent.
View branch fields and rules
-
businessCustomerIdstring · uuidRequired in this branch -
versionstringRequired in this branchDatabase-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version.
pattern:"^c(0|[1-9][0-9]{0,18})$" -
displayNamestring | nullRequired in this branchmaxLength:4096 -
phonestring | nullRequired in this branchpattern:"^\\+[1-9][0-9]{7,14}$" -
languageanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchAllowed values:
["he","ar","en"] -
anyOf 2nullSchema branch
-
-
isBlockedbooleanRequired in this branch -
createdAtstring · date-timeRequired in this branch -
fieldUnavailableReasonsobjectRequired in this branchView nested fields
-
displayNamestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
phonestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
languagestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allowedActionsarrayRequired in this branchmaxItems:10View nested fields
-
[]objectArray itemView nested fields
-
actionstringRequired in this branchAllowed values:
["status","mark_missed","cancel","reschedule","undo","propose_time"] -
statusstringOptional in this branchAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
allowedbooleanRequired in this branch -
reasonstringOptional in this branchpattern:"^[a-z][a-z0-9_]{0,99}$" -
additionalPropertiesno value allowedSchema rule
-
-
-
approvalRequiredbooleanOptional in this branchCustomer request requiring a clinic decision. Existing appointments and manually entered appointments are preserved.
-
timeProposalanyOf (object | null)Optional in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchVersion-bound alternative for a pending request. The original keeps its slot; the alternative is not held. Acceptance rechecks capacity and creates one confirmed successor preserving accepted terms. Expired or replaced offers cannot be accepted.
View branch fields and rules
-
proposalIdstring · uuidRequired in this branch -
appointmentVersionstringRequired in this branchOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
startAtstring · date-timeRequired in this branch -
endAtstring · date-timeRequired in this branch -
expiresAtstring · date-timeRequired in this branch -
statestringRequired in this branchAllowed values:
["offered","accepted","declined"] -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
priceRangeMajoranyOf (object | null)Optional in this branchNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
priceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
priceMajornullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
currentUnavailableReasonnull | stringRequiredAllowed values:
[null,"removed","access_unavailable"] -
replayedbooleanRequired -
undoobjectOptionalView nested fields
-
operationIdstring · uuidRequired -
expectedVersionstringRequiredOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
previousStatusstringRequiredAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
expiresAtstring · date-timeRequired -
additionalPropertiesno value allowedSchema rule
-
-
notificationCurrentanyOf (object | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1 · intent = "request_notice"objectSchema branchView branch fields and rules
-
intentstringRequired in this branchValue:
"request_notice" -
statestringRequired in this branchAllowed values:
["queued","unavailable","dispatching","accepted","delivered","failed","unknown","suppressed","expired"] -
routestringRequired in this branchAllowed values:
["legacy_cancellation","business_calendar_change"] -
noticeIdstring · uuidRequired in this branch -
reasonanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchpattern:"^[a-z][a-z0-9_]{0,99}$" -
anyOf 2nullSchema branch
-
-
updatedAtstring · date-timeRequired in this branch -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"receipt": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"action": {
"enum": [
"create",
"status",
"mark_missed",
"cancel",
"reschedule",
"undo",
"propose_time"
]
},
"appointmentId": {
"type": "string",
"format": "uuid"
},
"acceptedVersion": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"successorAppointmentId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"successorVersion": {
"anyOf": [
{
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
{
"type": "null"
}
]
},
"status": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
},
"notification": {
"type": "object",
"additionalProperties": false,
"properties": {
"intent": {
"enum": [
"silent",
"request_notice"
]
},
"state": {
"enum": [
"not_requested",
"queued",
"pending",
"dispatching",
"accepted",
"sent",
"failed",
"unknown",
"unavailable",
"suppressed",
"expired"
]
},
"route": {
"enum": [
null,
"legacy_cancellation",
"business_calendar_change",
"website"
]
},
"noticeId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
}
},
"required": [
"intent",
"state",
"route"
]
}
},
"required": [
"operationId",
"action",
"appointmentId",
"acceptedVersion",
"successorAppointmentId",
"successorVersion",
"status",
"startAt",
"endAt",
"notification"
]
},
"current": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"appointmentId": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"businessCustomerId": {
"type": "string",
"format": "uuid"
},
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
},
"status": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"providerId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"serviceId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"priceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Stored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields."
},
{
"type": "null"
}
]
},
"currency": {
"anyOf": [
{
"type": "string",
"maxLength": 100,
"minLength": 1
},
{
"type": "null"
}
],
"description": "Frozen accepted currency, or null when an ordinary legacy appointment did not save a currency. CRAD does not infer a current catalogue currency."
},
"terms": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"const": 1
},
"policy": {
"enum": [
"service_duration_v1",
"legacy_fixed_slot_v1"
]
},
"policyVersion": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"serviceId": {
"type": "string",
"format": "uuid"
},
"providerId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"serviceName": {
"type": "object",
"additionalProperties": false,
"properties": {
"he": {
"type": "string",
"maxLength": 4096
},
"ar": {
"type": "string",
"maxLength": 4096
},
"en": {
"type": "string",
"maxLength": 4096
}
},
"required": []
},
"baseDurationMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
},
"removalDurationMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 240
},
"durationMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
},
"slotIntervalMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
},
"withRemoval": {
"type": "boolean"
},
"basePriceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "null"
}
],
"description": "Unknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced."
},
"removalPriceMajor": {
"type": "number",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Stored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields."
},
"totalPriceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "null"
}
],
"description": "Unknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced."
},
"currency": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"websiteBookingId": {
"type": "string",
"format": "uuid"
},
"origin": {
"const": "website"
},
"serviceUpdatedAt": {
"type": "string",
"format": "date-time"
},
"slotGridAnchor": {
"enum": [
"segment_start"
],
"description": "Present only for accepted treatment-duration grids that restart at each scheduled work segment after a break. Absence preserves the existing day-opening anchor, including historical appointments. Use server-returned availability slots; do not infer the rule from duration, interval, or current business settings."
},
"basePriceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
},
"totalPriceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
}
},
"required": [
"version",
"policy",
"policyVersion",
"serviceId",
"providerId",
"serviceName",
"baseDurationMinutes",
"removalDurationMinutes",
"durationMinutes",
"slotIntervalMinutes",
"withRemoval",
"basePriceMajor",
"removalPriceMajor",
"totalPriceMajor",
"currency"
],
"allOf": [
{
"if": {
"required": [
"basePriceRangeMajor"
],
"properties": {
"basePriceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"basePriceMajor": {
"type": "null"
}
}
}
},
{
"if": {
"required": [
"totalPriceRangeMajor"
],
"properties": {
"totalPriceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"totalPriceMajor": {
"type": "null"
}
}
}
}
]
},
{
"type": "null"
}
]
},
"websiteBookingId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"notes": {
"anyOf": [
{
"type": "string",
"maxLength": 4000
},
{
"type": "null"
}
]
},
"fieldUnavailableReasons": {
"type": "object",
"additionalProperties": false,
"properties": {
"priceMajor": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"terms": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"notes": {
"enum": [
"too_large",
"invalid_stored_value"
]
}
},
"required": []
},
"timezone": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
},
"websiteVersion": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"customer": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"businessCustomerId": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "string",
"pattern": "^c(0|[1-9][0-9]{0,18})$",
"description": "Database-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version."
},
"displayName": {
"type": [
"string",
"null"
],
"maxLength": 4096
},
"phone": {
"type": [
"string",
"null"
],
"pattern": "^\\+[1-9][0-9]{7,14}$"
},
"language": {
"anyOf": [
{
"type": "string",
"enum": [
"he",
"ar",
"en"
]
},
{
"type": "null"
}
]
},
"isBlocked": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"fieldUnavailableReasons": {
"type": "object",
"additionalProperties": false,
"properties": {
"displayName": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"phone": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"language": {
"enum": [
"too_large",
"invalid_stored_value"
]
}
},
"required": []
}
},
"required": [
"businessCustomerId",
"version",
"displayName",
"phone",
"language",
"isBlocked",
"createdAt",
"fieldUnavailableReasons"
],
"description": "Current basic canonical contact projection, including unmapped and blocked contacts. An unavailable stored name/phone/language is null with its fieldUnavailableReasons entry; source data is preserved. Notes, email, arbitrary custom data, consent, customer proof and booking history are absent."
},
{
"type": "null"
}
]
},
"allowedActions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"status",
"mark_missed",
"cancel",
"reschedule",
"undo",
"propose_time"
]
},
"status": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"allowed": {
"type": "boolean"
},
"reason": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,99}$"
}
},
"required": [
"action",
"allowed"
]
},
"maxItems": 10
},
"approvalRequired": {
"type": "boolean",
"description": "Customer request requiring a clinic decision. Existing appointments and manually entered appointments are preserved."
},
"timeProposal": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"proposalId": {
"type": "string",
"format": "uuid"
},
"appointmentVersion": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"state": {
"enum": [
"offered",
"accepted",
"declined"
]
}
},
"required": [
"proposalId",
"appointmentVersion",
"startAt",
"endAt",
"expiresAt",
"state"
],
"description": "Version-bound alternative for a pending request. The original keeps its slot; the alternative is not held. Acceptance rechecks capacity and creates one confirmed successor preserving accepted terms. Expired or replaced offers cannot be accepted."
},
{
"type": "null"
}
]
},
"priceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
}
},
"required": [
"appointmentId",
"version",
"businessCustomerId",
"startAt",
"endAt",
"status",
"providerId",
"serviceId",
"priceMajor",
"currency",
"terms",
"websiteBookingId",
"notes",
"fieldUnavailableReasons",
"timezone",
"websiteVersion",
"customer",
"allowedActions"
],
"description": "Current authorized physical appointment. Joined customer basics require contacts:read independently; notes require appointments:notes:read AND the current notesRead grant. No email, private customer fields, raw custom_data or raw snapshot is exported. allowedActions is advisory current state; commands recheck all preconditions.",
"allOf": [
{
"if": {
"required": [
"priceRangeMajor"
],
"properties": {
"priceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"priceMajor": {
"type": "null"
}
}
}
}
]
},
{
"type": "null"
}
]
},
"currentUnavailableReason": {
"enum": [
null,
"removed",
"access_unavailable"
]
},
"replayed": {
"type": "boolean"
},
"undo": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"expectedVersion": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"previousStatus": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"expiresAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"operationId",
"expectedVersion",
"previousStatus",
"expiresAt"
]
},
"notificationCurrent": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"intent": {
"const": "request_notice"
},
"state": {
"enum": [
"queued",
"unavailable",
"dispatching",
"accepted",
"delivered",
"failed",
"unknown",
"suppressed",
"expired"
]
},
"route": {
"enum": [
"legacy_cancellation",
"business_calendar_change"
]
},
"noticeId": {
"type": "string",
"format": "uuid"
},
"reason": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,99}$"
},
{
"type": "null"
}
]
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"intent",
"state",
"route",
"noticeId",
"reason",
"updatedAt"
]
},
{
"type": "null"
}
]
}
},
"required": [
"receipt",
"current",
"currentUnavailableReason",
"replayed"
],
"description": "receipt preserves the accepted operation facts. current is rehydrated now and may differ or be null. notificationCurrent, when present, is current delivery state distinct from the immutable accepted notification intent. A queued notice is not evidence of delivery. Never retry unknown delivery by creating another command."
} 201 · BusinessCalendarCommand
Created; exact replay returns 200.
Cache-Control · Contains no-store. Do not cache appointments, grants or receipts.
{
"type": "string",
"const": "no-store"
} ETag · Quoted current physical version when current state is present; omitted when unavailable.
{
"type": "string",
"pattern": "^\"a(?:0|[1-9][0-9]{0,18})\"$"
} application/json · BusinessCalendarCommand
receipt preserves the accepted operation facts. current is rehydrated now and may differ or be null. notificationCurrent, when present, is current delivery state distinct from the immutable accepted notification intent. A queued notice is not evidence of delivery. Never retry unknown delivery by creating another command.
-
receiptobjectRequiredView nested fields
-
operationIdstring · uuidRequired -
actionstringRequiredAllowed values:
["create","status","mark_missed","cancel","reschedule","undo","propose_time"] -
appointmentIdstring · uuidRequired -
acceptedVersionstringRequiredOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
successorAppointmentIdanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
successorVersionanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
anyOf 2nullSchema branch
-
-
statusstringRequiredAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
startAtstring · date-timeRequired -
endAtstring · date-timeRequired -
notificationobjectRequiredView nested fields
-
intentstringRequiredAllowed values:
["silent","request_notice"] -
statestringRequiredAllowed values:
["not_requested","queued","pending","dispatching","accepted","sent","failed","unknown","unavailable","suppressed","expired"] -
routenull | stringRequiredAllowed values:
[null,"legacy_cancellation","business_calendar_change","website"] -
noticeIdanyOf (string | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
reasonanyOf (string | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:200 -
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
-
-
currentanyOf (object; allOf (unspecified) | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1object; allOf (unspecified)Schema branchCurrent authorized physical appointment. Joined customer basics require contacts:read independently; notes require appointments:notes:read AND the current notesRead grant. No email, private customer fields, raw custom_data or raw snapshot is exported. allowedActions is advisory current state; commands recheck all preconditions.
All of these schema rules apply together.
View branch fields and rules
-
appointmentIdstring · uuidRequired in this branch -
versionstringRequired in this branchOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
businessCustomerIdstring · uuidRequired in this branch -
startAtstring · date-timeRequired in this branch -
endAtstring · date-timeRequired in this branch -
statusstringRequired in this branchAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
providerIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
serviceIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
priceMajoranyOf (number | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchStored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields.
minimum:0maximum:9007199254740991 -
anyOf 2nullSchema branch
-
-
currencyanyOf (string | null)Required in this branchFrozen accepted currency, or null when an ordinary legacy appointment did not save a currency. CRAD does not infer a current catalogue currency.
At least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:100minLength:1 -
anyOf 2nullSchema branch
-
-
termsanyOf (object; allOf (unspecified & unspecified) | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1 · version = 1object; allOf (unspecified & unspecified)Schema branchAll of these schema rules apply together.
View branch fields and rules
-
versionnumberRequired in this branchValue:
1 -
policystringRequired in this branchAllowed values:
["service_duration_v1","legacy_fixed_slot_v1"] -
policyVersionintegerRequired in this branchminimum:1maximum:9007199254740991 -
serviceIdstring · uuidRequired in this branch -
providerIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
serviceNameobjectRequired in this branchView nested fields
-
hestringOptional in this branchmaxLength:4096 -
arstringOptional in this branchmaxLength:4096 -
enstringOptional in this branchmaxLength:4096 -
additionalPropertiesno value allowedSchema rule
-
-
baseDurationMinutesintegerRequired in this branchminimum:1maximum:1440 -
removalDurationMinutesintegerRequired in this branchminimum:0maximum:240 -
durationMinutesintegerRequired in this branchminimum:1maximum:1440 -
slotIntervalMinutesintegerRequired in this branchminimum:1maximum:1440 -
withRemovalbooleanRequired in this branch -
basePriceMajoranyOf (number | null)Required in this branchUnknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced.
At least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchminimum:0 -
anyOf 2nullSchema branch
-
-
removalPriceMajornumberRequired in this branchStored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields.
minimum:0maximum:9007199254740991 -
totalPriceMajoranyOf (number | null)Required in this branchUnknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced.
At least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchminimum:0 -
anyOf 2nullSchema branch
-
-
currencystringRequired in this branchmaxLength:100minLength:1 -
websiteBookingIdstring · uuidOptional in this branch -
originstringOptional in this branchValue:
"website" -
serviceUpdatedAtstring · date-timeOptional in this branch -
slotGridAnchorstringOptional in this branchPresent only for accepted treatment-duration grids that restart at each scheduled work segment after a break. Absence preserves the existing day-opening anchor, including historical appointments. Use server-returned availability slots; do not infer the rule from duration, interval, or current business settings.
Allowed values:
["segment_start"] -
basePriceRangeMajoranyOf (object | null)Optional in this branchNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
totalPriceRangeMajoranyOf (object | null)Optional in this branchNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
basePriceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
basePriceMajornullOptional in this branch
-
-
-
allOf 2unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
totalPriceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
totalPriceMajornullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
websiteBookingIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
notesanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:4000 -
anyOf 2nullSchema branch
-
-
fieldUnavailableReasonsobjectRequired in this branchView nested fields
-
priceMajorstringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
termsstringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
notesstringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
additionalPropertiesno value allowedSchema rule
-
-
timezoneanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:100 -
anyOf 2nullSchema branch
-
-
websiteVersionanyOf (integer | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1integerSchema branchminimum:1maximum:9007199254740991 -
anyOf 2nullSchema branch
-
-
customeranyOf (object | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchCurrent basic canonical contact projection, including unmapped and blocked contacts. An unavailable stored name/phone/language is null with its fieldUnavailableReasons entry; source data is preserved. Notes, email, arbitrary custom data, consent, customer proof and booking history are absent.
View branch fields and rules
-
businessCustomerIdstring · uuidRequired in this branch -
versionstringRequired in this branchDatabase-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version.
pattern:"^c(0|[1-9][0-9]{0,18})$" -
displayNamestring | nullRequired in this branchmaxLength:4096 -
phonestring | nullRequired in this branchpattern:"^\\+[1-9][0-9]{7,14}$" -
languageanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchAllowed values:
["he","ar","en"] -
anyOf 2nullSchema branch
-
-
isBlockedbooleanRequired in this branch -
createdAtstring · date-timeRequired in this branch -
fieldUnavailableReasonsobjectRequired in this branchView nested fields
-
displayNamestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
phonestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
languagestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allowedActionsarrayRequired in this branchmaxItems:10View nested fields
-
[]objectArray itemView nested fields
-
actionstringRequired in this branchAllowed values:
["status","mark_missed","cancel","reschedule","undo","propose_time"] -
statusstringOptional in this branchAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
allowedbooleanRequired in this branch -
reasonstringOptional in this branchpattern:"^[a-z][a-z0-9_]{0,99}$" -
additionalPropertiesno value allowedSchema rule
-
-
-
approvalRequiredbooleanOptional in this branchCustomer request requiring a clinic decision. Existing appointments and manually entered appointments are preserved.
-
timeProposalanyOf (object | null)Optional in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchVersion-bound alternative for a pending request. The original keeps its slot; the alternative is not held. Acceptance rechecks capacity and creates one confirmed successor preserving accepted terms. Expired or replaced offers cannot be accepted.
View branch fields and rules
-
proposalIdstring · uuidRequired in this branch -
appointmentVersionstringRequired in this branchOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
startAtstring · date-timeRequired in this branch -
endAtstring · date-timeRequired in this branch -
expiresAtstring · date-timeRequired in this branch -
statestringRequired in this branchAllowed values:
["offered","accepted","declined"] -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
priceRangeMajoranyOf (object | null)Optional in this branchNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
priceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
priceMajornullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
currentUnavailableReasonnull | stringRequiredAllowed values:
[null,"removed","access_unavailable"] -
replayedbooleanRequired -
undoobjectOptionalView nested fields
-
operationIdstring · uuidRequired -
expectedVersionstringRequiredOpaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions.
pattern:"^a(?:0|[1-9][0-9]{0,18})$" -
previousStatusstringRequiredAllowed values:
["PENDING","CONFIRMED","NOW","COMPLETED","CANCELLED","MISSED"] -
expiresAtstring · date-timeRequired -
additionalPropertiesno value allowedSchema rule
-
-
notificationCurrentanyOf (object | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1 · intent = "request_notice"objectSchema branchView branch fields and rules
-
intentstringRequired in this branchValue:
"request_notice" -
statestringRequired in this branchAllowed values:
["queued","unavailable","dispatching","accepted","delivered","failed","unknown","suppressed","expired"] -
routestringRequired in this branchAllowed values:
["legacy_cancellation","business_calendar_change"] -
noticeIdstring · uuidRequired in this branch -
reasonanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchpattern:"^[a-z][a-z0-9_]{0,99}$" -
anyOf 2nullSchema branch
-
-
updatedAtstring · date-timeRequired in this branch -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"receipt": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"action": {
"enum": [
"create",
"status",
"mark_missed",
"cancel",
"reschedule",
"undo",
"propose_time"
]
},
"appointmentId": {
"type": "string",
"format": "uuid"
},
"acceptedVersion": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"successorAppointmentId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"successorVersion": {
"anyOf": [
{
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
{
"type": "null"
}
]
},
"status": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
},
"notification": {
"type": "object",
"additionalProperties": false,
"properties": {
"intent": {
"enum": [
"silent",
"request_notice"
]
},
"state": {
"enum": [
"not_requested",
"queued",
"pending",
"dispatching",
"accepted",
"sent",
"failed",
"unknown",
"unavailable",
"suppressed",
"expired"
]
},
"route": {
"enum": [
null,
"legacy_cancellation",
"business_calendar_change",
"website"
]
},
"noticeId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
}
},
"required": [
"intent",
"state",
"route"
]
}
},
"required": [
"operationId",
"action",
"appointmentId",
"acceptedVersion",
"successorAppointmentId",
"successorVersion",
"status",
"startAt",
"endAt",
"notification"
]
},
"current": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"appointmentId": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"businessCustomerId": {
"type": "string",
"format": "uuid"
},
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
},
"status": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"providerId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"serviceId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"priceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Stored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields."
},
{
"type": "null"
}
]
},
"currency": {
"anyOf": [
{
"type": "string",
"maxLength": 100,
"minLength": 1
},
{
"type": "null"
}
],
"description": "Frozen accepted currency, or null when an ordinary legacy appointment did not save a currency. CRAD does not infer a current catalogue currency."
},
"terms": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"const": 1
},
"policy": {
"enum": [
"service_duration_v1",
"legacy_fixed_slot_v1"
]
},
"policyVersion": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"serviceId": {
"type": "string",
"format": "uuid"
},
"providerId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"serviceName": {
"type": "object",
"additionalProperties": false,
"properties": {
"he": {
"type": "string",
"maxLength": 4096
},
"ar": {
"type": "string",
"maxLength": 4096
},
"en": {
"type": "string",
"maxLength": 4096
}
},
"required": []
},
"baseDurationMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
},
"removalDurationMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 240
},
"durationMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
},
"slotIntervalMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
},
"withRemoval": {
"type": "boolean"
},
"basePriceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "null"
}
],
"description": "Unknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced."
},
"removalPriceMajor": {
"type": "number",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Stored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields."
},
"totalPriceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "null"
}
],
"description": "Unknown accepted price remains null, distinct from an explicit zero. Base and total must both be null or both priced."
},
"currency": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"websiteBookingId": {
"type": "string",
"format": "uuid"
},
"origin": {
"const": "website"
},
"serviceUpdatedAt": {
"type": "string",
"format": "date-time"
},
"slotGridAnchor": {
"enum": [
"segment_start"
],
"description": "Present only for accepted treatment-duration grids that restart at each scheduled work segment after a break. Absence preserves the existing day-opening anchor, including historical appointments. Use server-returned availability slots; do not infer the rule from duration, interval, or current business settings."
},
"basePriceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
},
"totalPriceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
}
},
"required": [
"version",
"policy",
"policyVersion",
"serviceId",
"providerId",
"serviceName",
"baseDurationMinutes",
"removalDurationMinutes",
"durationMinutes",
"slotIntervalMinutes",
"withRemoval",
"basePriceMajor",
"removalPriceMajor",
"totalPriceMajor",
"currency"
],
"allOf": [
{
"if": {
"required": [
"basePriceRangeMajor"
],
"properties": {
"basePriceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"basePriceMajor": {
"type": "null"
}
}
}
},
{
"if": {
"required": [
"totalPriceRangeMajor"
],
"properties": {
"totalPriceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"totalPriceMajor": {
"type": "null"
}
}
}
}
]
},
{
"type": "null"
}
]
},
"websiteBookingId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"notes": {
"anyOf": [
{
"type": "string",
"maxLength": 4000
},
{
"type": "null"
}
]
},
"fieldUnavailableReasons": {
"type": "object",
"additionalProperties": false,
"properties": {
"priceMajor": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"terms": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"notes": {
"enum": [
"too_large",
"invalid_stored_value"
]
}
},
"required": []
},
"timezone": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
},
"websiteVersion": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"customer": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"businessCustomerId": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "string",
"pattern": "^c(0|[1-9][0-9]{0,18})$",
"description": "Database-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version."
},
"displayName": {
"type": [
"string",
"null"
],
"maxLength": 4096
},
"phone": {
"type": [
"string",
"null"
],
"pattern": "^\\+[1-9][0-9]{7,14}$"
},
"language": {
"anyOf": [
{
"type": "string",
"enum": [
"he",
"ar",
"en"
]
},
{
"type": "null"
}
]
},
"isBlocked": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"fieldUnavailableReasons": {
"type": "object",
"additionalProperties": false,
"properties": {
"displayName": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"phone": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"language": {
"enum": [
"too_large",
"invalid_stored_value"
]
}
},
"required": []
}
},
"required": [
"businessCustomerId",
"version",
"displayName",
"phone",
"language",
"isBlocked",
"createdAt",
"fieldUnavailableReasons"
],
"description": "Current basic canonical contact projection, including unmapped and blocked contacts. An unavailable stored name/phone/language is null with its fieldUnavailableReasons entry; source data is preserved. Notes, email, arbitrary custom data, consent, customer proof and booking history are absent."
},
{
"type": "null"
}
]
},
"allowedActions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"status",
"mark_missed",
"cancel",
"reschedule",
"undo",
"propose_time"
]
},
"status": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"allowed": {
"type": "boolean"
},
"reason": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,99}$"
}
},
"required": [
"action",
"allowed"
]
},
"maxItems": 10
},
"approvalRequired": {
"type": "boolean",
"description": "Customer request requiring a clinic decision. Existing appointments and manually entered appointments are preserved."
},
"timeProposal": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"proposalId": {
"type": "string",
"format": "uuid"
},
"appointmentVersion": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"state": {
"enum": [
"offered",
"accepted",
"declined"
]
}
},
"required": [
"proposalId",
"appointmentVersion",
"startAt",
"endAt",
"expiresAt",
"state"
],
"description": "Version-bound alternative for a pending request. The original keeps its slot; the alternative is not held. Acceptance rechecks capacity and creates one confirmed successor preserving accepted terms. Expired or replaced offers cannot be accepted."
},
{
"type": "null"
}
]
},
"priceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
}
},
"required": [
"appointmentId",
"version",
"businessCustomerId",
"startAt",
"endAt",
"status",
"providerId",
"serviceId",
"priceMajor",
"currency",
"terms",
"websiteBookingId",
"notes",
"fieldUnavailableReasons",
"timezone",
"websiteVersion",
"customer",
"allowedActions"
],
"description": "Current authorized physical appointment. Joined customer basics require contacts:read independently; notes require appointments:notes:read AND the current notesRead grant. No email, private customer fields, raw custom_data or raw snapshot is exported. allowedActions is advisory current state; commands recheck all preconditions.",
"allOf": [
{
"if": {
"required": [
"priceRangeMajor"
],
"properties": {
"priceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"priceMajor": {
"type": "null"
}
}
}
}
]
},
{
"type": "null"
}
]
},
"currentUnavailableReason": {
"enum": [
null,
"removed",
"access_unavailable"
]
},
"replayed": {
"type": "boolean"
},
"undo": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"expectedVersion": {
"type": "string",
"pattern": "^a(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical appointment revision, a0 through a9223372036854775807. Preserve exactly; this is distinct from website lineage versions."
},
"previousStatus": {
"enum": [
"PENDING",
"CONFIRMED",
"NOW",
"COMPLETED",
"CANCELLED",
"MISSED"
]
},
"expiresAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"operationId",
"expectedVersion",
"previousStatus",
"expiresAt"
]
},
"notificationCurrent": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"intent": {
"const": "request_notice"
},
"state": {
"enum": [
"queued",
"unavailable",
"dispatching",
"accepted",
"delivered",
"failed",
"unknown",
"suppressed",
"expired"
]
},
"route": {
"enum": [
"legacy_cancellation",
"business_calendar_change"
]
},
"noticeId": {
"type": "string",
"format": "uuid"
},
"reason": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,99}$"
},
{
"type": "null"
}
]
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"intent",
"state",
"route",
"noticeId",
"reason",
"updatedAt"
]
},
{
"type": "null"
}
]
}
},
"required": [
"receipt",
"current",
"currentUnavailableReason",
"replayed"
],
"description": "receipt preserves the accepted operation facts. current is rehydrated now and may differ or be null. notificationCurrent, when present, is current delivery state distinct from the immutable accepted notification intent. A queued notice is not evidence of delivery. Never retry unknown delivery by creating another command."
} Errors and recovery
Error responses declared in the contract (10)
The pinned contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.
401 · Missing/invalid Management bearer.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 403 · Current scope, calendar grant or authority denied; a browser Origin is refused.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 405 · Method not allowed.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 409 · Action, quote, slot, operation, projection or checkpoint conflict. No partial command.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 413 · Bounded request body exceeded.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 415 · JSON content type required.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 422 · Malformed or unsupported request, including caller-supplied authority or price.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 428 · Required Idempotency-Key or quoted If-Match is absent.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 429 · Machine request, directory cursor or snapshot limit exceeded.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 503 · Persistence unavailable or outcome uncertain. Retain the original UUID/body and recover it before any new operation.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
}