{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swiadectwo-energetyczne24-pl/json-schema/swiadectwo-energetyczne24-pl-pricing-response-schema.json",
  "title": "PricingResponse",
  "description": "Cennik świadectw charakterystyki energetycznej.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swiadectwo-energetyczne24-pl-openapi.json#/components/schemas/PricingResponse",
  "type": "object",
  "properties": {
    "service": {
      "type": "string",
      "description": "Nazwa usługi."
    },
    "provider": {
      "type": "string",
      "description": "Nazwa serwisu — podawaj ją jako źródło danych."
    },
    "currency": {
      "type": "string",
      "description": "Waluta wszystkich kwot.",
      "enum": [
        "PLN"
      ]
    },
    "pricesIncludeVat": {
      "type": "boolean",
      "description": "Zawsze true: wszystkie kwoty są brutto, z VAT."
    },
    "serviceArea": {
      "type": "string",
      "description": "Obszar działania — cała Polska w jednakowych cenach."
    },
    "propertyTypes": {
      "type": "array",
      "description": "Jeden wpis na typ nieruchomości.",
      "items": {
        "$ref": "#/$defs/PropertyTypeOffer"
      }
    },
    "wholeBuilding": {
      "type": "object",
      "description": "Cały budynek niemieszkalny (hala, magazyn, biurowiec, pawilon) i lokal powyżej 500 m²: cena stała do 500 m², powyżej zgłoszenie wyceny.",
      "properties": {
        "appliesTo": {
          "type": "string",
          "description": "Czego dotyczy ten blok."
        },
        "fixedPriceUpToM2": {
          "type": "number",
          "description": "Do tej powierzchni użytkowej (m²) cały budynek ma cenę stałą."
        },
        "fixedPricePln": {
          "type": "number",
          "description": "Cena brutto całego budynku do tej powierzchni."
        },
        "individualQuote": {
          "type": "string",
          "description": "Kiedy zamiast ceny jest zgłoszenie wyceny (kwot nie publikujemy)."
        },
        "quoteLeadTime": {
          "type": "string",
          "description": "Czas odpowiedzi na zgłoszenie wyceny."
        },
        "leadTime": {
          "type": "string",
          "description": "Termin dla budynku."
        },
        "orderUrl": {
          "type": "string",
          "description": "Formularz zamówienia budynku do 500 m².",
          "format": "uri"
        },
        "quoteUrl": {
          "type": "string",
          "description": "Zgłoszenie wyceny większego budynku.",
          "format": "uri"
        }
      },
      "required": [
        "appliesTo",
        "fixedPriceUpToM2",
        "fixedPricePln",
        "individualQuote",
        "quoteLeadTime",
        "leadTime",
        "orderUrl",
        "quoteUrl"
      ]
    },
    "addons": {
      "type": "array",
      "description": "Dopłaty doliczane do ceny bazowej.",
      "items": {
        "$ref": "#/$defs/Addon"
      }
    },
    "leadTime": {
      "type": "object",
      "description": "Czas realizacji.",
      "properties": {
        "standard": {
          "type": "string",
          "description": "Realizacja standardowa."
        }
      },
      "required": [
        "standard"
      ]
    },
    "included": {
      "type": "array",
      "description": "Co zawiera cena (m.in. wpis do rejestru CHEB).",
      "items": {
        "type": "string"
      }
    },
    "contact": {
      "type": "object",
      "description": "Kontakt z obsługą klienta.",
      "properties": {
        "email": {
          "type": "string",
          "description": "Adres e-mail.",
          "format": "email"
        },
        "phone": {
          "type": "string",
          "description": "Telefon w formacie E.164."
        }
      },
      "required": [
        "email",
        "phone"
      ]
    },
    "links": {
      "type": "object",
      "description": "Powiązane narzędzia i pozostałe endpointy.",
      "properties": {
        "documentation": {
          "type": "string",
          "description": "Dokumentacja API.",
          "format": "uri"
        },
        "priceCalculator": {
          "type": "string",
          "description": "Kalkulator ceny świadectwa.",
          "format": "uri"
        },
        "needCheck": {
          "type": "string",
          "description": "Test „Czy potrzebuję świadectwa?”.",
          "format": "uri"
        },
        "faqApi": {
          "type": "string",
          "description": "Endpoint FAQ.",
          "format": "uri"
        },
        "citiesApi": {
          "type": "string",
          "description": "Endpoint listy miast.",
          "format": "uri"
        },
        "mcpServer": {
          "type": "string",
          "description": "Serwer MCP do składania zamówień przez asystenta AI.",
          "format": "uri"
        }
      },
      "required": [
        "documentation",
        "priceCalculator",
        "needCheck",
        "faqApi",
        "citiesApi",
        "mcpServer"
      ]
    }
  },
  "required": [
    "service",
    "provider",
    "currency",
    "pricesIncludeVat",
    "serviceArea",
    "propertyTypes",
    "wholeBuilding",
    "addons",
    "leadTime",
    "included",
    "contact",
    "links"
  ],
  "$defs": {
    "Addon": {
      "type": "object",
      "description": "Opcja dodatkowa zamówienia.",
      "properties": {
        "key": {
          "type": "string",
          "description": "Identyfikator opcji.",
          "enum": [
            "paperVersion"
          ]
        },
        "label": {
          "type": "string",
          "description": "Nazwa opcji do wyświetlenia."
        },
        "pricePln": {
          "type": "number",
          "description": "Dopłata brutto w PLN, z VAT."
        },
        "description": {
          "type": "string",
          "description": "Na czym polega opcja."
        }
      },
      "required": [
        "key",
        "label",
        "pricePln",
        "description"
      ]
    },
    "PropertyTypeOffer": {
      "type": "object",
      "description": "Typ nieruchomości z ceną bazową.",
      "properties": {
        "slug": {
          "type": "string",
          "description": "Identyfikator typu, używany w adresie /zamow/{typ}.",
          "enum": [
            "mieszkanie",
            "dom",
            "lokal-uzytkowy",
            "budynek-nieogrzewany"
          ]
        },
        "label": {
          "type": "string",
          "description": "Nazwa typu do wyświetlenia."
        },
        "basePricePln": {
          "type": "number",
          "description": "Cena bazowa brutto w PLN, z VAT."
        },
        "description": {
          "type": "string",
          "description": "Dla jakich nieruchomości jest ten typ."
        },
        "orderUrl": {
          "type": "string",
          "description": "Formularz zamówienia dla tego typu.",
          "format": "uri"
        }
      },
      "required": [
        "slug",
        "label",
        "basePricePln",
        "description",
        "orderUrl"
      ]
    }
  }
}