Raw schema
{
"type": "object",
"properties": {
"property_type": {
"type": "string",
"enum": [
"mieszkanie",
"dom",
"lokal-uzytkowy",
"budynek-nieogrzewany"
],
"description": "Typ nieruchomości. mieszkanie = apartment, dom = house, lokal-uzytkowy = commercial unit, budynek-nieogrzewany = unheated building up to 70 m² (summer cabin, outbuilding, workshop) with no heating or air conditioning."
},
"customer": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"maxLength": 100
},
"last_name": {
"type": "string",
"maxLength": 100
},
"email": {
"type": "string",
"maxLength": 200
},
"phone": {
"type": "string",
"maxLength": 40
}
},
"additionalProperties": false,
"description": "Dane kontaktowe klienta."
},
"address": {
"type": "object",
"properties": {
"street": {
"type": "string",
"maxLength": 200
},
"building_number": {
"type": "string",
"maxLength": 30
},
"apartment_number": {
"type": "string",
"maxLength": 30
},
"postal_code": {
"type": "string",
"maxLength": 10
},
"city": {
"type": "string",
"maxLength": 120
}
},
"additionalProperties": false,
"description": "Adres nieruchomości."
},
"property": {
"type": "object",
"properties": {
"area_m2": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000
},
"height_m": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 20
},
"year_built": {
"type": "integer",
"minimum": 1800,
"maximum": 2100
}
},
"additionalProperties": false,
"description": "Podstawowe parametry: powierzchnia użytkowa, wysokość pomieszczeń, rok oddania do użytkowania."
},
"options": {
"type": "object",
"properties": {
"paper_version": {
"type": "boolean"
},
"express_24h": {
"type": "boolean",
"description": "Wycofany (13.10.2026) — ignorowany, nie zmienia ceny."
}
},
"additionalProperties": false,
"description": "Płatne dodatki: paper_version (wersja papierowa)."
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 200,
"description": "Ścieżka pola z get_certificate_order_requirements, np. \"heating.heating\"."
},
"value": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"maxItems": 20
}
],
"description": "Wartość pola. Dla pól enum użyj DOKŁADNIE jednej z wartości z `options` — inna wartość jest odrzucana błędem INVALID_FIELD_VALUE."
}
},
"required": [
"path",
"value"
],
"additionalProperties": false
},
"maxItems": 80,
"description": "Pola specyficzne dla typu nieruchomości, w formie ścieżka → wartość."
},
"windows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"width_cm": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000
},
"height_cm": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"width_cm",
"height_cm",
"count"
],
"additionalProperties": false
},
"maxItems": 30,
"description": "Tylko dla `dom`: wymiary okien. Jednakowe okna podaje się raz z liczbą sztuk."
},
"doors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"material": {
"type": "string",
"enum": [
"Stalowe",
"Aluminiowe",
"PVC",
"Drewniane",
"Nie wiem"
]
},
"width_cm": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000
},
"height_cm": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"material",
"count"
],
"additionalProperties": false
},
"maxItems": 20,
"description": "Tylko dla `dom`: drzwi zewnętrzne i bramy w ogrzewanej bryle."
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"description": "Dowolny stały identyfikator tej próby zamówienia. Ponowne wywołanie z tym samym kluczem zwraca istniejące zamówienie zamiast tworzyć duplikat. Ustawiaj zawsze."
}
},
"required": [
"property_type"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}