CRADDevelopers
English

Create and link a provider login

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.

POST/v1/management/providers/{providerId}/login-operations

Behavior

Create a new CRAD staff login with fixed provider membership. No provider record, customer account, existing password or appointment changes. Accepted returns an immutable receipt. Pending503 remains unresolved. Only rejected422 is a durable terminal refusal allowing corrected credentials with a new operation; a generic422 error is different.

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:readprovider-logins:write

The selected provider UUID must also appear in the credential’s current explicit providerIds.

The existing, unlinked provider must appear in the key’s explicit current providerIds. Ordinary providers:write does not grant login creation. No invitation message is sent.

Request

Idempotency and recovery

Persist the original operation UUID and provider version before sending. Keep credentials in memory only, never storage or retry queues. After uncertainty, check the original operation; an explicit retry uses the same UUID, version and exact credentials.

  • 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 the original operation UUID and selected provider/version before sending. Check the original operation after uncertainty. An explicit retry must contain the same email, fullName and exact password; never persist the password in browser storage or retry queues.

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

Request body · required

application/json · ProviderLoginRequest

  • emailstringRequired

    Trimmed and lowercased before use; normalized value must have one @, no whitespace/control characters and at most 320 Unicode code points. Auth validates account eligibility. No existing account is adopted by email.

    minLength: 1

  • passwordstringRequired

    Exact password, not trimmed. Auth password policy remains authoritative. Never save it in browser storage, logs, receipts or retry queues; keep it in memory only for an explicit request.

    minLength: 1maxLength: 1024pattern: "^[^\\u0000]*$"writeOnly: true

  • fullNamestringOptional

    Optional display name. Trimmed value has at most 200 Unicode code points; omitted or blank becomes Provider. No role or tenant authority is derived from this name.

    pattern: "^[^\\u0000]*$"

  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "email": {
      "type": "string",
      "minLength": 1,
      "description": "Trimmed and lowercased before use; normalized value must have one @, no whitespace/control characters and at most 320 Unicode code points. Auth validates account eligibility. No existing account is adopted by email."
    },
    "password": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "pattern": "^[^\\u0000]*$",
      "writeOnly": true,
      "description": "Exact password, not trimmed. Auth password policy remains authoritative. Never save it in browser storage, logs, receipts or retry queues; keep it in memory only for an explicit request."
    },
    "fullName": {
      "type": "string",
      "pattern": "^[^\\u0000]*$",
      "description": "Optional display name. Trimmed value has at most 200 Unicode code points; omitted or blank becomes Provider. No role or tenant authority is derived from this name."
    }
  },
  "required": [
    "email",
    "password"
  ]
}

Successful responses

Response headers

Retry-After — Pending503 responses use 2 seconds before a result check. This is not an instruction to create another account.

200 · application/json

Accepted exact replay.

Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json

