{
  "openapi": "3.1.0",
  "info": {
    "title": "Corlenne — public price API",
    "version": "1.2.0",
    "summary": "Fixed prices of a private chauffeur service in Paris, with pre-filled booking links. Booking, changes and tracking are available through the MCP server.",
    "description": "Fixed prices per vehicle for private chauffeur transfers in Paris (Charles de Gaulle, Orly and Beauvais airports, Paris railway stations, Disneyland Paris, Versailles, Paris Nord Villepinte, Parc Astérix, Paris addresses) and for a chauffeur by the hour. Prices in EUR, VAT and tolls included, the same day and night. Each price has a booking_url that opens the booking page already filled in; the customer pays there. The API never books, charges or stores personal data. No key; limit 30 quotes per hour per IP. Also available as an MCP server (Streamable HTTP, JSON-RPC 2.0) at https://corlenne.com/api/mcp.",
    "contact": { "name": "Corlenne", "url": "https://corlenne.com/en/developers/", "email": "reservation@corlenne.com" },
    "termsOfService": "https://corlenne.com/en/terms/"
  },
  "externalDocs": { "description": "Developers and AI assistants", "url": "https://corlenne.com/en/developers/" },
  "servers": [{ "url": "https://corlenne.com/api" }],
  "paths": {
    "/public-quote.php": {
      "get": {
        "operationId": "getQuote",
        "summary": "Price of a transfer or of an hourly hire",
        "description": "Transfer: give from and to. Hourly hire: give hours (3 to 12), optionally from. First Class is on request (price_eur null). Classes too small for the passengers and suitcases are listed under other_classes.",
        "parameters": [
          { "name": "from", "in": "query", "schema": { "type": "string", "maxLength": 160 }, "description": "Pick-up place, e.g. \"Orly Airport\" or \"12 rue de Rivoli, Paris\"." },
          { "name": "to", "in": "query", "schema": { "type": "string", "maxLength": 160 }, "description": "Drop-off place (transfers)." },
          { "name": "hours", "in": "query", "schema": { "type": "integer", "minimum": 3, "maximum": 12 }, "description": "Chauffeur at disposal by the hour." },
          { "name": "date", "in": "query", "schema": { "type": "string" }, "description": "YYYY-MM-DD or YYYY-MM-DDTHH:MM, Paris time." },
          { "name": "passengers", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 19 } },
          { "name": "suitcases", "in": "query", "schema": { "type": "integer", "minimum": 0, "maximum": 19 } },
          { "name": "lang", "in": "query", "schema": { "type": "string", "enum": ["fr", "en"] }, "description": "Language of notes and booking link (default fr)." }
        ],
        "responses": {
          "200": { "description": "Prices per vehicle class", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Quote" } } } },
          "400": { "description": "Invalid request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "422": { "description": "Trip outside the price list (on_quote) or service unavailable; a booking_url is returned", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "429": { "description": "Rate limit reached (30 quotes per hour per IP)" }
        }
      }
    },
    "/public-conditions.php": {
      "get": {
        "operationId": "getConditions",
        "summary": "What the price includes, waiting time, booking deadline, payment, cancellation and changes",
        "parameters": [{ "name": "lang", "in": "query", "schema": { "type": "string", "enum": ["fr", "en"] } }],
        "responses": { "200": { "description": "Conditions taken from the terms and conditions", "content": { "application/json": { "schema": { "type": "object" } } } } }
      }
    }
  },
  "components": {
    "schemas": {
      "Price": {
        "type": "object",
        "properties": {
          "class": { "type": "string", "enum": ["access", "business", "van", "first"] },
          "name": { "type": "string" },
          "max_passengers": { "type": "integer" },
          "max_suitcases": { "type": "integer" },
          "price_eur": { "type": ["number", "null"], "description": "Fixed price per vehicle, VAT included; null when on request." },
          "booking_url": { "type": "string", "format": "uri" }
        }
      },
      "Quote": {
        "type": "object",
        "properties": {
          "ok": { "type": "boolean" },
          "service": { "type": "string", "enum": ["transfer", "hourly"] },
          "currency": { "type": "string", "const": "EUR" },
          "from": { "type": "string" },
          "to": { "type": "string" },
          "hours": { "type": "integer" },
          "passengers": { "type": "integer" },
          "suitcases": { "type": "integer" },
          "date": { "type": ["string", "null"] },
          "price_basis": { "type": "string" },
          "prices": { "type": "array", "items": { "$ref": "#/components/schemas/Price" } },
          "other_classes": { "type": "array", "items": { "$ref": "#/components/schemas/Price" } },
          "on_request": { "type": "array", "items": { "$ref": "#/components/schemas/Price" } },
          "notes": { "type": "array", "items": { "type": "string" } },
          "conditions_url": { "type": "string", "format": "uri" },
          "contact": { "type": "object" },
          "operator": { "type": "string" },
          "generated_at": { "type": "string", "format": "date-time" }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "ok": { "type": "boolean", "const": false },
          "error": { "type": "string" },
          "message": { "type": "string" },
          "booking_url": { "type": "string", "format": "uri" }
        }
      }
    }
  }
}
