CRADמפתחים
עברית

Retrieve catalog

Published catalog and capabilities

לפני שימוש חי — בדקו יכולות פרוסות, הרשאות ומוכנות של החיבור שלכם.

בדקו את היכולות הפרוסות, הרשאות המפתח ומוכנות העסק בסביבה שלכם. דוגמאות HTTP נלכדו בבדיקות מבודדות; הסימון local-unreleased שלהן אינו אומר שה־API אינו פועל, ואינו מאשר את החיבור שלכם. במסלול הלקוח מאמתים טלפון בתבנית WhatsApp שהעסק הגדיר; SMS אינו נתמך. רישום בידי אדמין מורשה הוא פעולה נפרדת ללא קוד.

GET/v1/sites/{siteId}/catalog

Behavior

Enabled site/integration status does not guarantee bookingEnabled. Public enrollment retains its approved booking policy. If the business later switches its native booking mode, the previous public catalogue may remain visible while new intake closes. Ask the business owner and CRAD to review the configuration before enabling intake again; re-enabling is not a policy migration. Newly created services also require separate public selection. Preserve bookingEnabled:false instead of forcing a booking attempt.

Authentication

No authentication required

Credential rules

X-CRAD-Integration-Key (optional header): Optional companion backend credential for the same integration, server requests only; never send from a browser. Required to bind an externalCustomerId on registration.

Anonymous reads show site-wide intake. A valid customer session scopes bookingEnabled to that session’s integration; the default hosted integration ID can be null for a headless site. If this customer session was created with a companion integration credential, that bound credential must still grant bookings:write:customer. Its current expiry/revocation is checked as well; an unrelated key sent later does not repair the session.

Request

  • siteIdpath · stringRequired
    Format and constraints
    siteId schema
    {
      "type": "string",
      "format": "uuid"
    }
  • X-CRAD-Integration-Keyheader · stringOptional

    Optional companion backend credential for the same integration, server requests only; never send from a browser. Required to bind an externalCustomerId on registration.

    Format and constraints
    X-CRAD-Integration-Key schema
    {
      "type": "string",
      "pattern": "^(?:wbi|wbm)_[a-f0-9]{64}$"
    }

Successful responses

200 · Catalog