All of these schema rules apply together.

  • allOf 1object; allOf (oneOf (object | object | object) & oneOf (object | object))Schema branch

    Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned.

    All of these schema rules apply together.

    View branch fields and rules
    • operationIdstring · uuidRequired
    • providerIdstring · uuidRequired
    • statestringRequired

      Allowed values: ["pending","accepted","rejected"]

    • causenull | stringRequired

      Allowed values: [null,"auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

    • reviewRequiredbooleanRequired
    • receiptanyOf (object | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1 · role = "provider"objectSchema branch
        View branch fields and rules
        • operationIdstring · uuidRequired in this branch
        • providerIdstring · uuidRequired in this branch
        • userIdstring · uuidRequired in this branch
        • emailstringRequired in this branch

          minLength: 1maxLength: 320

        • rolestringRequired in this branch

          Value: "provider"

        • acceptedVersionstringRequired 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}$"

        • additionalPropertiesno value allowedSchema rule
      • anyOf 2nullSchema branch
    • 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
    • allOf 1oneOf (object | object | object)Schema branch

      Exactly one of these variants must match.

      View branch fields and rules
      • oneOf 1 · state = "accepted"objectSchema branch
        View branch fields and rules
        • statestringOptional in this branch

          Value: "accepted"

        • causenullOptional in this branch
        • reviewRequiredbooleanOptional in this branch

          Value: false

        • receiptobjectOptional in this branch
          View nested fields
          • operationIdstring · uuidRequired in this branch
          • providerIdstring · uuidRequired in this branch
          • userIdstring · uuidRequired in this branch
          • emailstringRequired in this branch

            minLength: 1maxLength: 320

          • rolestringRequired in this branch

            Value: "provider"

          • acceptedVersionstringRequired 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}$"

          • additionalPropertiesno value allowedSchema rule
      • oneOf 2 · state = "pending"objectSchema branch
        View branch fields and rules
        • statestringOptional in this branch

          Value: "pending"

        • causestringOptional in this branch

          Allowed values: ["auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

        • receiptnullOptional in this branch
      • oneOf 3 · state = "rejected"objectSchema branch
        View branch fields and rules
        • statestringOptional in this branch

          Value: "rejected"

        • causestringOptional in this branch

          Value: "auth_request_rejected"

        • reviewRequiredbooleanOptional in this branch

          Value: false

        • receiptnullOptional in this branch
    • allOf 2oneOf (object | object)Schema branch

      Exactly one of these variants must match.

      View branch fields and rules
      • oneOf 1objectSchema 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
      • oneOf 2 · currentUnavailableReason = "provider_not_found"objectSchema branch
        View branch fields and rules
        • currentnullOptional in this branch
        • currentUnavailableReasonstringOptional in this branch

          Value: "provider_not_found"

    • additionalPropertiesno value allowedSchema rule
  • allOf 2 · state = "accepted"objectSchema branch
    View branch fields and rules
    • statestringOptional

      Value: "accepted"

Complete schema and nested fields
JSON Schema
{
  "allOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "operationId": {
          "type": "string",
          "format": "uuid"
        },
        "providerId": {
          "type": "string",
          "format": "uuid"
        },
        "state": {
          "enum": [
            "pending",
            "accepted",
            "rejected"
          ]
        },
        "cause": {
          "enum": [
            null,
            "auth_not_observed",
            "auth_request_uncertain",
            "auth_request_rejected",
            "auth_identity_mismatch",
            "provider_not_found",
            "provider_changed",
            "already_linked",
            "account_already_linked",
            "auth_cleanup_pending"
          ]
        },
        "reviewRequired": {
          "type": "boolean"
        },
        "receipt": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "operationId": {
                  "type": "string",
                  "format": "uuid"
                },
                "providerId": {
                  "type": "string",
                  "format": "uuid"
                },
                "userId": {
                  "type": "string",
                  "format": "uuid"
                },
                "email": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 320
                },
                "role": {
                  "const": "provider"
                },
                "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."
                }
              },
              "required": [
                "operationId",
                "providerId",
                "userId",
                "email",
                "role",
                "acceptedVersion"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "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": [
        "operationId",
        "providerId",
        "state",
        "cause",
        "reviewRequired",
        "receipt",
        "current",
        "currentUnavailableReason",
        "replayed"
      ],
      "allOf": [
        {
          "oneOf": [
            {
              "properties": {
                "state": {
                  "const": "accepted"
                },
                "cause": {
                  "type": "null"
                },
                "reviewRequired": {
                  "const": false
                },
                "receipt": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "operationId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "providerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "userId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "email": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320
                    },
                    "role": {
                      "const": "provider"
                    },
                    "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."
                    }
                  },
                  "required": [
                    "operationId",
                    "providerId",
                    "userId",
                    "email",
                    "role",
                    "acceptedVersion"
                  ]
                }
              }
            },
            {
              "properties": {
                "state": {
                  "const": "pending"
                },
                "cause": {
                  "enum": [
                    "auth_not_observed",
                    "auth_request_uncertain",
                    "auth_request_rejected",
                    "auth_identity_mismatch",
                    "provider_not_found",
                    "provider_changed",
                    "already_linked",
                    "account_already_linked",
                    "auth_cleanup_pending"
                  ]
                },
                "receipt": {
                  "type": "null"
                }
              }
            },
            {
              "properties": {
                "state": {
                  "const": "rejected"
                },
                "cause": {
                  "const": "auth_request_rejected"
                },
                "reviewRequired": {
                  "const": false
                },
                "receipt": {
                  "type": "null"
                }
              }
            }
          ]
        },
        {
          "oneOf": [
            {
              "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"
                }
              }
            },
            {
              "properties": {
                "current": {
                  "type": "null"
                },
                "currentUnavailableReason": {
                  "const": "provider_not_found"
                }
              }
            }
          ]
        }
      ],
      "description": "Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned."
    },
    {
      "properties": {
        "state": {
          "const": "accepted"
        }
      }
    }
  ]
}

