{
 "openapi": "3.1.0",
 "info": {
  "title": "OshawaLimo.net booking requests",
  "version": "2026-11-24",
  "description": "Send a chauffeured ride request (Oshawa, Durham Region, the GTA and Toronto airports) on behalf of a traveller. Only call with the traveller's explicit consent. No payment is taken: the dispatch desk confirms the fixed fare and chauffeur, and the traveller pays through https://oshawalimo.net/book/ or a package pay link. A request is not a confirmed booking.",
  "contact": {
   "email": "support@oshawalimo.net",
   "url": "https://oshawalimo.net/agents/"
  },
  "x-mcp-server": "https://oshawalimo.net/api/mcp.php"
 },
 "servers": [
  {
   "url": "https://oshawalimo.net"
  }
 ],
 "paths": {
  "/api/search.php": {
   "get": {
    "operationId": "searchSite",
    "summary": "Search airports, towns, venues, hotels, routes, packages and guides",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "section",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "First path segment, e.g. airports, cities, packages"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 25,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Matching pages with url and markdown links"
     }
    }
   }
  },
  "/api/fares.json": {
   "get": {
    "operationId": "getFares",
    "summary": "One-way planning fare ranges and hourly rates (CAD before HST)",
    "responses": {
     "200": {
      "description": "Fare table"
     }
    }
   }
  },
  "/api/packages.json": {
   "get": {
    "operationId": "getPackages",
    "summary": "Fixed-price round-trip packages by vehicle class",
    "responses": {
     "200": {
      "description": "Packages"
     }
    }
   }
  },
  "/api/booking.php": {
   "get": {
    "operationId": "bookingHelp",
    "summary": "Usage help",
    "responses": {
     "200": {
      "description": "JSON help"
     }
    }
   },
   "post": {
    "operationId": "createBookingRequest",
    "summary": "Create a booking request (traveller consent required, no payment)",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BookingRequest"
       }
      },
      "application/x-www-form-urlencoded": {
       "schema": {
        "$ref": "#/components/schemas/BookingRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Received",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BookingResult"
        }
       }
      }
     },
     "400": {
      "description": "Missing or invalid fields"
     },
     "429": {
      "description": "Rate limited (10 per hour per IP)"
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "BookingRequest": {
    "type": "object",
    "required": [
     "name",
     "pickup",
     "dropoff",
     "date",
     "time",
     "consent"
    ],
    "properties": {
     "name": {
      "type": "string",
      "description": "Lead passenger full name"
     },
     "email": {
      "type": "string",
      "format": "email",
      "description": "Email or phone is required"
     },
     "phone": {
      "type": "string",
      "description": "Mobile with country code"
     },
     "service": {
      "type": "string",
      "enum": [
       "Airport transfer",
       "Round-trip package",
       "Hourly private chauffeur",
       "Game / concert / event night",
       "Wedding / prom / occasion",
       "Corporate / roadshow",
       "GO / VIA train station",
       "Private jet / FBO",
       "Cross-border / USA",
       "Other"
      ]
     },
     "package": {
      "type": "string",
      "description": "Round-trip package slug (see /api/packages.json)"
     },
     "pickup": {
      "type": "string",
      "description": "Full address, hotel, venue, or airport code + terminal"
     },
     "dropoff": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date",
      "description": "Local pickup date (YYYY-MM-DD)"
     },
     "time": {
      "type": "string",
      "description": "Local pickup time HH:MM (America/Toronto). For arrivals use the scheduled landing time."
     },
     "flight": {
      "type": "string"
     },
     "passengers": {
      "type": "integer",
      "minimum": 1
     },
     "bags": {
      "type": "integer",
      "minimum": 0
     },
     "vehicle": {
      "type": "string",
      "enum": [
       "Business sedan",
       "Business SUV",
       "First-class sedan",
       "Executive SUV",
       "Luxury minivan",
       "Executive Sprinter",
       "Jet Sprinter (VIP)",
       "Stretch limousine (partner)",
       "Stretch SUV limousine (partner)",
       "Party bus (partner)",
       "Rolls-Royce / Maybach (partner)",
       "Not sure"
      ]
     },
     "return": {
      "type": "string",
      "description": "Return trip details, if any"
     },
     "notes": {
      "type": "string",
      "description": "Child seats, accessibility, meet and greet sign name, stops"
     },
     "agent": {
      "type": "string",
      "description": "Name of the AI agent or app sending the request"
     },
     "consent": {
      "type": "string",
      "enum": [
       "yes"
      ],
      "description": "The traveller explicitly asked for this booking"
     }
    }
   },
   "BookingResult": {
    "type": "object",
    "properties": {
     "ok": {
      "type": "boolean"
     },
     "ref": {
      "type": "string",
      "example": "OSH-K3F9Q2X"
     },
     "status": {
      "type": "string",
      "example": "received"
     },
     "next": {
      "type": "string"
     },
     "instant_booking_for_the_traveller": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     }
    }
   }
  }
 }
}