{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wievielkostetmeinumzug-de/json-schema/wievielkostetmeinumzug-de-quote-request-schema.json",
  "title": "QuoteRequest",
  "description": "Request body for POST /v1/pricing/estimate.\n\nMirrors research/13-pricing-engine.md PricingRequest, trimmed to what the\npure pricing function actually consumes, and using schema.sql-aligned\nidentifiers (`country`, `brand` -> brand.code) for config selection.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wievielkostetmeinumzug-de-openapi.json#/components/schemas/QuoteRequest",
  "properties": {
    "brand": {
      "type": "string",
      "title": "Brand"
    },
    "country": {
      "type": "string",
      "title": "Country"
    },
    "segment": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "local",
            "fern",
            "international",
            "office"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Segment"
    },
    "total_m3": {
      "type": "number",
      "exclusiveMinimum": 0.0,
      "title": "Total M3"
    },
    "distance_km": {
      "type": "number",
      "minimum": 0.0,
      "title": "Distance Km"
    },
    "from_country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From Country"
    },
    "to_country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "To Country"
    },
    "access_from": {
      "$ref": "#/$defs/AccessInfo"
    },
    "access_to": {
      "$ref": "#/$defs/AccessInfo"
    },
    "packing": {
      "type": "string",
      "enum": [
        "none",
        "partial",
        "full"
      ],
      "title": "Packing",
      "default": "none"
    },
    "storage_months": {
      "type": "integer",
      "title": "Storage Months",
      "default": 0
    },
    "request_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Request Id"
    }
  },
  "type": "object",
  "required": [
    "brand",
    "country",
    "total_m3",
    "distance_km"
  ],
  "$defs": {
    "AccessInfo": {
      "properties": {
        "floor": {
          "type": "integer",
          "title": "Floor",
          "default": 0
        },
        "has_elevator": {
          "type": "boolean",
          "title": "Has Elevator",
          "default": false
        },
        "long_carry_m": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Long Carry M"
        }
      },
      "type": "object",
      "title": "AccessInfo",
      "description": "Floor/elevator/long-carry conditions for one side of the move."
    }
  }
}