201 · application/json

New login linked and accepted receipt recorded atomically with provider membership.

Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json

All of these schema rules apply together.

  • allOf 1object; allOf (oneOf (object | object | object) & oneOf (object | object))Schema branch

    Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned.

    All of these schema rules apply together.

    View branch fields and rules
    • operationIdstring · uuidRequired
    • providerIdstring · uuidRequired
    • statestringRequired

      Allowed values: ["pending","accepted","rejected"]

    • causenull | stringRequired

      Allowed values: [null,"auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

    • reviewRequiredbooleanRequired
    • receiptanyOf (object | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1 · role = "provider"objectSchema branch
        View branch fields and rules
        • operationIdstring · uuidRequired in this branch
        • providerIdstring · uuidRequired in this branch
        • userIdstring · uuidRequired in this branch
        • emailstringRequired in this branch

          minLength: 1maxLength: 320

        • rolestringRequired in this branch

          Value: "provider"

        • acceptedVersionstringRequired 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}$"

        • additionalPropertiesno value allowedSchema rule
      • anyOf 2nullSchema branch
    • 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
    • allOf 1oneOf (object | object | object)Schema branch

      Exactly one of these variants must match.

      View branch fields and rules
      • oneOf 1 · state = "accepted"objectSchema branch
        View branch fields and rules
        • statestringOptional in this branch

          Value: "accepted"

        • causenullOptional in this branch
        • reviewRequiredbooleanOptional in this branch

          Value: false

        • receiptobjectOptional in this branch
          View nested fields
          • operationIdstring · uuidRequired in this branch
          • providerIdstring · uuidRequired in this branch
          • userIdstring · uuidRequired in this branch
          • emailstringRequired in this branch

            minLength: 1maxLength: 320

          • rolestringRequired in this branch

            Value: "provider"

          • acceptedVersionstringRequired 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}$"

          • additionalPropertiesno value allowedSchema rule
      • oneOf 2 · state = "pending"objectSchema branch
        View branch fields and rules
        • statestringOptional in this branch

          Value: "pending"

        • causestringOptional in this branch

          Allowed values: ["auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

        • receiptnullOptional in this branch
      • oneOf 3 · state = "rejected"objectSchema branch
        View branch fields and rules
        • statestringOptional in this branch

          Value: "rejected"

        • causestringOptional in this branch

          Value: "auth_request_rejected"

        • reviewRequiredbooleanOptional in this branch

          Value: false

        • receiptnullOptional in this branch
    • allOf 2oneOf (object | object)Schema branch

      Exactly one of these variants must match.

      View branch fields and rules
      • oneOf 1objectSchema 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
      • oneOf 2 · currentUnavailableReason = "provider_not_found"objectSchema branch
        View branch fields and rules
        • currentnullOptional in this branch
        • currentUnavailableReasonstringOptional in this branch

          Value: "provider_not_found"

    • additionalPropertiesno value allowedSchema rule
  • allOf 2 · state = "accepted"objectSchema branch
    View branch fields and rules
    • statestringOptional

      Value: "accepted"

Complete schema and nested fields
JSON Schema
{
  "allOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "operationId": {
          "type": "string",
          "format": "uuid"
        },
        "providerId": {
          "type": "string",
          "format": "uuid"
        },
        "state": {
          "enum": [
            "pending",
            "accepted",
            "rejected"
          ]
        },
        "cause": {
          "enum": [
            null,
            "auth_not_observed",
            "auth_request_uncertain",
            "auth_request_rejected",
            "auth_identity_mismatch",
            "provider_not_found",
            "provider_changed",
            "already_linked",
            "account_already_linked",
            "auth_cleanup_pending"
          ]
        },
        "reviewRequired": {
          "type": "boolean"
        },
        "receipt": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "operationId": {
                  "type": "string",
                  "format": "uuid"
                },
                "providerId": {
                  "type": "string",
                  "format": "uuid"
                },
                "userId": {
                  "type": "string",
                  "format": "uuid"
                },
                "email": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 320
                },
                "role": {
                  "const": "provider"
                },
                "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."
                }
              },
              "required": [
                "operationId",
                "providerId",
                "userId",
                "email",
                "role",
                "acceptedVersion"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "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": [
        "operationId",
        "providerId",
        "state",
        "cause",
        "reviewRequired",
        "receipt",
        "current",
        "currentUnavailableReason",
        "replayed"
      ],
      "allOf": [
        {
          "oneOf": [
            {
              "properties": {
                "state": {
                  "const": "accepted"
                },
                "cause": {
                  "type": "null"
                },
                "reviewRequired": {
                  "const": false
                },
                "receipt": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "operationId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "providerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "userId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "email": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320
                    },
                    "role": {
                      "const": "provider"
                    },
                    "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."
                    }
                  },
                  "required": [
                    "operationId",
                    "providerId",
                    "userId",
                    "email",
                    "role",
                    "acceptedVersion"
                  ]
                }
              }
            },
            {
              "properties": {
                "state": {
                  "const": "pending"
                },
                "cause": {
                  "enum": [
                    "auth_not_observed",
                    "auth_request_uncertain",
                    "auth_request_rejected",
                    "auth_identity_mismatch",
                    "provider_not_found",
                    "provider_changed",
                    "already_linked",
                    "account_already_linked",
                    "auth_cleanup_pending"
                  ]
                },
                "receipt": {
                  "type": "null"
                }
              }
            },
            {
              "properties": {
                "state": {
                  "const": "rejected"
                },
                "cause": {
                  "const": "auth_request_rejected"
                },
                "reviewRequired": {
                  "const": false
                },
                "receipt": {
                  "type": "null"
                }
              }
            }
          ]
        },
        {
          "oneOf": [
            {
              "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"
                }
              }
            },
            {
              "properties": {
                "current": {
                  "type": "null"
                },
                "currentUnavailableReason": {
                  "const": "provider_not_found"
                }
              }
            }
          ]
        }
      ],
      "description": "Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned."
    },
    {
      "properties": {
        "state": {
          "const": "accepted"
        }
      }
    }
  ]
}

