CRADDevelopers
English

Update existing provider metadata, activity or service assignment

Before going live — check deployed capabilities, grants and your integration’s readiness.

Check deployed capabilities, key grants and business readiness in your environment. HTTP examples were captured in isolated tests; their local-unreleased provenance neither says the API is offline nor certifies your integration. Customer self-service uses the business-configured WhatsApp authentication template; SMS is not supported. Authorized admin contact recording is a separate action without a code.

PATCH/v1/management/providers/{providerId}

Behavior

Send only edited fields inside changes, with the displayed If-Match. Review activityEffects before changing isActive. assignment mode all means all currently eligible services and future additions; selected replaces 1–1,000 distinct current service IDs, including inactive IDs. Retained links preserve custom overrides. A stale version returns PROVIDER_CHANGED. Existing appointment rows, terms and message intent remain intact; this does not edit hours, login or invitations.

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

providers:readproviders:write

Requires the provider’s current resource grant. Neither calendar grants nor policy scopes imply provider write 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.

  • providerIdpath · stringRequired

    An existing provider in the key’s current explicit providerIds grant.

    Format and constraints
    providerId schema
    {
      "type": "string",
      "format": "uuid"
    }
  • If-Matchheader · stringRequired

    Exact quoted version from the displayed detail/current state. No weak/wildcard ETag or hidden fresh-version preflight.

    Format and constraints
    If-Match schema
    {
      "type": "string",
      "pattern": "^\"prv:[a-f0-9-]{36}:[a-f0-9]{64}\"$"
    }
  • Idempotency-Keyheader · stringRequired

    Persist this original UUID with target, exact changes and observed If-Match before dispatch. Retry only the same request.

    Format and constraints
    Idempotency-Key schema
    {
      "type": "string",
      "format": "uuid"
    }

Request body · required

application/json · BusinessProviderUpdateRequest

  • changesobjectRequired

    Only supplied fields change. Email/phone trim spaces and empty becomes null. Assignment, when supplied, is a complete explicit replacement. Existing legacy text is preserved when omitted. Name requires at least one nonblank value. No schedule, duration, avatar, user, password or invitation fields.

    minProperties: 1

    View nested fields
    • nameobject; anyOf (object | object | object)Optional

      Complete supported localized name; at least one value must be nonblank. Supplied values are bounded by Unicode characters. Omission preserves the stored legacy name.

      At least one of these variants must match.

      View nested fields
      • hestringRequired

        maxLength: 200

      • arstringRequired

        maxLength: 200

      • enstringRequired

        maxLength: 200

      • anyOf 1objectSchema branch
        View branch fields and rules
        • heunspecifiedOptional in this branch

          pattern: "\\S"

      • anyOf 2objectSchema branch
        View branch fields and rules
        • arunspecifiedOptional in this branch

          pattern: "\\S"

      • anyOf 3objectSchema branch
        View branch fields and rules
        • enunspecifiedOptional in this branch

          pattern: "\\S"

      • additionalPropertiesno value allowedSchema rule
    • emailstring | nullOptional

      maxLength: 320

    • phonestring | nullOptional

      maxLength: 320

    • colorstringOptional

      maxLength: 320

    • isActivebooleanOptional
    • assignmentoneOf (object | object)Optional

      Exactly one of these variants must match.

      View nested fields
      • oneOf 1 · mode = "all"objectSchema branch
        View branch fields and rules
        • modestringRequired in this branch

          Value: "all"

        • additionalPropertiesno value allowedSchema rule
      • oneOf 2 · mode = "selected"objectSchema branch
        View branch fields and rules
        • modestringRequired in this branch

          Value: "selected"

        • serviceIdsarrayRequired in this branch

          minItems: 1maxItems: 1000uniqueItems: true

          View nested fields
          • []string · uuidArray item
        • additionalPropertiesno value allowedSchema rule
    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "changes": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "he": {
              "type": "string",
              "maxLength": 200
            },
            "ar": {
              "type": "string",
              "maxLength": 200
            },
            "en": {
              "type": "string",
              "maxLength": 200
            }
          },
          "required": [
            "he",
            "ar",
            "en"
          ],
          "description": "Complete supported localized name; at least one value must be nonblank. Supplied values are bounded by Unicode characters. Omission preserves the stored legacy name.",
          "anyOf": [
            {
              "properties": {
                "he": {
                  "pattern": "\\S"
                }
              }
            },
            {
              "properties": {
                "ar": {
                  "pattern": "\\S"
                }
              }
            },
            {
              "properties": {
                "en": {
                  "pattern": "\\S"
                }
              }
            }
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 320
        },
        "phone": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 320
        },
        "color": {
          "type": "string",
          "maxLength": 320
        },
        "isActive": {
          "type": "boolean"
        },
        "assignment": {
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "mode": {
                  "const": "all"
                }
              },
              "required": [
                "mode"
              ]
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "mode": {
                  "const": "selected"
                },
                "serviceIds": {
                  "type": "array",
                  "minItems": 1,
                  "maxItems": 1000,
                  "uniqueItems": true,
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              },
              "required": [
                "mode",
                "serviceIds"
              ]
            }
          ]
        }
      },
      "required": [],
      "minProperties": 1,
      "description": "Only supplied fields change. Email/phone trim spaces and empty becomes null. Assignment, when supplied, is a complete explicit replacement. Existing legacy text is preserved when omitted. Name requires at least one nonblank value. No schedule, duration, avatar, user, password or invitation fields."
    }
  },
  "required": [
    "changes"
  ]
}

