{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whenisbins-com/json-schema/whenisbins-com-lookup-request-schema.json",
  "title": "LookupRequest",
  "description": "Send only the field or fields `GET /addresses` asked for. Any field\nnot listed here is rejected with 400 `invalid_request` naming it —\nthe body is not silently ignored.\n",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whenisbins-com-openapi.yaml#/components/schemas/LookupRequest",
  "type": "object",
  "required": [
    "postcode"
  ],
  "properties": {
    "postcode": {
      "type": "string"
    },
    "property": {
      "type": "string",
      "maxLength": 300,
      "description": "The first line of the address (optional — free text, including the\nmanual-entry flow): a house number or name, optionally preceded by\nits flat/unit and followed by its street, comma-separated —\n`15`, `Rose Cottage`, `Flat 2, 60, Kings Road`. It must carry a\nhouse number or a house/building name; a flat, floor or unit\ndescriptor alone is refused with `property_identifier_required`.\nIgnored when `property_id` is given.\n"
    },
    "property_id": {
      "type": "string",
      "maxLength": 128,
      "description": "A candidate id previously returned; selects the service's stored candidate mapping and is not itself council-address evidence."
    },
    "street": {
      "type": "string",
      "maxLength": 200,
      "description": "Street/road name, accepted only when GET /addresses requests a street-based input."
    },
    "locality": {
      "type": "string",
      "maxLength": 200,
      "description": "Council-recognised town, locality, settlement, island, or legacy collection area when requested by GET /addresses."
    },
    "normal_weekday": {
      "type": "string",
      "description": "Citizen-confirmed normal collection weekday. It is used only inside dates/weeks the council explicitly publishes and is never inferred from a neighbour.",
      "enum": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday",
        "Sunday"
      ]
    },
    "property_type": {
      "type": "string",
      "description": "City of London residential service model when requested; rule-level results are not represented as a dated property calendar.",
      "enum": [
        "private_flat_without_bin_store",
        "private_block_with_bin_store",
        "housing_estate",
        "street_bag_collection"
      ]
    },
    "allow_postcode_representative": {
      "type": "boolean",
      "default": false,
      "description": "Q10 consent flag. Send ONLY after the citizen explicitly\nopts in to labelled neighbour-based dates; honoured only\nwhen the exact property is not listed. Never the default.\n"
    }
  }
}