CRADDevelopers
English

Retrieve a quote

Read saved quote including expired accepted summary

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.

GET/v1/sites/{siteId}/quotes/{quoteId}

Behavior

If the customer session was created with a companion integration credential, that bound credential must still be valid and include bookings:write:customer. The permission also applies on read-only or replay branches, where present; a new header does not replace the credential bound to the session.

Authentication

CustomerSession

Credential rules

Opaque short-lived customer session, upgraded by CRAD phone proof; neither a website account nor a cookie grants this authority. A session created with a companion integration credential remains bound to that credential: every request rechecks its expiry and revocation. Omitting or replacing the companion header later does not rebind the session. Current phone proof is required where stated by the operation. After expiry, create a new session and explicitly verify the same phone and integration to recover a known request or booking; retain the original locators and never auto-confirm during recovery.

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

If this customer session was created with a companion integration credential, that bound credential must still grant bookings:write:customer. Its current expiry/revocation is checked as well; an unrelated key sent later does not repair the session.

Request

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

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

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

Successful responses

200 · Quote

application/json · Quote

  • quoteIdstring · uuidRequired
  • expiresAtstring · date-timeRequired
  • snapshotobject; allOf (unspecified)Required

    All of these schema rules apply together.

    View nested fields
    • versionnumberRequired

      Value: 1

    • policystringRequired

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

    • serviceIdstring · uuidRequired
    • serviceNameobjectRequired
      View nested fields
      • hestringOptional
      • arstringOptional
      • enstringOptional
      • additionalPropertiesno value allowedSchema rule
    • providerIdanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · uuidSchema branch
      • anyOf 2nullSchema branch
    • durationMinutesintegerRequired

      minimum: 1maximum: 1440

    • slotIntervalMinutesintegerRequired

      minimum: 1maximum: 1440

    • totalPriceMinoranyOf (integer | null)Required

      Frozen exact total in minor units. Null remains non-final; priceRangeMinor may carry frozen range bounds. Never turn the range minimum into an agreed total.

      At least one of these variants must match.

      View nested fields
      • anyOf 1integerSchema branch

        minimum: 0

      • anyOf 2nullSchema branch
    • currencystringRequired

      Value: "ILS"

    • includeRemovalbooleanRequired
    • baseDurationMinutesintegerRequired
    • removalDurationMinutesintegerRequired
    • basePriceMinoranyOf (integer | null)Required

      Null means the price will be decided later; zero remains an explicit free price.

      At least one of these variants must match.

      View nested fields
      • anyOf 1integerSchema branch

        minimum: 0

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

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

      At least one of these variants must match.

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

          minimum: 0maximum: 9007199254740991

        • maxintegerRequired in this branch

          minimum: 0maximum: 9007199254740991

        • additionalPropertiesno value allowedSchema rule
      • anyOf 2nullSchema branch
    • allOf 1unspecifiedSchema branch
      View branch fields and rules
      • ifobjectSchema rule
        View branch fields and rules
        • priceRangeMinorobjectCondition predicate
      • thenobjectSchema rule
        View branch fields and rules
        • totalPriceMinornullOptional in this branch
    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "quoteId": {
      "type": "string",
      "format": "uuid"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "snapshot": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "version": {
          "const": 1
        },
        "policy": {
          "enum": [
            "legacy_fixed_slot_v1",
            "service_duration_v1"
          ]
        },
        "serviceId": {
          "type": "string",
          "format": "uuid"
        },
        "serviceName": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "he": {
              "type": "string"
            },
            "ar": {
              "type": "string"
            },
            "en": {
              "type": "string"
            }
          }
        },
        "providerId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "durationMinutes": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1440
        },
        "slotIntervalMinutes": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1440
        },
        "totalPriceMinor": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ],
          "description": "Frozen exact total in minor units. Null remains non-final; priceRangeMinor may carry frozen range bounds. Never turn the range minimum into an agreed total."
        },
        "currency": {
          "const": "ILS"
        },
        "includeRemoval": {
          "type": "boolean"
        },
        "baseDurationMinutes": {
          "type": "integer"
        },
        "removalDurationMinutes": {
          "type": "integer"
        },
        "basePriceMinor": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ],
          "description": "Null means the price will be decided later; zero remains an explicit free price."
        },
        "removalPriceMinor": {
          "type": "integer"
        },
        "priceRangeMinor": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "min",
                "max"
              ],
              "properties": {
                "min": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "max": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "Non-final inclusive bounds in minor currency units; 35000–60000 means 350–600 ILS. Both safe integer bounds are required and min must be strictly below max. The companion exact amount is null. Omitted or null means no range. Accepted bounds are immutable quote/booking terms."
        }
      },
      "required": [
        "version",
        "policy",
        "serviceId",
        "serviceName",
        "providerId",
        "durationMinutes",
        "slotIntervalMinutes",
        "totalPriceMinor",
        "currency",
        "includeRemoval",
        "baseDurationMinutes",
        "removalDurationMinutes",
        "basePriceMinor",
        "removalPriceMinor"
      ],
      "allOf": [
        {
          "if": {
            "required": [
              "priceRangeMinor"
            ],
            "properties": {
              "priceRangeMinor": {
                "type": "object"
              }
            }
          },
          "then": {
            "properties": {
              "totalPriceMinor": {
                "type": "null"
              }
            }
          }
        }
      ]
    }
  },
  "required": [
    "quoteId",
    "expiresAt",
    "snapshot"
  ]
}

Errors and recovery

Error responses declared in the contract (10)

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

401 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
403 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
404 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
409 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
410 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
412 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
422 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
428 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
429 · Rate limit; honor Retry-After.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
503 · Outcome may be unknown. Keep operation key and reconcile.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}