Errors and recovery

Input validation

  • 413REQUEST_TOO_LARGE

    The JSON request body exceeds 8,192 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.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Current permission/resource denied, revoked authority, or browser Origin refused. Old credentials gain no login permission.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Selected provider not found before reservation.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · OPERATION_CONFLICT for changed intent, or PROVIDER_ALREADY_LINKED before reservation. Never adopt or replace the linked account.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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: resolve the original operation before reviewing a new current version.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Request exceeds the supported JSON body limit.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 request Error, or a durable rejected result after an explicit no-create Auth refusal. Only state:rejected permits a new operation with corrected credentials; generic errors do not resolve an earlier uncertain operation.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json

Exactly one of these variants must match.

  • oneOf 1objectSchema branch
    View branch fields and rules
    • errorobjectRequired in this branch
      View nested fields
      • codestringRequired in this branch
      • requestIdstring · uuidRequired in this branch
      • retryAfterintegerOptional in this branch

        minimum: 1

      • additionalPropertiesno value allowedSchema rule
    • additionalPropertiesno value allowedSchema rule
  • oneOf 2allOf (object; allOf (oneOf (object | object | object) & oneOf (object | object)) & object)Schema branch

    All of these schema rules apply together.

    View branch fields and rules
    • allOf 1object; allOf (oneOf (object | object | object) & oneOf (object | object))Schema branch

      Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned.

      All of these schema rules apply together.

      View branch fields and rules
      • operationIdstring · uuidRequired in this branch
      • providerIdstring · uuidRequired in this branch
      • statestringRequired in this branch

        Allowed values: ["pending","accepted","rejected"]

      • causenull | stringRequired in this branch

        Allowed values: [null,"auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

      • reviewRequiredbooleanRequired in this branch
      • receiptanyOf (object | null)Required in this branch

        At least one of these variants must match.

        View nested fields
        • anyOf 1 · role = "provider"objectSchema branch
          View branch fields and rules
          • operationIdstring · uuidRequired in this branch
          • providerIdstring · uuidRequired in this branch
          • userIdstring · uuidRequired in this branch
          • emailstringRequired in this branch

            minLength: 1maxLength: 320

          • rolestringRequired in this branch

            Value: "provider"

          • acceptedVersionstringRequired 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}$"

          • additionalPropertiesno value allowedSchema rule
        • anyOf 2nullSchema branch
      • currentanyOf (object | null)Required in this branch

        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 in this branch

        Allowed values: [null,"provider_not_found"]

      • replayedbooleanRequired in this branch
      • allOf 1oneOf (object | object | object)Schema branch

        Exactly one of these variants must match.

        View branch fields and rules
        • oneOf 1 · state = "accepted"objectSchema branch
          View branch fields and rules
          • statestringOptional in this branch

            Value: "accepted"

          • causenullOptional in this branch
          • reviewRequiredbooleanOptional in this branch

            Value: false

          • receiptobjectOptional in this branch
            View nested fields
            • operationIdstring · uuidRequired in this branch
            • providerIdstring · uuidRequired in this branch
            • userIdstring · uuidRequired in this branch
            • emailstringRequired in this branch

              minLength: 1maxLength: 320

            • rolestringRequired in this branch

              Value: "provider"

            • acceptedVersionstringRequired 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}$"

            • additionalPropertiesno value allowedSchema rule
        • oneOf 2 · state = "pending"objectSchema branch
          View branch fields and rules
          • statestringOptional in this branch

            Value: "pending"

          • causestringOptional in this branch

            Allowed values: ["auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

          • receiptnullOptional in this branch
        • oneOf 3 · state = "rejected"objectSchema branch
          View branch fields and rules
          • statestringOptional in this branch

            Value: "rejected"

          • causestringOptional in this branch

            Value: "auth_request_rejected"

          • reviewRequiredbooleanOptional in this branch

            Value: false

          • receiptnullOptional in this branch
      • allOf 2oneOf (object | object)Schema branch

        Exactly one of these variants must match.

        View branch fields and rules
        • oneOf 1objectSchema 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
        • oneOf 2 · currentUnavailableReason = "provider_not_found"objectSchema branch
          View branch fields and rules
          • currentnullOptional in this branch
          • currentUnavailableReasonstringOptional in this branch

            Value: "provider_not_found"

      • additionalPropertiesno value allowedSchema rule
    • allOf 2 · state = "rejected"objectSchema branch
      View branch fields and rules
      • statestringOptional in this branch

        Value: "rejected"

Complete schema and nested fields
JSON Schema
{
  "oneOf": [
    {
      "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"
      ]
    },
    {
      "allOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "operationId": {
              "type": "string",
              "format": "uuid"
            },
            "providerId": {
              "type": "string",
              "format": "uuid"
            },
            "state": {
              "enum": [
                "pending",
                "accepted",
                "rejected"
              ]
            },
            "cause": {
              "enum": [
                null,
                "auth_not_observed",
                "auth_request_uncertain",
                "auth_request_rejected",
                "auth_identity_mismatch",
                "provider_not_found",
                "provider_changed",
                "already_linked",
                "account_already_linked",
                "auth_cleanup_pending"
              ]
            },
            "reviewRequired": {
              "type": "boolean"
            },
            "receipt": {
              "anyOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "operationId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "providerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "userId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "email": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320
                    },
                    "role": {
                      "const": "provider"
                    },
                    "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."
                    }
                  },
                  "required": [
                    "operationId",
                    "providerId",
                    "userId",
                    "email",
                    "role",
                    "acceptedVersion"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "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": [
            "operationId",
            "providerId",
            "state",
            "cause",
            "reviewRequired",
            "receipt",
            "current",
            "currentUnavailableReason",
            "replayed"
          ],
          "allOf": [
            {
              "oneOf": [
                {
                  "properties": {
                    "state": {
                      "const": "accepted"
                    },
                    "cause": {
                      "type": "null"
                    },
                    "reviewRequired": {
                      "const": false
                    },
                    "receipt": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "operationId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "providerId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "userId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "email": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 320
                        },
                        "role": {
                          "const": "provider"
                        },
                        "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."
                        }
                      },
                      "required": [
                        "operationId",
                        "providerId",
                        "userId",
                        "email",
                        "role",
                        "acceptedVersion"
                      ]
                    }
                  }
                },
                {
                  "properties": {
                    "state": {
                      "const": "pending"
                    },
                    "cause": {
                      "enum": [
                        "auth_not_observed",
                        "auth_request_uncertain",
                        "auth_request_rejected",
                        "auth_identity_mismatch",
                        "provider_not_found",
                        "provider_changed",
                        "already_linked",
                        "account_already_linked",
                        "auth_cleanup_pending"
                      ]
                    },
                    "receipt": {
                      "type": "null"
                    }
                  }
                },
                {
                  "properties": {
                    "state": {
                      "const": "rejected"
                    },
                    "cause": {
                      "const": "auth_request_rejected"
                    },
                    "reviewRequired": {
                      "const": false
                    },
                    "receipt": {
                      "type": "null"
                    }
                  }
                }
              ]
            },
            {
              "oneOf": [
                {
                  "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"
                    }
                  }
                },
                {
                  "properties": {
                    "current": {
                      "type": "null"
                    },
                    "currentUnavailableReason": {
                      "const": "provider_not_found"
                    }
                  }
                }
              ]
            }
          ],
          "description": "Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned."
        },
        {
          "properties": {
            "state": {
              "const": "rejected"
            }
          }
        }
      ]
    }
  ]
}
428 · Original Idempotency-Key or exact quoted If-Match is required.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Unresolved operation, key unavailable, or temporary persistence failure. Retain the original operation; no automatic resend.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}
Retry-After · When supplied, wait this many seconds before a result check; not an instruction to create another account.
Retry-After schema
{
  "type": "integer",
  "minimum": 1
}

