/v1/management/servicesBehavior
Read the complete business catalogue, including inactive services. The limit is 1,000 items; larger catalogues are refused rather than truncated. The HTTP ETag is for a complete reorder. For an individual edit, quote that item’s serviceVersion or use the ETag from its detail GET.
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
services:read
Request
No query parameters or request body. Use the credentials described above.
Successful responses
200 · BusinessServiceCatalogue
Success.
Cache-Control
{
"const": "no-store"
} ETag · Quoted current service/catalogue version where applicable; deleted current has no service ETag.
{
"type": "string"
} application/json · BusinessServiceCatalogue
Complete current tenant catalogue in display-order/id order. More than1000 items returns CATALOGUE_TOO_LARGE, never a truncated reorderable list.
-
catalogueVersionstringRequiredOpaque hash of the exact complete current service order. Names/prices can change without changing this order version.
pattern:"^scat:[0-9a-f]{64}$" -
itemsarrayRequiredmaxItems:1000View nested fields
-
[]object; allOf (unspecified)Array itemAll of these schema rules apply together.
View nested fields
-
serviceIdstring · uuidRequired -
serviceVersionstringRequiredOpaque physical service identity and material revision. Retain the returned value; it is not the serviceId.
pattern:"^svc:[0-9a-f-]{36}:(0|[1-9][0-9]{0,18})$" -
modestringRequiredAllowed values:
["legacy","service_duration"] -
nameobjectRequiredStored localized strings. When editing, include at least one nonblank he/ar/en name; managed validators normalize supported fallback keys. Omit an unedited legacy name.
View nested fields
-
additionalPropertiesstringSchema rule
-
-
descriptionunspecifiedRequiredStored service description JSON; null and legacy JSON remain readable.
-
priceMajornumber | nullRequiredCurrent catalogue price in major units. Nullable legacy price is retained; this is not a booking quote or minor units.
-
currencystring | nullRequiredStored currency label, including legacy/custom labels and ₪. No inferred ISO currency.
maxLength:10000 -
isActivebooleanRequired -
displayOrderinteger | nullRequiredminimum:-2147483648maximum:2147483647 -
legacyDurationMinutesinteger | nullRequiredHistorical duration field, not edited by this contract.
minimum:-2147483648maximum:2147483647readOnly:true -
bookingDurationMinutesinteger | nullRequiredminimum:-2147483648maximum:2147483647 -
removalDurationMinutesinteger | nullRequiredminimum:-2147483648maximum:2147483647 -
removalPriceMajornumber | nullRequired -
publicationobjectRequiredCurrent public selection and eligibility, not publication permission. Catalogue creation/activity never automatically selects a public service.
View nested fields
-
selectedbooleanRequired -
eligiblebooleanRequired -
additionalPropertiesno value allowedSchema rule
-
-
deleteBlockersarrayRequiredAdvisory current blockers; delete rechecks under serialization. Deactivation remains available.
maxItems:2uniqueItems:trueView nested fields
-
[]stringArray itemAllowed values:
["appointments_exist","provider_assignment_would_expand"]
-
-
priceRangeMajoranyOf (object | null)OptionalNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
priceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
priceMajornullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
-
managedServiceCreationAvailablebooleanRequired -
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"catalogueVersion": {
"type": "string",
"pattern": "^scat:[0-9a-f]{64}$",
"description": "Opaque hash of the exact complete current service order. Names/prices can change without changing this order version."
},
"items": {
"type": "array",
"maxItems": 1000,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"serviceId": {
"type": "string",
"format": "uuid"
},
"serviceVersion": {
"type": "string",
"pattern": "^svc:[0-9a-f-]{36}:(0|[1-9][0-9]{0,18})$",
"description": "Opaque physical service identity and material revision. Retain the returned value; it is not the serviceId."
},
"mode": {
"enum": [
"legacy",
"service_duration"
]
},
"name": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Stored localized strings. When editing, include at least one nonblank he/ar/en name; managed validators normalize supported fallback keys. Omit an unedited legacy name."
},
"description": {
"description": "Stored service description JSON; null and legacy JSON remain readable."
},
"priceMajor": {
"type": [
"number",
"null"
],
"description": "Current catalogue price in major units. Nullable legacy price is retained; this is not a booking quote or minor units."
},
"currency": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Stored currency label, including legacy/custom labels and ₪. No inferred ISO currency."
},
"isActive": {
"type": "boolean"
},
"displayOrder": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"legacyDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"readOnly": true,
"description": "Historical duration field, not edited by this contract."
},
"bookingDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"removalDurationMinutes": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"removalPriceMajor": {
"type": [
"number",
"null"
]
},
"publication": {
"type": "object",
"additionalProperties": false,
"properties": {
"selected": {
"type": "boolean"
},
"eligible": {
"type": "boolean"
}
},
"required": [
"selected",
"eligible"
],
"description": "Current public selection and eligibility, not publication permission. Catalogue creation/activity never automatically selects a public service."
},
"deleteBlockers": {
"type": "array",
"items": {
"enum": [
"appointments_exist",
"provider_assignment_would_expand"
]
},
"maxItems": 2,
"uniqueItems": true,
"description": "Advisory current blockers; delete rechecks under serialization. Deactivation remains available."
},
"priceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
}
},
"required": [
"serviceId",
"serviceVersion",
"mode",
"name",
"description",
"priceMajor",
"currency",
"isActive",
"displayOrder",
"legacyDurationMinutes",
"bookingDurationMinutes",
"removalDurationMinutes",
"removalPriceMajor",
"publication",
"deleteBlockers"
],
"allOf": [
{
"if": {
"required": [
"priceRangeMajor"
],
"properties": {
"priceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"priceMajor": {
"type": "null"
}
}
}
}
]
}
},
"managedServiceCreationAvailable": {
"type": "boolean"
}
},
"required": [
"catalogueVersion",
"items",
"managedServiceCreationAvailable"
],
"description": "Complete current tenant catalogue in display-order/id order. More than1000 items returns CATALOGUE_TOO_LARGE, never a truncated reorderable list."
} 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 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/integration/tenant authority or browser Origin refused.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 404 · SERVICE_NOT_FOUND: no current service in 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 · SERVICE_IN_USE (any appointment reference), SERVICE_ASSIGNMENT_REVIEW_REQUIRED (deleting a last explicit provider link would expand assignment), CATALOGUE_TOO_LARGE, PILOT_NOT_CONFIGURED, LEGACY_SERVICE_REQUIRES_LEGACY_EDITOR or OPERATION_CONFLICT. No partial acceptance; deactivate instead of deleting a referenced service.
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 · SERVICE_CHANGED or CATALOGUE_CHANGED. Preserve the draft and refresh/review; do not overwrite with a guessed fresh version.
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 · REQUEST_TOO_LARGE. Normal command body8KiB; exact reorder body64KiB.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 415 · JSON_REQUIRED when a body is supplied.
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 · INVALID_REQUEST, INVALID_PRECONDITION or INVALID_SERVICE_SETTINGS, including incomplete/duplicate reorder list or invalid final commercial values.
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 · Missing required Idempotency-Key or If-Match.
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 · Credential/site request limit.
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. Keep the original operation UUID, method, path, body and If-Match; recover before 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"
]
}