/v1/management/duration-policyBehavior
Apply a reviewed business policy using the original previewId, proposal, quoted If-Match and operation UUID. Choose keep_existing to preserve appointment times. Choose rewrite_eligible, with the additional permission below, to update at most 1,000 reviewed eligible legacy end times.
The policy and eligible end times change atomically. Appointment starts, protected booked terms and explicit provider overrides remain intact; conflicting appointments are retained. No customer messages are sent.
If the result is uncertain, recover or retry the exact original request. The immutable receipt describes the accepted change; current may include a later edit.
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
Choosing rewrite_eligible additionally requires booking-duration:rewrite; keep_existing and preview do not.
The rewrite_eligible mode additionally requires booking-duration:rewrite. keep_existing does not grant or require rewrite authority.
Request
Idempotency and recovery
Persist one UUID and the exact request before sending. After an uncertain result, retain that UUID, body and preconditions; do not create a replacement operation just to retry.
If-Matchheader · stringRequiredExact quoted ETag from the selected duration-policy resource. Opaque; do not use schedule/calendar versions, wildcards or weak validators.
Format and constraints
{ "type": "string", "pattern": "^\"(?:bp:[0-9a-f-]{36}:(?:0|[1-9][0-9]{0,18})|dp:[0-9a-f-]{36}:[0-9a-f]{64})\"$" }Idempotency-Keyheader · stringRequiredPersist one operation UUID with exact resource/proposal/preview/version/mode. Replay after uncertainty with the same request; never silently substitute a new UUID.
Format and constraints
{ "type": "string", "format": "uuid" }
Request body · required
application/json · BusinessDurationPolicyApplyRequest
-
previewIdstring · uuidRequired -
proposalobjectRequiredSend only edited business policy fields. Changed scalars use current supportedValues; unchanged legacy values remain readable. No authority, activation or messaging fields.
minProperties:1View nested fields
-
timezonestring | nullOptionalBusiness timezone. Use supportedValues.timezone for a changed value; existing values outside that menu remain readable.
maxLength:256 -
slotDurationMinutesinteger | nullOptionalBusiness duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected.
minimum:-2147483648maximum:2147483647 -
minBookingNoticeMinutesinteger | nullOptionalMinimum notice for a new customer booking. Use supportedValues when changing this value.
minimum:-2147483648maximum:2147483647 -
minCancelNoticeMinutesinteger | nullOptionalMinimum notice for customer cancellation. Existing appointments stay in place; future authorized actions use current notice rules.
minimum:-2147483648maximum:2147483647 -
openingHoursunspecifiedOptionalStored 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.
-
requireBookingApprovalbooleanOptionalPer-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 -
customerAppointmentChangesstringOptionalcontact_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" -
bookingHorizonDaysintegerOptionalCustomer 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
-
-
modestringRequiredExplicit choice after impact review. keep_existing changes settings only; rewrite_eligible additionally changes exactly the reviewed safe legacy ends, atomically and silently. It requires booking-duration:rewrite. No automatic follow-up batches.
Allowed values:
["keep_existing","rewrite_eligible"] -
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"previewId": {
"type": "string",
"format": "uuid"
},
"proposal": {
"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 duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected."
},
"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": [],
"minProperties": 1,
"description": "Send only edited business policy fields. Changed scalars use current supportedValues; unchanged legacy values remain readable. No authority, activation or messaging fields."
},
"mode": {
"enum": [
"keep_existing",
"rewrite_eligible"
],
"description": "Explicit choice after impact review. keep_existing changes settings only; rewrite_eligible additionally changes exactly the reviewed safe legacy ends, atomically and silently. It requires booking-duration:rewrite. No automatic follow-up batches."
}
},
"required": [
"previewId",
"proposal",
"mode"
]
} Successful responses
200 · BusinessDurationPolicyResult
Success.
Cache-Control · Do not cache policy, preview or acceptance.
{
"type": "string",
"const": "no-store"
} ETag · Exact quoted current resource version; absent if accepted current resource is unavailable.
{
"type": "string"
} application/json · BusinessDurationPolicyResult
-
receiptoneOf (object; allOf (unspecified & unspecified) | object; allOf (unspecified & unspecified))RequiredImmutable acceptance. updatedCount is actual committed end changes; existingAppointmentsPreserved is true iff no ends changed. This is separate from the fresh current policy.
Exactly one of these variants must match.
View nested fields
-
oneOf 1 · action = "duration_policy_change"object; allOf (unspecified & unspecified)Schema branchAll of these schema rules apply together.
View branch fields and rules
-
operationIdstring · uuidRequired in this branch -
actionstringRequired in this branchValue:
"duration_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})$" -
modestringRequired in this branchExplicit choice after impact review. keep_existing changes settings only; rewrite_eligible additionally changes exactly the reviewed safe legacy ends, atomically and silently. It requires booking-duration:rewrite. No automatic follow-up batches.
Allowed values:
["keep_existing","rewrite_eligible"] -
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 duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected.
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 duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected.
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
-
-
effectiveMinutesBeforeinteger | nullRequired in this branchminimum:-2147483648maximum:2147483647 -
effectiveMinutesAfterinteger | nullRequired in this branchminimum:-2147483648maximum:2147483647 -
impactobjectRequired in this branchAggregate counts only. No customer/appointment identities, physical versions or private fingerprint. Existing starts, prices, resource binding and accepted snapshots remain unchanged.
View nested fields
-
eligibleintegerRequired in this branchFuture CONFIRMED/PENDING snapshot-null candidates in the selected resource scope. eligible = rewritable + conflict + unchanged.
minimum:0maximum:10000 -
rewritableintegerRequired in this branchExact reviewed end changes passing accepted-start capacity/hours checks; atomic rewrite accepts at most 1,000 changes.
minimum:0maximum:10000 -
conflictintegerRequired in this branchEligible intervals whose proposed end cannot safely change. They remain untouched.
minimum:0maximum:10000 -
protectedintegerRequired in this branchAccepted snapshots and current service-specific durations remain protected; a business-wide rewrite also protects explicit provider duration overrides.
minimum:0maximum:10000 -
unchangedintegerRequired in this branchEligible rows requiring no end change; no artificial revision is created.
minimum:0maximum:10000 -
additionalPropertiesno value allowedSchema rule
-
-
changedbooleanRequired in this branch -
editorChangedbooleanRequired in this branchValue:
false -
updatedCountintegerRequired in this branchminimum:0maximum:1000 -
existingAppointmentsPreservedbooleanRequired in this branch -
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
modestringCondition predicateValue:
"keep_existing"
-
-
thenobjectSchema ruleView branch fields and rules
-
updatedCountnumberOptional in this branchValue:
0 -
existingAppointmentsPreservedbooleanOptional in this branchValue:
true
-
-
-
allOf 2unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
updatedCountnumberCondition predicateValue:
0
-
-
thenobjectSchema ruleView branch fields and rules
-
existingAppointmentsPreservedbooleanOptional in this branchValue:
true
-
-
elseobjectSchema ruleView branch fields and rules
-
existingAppointmentsPreservedbooleanOptional in this branchValue:
false
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
oneOf 2 · action = "duration_policy_change"object; allOf (unspecified & unspecified)Schema branchAll of these schema rules apply together.
View branch fields and rules
-
operationIdstring · uuidRequired in this branch -
actionstringRequired in this branchValue:
"duration_policy_change" -
resourceIdstring · uuidRequired in this branch -
acceptedVersionstringRequired in this branchOpaque physical provider policy identity plus current dependencies. Business settings and service-link changes can invalidate it. Preserve exactly; it is not the provider resource UUID or a schedule/calendar version.
pattern:"^dp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[0-9a-f]{64}$" -
modestringRequired in this branchExplicit choice after impact review. keep_existing changes settings only; rewrite_eligible additionally changes exactly the reviewed safe legacy ends, atomically and silently. It requires booking-duration:rewrite. No automatic follow-up batches.
Allowed values:
["keep_existing","rewrite_eligible"] -
beforeobjectRequired in this branchView nested fields
-
openingHoursunspecifiedRequired in this branchStored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON.
-
slotDurationMinutesinteger | nullRequired in this branchStored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues.
minimum:-2147483648maximum:2147483647 -
additionalPropertiesno value allowedSchema rule
-
-
afterobjectRequired in this branchView nested fields
-
openingHoursunspecifiedRequired in this branchStored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON.
-
slotDurationMinutesinteger | nullRequired in this branchStored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues.
minimum:-2147483648maximum:2147483647 -
additionalPropertiesno value allowedSchema rule
-
-
effectiveMinutesBeforeinteger | nullRequired in this branchminimum:-2147483648maximum:2147483647 -
effectiveMinutesAfterinteger | nullRequired in this branchminimum:-2147483648maximum:2147483647 -
impactobjectRequired in this branchAggregate counts only. No customer/appointment identities, physical versions or private fingerprint. Existing starts, prices, resource binding and accepted snapshots remain unchanged.
View nested fields
-
eligibleintegerRequired in this branchFuture CONFIRMED/PENDING snapshot-null candidates in the selected resource scope. eligible = rewritable + conflict + unchanged.
minimum:0maximum:10000 -
rewritableintegerRequired in this branchExact reviewed end changes passing accepted-start capacity/hours checks; atomic rewrite accepts at most 1,000 changes.
minimum:0maximum:10000 -
conflictintegerRequired in this branchEligible intervals whose proposed end cannot safely change. They remain untouched.
minimum:0maximum:10000 -
protectedintegerRequired in this branchAccepted snapshots and current service-specific durations remain protected; a business-wide rewrite also protects explicit provider duration overrides.
minimum:0maximum:10000 -
unchangedintegerRequired in this branchEligible rows requiring no end change; no artificial revision is created.
minimum:0maximum:10000 -
additionalPropertiesno value allowedSchema rule
-
-
changedbooleanRequired in this branch -
editorChangedbooleanRequired in this branchValue:
false -
updatedCountintegerRequired in this branchminimum:0maximum:1000 -
existingAppointmentsPreservedbooleanRequired in this branch -
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
modestringCondition predicateValue:
"keep_existing"
-
-
thenobjectSchema ruleView branch fields and rules
-
updatedCountnumberOptional in this branchValue:
0 -
existingAppointmentsPreservedbooleanOptional in this branchValue:
true
-
-
-
allOf 2unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
updatedCountnumberCondition predicateValue:
0
-
-
thenobjectSchema ruleView branch fields and rules
-
existingAppointmentsPreservedbooleanOptional in this branchValue:
true
-
-
elseobjectSchema ruleView branch fields and rules
-
existingAppointmentsPreservedbooleanOptional in this branchValue:
false
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
-
currentanyOf (oneOf (object | object) | null)RequiredFresh current authorized policy, possibly newer than acceptance. Null if the resource was deleted; the immutable receipt remains.
At least one of these variants must match.
View nested fields
-
anyOf 1oneOf (object | object)Schema branchCurrent authorized policy, effective inheritance and reviewed parent from the same observation. Management never exposes the native provider editor.
Exactly one of these variants must match.
View branch fields and rules
-
oneOf 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 duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected.
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
-
-
effectiveMinutesinteger | nullRequired in this branchminimum:-2147483648maximum:2147483647 -
effectiveOpeningHoursunspecifiedRequired in this branchCurrent effective stored weekly hours; provider null resolves to the business value.
-
timezonestring | nullRequired in this branchmaxLength:256 -
editornullRequired in this branch -
parentPolicynullRequired in this branch -
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
-
-
oneOf 2objectSchema branchView branch fields and rules
-
resourceIdstring · uuidRequired in this branch -
versionstringRequired in this branchOpaque physical provider policy identity plus current dependencies. Business settings and service-link changes can invalidate it. Preserve exactly; it is not the provider resource UUID or a schedule/calendar version.
pattern:"^dp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[0-9a-f]{64}$" -
policyobjectRequired in this branchView nested fields
-
openingHoursunspecifiedRequired in this branchStored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON.
-
slotDurationMinutesinteger | nullRequired in this branchStored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues.
minimum:-2147483648maximum:2147483647 -
additionalPropertiesno value allowedSchema rule
-
-
effectiveMinutesinteger | nullRequired in this branchminimum:-2147483648maximum:2147483647 -
effectiveOpeningHoursunspecifiedRequired in this branchCurrent effective stored weekly hours; provider null resolves to the business value.
-
timezonestring | nullRequired in this branchmaxLength:256 -
editornullRequired in this branch -
parentPolicyobjectRequired in this branchView nested fields
-
openingHoursunspecifiedRequired in this branchStored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON.
-
slotDurationMinutesinteger | nullRequired in this branchStored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues.
minimum:-2147483648maximum:2147483647 -
additionalPropertiesno value allowedSchema rule
-
-
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 -
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"receipt": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"action": {
"const": "duration_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."
},
"mode": {
"enum": [
"keep_existing",
"rewrite_eligible"
],
"description": "Explicit choice after impact review. keep_existing changes settings only; rewrite_eligible additionally changes exactly the reviewed safe legacy ends, atomically and silently. It requires booking-duration:rewrite. No automatic follow-up batches."
},
"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 duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected."
},
"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 duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected."
},
"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"
]
},
"effectiveMinutesBefore": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"effectiveMinutesAfter": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"impact": {
"type": "object",
"additionalProperties": false,
"properties": {
"eligible": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Future CONFIRMED/PENDING snapshot-null candidates in the selected resource scope. eligible = rewritable + conflict + unchanged."
},
"rewritable": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Exact reviewed end changes passing accepted-start capacity/hours checks; atomic rewrite accepts at most 1,000 changes."
},
"conflict": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Eligible intervals whose proposed end cannot safely change. They remain untouched."
},
"protected": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Accepted snapshots and current service-specific durations remain protected; a business-wide rewrite also protects explicit provider duration overrides."
},
"unchanged": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Eligible rows requiring no end change; no artificial revision is created."
}
},
"required": [
"eligible",
"rewritable",
"conflict",
"protected",
"unchanged"
],
"description": "Aggregate counts only. No customer/appointment identities, physical versions or private fingerprint. Existing starts, prices, resource binding and accepted snapshots remain unchanged."
},
"changed": {
"type": "boolean"
},
"editorChanged": {
"const": false
},
"updatedCount": {
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"existingAppointmentsPreserved": {
"type": "boolean"
}
},
"required": [
"operationId",
"action",
"resourceId",
"acceptedVersion",
"mode",
"before",
"after",
"effectiveMinutesBefore",
"effectiveMinutesAfter",
"impact",
"changed",
"editorChanged",
"updatedCount",
"existingAppointmentsPreserved"
],
"allOf": [
{
"if": {
"properties": {
"mode": {
"const": "keep_existing"
}
}
},
"then": {
"properties": {
"updatedCount": {
"const": 0
},
"existingAppointmentsPreserved": {
"const": true
}
}
}
},
{
"if": {
"properties": {
"updatedCount": {
"const": 0
}
}
},
"then": {
"properties": {
"existingAppointmentsPreserved": {
"const": true
}
}
},
"else": {
"properties": {
"existingAppointmentsPreserved": {
"const": false
}
}
}
}
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"action": {
"const": "duration_policy_change"
},
"resourceId": {
"type": "string",
"format": "uuid"
},
"acceptedVersion": {
"type": "string",
"pattern": "^dp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[0-9a-f]{64}$",
"description": "Opaque physical provider policy identity plus current dependencies. Business settings and service-link changes can invalidate it. Preserve exactly; it is not the provider resource UUID or a schedule/calendar version."
},
"mode": {
"enum": [
"keep_existing",
"rewrite_eligible"
],
"description": "Explicit choice after impact review. keep_existing changes settings only; rewrite_eligible additionally changes exactly the reviewed safe legacy ends, atomically and silently. It requires booking-duration:rewrite. No automatic follow-up batches."
},
"before": {
"type": "object",
"additionalProperties": false,
"properties": {
"openingHours": {
"description": "Stored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON."
},
"slotDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Stored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues."
}
},
"required": [
"openingHours",
"slotDurationMinutes"
]
},
"after": {
"type": "object",
"additionalProperties": false,
"properties": {
"openingHours": {
"description": "Stored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON."
},
"slotDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Stored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues."
}
},
"required": [
"openingHours",
"slotDurationMinutes"
]
},
"effectiveMinutesBefore": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"effectiveMinutesAfter": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"impact": {
"type": "object",
"additionalProperties": false,
"properties": {
"eligible": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Future CONFIRMED/PENDING snapshot-null candidates in the selected resource scope. eligible = rewritable + conflict + unchanged."
},
"rewritable": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Exact reviewed end changes passing accepted-start capacity/hours checks; atomic rewrite accepts at most 1,000 changes."
},
"conflict": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Eligible intervals whose proposed end cannot safely change. They remain untouched."
},
"protected": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Accepted snapshots and current service-specific durations remain protected; a business-wide rewrite also protects explicit provider duration overrides."
},
"unchanged": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Eligible rows requiring no end change; no artificial revision is created."
}
},
"required": [
"eligible",
"rewritable",
"conflict",
"protected",
"unchanged"
],
"description": "Aggregate counts only. No customer/appointment identities, physical versions or private fingerprint. Existing starts, prices, resource binding and accepted snapshots remain unchanged."
},
"changed": {
"type": "boolean"
},
"editorChanged": {
"const": false
},
"updatedCount": {
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"existingAppointmentsPreserved": {
"type": "boolean"
}
},
"required": [
"operationId",
"action",
"resourceId",
"acceptedVersion",
"mode",
"before",
"after",
"effectiveMinutesBefore",
"effectiveMinutesAfter",
"impact",
"changed",
"editorChanged",
"updatedCount",
"existingAppointmentsPreserved"
],
"allOf": [
{
"if": {
"properties": {
"mode": {
"const": "keep_existing"
}
}
},
"then": {
"properties": {
"updatedCount": {
"const": 0
},
"existingAppointmentsPreserved": {
"const": true
}
}
}
},
{
"if": {
"properties": {
"updatedCount": {
"const": 0
}
}
},
"then": {
"properties": {
"existingAppointmentsPreserved": {
"const": true
}
}
},
"else": {
"properties": {
"existingAppointmentsPreserved": {
"const": false
}
}
}
}
]
}
],
"description": "Immutable acceptance. updatedCount is actual committed end changes; existingAppointmentsPreserved is true iff no ends changed. This is separate from the fresh current policy."
},
"current": {
"anyOf": [
{
"oneOf": [
{
"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 duration for new legacy appointments; this duration contract requires explicit keep_existing or rewrite_eligible at apply. Provider overrides and accepted snapshots remain protected."
},
"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"
]
},
"effectiveMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"effectiveOpeningHours": {
"description": "Current effective stored weekly hours; provider null resolves to the business value."
},
"timezone": {
"type": [
"string",
"null"
],
"maxLength": 256
},
"editor": {
"type": "null"
},
"parentPolicy": {
"type": "null"
},
"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",
"effectiveMinutes",
"effectiveOpeningHours",
"timezone",
"editor",
"parentPolicy",
"supportedValues"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"resourceId": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "string",
"pattern": "^dp:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[0-9a-f]{64}$",
"description": "Opaque physical provider policy identity plus current dependencies. Business settings and service-link changes can invalidate it. Preserve exactly; it is not the provider resource UUID or a schedule/calendar version."
},
"policy": {
"type": "object",
"additionalProperties": false,
"properties": {
"openingHours": {
"description": "Stored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON."
},
"slotDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Stored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues."
}
},
"required": [
"openingHours",
"slotDurationMinutes"
]
},
"effectiveMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"effectiveOpeningHours": {
"description": "Current effective stored weekly hours; provider null resolves to the business value."
},
"timezone": {
"type": [
"string",
"null"
],
"maxLength": 256
},
"editor": {
"type": "null"
},
"parentPolicy": {
"type": "object",
"additionalProperties": false,
"properties": {
"openingHours": {
"description": "Stored provider weekly hours. null inherits current business hours. An edited non-null value is a complete WeeklyHours object; omit unchanged legacy JSON."
},
"slotDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"description": "Stored provider duration override. null means inheritance, not a copied business value. An explicit value equal to the business duration remains an override. Changed values use supportedValues."
}
},
"required": [
"openingHours",
"slotDurationMinutes"
]
},
"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",
"effectiveMinutes",
"effectiveOpeningHours",
"timezone",
"editor",
"parentPolicy",
"supportedValues"
]
}
],
"description": "Current authorized policy, effective inheritance and reviewed parent from the same observation. Management never exposes the native provider editor."
},
{
"type": "null"
}
],
"description": "Fresh current authorized policy, possibly newer than acceptance. Null if the resource was deleted; the immutable receipt remains."
},
"replayed": {
"type": "boolean"
}
},
"required": [
"receipt",
"current",
"replayed"
]
} Errors and recovery
Error responses declared in the contract (12)
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"
]
} 404 · NOT_FOUND: no current resource belonging to the credential tenant.
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 · PREVIEW_EXPIRED, PREVIEW_MISMATCH, IMPACT_CHANGED, INVALID_SETTINGS, OPERATION_CONFLICT or POLICY_IMPACT_TOO_LARGE. POLICY_REWRITE_TOO_LARGE means over 1,000 actual changes: nothing is saved, and keep_existing may still use the unchanged preview if otherwise current. No partial acceptance.
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"
]
} 412 · POLICY_CHANGED: current physical provider/business policy or inherited dependencies differ. Preserve the draft; read and explicitly review a new preview.
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 · JSON request exceeds 8192 bytes.
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 · Content-Type must be application/json.
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"
]
} 428 · Required If-Match or apply Idempotency-Key is missing.
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_FAILED or OUTCOME_UNCERTAIN. Retain the original UUID and exact body/mode/If-Match; recover before creating 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"
]
}