application/json

Exactly one of these variants must match.

  • oneOf 1objectSchema branch
    View branch fields and rules
    • errorobjectRequired in this branch
      View nested fields
      • codestringRequired in this branch
      • requestIdstring · uuidRequired in this branch
      • retryAfterintegerOptional in this branch

        minimum: 1

      • additionalPropertiesno value allowedSchema rule
    • additionalPropertiesno value allowedSchema rule
  • oneOf 2allOf (object; allOf (oneOf (object | object | object) & oneOf (object | object)) & object)Schema branch

    All of these schema rules apply together.

    View branch fields and rules
    • allOf 1object; allOf (oneOf (object | object | object) & oneOf (object | object))Schema branch

      Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned.

      All of these schema rules apply together.

      View branch fields and rules
      • operationIdstring · uuidRequired in this branch
      • providerIdstring · uuidRequired in this branch
      • statestringRequired in this branch

        Allowed values: ["pending","accepted","rejected"]

      • causenull | stringRequired in this branch

        Allowed values: [null,"auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

      • reviewRequiredbooleanRequired in this branch
      • receiptanyOf (object | null)Required in this branch

        At least one of these variants must match.

        View nested fields
        • anyOf 1 · role = "provider"objectSchema branch
          View branch fields and rules
          • operationIdstring · uuidRequired in this branch
          • providerIdstring · uuidRequired in this branch
          • userIdstring · uuidRequired in this branch
          • emailstringRequired in this branch

            minLength: 1maxLength: 320

          • rolestringRequired in this branch

            Value: "provider"

          • acceptedVersionstringRequired 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}$"

          • additionalPropertiesno value allowedSchema rule
        • anyOf 2nullSchema branch
      • currentanyOf (object | null)Required in this branch

        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 in this branch

        Allowed values: [null,"provider_not_found"]

      • replayedbooleanRequired in this branch
      • allOf 1oneOf (object | object | object)Schema branch

        Exactly one of these variants must match.

        View branch fields and rules
        • oneOf 1 · state = "accepted"objectSchema branch
          View branch fields and rules
          • statestringOptional in this branch

            Value: "accepted"

          • causenullOptional in this branch
          • reviewRequiredbooleanOptional in this branch

            Value: false

          • receiptobjectOptional in this branch
            View nested fields
            • operationIdstring · uuidRequired in this branch
            • providerIdstring · uuidRequired in this branch
            • userIdstring · uuidRequired in this branch
            • emailstringRequired in this branch

              minLength: 1maxLength: 320

            • rolestringRequired in this branch

              Value: "provider"

            • acceptedVersionstringRequired 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}$"

            • additionalPropertiesno value allowedSchema rule
        • oneOf 2 · state = "pending"objectSchema branch
          View branch fields and rules
          • statestringOptional in this branch

            Value: "pending"

          • causestringOptional in this branch

            Allowed values: ["auth_not_observed","auth_request_uncertain","auth_request_rejected","auth_identity_mismatch","provider_not_found","provider_changed","already_linked","account_already_linked","auth_cleanup_pending"]

          • receiptnullOptional in this branch
        • oneOf 3 · state = "rejected"objectSchema branch
          View branch fields and rules
          • statestringOptional in this branch

            Value: "rejected"

          • causestringOptional in this branch

            Value: "auth_request_rejected"

          • reviewRequiredbooleanOptional in this branch

            Value: false

          • receiptnullOptional in this branch
      • allOf 2oneOf (object | object)Schema branch

        Exactly one of these variants must match.

        View branch fields and rules
        • oneOf 1objectSchema 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
        • oneOf 2 · currentUnavailableReason = "provider_not_found"objectSchema branch
          View branch fields and rules
          • currentnullOptional in this branch
          • currentUnavailableReasonstringOptional in this branch

            Value: "provider_not_found"

      • additionalPropertiesno value allowedSchema rule
    • allOf 2 · state = "pending"objectSchema branch
      View branch fields and rules
      • statestringOptional in this branch

        Value: "pending"

