/v1/management/booking-policy-operations/{operationId}Behavior
Development preview; this source contract alone does not assert deployment. Server only: your backend authenticates its administrator and uses an explicitly owner-issued wbm_ credential without Origin. Tenant comes from the current key. booking-policy:read is required; writes and operation recovery also require booking-policy:write. These scopes cover the whole business without a separate calendar or schedule resource grant. Existing keys gain no scopes. Installed capabilities bookingPolicyRead/bookingPolicyWrite advertise support, not authority; the separate duration-policy capability does not widen these R1 routes. Public intake, WhatsApp connection, customer OTP and messaging consent are separate. Existing appointments, prices, accepted snapshots and UTC instants are preserved; provider settings and published service selection are unchanged. Recover using the original operation UUID after a lost response. not_found does not prove a concurrent request will never commit: retain the same UUID/body when retrying. A current write-authorized key from the same integration can recover an accepted operation after key rotation; a fresh unaccepted preview stays bound to its original credential. Revoked/reduced authority cannot disclose a receipt. Native-user and Management operation namespaces are separate.
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
booking-policy:readbooking-policy:write
Requires current authority for the same integration. A committed receipt describes the accepted operation, while current is independently refreshed. not_found does not cancel a delayed command or authorize a replacement operation.
Request
operationIdpath · stringRequiredFormat and constraints
{ "type": "string", "format": "uuid" }
Successful responses
200 · BusinessBookingPolicyOperation
Success.
Cache-Control · Do not cache policy, preview or acceptance.
{
"type": "string",
"const": "no-store"
} application/json · BusinessBookingPolicyOperation
Exactly one of these variants must match.
-
oneOf 1 · status = "not_found"objectSchema branchView branch fields and rules
-
statusstringRequired in this branchValue:
"not_found" -
additionalPropertiesno value allowedSchema rule
-
-
oneOf 2 · status = "committed"objectSchema branchView branch fields and rules
-
statusstringRequired in this branchValue:
"committed" -
receiptobjectRequired in this branchView nested fields
-
operationIdstring · uuidRequired in this branch -
actionstringRequired in this branchValue:
"booking_policy_change" -
resourceIdstringRequired in this branchValue:
"business" -
acceptedVersionstringRequired in this branchOpaque physical settings-row identity and revision, capped at signed bigint. Preserve exactly; unrelated settings edits and no-ops do not bump it. A recreated row has a different UUID, even at revision zero.
pattern:"^bp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(?:0|[1-9][0-9]{0,18})$" -
beforeobjectRequired in this branchView nested fields
-
timezonestring | nullRequired in this branchBusiness timezone. Use supportedValues.timezone for a changed value; existing values outside that menu remain readable.
maxLength:256 -
slotDurationMinutesinteger | nullRequired in this branchBusiness default duration in minutes for new legacy fixed-slot appointments. Provider overrides and accepted service snapshots retain their own terms. Existing appointments keep their original end time.
minimum:-2147483648maximum:2147483647 -
minBookingNoticeMinutesinteger | nullRequired in this branchMinimum notice for a new customer booking. Use supportedValues when changing this value.
minimum:-2147483648maximum:2147483647 -
minCancelNoticeMinutesinteger | nullRequired in this branchMinimum notice for customer cancellation. Existing appointments stay in place; future authorized actions use current notice rules.
minimum:-2147483648maximum:2147483647 -
openingHoursunspecifiedRequired in this branchStored business weekly hours, preserved verbatim including legacy JSON-null. For a changed value send a complete WeeklyHours object: sunday through saturday; each day enabled, open/close HH:mm when enabled, optional breaks [{start,end}]. No overnight intervals, out-of-hours or overlapping breaks. Omit unchanged legacy hours. Provider overrides remain independent.
-
requireBookingApprovalbooleanOptional in this branchPer-business opt-in for new customer requests only. Existing statuses, snapshots and native/manual appointments are preserved. Approval/decline uses canonical commands; delivery is separate.
default:false -
customerAppointmentChangesstringOptional in this branchcontact_business refuses new customer bot/public change/cancel mutations with current contact guidance. Owner actions and explicit acceptance/refusal of alternative times stay available. Exact accepted receipt replay is preserved.
Allowed values:
["self_service","contact_business"]default:"self_service" -
bookingHorizonDaysintegerOptional in this branchCustomer booking window in business-local calendar days, inclusive of today through today + this value. Shared by website and WhatsApp. Existing appointments and owner scheduling are preserved. May be absent in immutable receipts from before this capability was installed.
Allowed values:
[14,30,60,90] -
additionalPropertiesno value allowedSchema rule
-
-
afterobjectRequired in this branchView nested fields
-
timezonestring | nullRequired in this branchBusiness timezone. Use supportedValues.timezone for a changed value; existing values outside that menu remain readable.
maxLength:256 -
slotDurationMinutesinteger | nullRequired in this branchBusiness default duration in minutes for new legacy fixed-slot appointments. Provider overrides and accepted service snapshots retain their own terms. Existing appointments keep their original end time.
minimum:-2147483648maximum:2147483647 -
minBookingNoticeMinutesinteger | nullRequired in this branchMinimum notice for a new customer booking. Use supportedValues when changing this value.
minimum:-2147483648maximum:2147483647 -
minCancelNoticeMinutesinteger | nullRequired in this branchMinimum notice for customer cancellation. Existing appointments stay in place; future authorized actions use current notice rules.
minimum:-2147483648maximum:2147483647 -
openingHoursunspecifiedRequired in this branchStored business weekly hours, preserved verbatim including legacy JSON-null. For a changed value send a complete WeeklyHours object: sunday through saturday; each day enabled, open/close HH:mm when enabled, optional breaks [{start,end}]. No overnight intervals, out-of-hours or overlapping breaks. Omit unchanged legacy hours. Provider overrides remain independent.
-
requireBookingApprovalbooleanOptional in this branchPer-business opt-in for new customer requests only. Existing statuses, snapshots and native/manual appointments are preserved. Approval/decline uses canonical commands; delivery is separate.
default:false -
customerAppointmentChangesstringOptional in this branchcontact_business refuses new customer bot/public change/cancel mutations with current contact guidance. Owner actions and explicit acceptance/refusal of alternative times stay available. Exact accepted receipt replay is preserved.
Allowed values:
["self_service","contact_business"]default:"self_service" -
bookingHorizonDaysintegerOptional in this branchCustomer booking window in business-local calendar days, inclusive of today through today + this value. Shared by website and WhatsApp. Existing appointments and owner scheduling are preserved. May be absent in immutable receipts from before this capability was installed.
Allowed values:
[14,30,60,90] -
additionalPropertiesno value allowedSchema rule
-
-
impactobjectRequired in this branchAggregate impact at preview/acceptance; no appointment, provider or customer identifiers. Later edits and bookings can change current impact normally.
View nested fields
-
futureAppointmentCountintegerRequired in this branchNon-cancelled appointments ending after preview evaluation, including those already started. Bound: 10000; larger impact is refused instead of truncated.
minimum:0maximum:10000 -
protectedSnapshotCountintegerRequired in this branchPhysical non-null accepted snapshots; counted independently of current feature flags.
minimum:0maximum:10000 -
outsideProposedHoursCountinteger | nullRequired in this branchAppointments outside proposed business hours or their existing provider override. Null when the proposed timezone cannot be evaluated.
minimum:0maximum:10000 -
newlyOutsideHoursCountinteger | nullRequired in this branchPreviously inside but outside after the proposal; null when either timezone is not evaluable.
minimum:0maximum:10000 -
localStartDisplayChangedCountinteger | nullRequired in this branchAppointments whose local start display changes with timezone. UTC instants and duration remain unchanged. Null when either timezone is not evaluable.
minimum:0maximum:10000 -
legacyDurationKeptCountintegerRequired in this branchFuture PENDING/CONFIRMED legacy rows inheriting the changed business duration. Their existing end times are kept.
minimum:0maximum:10000 -
existingAppointmentsPreservedbooleanRequired in this branchValue:
true -
customerNoticeRulesChangedbooleanRequired in this branch -
additionalPropertiesno value allowedSchema rule
-
-
changedbooleanRequired in this branch -
existingAppointmentsPreservedbooleanRequired in this branchValue:
true -
additionalPropertiesno value allowedSchema rule
-
-
currentanyOf (object | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1 · resourceId = "business"objectSchema branchView branch fields and rules
-
resourceIdstringRequired in this branchValue:
"business" -
versionstringRequired in this branchOpaque physical settings-row identity and revision, capped at signed bigint. Preserve exactly; unrelated settings edits and no-ops do not bump it. A recreated row has a different UUID, even at revision zero.
pattern:"^bp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(?:0|[1-9][0-9]{0,18})$" -
policyobjectRequired in this branchView nested fields
-
timezonestring | nullRequired in this branchBusiness timezone. Use supportedValues.timezone for a changed value; existing values outside that menu remain readable.
maxLength:256 -
slotDurationMinutesinteger | nullRequired in this branchBusiness default duration in minutes for new legacy fixed-slot appointments. Provider overrides and accepted service snapshots retain their own terms. Existing appointments keep their original end time.
minimum:-2147483648maximum:2147483647 -
minBookingNoticeMinutesinteger | nullRequired in this branchMinimum notice for a new customer booking. Use supportedValues when changing this value.
minimum:-2147483648maximum:2147483647 -
minCancelNoticeMinutesinteger | nullRequired in this branchMinimum notice for customer cancellation. Existing appointments stay in place; future authorized actions use current notice rules.
minimum:-2147483648maximum:2147483647 -
openingHoursunspecifiedRequired in this branchStored business weekly hours, preserved verbatim including legacy JSON-null. For a changed value send a complete WeeklyHours object: sunday through saturday; each day enabled, open/close HH:mm when enabled, optional breaks [{start,end}]. No overnight intervals, out-of-hours or overlapping breaks. Omit unchanged legacy hours. Provider overrides remain independent.
-
requireBookingApprovalbooleanOptional in this branchPer-business opt-in for new customer requests only. Existing statuses, snapshots and native/manual appointments are preserved. Approval/decline uses canonical commands; delivery is separate.
default:false -
customerAppointmentChangesstringOptional in this branchcontact_business refuses new customer bot/public change/cancel mutations with current contact guidance. Owner actions and explicit acceptance/refusal of alternative times stay available. Exact accepted receipt replay is preserved.
Allowed values:
["self_service","contact_business"]default:"self_service" -
bookingHorizonDaysintegerOptional in this branchCustomer booking window in business-local calendar days, inclusive of today through today + this value. Shared by website and WhatsApp. Existing appointments and owner scheduling are preserved. May be absent in immutable receipts from before this capability was installed.
Allowed values:
[14,30,60,90] -
additionalPropertiesno value allowedSchema rule
-
-
existingAppointmentsPreservedbooleanRequired in this branchValue:
true -
durationRewriteAvailablebooleanRequired in this branchValue:
false -
supportedValuesobjectRequired in this branchView nested fields
-
timezonearrayRequired in this branchminItems:1maxItems:100uniqueItems:trueView nested fields
-
[]stringArray itemmaxLength:256
-
-
slotDurationMinutesarrayRequired in this branchminItems:1maxItems:100uniqueItems:trueView nested fields
-
[]integerArray item
-
-
minBookingNoticeMinutesarrayRequired in this branchminItems:1maxItems:100uniqueItems:trueView nested fields
-
[]integerArray item
-
-
minCancelNoticeMinutesarrayRequired in this branchminItems:1maxItems:100uniqueItems:trueView nested fields
-
[]integerArray item
-
-
bookingHorizonDaysarrayOptional in this branchSupported customer booking windows; use the current returned menu for an edited value. Absent on older deployments.
View nested fields
-
[]integerArray itemAllowed values:
[14,30,60,90]
-
-
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
replayedbooleanRequired in this branch -
additionalPropertiesno value allowedSchema rule
-
Complete schema and nested fields
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"const": "not_found"
}
},
"required": [
"status"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"const": "committed"
},
"receipt": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"action": {
"const": "booking_policy_change"
},
"resourceId": {
"const": "business"
},
"acceptedVersion": {
"type": "string",
"pattern": "^bp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical settings-row identity and revision, capped at signed bigint. Preserve exactly; unrelated settings edits and no-ops do not bump it. A recreated row has a different UUID, even at revision zero."
},
"before": {
"type": "object",
"additionalProperties": false,
"properties": {
"timezone": {
"type": [
"string",
"null"
],
"maxLength": 256,
"description": "Business timezone. Use supportedValues.timezone for a changed value; existing values outside that menu remain readable."
},
"slotDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Business default duration in minutes for new legacy fixed-slot appointments. Provider overrides and accepted service snapshots retain their own terms. Existing appointments keep their original end time."
},
"minBookingNoticeMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Minimum notice for a new customer booking. Use supportedValues when changing this value."
},
"minCancelNoticeMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Minimum notice for customer cancellation. Existing appointments stay in place; future authorized actions use current notice rules."
},
"openingHours": {
"description": "Stored business weekly hours, preserved verbatim including legacy JSON-null. For a changed value send a complete WeeklyHours object: sunday through saturday; each day enabled, open/close HH:mm when enabled, optional breaks [{start,end}]. No overnight intervals, out-of-hours or overlapping breaks. Omit unchanged legacy hours. Provider overrides remain independent."
},
"requireBookingApproval": {
"type": "boolean",
"default": false,
"description": "Per-business opt-in for new customer requests only. Existing statuses, snapshots and native/manual appointments are preserved. Approval/decline uses canonical commands; delivery is separate."
},
"customerAppointmentChanges": {
"enum": [
"self_service",
"contact_business"
],
"default": "self_service",
"description": "contact_business refuses new customer bot/public change/cancel mutations with current contact guidance. Owner actions and explicit acceptance/refusal of alternative times stay available. Exact accepted receipt replay is preserved."
},
"bookingHorizonDays": {
"type": "integer",
"enum": [
14,
30,
60,
90
],
"description": "Customer booking window in business-local calendar days, inclusive of today through today + this value. Shared by website and WhatsApp. Existing appointments and owner scheduling are preserved. May be absent in immutable receipts from before this capability was installed."
}
},
"required": [
"timezone",
"slotDurationMinutes",
"minBookingNoticeMinutes",
"minCancelNoticeMinutes",
"openingHours"
]
},
"after": {
"type": "object",
"additionalProperties": false,
"properties": {
"timezone": {
"type": [
"string",
"null"
],
"maxLength": 256,
"description": "Business timezone. Use supportedValues.timezone for a changed value; existing values outside that menu remain readable."
},
"slotDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Business default duration in minutes for new legacy fixed-slot appointments. Provider overrides and accepted service snapshots retain their own terms. Existing appointments keep their original end time."
},
"minBookingNoticeMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Minimum notice for a new customer booking. Use supportedValues when changing this value."
},
"minCancelNoticeMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Minimum notice for customer cancellation. Existing appointments stay in place; future authorized actions use current notice rules."
},
"openingHours": {
"description": "Stored business weekly hours, preserved verbatim including legacy JSON-null. For a changed value send a complete WeeklyHours object: sunday through saturday; each day enabled, open/close HH:mm when enabled, optional breaks [{start,end}]. No overnight intervals, out-of-hours or overlapping breaks. Omit unchanged legacy hours. Provider overrides remain independent."
},
"requireBookingApproval": {
"type": "boolean",
"default": false,
"description": "Per-business opt-in for new customer requests only. Existing statuses, snapshots and native/manual appointments are preserved. Approval/decline uses canonical commands; delivery is separate."
},
"customerAppointmentChanges": {
"enum": [
"self_service",
"contact_business"
],
"default": "self_service",
"description": "contact_business refuses new customer bot/public change/cancel mutations with current contact guidance. Owner actions and explicit acceptance/refusal of alternative times stay available. Exact accepted receipt replay is preserved."
},
"bookingHorizonDays": {
"type": "integer",
"enum": [
14,
30,
60,
90
],
"description": "Customer booking window in business-local calendar days, inclusive of today through today + this value. Shared by website and WhatsApp. Existing appointments and owner scheduling are preserved. May be absent in immutable receipts from before this capability was installed."
}
},
"required": [
"timezone",
"slotDurationMinutes",
"minBookingNoticeMinutes",
"minCancelNoticeMinutes",
"openingHours"
]
},
"impact": {
"type": "object",
"additionalProperties": false,
"properties": {
"futureAppointmentCount": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Non-cancelled appointments ending after preview evaluation, including those already started. Bound: 10000; larger impact is refused instead of truncated."
},
"protectedSnapshotCount": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Physical non-null accepted snapshots; counted independently of current feature flags."
},
"outsideProposedHoursCount": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 10000,
"description": "Appointments outside proposed business hours or their existing provider override. Null when the proposed timezone cannot be evaluated."
},
"newlyOutsideHoursCount": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 10000,
"description": "Previously inside but outside after the proposal; null when either timezone is not evaluable."
},
"localStartDisplayChangedCount": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 10000,
"description": "Appointments whose local start display changes with timezone. UTC instants and duration remain unchanged. Null when either timezone is not evaluable."
},
"legacyDurationKeptCount": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Future PENDING/CONFIRMED legacy rows inheriting the changed business duration. Their existing end times are kept."
},
"existingAppointmentsPreserved": {
"type": "boolean",
"const": true
},
"customerNoticeRulesChanged": {
"type": "boolean"
}
},
"required": [
"futureAppointmentCount",
"protectedSnapshotCount",
"outsideProposedHoursCount",
"newlyOutsideHoursCount",
"localStartDisplayChangedCount",
"legacyDurationKeptCount",
"existingAppointmentsPreserved",
"customerNoticeRulesChanged"
],
"description": "Aggregate impact at preview/acceptance; no appointment, provider or customer identifiers. Later edits and bookings can change current impact normally."
},
"changed": {
"type": "boolean"
},
"existingAppointmentsPreserved": {
"type": "boolean",
"const": true
}
},
"required": [
"operationId",
"action",
"resourceId",
"acceptedVersion",
"before",
"after",
"impact",
"changed",
"existingAppointmentsPreserved"
]
},
"current": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"resourceId": {
"const": "business"
},
"version": {
"type": "string",
"pattern": "^bp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(?:0|[1-9][0-9]{0,18})$",
"description": "Opaque physical settings-row identity and revision, capped at signed bigint. Preserve exactly; unrelated settings edits and no-ops do not bump it. A recreated row has a different UUID, even at revision zero."
},
"policy": {
"type": "object",
"additionalProperties": false,
"properties": {
"timezone": {
"type": [
"string",
"null"
],
"maxLength": 256,
"description": "Business timezone. Use supportedValues.timezone for a changed value; existing values outside that menu remain readable."
},
"slotDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Business default duration in minutes for new legacy fixed-slot appointments. Provider overrides and accepted service snapshots retain their own terms. Existing appointments keep their original end time."
},
"minBookingNoticeMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Minimum notice for a new customer booking. Use supportedValues when changing this value."
},
"minCancelNoticeMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Minimum notice for customer cancellation. Existing appointments stay in place; future authorized actions use current notice rules."
},
"openingHours": {
"description": "Stored business weekly hours, preserved verbatim including legacy JSON-null. For a changed value send a complete WeeklyHours object: sunday through saturday; each day enabled, open/close HH:mm when enabled, optional breaks [{start,end}]. No overnight intervals, out-of-hours or overlapping breaks. Omit unchanged legacy hours. Provider overrides remain independent."
},
"requireBookingApproval": {
"type": "boolean",
"default": false,
"description": "Per-business opt-in for new customer requests only. Existing statuses, snapshots and native/manual appointments are preserved. Approval/decline uses canonical commands; delivery is separate."
},
"customerAppointmentChanges": {
"enum": [
"self_service",
"contact_business"
],
"default": "self_service",
"description": "contact_business refuses new customer bot/public change/cancel mutations with current contact guidance. Owner actions and explicit acceptance/refusal of alternative times stay available. Exact accepted receipt replay is preserved."
},
"bookingHorizonDays": {
"type": "integer",
"enum": [
14,
30,
60,
90
],
"description": "Customer booking window in business-local calendar days, inclusive of today through today + this value. Shared by website and WhatsApp. Existing appointments and owner scheduling are preserved. May be absent in immutable receipts from before this capability was installed."
}
},
"required": [
"timezone",
"slotDurationMinutes",
"minBookingNoticeMinutes",
"minCancelNoticeMinutes",
"openingHours"
]
},
"existingAppointmentsPreserved": {
"type": "boolean",
"const": true
},
"durationRewriteAvailable": {
"type": "boolean",
"const": false
},
"supportedValues": {
"type": "object",
"additionalProperties": false,
"properties": {
"timezone": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"uniqueItems": true,
"items": {
"type": "string",
"maxLength": 256
}
},
"slotDurationMinutes": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"minBookingNoticeMinutes": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"minCancelNoticeMinutes": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"bookingHorizonDays": {
"type": "array",
"items": {
"type": "integer",
"enum": [
14,
30,
60,
90
]
},
"description": "Supported customer booking windows; use the current returned menu for an edited value. Absent on older deployments."
}
},
"required": [
"timezone",
"slotDurationMinutes",
"minBookingNoticeMinutes",
"minCancelNoticeMinutes"
]
}
},
"required": [
"resourceId",
"version",
"policy",
"existingAppointmentsPreserved",
"durationRewriteAvailable",
"supportedValues"
]
},
{
"type": "null"
}
]
},
"replayed": {
"type": "boolean"
}
},
"required": [
"status",
"receipt",
"current",
"replayed"
]
}
]
} Errors and recovery
Error responses declared in the contract (7)
The preview contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.
401 · Missing, invalid or expired server credential.
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/tenant/owner-issued authority refused, revoked integration, platform suspension, or browser Origin.
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 · INVALID_SETTINGS, PREVIEW_EXPIRED, PREVIEW_MISMATCH, IMPACT_CHANGED, POLICY_IMPACT_TOO_LARGE or OPERATION_CONFLICT. Nothing is partially applied; review/refetch before a new intent.
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 fields/precondition, unsupported changed value, INVALID_BOOKING_POLICY, INVALID_SCHEDULE or OVERNIGHT_SCHEDULE_UNSUPPORTED.
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 · Request limit or POLICY_PREVIEW_LIMIT (at most 20 outstanding previews per actor/tenant). The latter uses Retry-After: 300; accepted operation receipts are separate.
Retry-After
{
"type": "integer",
"minimum": 1
} 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 operation UUID, exact proposal, If-Match and previewId; recover before starting another intent.
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"
]
}