Successful responses

200 · BusinessProviderResult

Current authorized provider state.

Cache-Control
Cache-Control schema
{
  "const": "no-store"
}
ETag · Exact quoted current provider version. A mutation with current:null omits ETag; receipt.acceptedVersion is historical acceptance, not a fresh precondition.
ETag schema
{
  "type": "string"
}

application/json · BusinessProviderResult

Immutable accepted receipt plus fresh authorized current state. acceptedVersion equals receipt.after.version; all states identify the receipt provider. A newer current version does not change acceptance. Current null means the authorized original provider is genuinely removed, never revoked access.

Exactly one of these variants must match.

  • receiptobjectRequired
    View nested fields
    • operationIdstring · uuidRequired
    • providerIdstring · uuidRequired
    • acceptedVersionstringRequired

      Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes.

      pattern: "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$"

    • changedbooleanRequired
    • beforeobjectRequired
      View nested fields
      • providerIdstring · uuidRequired
      • versionstringRequired

        Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes.

        pattern: "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$"

      • nameobjectRequired
        View nested fields
        • hestringRequired
        • arstringRequired
        • enstringRequired
        • additionalPropertiesno value allowedSchema rule
      • emailstring | nullRequired
      • phonestring | nullRequired

        Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority.

      • colorstringRequired

        Stored custom color text, including legacy values.

      • isActivebooleanRequired
      • hasLinkedUserbooleanRequired

        Only a linkage indicator. No user identity, login credentials or user-management permission.

      • assignmentoneOf (object | object)Required

        Exactly one of these variants must match.

        View nested fields
        • oneOf 1 · mode = "all"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "all"

          • serviceIdsarrayRequired in this branch

            minItems: 0maxItems: 0uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
        • oneOf 2 · mode = "selected"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "selected"

          • serviceIdsarrayRequired in this branch

            minItems: 1maxItems: 1000uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
      • activityEffectsobjectRequired
        View nested fields
        • activatestringRequired

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • deactivatestringRequired

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • additionalPropertiesno value allowedSchema rule
      • additionalPropertiesno value allowedSchema rule
    • afterobjectRequired
      View nested fields
      • providerIdstring · uuidRequired
      • versionstringRequired

        Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes.

        pattern: "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$"

      • nameobjectRequired
        View nested fields
        • hestringRequired
        • arstringRequired
        • enstringRequired
        • additionalPropertiesno value allowedSchema rule
      • emailstring | nullRequired
      • phonestring | nullRequired

        Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority.

      • colorstringRequired

        Stored custom color text, including legacy values.

      • isActivebooleanRequired
      • hasLinkedUserbooleanRequired

        Only a linkage indicator. No user identity, login credentials or user-management permission.

      • assignmentoneOf (object | object)Required

        Exactly one of these variants must match.

        View nested fields
        • oneOf 1 · mode = "all"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "all"

          • serviceIdsarrayRequired in this branch

            minItems: 0maxItems: 0uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
        • oneOf 2 · mode = "selected"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "selected"

          • serviceIdsarrayRequired in this branch

            minItems: 1maxItems: 1000uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
      • activityEffectsobjectRequired
        View nested fields
        • activatestringRequired

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • deactivatestringRequired

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • additionalPropertiesno value allowedSchema rule
      • additionalPropertiesno value allowedSchema rule
    • existingAppointmentsPreservedbooleanRequired

      Value: true

    • additionalPropertiesno value allowedSchema rule
  • currentanyOf (object | null)Required

    At least one of these variants must match.

    View nested fields
    • anyOf 1objectSchema branch
      View branch fields and rules
      • providerIdstring · uuidRequired in this branch
      • versionstringRequired in this branch

        Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes.

        pattern: "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$"

      • nameobjectRequired in this branch
        View nested fields
        • hestringRequired in this branch
        • arstringRequired in this branch
        • enstringRequired in this branch
        • additionalPropertiesno value allowedSchema rule
      • emailstring | nullRequired in this branch
      • phonestring | nullRequired in this branch

        Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority.

      • colorstringRequired in this branch

        Stored custom color text, including legacy values.

      • isActivebooleanRequired in this branch
      • hasLinkedUserbooleanRequired in this branch

        Only a linkage indicator. No user identity, login credentials or user-management permission.

      • assignmentoneOf (object | object)Required in this branch

        Exactly one of these variants must match.

        View nested fields
        • oneOf 1 · mode = "all"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "all"

          • serviceIdsarrayRequired in this branch

            minItems: 0maxItems: 0uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
        • oneOf 2 · mode = "selected"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "selected"

          • serviceIdsarrayRequired in this branch

            minItems: 1maxItems: 1000uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
      • activityEffectsobjectRequired in this branch
        View nested fields
        • activatestringRequired in this branch

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • deactivatestringRequired in this branch

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • additionalPropertiesno value allowedSchema rule
      • additionalPropertiesno value allowedSchema rule
    • anyOf 2nullSchema branch
  • currentUnavailableReasonnull | stringRequired

    Allowed values: [null,"provider_not_found"]

  • replayedbooleanRequired
  • oneOf 1 · currentUnavailableReason = "provider_not_found"objectSchema branch
    View branch fields and rules
    • currentnullOptional in this branch
    • currentUnavailableReasonstringOptional in this branch

      Value: "provider_not_found"

  • oneOf 2objectSchema branch
    View branch fields and rules
    • currentobjectOptional in this branch
      View nested fields
      • providerIdstring · uuidRequired in this branch
      • versionstringRequired in this branch

        Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes.

        pattern: "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$"

      • nameobjectRequired in this branch
        View nested fields
        • hestringRequired in this branch
        • arstringRequired in this branch
        • enstringRequired in this branch
        • additionalPropertiesno value allowedSchema rule
      • emailstring | nullRequired in this branch
      • phonestring | nullRequired in this branch

        Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority.

      • colorstringRequired in this branch

        Stored custom color text, including legacy values.

      • isActivebooleanRequired in this branch
      • hasLinkedUserbooleanRequired in this branch

        Only a linkage indicator. No user identity, login credentials or user-management permission.

      • assignmentoneOf (object | object)Required in this branch

        Exactly one of these variants must match.

        View nested fields
        • oneOf 1 · mode = "all"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "all"

          • serviceIdsarrayRequired in this branch

            minItems: 0maxItems: 0uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
        • oneOf 2 · mode = "selected"objectSchema branch
          View branch fields and rules
          • modestringRequired in this branch

            Value: "selected"

          • serviceIdsarrayRequired in this branch

            minItems: 1maxItems: 1000uniqueItems: true

            View nested fields
            • []string · uuidArray item
          • additionalPropertiesno value allowedSchema rule
      • activityEffectsobjectRequired in this branch
        View nested fields
        • activatestringRequired in this branch

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • deactivatestringRequired in this branch

          Allowed values: ["none","managed_booking_unavailable","managed_booking_restored"]

        • additionalPropertiesno value allowedSchema rule
      • additionalPropertiesno value allowedSchema rule
    • currentUnavailableReasonnullOptional in this branch
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "receipt": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "operationId": {
          "type": "string",
          "format": "uuid"
        },
        "providerId": {
          "type": "string",
          "format": "uuid"
        },
        "acceptedVersion": {
          "type": "string",
          "pattern": "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$",
          "description": "Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes."
        },
        "changed": {
          "type": "boolean"
        },
        "before": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "providerId": {
              "type": "string",
              "format": "uuid"
            },
            "version": {
              "type": "string",
              "pattern": "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$",
              "description": "Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes."
            },
            "name": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "he": {
                  "type": "string"
                },
                "ar": {
                  "type": "string"
                },
                "en": {
                  "type": "string"
                }
              },
              "required": [
                "he",
                "ar",
                "en"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority."
            },
            "color": {
              "type": "string",
              "description": "Stored custom color text, including legacy values."
            },
            "isActive": {
              "type": "boolean"
            },
            "hasLinkedUser": {
              "type": "boolean",
              "description": "Only a linkage indicator. No user identity, login credentials or user-management permission."
            },
            "assignment": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "all"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 0,
                      "maxItems": 0,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "selected"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1000,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                }
              ]
            },
            "activityEffects": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "activate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                },
                "deactivate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                }
              },
              "required": [
                "activate",
                "deactivate"
              ]
            }
          },
          "required": [
            "providerId",
            "version",
            "name",
            "email",
            "phone",
            "color",
            "isActive",
            "hasLinkedUser",
            "assignment",
            "activityEffects"
          ]
        },
        "after": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "providerId": {
              "type": "string",
              "format": "uuid"
            },
            "version": {
              "type": "string",
              "pattern": "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$",
              "description": "Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes."
            },
            "name": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "he": {
                  "type": "string"
                },
                "ar": {
                  "type": "string"
                },
                "en": {
                  "type": "string"
                }
              },
              "required": [
                "he",
                "ar",
                "en"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority."
            },
            "color": {
              "type": "string",
              "description": "Stored custom color text, including legacy values."
            },
            "isActive": {
              "type": "boolean"
            },
            "hasLinkedUser": {
              "type": "boolean",
              "description": "Only a linkage indicator. No user identity, login credentials or user-management permission."
            },
            "assignment": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "all"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 0,
                      "maxItems": 0,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "selected"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1000,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                }
              ]
            },
            "activityEffects": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "activate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                },
                "deactivate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                }
              },
              "required": [
                "activate",
                "deactivate"
              ]
            }
          },
          "required": [
            "providerId",
            "version",
            "name",
            "email",
            "phone",
            "color",
            "isActive",
            "hasLinkedUser",
            "assignment",
            "activityEffects"
          ]
        },
        "existingAppointmentsPreserved": {
          "const": true
        }
      },
      "required": [
        "operationId",
        "providerId",
        "acceptedVersion",
        "changed",
        "before",
        "after",
        "existingAppointmentsPreserved"
      ]
    },
    "current": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "providerId": {
              "type": "string",
              "format": "uuid"
            },
            "version": {
              "type": "string",
              "pattern": "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$",
              "description": "Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes."
            },
            "name": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "he": {
                  "type": "string"
                },
                "ar": {
                  "type": "string"
                },
                "en": {
                  "type": "string"
                }
              },
              "required": [
                "he",
                "ar",
                "en"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority."
            },
            "color": {
              "type": "string",
              "description": "Stored custom color text, including legacy values."
            },
            "isActive": {
              "type": "boolean"
            },
            "hasLinkedUser": {
              "type": "boolean",
              "description": "Only a linkage indicator. No user identity, login credentials or user-management permission."
            },
            "assignment": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "all"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 0,
                      "maxItems": 0,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "selected"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1000,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                }
              ]
            },
            "activityEffects": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "activate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                },
                "deactivate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                }
              },
              "required": [
                "activate",
                "deactivate"
              ]
            }
          },
          "required": [
            "providerId",
            "version",
            "name",
            "email",
            "phone",
            "color",
            "isActive",
            "hasLinkedUser",
            "assignment",
            "activityEffects"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "currentUnavailableReason": {
      "enum": [
        null,
        "provider_not_found"
      ]
    },
    "replayed": {
      "type": "boolean"
    }
  },
  "required": [
    "receipt",
    "current",
    "currentUnavailableReason",
    "replayed"
  ],
  "oneOf": [
    {
      "properties": {
        "current": {
          "type": "null"
        },
        "currentUnavailableReason": {
          "const": "provider_not_found"
        }
      }
    },
    {
      "properties": {
        "current": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "providerId": {
              "type": "string",
              "format": "uuid"
            },
            "version": {
              "type": "string",
              "pattern": "^prv:[a-f0-9-]{36}:[a-f0-9]{64}$",
              "description": "Opaque current provider aggregate version. Preserve exactly as returned; it can change after metadata, links, provider policy or relevant managed-booking readiness changes."
            },
            "name": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "he": {
                  "type": "string"
                },
                "ar": {
                  "type": "string"
                },
                "en": {
                  "type": "string"
                }
              },
              "required": [
                "he",
                "ar",
                "en"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "Ordinary provider contact text; no customer phone proof, consent, sender connection or login authority."
            },
            "color": {
              "type": "string",
              "description": "Stored custom color text, including legacy values."
            },
            "isActive": {
              "type": "boolean"
            },
            "hasLinkedUser": {
              "type": "boolean",
              "description": "Only a linkage indicator. No user identity, login credentials or user-management permission."
            },
            "assignment": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "all"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 0,
                      "maxItems": 0,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "const": "selected"
                    },
                    "serviceIds": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1000,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  },
                  "required": [
                    "mode",
                    "serviceIds"
                  ]
                }
              ]
            },
            "activityEffects": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "activate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                },
                "deactivate": {
                  "enum": [
                    "none",
                    "managed_booking_unavailable",
                    "managed_booking_restored"
                  ]
                }
              },
              "required": [
                "activate",
                "deactivate"
              ]
            }
          },
          "required": [
            "providerId",
            "version",
            "name",
            "email",
            "phone",
            "color",
            "isActive",
            "hasLinkedUser",
            "assignment",
            "activityEffects"
          ]
        },
        "currentUnavailableReason": {
          "type": "null"
        }
      }
    }
  ],
  "description": "Immutable accepted receipt plus fresh authorized current state. acceptedVersion equals receipt.after.version; all states identify the receipt provider. A newer current version does not change acceptance. Current null means the authorized original provider is genuinely removed, never revoked access."
}

Errors and recovery

Input validation

  • 413REQUEST_TOO_LARGE

    The provider PATCH JSON body exceeds 65,536 bytes.

  • 415JSON_REQUIRED

    Send Content-Type: application/json.

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 or invalid current Management credential.

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 · SCOPE_REQUIRED, ACCESS_REVOKED, current provider grant denied or server-only Origin refusal.

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 · Authorized provider genuinely absent before acceptance.

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"
  ]
}
405 · Unsupported method on this resource. Provider-record creation/deletion are unavailable; creating a login for an existing provider uses the separate login-operations route and explicit provider-logins:write.

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 · PROVIDER_LIST_TOO_LARGE or OPERATION_CONFLICT; no partial update.

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 · PROVIDER_CHANGED; refresh and review only after resolving the original request.

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"
  ]
}
413 · PATCH JSON body exceeds64KiB.

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"
  ]
}
415 · application/json required.

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 · Invalid shape, unsupported field, UUID, query selector, exact assignment or precondition.

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 · Original If-Match or Idempotency-Key missing.

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 · Request quota; 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 · Persistence or uncertain outcome; retain the original exact request and recover before another intent.

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"
  ]
}