Complete schema and nested fields
JSON Schema
{
  "oneOf": [
    {
      "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"
      ]
    },
    {
      "allOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "operationId": {
              "type": "string",
              "format": "uuid"
            },
            "providerId": {
              "type": "string",
              "format": "uuid"
            },
            "state": {
              "enum": [
                "pending",
                "accepted",
                "rejected"
              ]
            },
            "cause": {
              "enum": [
                null,
                "auth_not_observed",
                "auth_request_uncertain",
                "auth_request_rejected",
                "auth_identity_mismatch",
                "provider_not_found",
                "provider_changed",
                "already_linked",
                "account_already_linked",
                "auth_cleanup_pending"
              ]
            },
            "reviewRequired": {
              "type": "boolean"
            },
            "receipt": {
              "anyOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "operationId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "providerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "userId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "email": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 320
                    },
                    "role": {
                      "const": "provider"
                    },
                    "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."
                    }
                  },
                  "required": [
                    "operationId",
                    "providerId",
                    "userId",
                    "email",
                    "role",
                    "acceptedVersion"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "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": [
            "operationId",
            "providerId",
            "state",
            "cause",
            "reviewRequired",
            "receipt",
            "current",
            "currentUnavailableReason",
            "replayed"
          ],
          "allOf": [
            {
              "oneOf": [
                {
                  "properties": {
                    "state": {
                      "const": "accepted"
                    },
                    "cause": {
                      "type": "null"
                    },
                    "reviewRequired": {
                      "const": false
                    },
                    "receipt": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "operationId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "providerId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "userId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "email": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 320
                        },
                        "role": {
                          "const": "provider"
                        },
                        "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."
                        }
                      },
                      "required": [
                        "operationId",
                        "providerId",
                        "userId",
                        "email",
                        "role",
                        "acceptedVersion"
                      ]
                    }
                  }
                },
                {
                  "properties": {
                    "state": {
                      "const": "pending"
                    },
                    "cause": {
                      "enum": [
                        "auth_not_observed",
                        "auth_request_uncertain",
                        "auth_request_rejected",
                        "auth_identity_mismatch",
                        "provider_not_found",
                        "provider_changed",
                        "already_linked",
                        "account_already_linked",
                        "auth_cleanup_pending"
                      ]
                    },
                    "receipt": {
                      "type": "null"
                    }
                  }
                },
                {
                  "properties": {
                    "state": {
                      "const": "rejected"
                    },
                    "cause": {
                      "const": "auth_request_rejected"
                    },
                    "reviewRequired": {
                      "const": false
                    },
                    "receipt": {
                      "type": "null"
                    }
                  }
                }
              ]
            },
            {
              "oneOf": [
                {
                  "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"
                    }
                  }
                },
                {
                  "properties": {
                    "current": {
                      "type": "null"
                    },
                    "currentUnavailableReason": {
                      "const": "provider_not_found"
                    }
                  }
                }
              ]
            }
          ],
          "description": "Accepted has an immutable receipt; current is separate and may have advanced. Pending is unresolved, never a rollback claim. Only rejected is a durable terminal refusal permitting corrected credentials with a new operation. No password or private Auth provenance is returned."
        },
        {
          "properties": {
            "state": {
              "const": "pending"
            }
          }
        }
      ]
    }
  ]
}