{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mercantry-org/json-schema/mercantry-org-merchant-summary-schema.json",
  "title": "MerchantSummary",
  "description": "Compact merchant record returned by search. Deterministic order, never ranked.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mercantry-org-openapi.json#/components/schemas/MerchantSummary",
  "type": "object",
  "properties": {
    "merchant_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "cuisine_tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attribute_tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "neighborhood": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "lat": {
      "type": "number"
    },
    "lng": {
      "type": "number"
    },
    "price_band": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4
    },
    "reservation_policy": {
      "type": "string",
      "enum": [
        "walk_in_only",
        "phone_reservations",
        "accepts_reservations",
        "requires_deposit"
      ]
    },
    "bookable": {
      "type": "boolean",
      "description": "Derived: phone-verified AND accepts phone reservations AND not opted out AND no deposit required."
    },
    "verification_status": {
      "type": "string",
      "enum": [
        "unverified",
        "phone_verified",
        "transaction_verified"
      ]
    },
    "sandbox": {
      "type": "boolean",
      "description": "Sandbox test merchant: books end-to-end and returns a SIMULATED confirmation, never dialing a real venue. Never present a sandbox confirmation to a user as a real reservation."
    },
    "distance_km": {
      "type": "number",
      "description": "Present only when a geo filter was supplied."
    }
  }
}