application/json · Catalog

  • capabilitiesobjectRequired
    View nested fields
    • contractVersionnumberRequired

      Value: 1

    • siteIdstring · uuidRequired
    • integrationIdanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · uuidSchema branch
      • anyOf 2nullSchema branch
    • recoveryIntegrationIdanyOf (string | null)Optional

      Optional default hosted integration for existing appointment management and known-request recovery. May identify a paused hosted integration; never use it to admit a new booking. Explicit integration IDs retain priority and every session/proof remains bound to its exact integration.

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · uuidSchema branch
      • anyOf 2nullSchema branch
    • businessNameobjectRequired
      View nested fields
      • hestringOptional
      • arstringOptional
      • enstringOptional
      • additionalPropertiesno value allowedSchema rule
    • defaultLanguagestringRequired

      Allowed values: ["he","ar","en"]

    • bookingPolicystringRequired

      Allowed values: ["legacy_fixed_slot_v1","service_duration_v1"]

    • bookingHorizonDaysintegerRequired
    • providerSelectionbooleanRequired
    • removalbooleanRequired
    • timezonestringRequired
    • minCancellationNoticeMinutesintegerRequired
    • bookingEnabledbooleanRequired

      New intake readiness for the authenticated session's integration, or site-wide readiness through at least one enabled integration for an anonymous catalog. An anonymous integrationId is the default hosted integration and may be null for an API-only site; supply the known headless integration ID when creating its session. This flag does not reserve a slot or prevent management of accepted bookings.

    • verificationobjectRequired
      View nested fields
      • availablebooleanRequired

        The configured code verifier can validate an issued code. This stays available when the WhatsApp sender disconnects; it does not assert provider delivery or permission to issue another code.

      • newChallengeAvailablebooleanOptional

        Optional current advice for new verification through the business's WhatsApp Authentication template. False does not invalidate an already issued code, verified proof or exact challenge replay. The send action explicitly requests this code only; it does not change reminder consent. Meta approval, sender binding, policy and abuse quotas are checked before dispatch. No SMS fallback.

      • channelstringRequired

        Value: "whatsapp"

      • modestringRequired

        Allowed values: ["disabled","sandbox","live"]

      • languagesarrayOptional

        Optional current languages configured for new WhatsApp verification codes. Use the visitor's selected language only when included; never silently switch to another language. An empty array prevents new issuance. This field does not invalidate checking an existing code. Older v1 responses may omit it; the server remains authoritative.

        maxItems: 3uniqueItems: true

        View nested fields
        • []stringArray item

          Allowed values: ["he","ar","en"]

      • additionalPropertiesno value allowedSchema rule
    • communicationNoticeVersionstringRequired
    • configRevisionstringOptional
    • catalogRevisionstringOptional
    • businessDetailsobjectOptional
      View nested fields
      • locationobjectRequired
        View nested fields
        • hestringOptional
        • arstringOptional
        • enstringOptional
        • additionalPropertiesno value allowedSchema rule
      • contactPhoneanyOf (string | null)Required

        At least one of these variants must match.

        View nested fields
        • anyOf 1stringSchema branch

          pattern: "^\\+[1-9][0-9]{7,14}$"

        • anyOf 2nullSchema branch
      • websiteUrlanyOf (string | null)Required

        At least one of these variants must match.

        View nested fields
        • anyOf 1string · uriSchema branch

          pattern: "^https://"

        • anyOf 2nullSchema branch
      • imageUrlanyOf (string | null)Required

        At least one of these variants must match.

        View nested fields
        • anyOf 1string · uriSchema branch

          pattern: "^https://"

        • anyOf 2nullSchema branch
      • additionalPropertiesno value allowedSchema rule
    • featuresobjectOptional

      Supported API contracts, not authorization or tenant activation. Missing flags in an older additive-v1 response mean unknown. Current credentials and business configuration are still checked for every action.

      View nested fields
      • bookingActionAvailabilitybooleanRequired
      • customerChangesFeedbooleanRequired
      • customerSyncCheckpointsbooleanRequired
      • managementSchedulesbooleanRequired
      • managementBlocksbooleanRequired
      • externalWebhooksbooleanRequired
      • paymentsbooleanRequired
      • temporaryHoldsbooleanRequired
      • groupBookingsbooleanRequired
      • overnightHoursbooleanRequired
      • dateSpecificOpeningbooleanRequired
      • bookingChangesFeedbooleanOptional

        Supports durable polling of this integration's bookings; still requires its explicit read scope.

      • customerBookingHistorybooleanOptional

        History limited to mapped customer and same integration, not every business channel.

      • sharedCustomerFieldsbooleanOptional

        Installed support for explicitly shared fields on an active customer-verified mapping. Access still requires the appropriate integration scopes and current owner grants for each field. This does not imply sharing every field, deployed readiness or a shared-field change feed.

      • allChannelCustomerHistorybooleanOptional

        Installed support for read-only all-channel history of one active customer-verified mapping, with separate owner approval and customer/booking read scopes. It is not whole-business calendar access, a change feed or authority to modify the returned history records.

      • sharedCustomerFieldsChangeFeedbooleanOptional

        False means shared values require current authorized reads and are not copied into the retained basic customer feed.

      • additionalPropertiesno value allowedSchema rule
    • languagesarrayOptional

      Optional additive v1 supported contract languages. Default language alone does not enumerate support.

      minItems: 1maxItems: 3uniqueItems: true

      View nested fields
      • []stringArray item

        Allowed values: ["he","ar","en"]

    • customerFieldsarray; allOf (unspecified & unspecified)Optional

      Optional additive v1 fixed required fields and localized labels. Absence in an older v1 response is unknown discovery, not permission for unsupported fields.

      All of these schema rules apply together.

      minItems: 2maxItems: 2

      View nested fields
      • allOf 1unspecifiedSchema branch

        minContains: 1maxContains: 1

        View branch fields and rules
        • containsobjectSchema rule
          View branch fields and rules
          • keystringRequired

            Value: "customerName"

      • allOf 2unspecifiedSchema branch

        minContains: 1maxContains: 1

        View branch fields and rules
        • containsobjectSchema rule
          View branch fields and rules
          • keystringRequired

            Value: "phone"

      • []oneOf (object | object)Array item

        First-release customer fields. Phone is entered for WhatsApp verification, not accepted as a booking identity override; names are nonblank and trimmed. No custom scripts or arbitrary fields.

        Exactly one of these variants must match.

        View nested fields
        • oneOf 1 · key = "customerName"objectSchema branch
          View branch fields and rules
          • keystringRequired in this branch

            Value: "customerName"

          • typestringRequired in this branch

            Value: "text"

          • stagestringRequired in this branch

            Value: "booking"

          • requiredbooleanRequired in this branch

            Value: true

          • minLengthnumberRequired in this branch

            Value: 1

          • maxLengthnumberRequired in this branch

            Value: 100

          • labelobjectRequired in this branch
            View nested fields
            • hestringOptional in this branch
            • arstringOptional in this branch
            • enstringOptional in this branch
            • additionalPropertiesno value allowedSchema rule
          • additionalPropertiesno value allowedSchema rule
        • oneOf 2 · key = "phone"objectSchema branch
          View branch fields and rules
          • keystringRequired in this branch

            Value: "phone"

          • typestringRequired in this branch

            Value: "phone"

          • stagestringRequired in this branch

            Value: "verification"

          • requiredbooleanRequired in this branch

            Value: true

          • minLengthnumberRequired in this branch

            Value: 9

          • maxLengthnumberRequired in this branch

            Value: 16

          • formatstringRequired in this branch

            Value: "e164"

          • verificationRequiredbooleanRequired in this branch

            Value: true

          • labelobjectRequired in this branch
            View nested fields
            • hestringOptional in this branch
            • arstringOptional in this branch
            • enstringOptional in this branch
            • additionalPropertiesno value allowedSchema rule
          • additionalPropertiesno value allowedSchema rule
    • approvalRequiredbooleanOptional

      New customer bookings await clinic approval. Show Send request and request-received copy. Omission in older v1 means unknown; always honor the committed receipt status.

    • customerAppointmentChangesstringOptional

      Current customer change/cancel policy. In contact_business mode direct customers to capabilities.businessDetails.contactPhone; owners can still manage appointments and customers can respond to explicit alternative-time offers.

      Allowed values: ["self_service","contact_business"]

    • additionalPropertiesno value allowedSchema rule
  • servicesarrayRequired
    View nested fields
    • []object; allOf (unspecified)Array item

      All of these schema rules apply together.

      View nested fields
      • idstring · uuidRequired
      • nameobjectRequired
        View nested fields
        • hestringOptional
        • arstringOptional
        • enstringOptional
        • additionalPropertiesno value allowedSchema rule
      • descriptionobjectRequired
        View nested fields
        • hestringOptional
        • arstringOptional
        • enstringOptional
        • additionalPropertiesno value allowedSchema rule
      • priceMinoranyOf (integer | null)Required

        Exact price in minor units. Null means no final price: consult priceRangeMinor when present, otherwise the price is decided during the visit. Zero is an explicit free price.

        At least one of these variants must match.

        View nested fields
        • anyOf 1integerSchema branch

          minimum: 0

        • anyOf 2nullSchema branch
      • currencystringRequired

        Value: "ILS"

      • providerIdsarrayRequired
        View nested fields
        • []string · uuidArray item
      • imageUrlanyOf (string | null)Optional

        At least one of these variants must match.

        View nested fields
        • anyOf 1string · uriSchema branch

          pattern: "^https://"

        • anyOf 2nullSchema branch
      • durationMinutesanyOf (integer | null)Optional

        At least one of these variants must match.

        View nested fields
        • anyOf 1integerSchema branch

          minimum: 1maximum: 9007199254740991

        • anyOf 2nullSchema branch
      • priceRangeMinoranyOf (object | null)Optional

        Non-final inclusive bounds in minor currency units; 35000–60000 means 350–600 ILS. Both safe integer bounds are required and min must be strictly below max. The companion exact amount is null. Omitted or null means no range. Accepted bounds are immutable quote/booking terms.

        At least one of these variants must match.

        View nested fields
        • anyOf 1objectSchema branch
          View branch fields and rules
          • minintegerRequired in this branch

            minimum: 0maximum: 9007199254740991

          • maxintegerRequired in this branch

            minimum: 0maximum: 9007199254740991

          • additionalPropertiesno value allowedSchema rule
        • anyOf 2nullSchema branch
      • allOf 1unspecifiedSchema branch
        View branch fields and rules
        • ifobjectSchema rule
          View branch fields and rules
          • priceRangeMinorobjectCondition predicate
        • thenobjectSchema rule
          View branch fields and rules
          • priceMinornullOptional in this branch
      • additionalPropertiesno value allowedSchema rule
  • providersarrayRequired
    View nested fields
    • []objectArray item
      View nested fields
      • idstring · uuidRequired
      • nameobjectRequired
        View nested fields
        • hestringOptional
        • arstringOptional
        • enstringOptional
        • additionalPropertiesno value allowedSchema rule
      • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "capabilities": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "contractVersion": {
          "const": 1
        },
        "siteId": {
          "type": "string",
          "format": "uuid"
        },
        "integrationId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "recoveryIntegrationId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional default hosted integration for existing appointment management and known-request recovery. May identify a paused hosted integration; never use it to admit a new booking. Explicit integration IDs retain priority and every session/proof remains bound to its exact integration."
        },
        "businessName": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "he": {
              "type": "string"
            },
            "ar": {
              "type": "string"
            },
            "en": {
              "type": "string"
            }
          }
        },
        "defaultLanguage": {
          "type": "string",
          "enum": [
            "he",
            "ar",
            "en"
          ]
        },
        "bookingPolicy": {
          "enum": [
            "legacy_fixed_slot_v1",
            "service_duration_v1"
          ]
        },
        "bookingHorizonDays": {
          "type": "integer"
        },
        "providerSelection": {
          "type": "boolean"
        },
        "removal": {
          "type": "boolean"
        },
        "timezone": {
          "type": "string"
        },
        "minCancellationNoticeMinutes": {
          "type": "integer"
        },
        "bookingEnabled": {
          "type": "boolean",
          "description": "New intake readiness for the authenticated session's integration, or site-wide readiness through at least one enabled integration for an anonymous catalog. An anonymous integrationId is the default hosted integration and may be null for an API-only site; supply the known headless integration ID when creating its session. This flag does not reserve a slot or prevent management of accepted bookings."
        },
        "verification": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "available": {
              "type": "boolean",
              "description": "The configured code verifier can validate an issued code. This stays available when the WhatsApp sender disconnects; it does not assert provider delivery or permission to issue another code."
            },
            "newChallengeAvailable": {
              "type": "boolean",
              "description": "Optional current advice for new verification through the business's WhatsApp Authentication template. False does not invalidate an already issued code, verified proof or exact challenge replay. The send action explicitly requests this code only; it does not change reminder consent. Meta approval, sender binding, policy and abuse quotas are checked before dispatch. No SMS fallback."
            },
            "channel": {
              "const": "whatsapp"
            },
            "mode": {
              "enum": [
                "disabled",
                "sandbox",
                "live"
              ]
            },
            "languages": {
              "type": "array",
              "maxItems": 3,
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "he",
                  "ar",
                  "en"
                ]
              },
              "description": "Optional current languages configured for new WhatsApp verification codes. Use the visitor's selected language only when included; never silently switch to another language. An empty array prevents new issuance. This field does not invalidate checking an existing code. Older v1 responses may omit it; the server remains authoritative."
            }
          },
          "required": [
            "available",
            "channel",
            "mode"
          ]
        },
        "communicationNoticeVersion": {
          "type": "string"
        },
        "configRevision": {
          "type": "string"
        },
        "catalogRevision": {
          "type": "string"
        },
        "businessDetails": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "location": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "he": {
                  "type": "string"
                },
                "ar": {
                  "type": "string"
                },
                "en": {
                  "type": "string"
                }
              }
            },
            "contactPhone": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\+[1-9][0-9]{7,14}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "websiteUrl": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                {
                  "type": "null"
                }
              ]
            },
            "imageUrl": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "location",
            "contactPhone",
            "websiteUrl",
            "imageUrl"
          ]
        },
        "features": {
          "type": "object",
          "additionalProperties": false,
          "description": "Supported API contracts, not authorization or tenant activation. Missing flags in an older additive-v1 response mean unknown. Current credentials and business configuration are still checked for every action.",
          "properties": {
            "bookingActionAvailability": {
              "type": "boolean"
            },
            "customerChangesFeed": {
              "type": "boolean"
            },
            "customerSyncCheckpoints": {
              "type": "boolean"
            },
            "managementSchedules": {
              "type": "boolean"
            },
            "managementBlocks": {
              "type": "boolean"
            },
            "externalWebhooks": {
              "type": "boolean"
            },
            "payments": {
              "type": "boolean"
            },
            "temporaryHolds": {
              "type": "boolean"
            },
            "groupBookings": {
              "type": "boolean"
            },
            "overnightHours": {
              "type": "boolean"
            },
            "dateSpecificOpening": {
              "type": "boolean"
            },
            "bookingChangesFeed": {
              "type": "boolean",
              "description": "Supports durable polling of this integration's bookings; still requires its explicit read scope."
            },
            "customerBookingHistory": {
              "type": "boolean",
              "description": "History limited to mapped customer and same integration, not every business channel."
            },
            "sharedCustomerFields": {
              "type": "boolean",
              "description": "Installed support for explicitly shared fields on an active customer-verified mapping. Access still requires the appropriate integration scopes and current owner grants for each field. This does not imply sharing every field, deployed readiness or a shared-field change feed."
            },
            "allChannelCustomerHistory": {
              "type": "boolean",
              "description": "Installed support for read-only all-channel history of one active customer-verified mapping, with separate owner approval and customer/booking read scopes. It is not whole-business calendar access, a change feed or authority to modify the returned history records."
            },
            "sharedCustomerFieldsChangeFeed": {
              "type": "boolean",
              "description": "False means shared values require current authorized reads and are not copied into the retained basic customer feed."
            }
          },
          "required": [
            "bookingActionAvailability",
            "customerChangesFeed",
            "customerSyncCheckpoints",
            "managementSchedules",
            "managementBlocks",
            "externalWebhooks",
            "payments",
            "temporaryHolds",
            "groupBookings",
            "overnightHours",
            "dateSpecificOpening"
          ]
        },
        "languages": {
          "type": "array",
          "minItems": 1,
          "maxItems": 3,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "he",
              "ar",
              "en"
            ]
          },
          "description": "Optional additive v1 supported contract languages. Default language alone does not enumerate support."
        },
        "customerFields": {
          "type": "array",
          "minItems": 2,
          "maxItems": 2,
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "key": {
                    "const": "customerName"
                  },
                  "type": {
                    "const": "text"
                  },
                  "stage": {
                    "const": "booking"
                  },
                  "required": {
                    "const": true
                  },
                  "minLength": {
                    "const": 1
                  },
                  "maxLength": {
                    "const": 100
                  },
                  "label": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "he": {
                        "type": "string"
                      },
                      "ar": {
                        "type": "string"
                      },
                      "en": {
                        "type": "string"
                      }
                    }
                  }
                },
                "required": [
                  "key",
                  "type",
                  "stage",
                  "required",
                  "minLength",
                  "maxLength",
                  "label"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "key": {
                    "const": "phone"
                  },
                  "type": {
                    "const": "phone"
                  },
                  "stage": {
                    "const": "verification"
                  },
                  "required": {
                    "const": true
                  },
                  "minLength": {
                    "const": 9
                  },
                  "maxLength": {
                    "const": 16
                  },
                  "format": {
                    "const": "e164"
                  },
                  "verificationRequired": {
                    "const": true
                  },
                  "label": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "he": {
                        "type": "string"
                      },
                      "ar": {
                        "type": "string"
                      },
                      "en": {
                        "type": "string"
                      }
                    }
                  }
                },
                "required": [
                  "key",
                  "type",
                  "stage",
                  "required",
                  "minLength",
                  "maxLength",
                  "format",
                  "verificationRequired",
                  "label"
                ]
              }
            ],
            "description": "First-release customer fields. Phone is entered for WhatsApp verification, not accepted as a booking identity override; names are nonblank and trimmed. No custom scripts or arbitrary fields."
          },
          "allOf": [
            {
              "contains": {
                "type": "object",
                "properties": {
                  "key": {
                    "const": "customerName"
                  }
                },
                "required": [
                  "key"
                ]
              },
              "minContains": 1,
              "maxContains": 1
            },
            {
              "contains": {
                "type": "object",
                "properties": {
                  "key": {
                    "const": "phone"
                  }
                },
                "required": [
                  "key"
                ]
              },
              "minContains": 1,
              "maxContains": 1
            }
          ],
          "description": "Optional additive v1 fixed required fields and localized labels. Absence in an older v1 response is unknown discovery, not permission for unsupported fields."
        },
        "approvalRequired": {
          "type": "boolean",
          "description": "New customer bookings await clinic approval. Show Send request and request-received copy. Omission in older v1 means unknown; always honor the committed receipt status."
        },
        "customerAppointmentChanges": {
          "enum": [
            "self_service",
            "contact_business"
          ],
          "description": "Current customer change/cancel policy. In contact_business mode direct customers to capabilities.businessDetails.contactPhone; owners can still manage appointments and customers can respond to explicit alternative-time offers."
        }
      },
      "required": [
        "contractVersion",
        "siteId",
        "integrationId",
        "businessName",
        "defaultLanguage",
        "bookingPolicy",
        "bookingHorizonDays",
        "providerSelection",
        "removal",
        "timezone",
        "minCancellationNoticeMinutes",
        "bookingEnabled",
        "verification",
        "communicationNoticeVersion"
      ]
    },
    "services": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "he": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "en": {
                "type": "string"
              }
            }
          },
          "description": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "he": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "en": {
                "type": "string"
              }
            }
          },
          "priceMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "Exact price in minor units. Null means no final price: consult priceRangeMinor when present, otherwise the price is decided during the visit. Zero is an explicit free price."
          },
          "currency": {
            "const": "ILS"
          },
          "providerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "imageUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri",
                "pattern": "^https://"
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMinutes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "priceRangeMinor": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "min",
                  "max"
                ],
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Non-final inclusive bounds in minor currency units; 35000–60000 means 350–600 ILS. Both safe integer bounds are required and min must be strictly below max. The companion exact amount is null. Omitted or null means no range. Accepted bounds are immutable quote/booking terms."
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "priceMinor",
          "currency",
          "providerIds"
        ],
        "allOf": [
          {
            "if": {
              "required": [
                "priceRangeMinor"
              ],
              "properties": {
                "priceRangeMinor": {
                  "type": "object"
                }
              }
            },
            "then": {
              "properties": {
                "priceMinor": {
                  "type": "null"
                }
              }
            }
          }
        ]
      }
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "he": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "en": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "name"
        ]
      }
    }
  },
  "required": [
    "capabilities",
    "services",
    "providers"
  ]
}

Errors and recovery

Error responses declared in the contract (10)

The preview contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.

401 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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"
  ]
}
410 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Rate limit; honor Retry-After.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Outcome may be unknown. Keep operation key and reconcile.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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"
  ]
}