{"openapi":"3.1.0","info":{"title":"aloja.casa guest public API","version":"1.0.0","description":"Unauthenticated read-only lodging catalog, availability, stay quotes, and guest offers/promos for this tenant. Same queries the guest booking site uses. Booking-options and offer options include propertyCovers with absolute coverImageUrl per cabin. HTTP clients can use these REST routes; HTML browsing agents can use the guest site /api-para-agentes/cotizar. See /llms.txt for both paths and optional browser WebMCP quote_stay. After quoting, send humans to booking deep-links on the guest site (see x-aloja-booking-deep-links). Private Ops MCP (/mcp) is not part of this document."},"servers":[{"url":"https://api.marcelahospitality.com"}],"paths":{"/properties/home-showcase":{"get":{"operationId":"listHomeShowcase","summary":"Public property catalog cards","security":[],"responses":{"200":{"description":"Home showcase property list"}}}},"/properties/multiple":{"get":{"operationId":"getMultipleProperties","summary":"Public properties by UUID list","security":[],"parameters":[{"name":"propertiesIds","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}],"responses":{"200":{"description":"Property details"}}}},"/properties/names-and-images-urls":{"get":{"operationId":"getPropertyNamesAndImages","summary":"Public names and image URLs by UUID list","security":[],"parameters":[{"name":"propertiesIds","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}],"responses":{"200":{"description":"Names and image URLs"}}}},"/properties/{identifier}":{"get":{"operationId":"getProperty","summary":"Public property by UUID or slug","security":[],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Property detail"}}}},"/availability/booking-options":{"get":{"operationId":"getBookingOptions","summary":"Stay quote / booking options with pricing","description":"Anonymous read-only computation: maximum 366 nights, 100 guests and pets combined, 50 property filters. These technical limits are separate from property-specific occupancy and stay rules. Unknown fields and repeated scalar parameters are rejected. Optional quantities default to zero. GET creates no hold or booking; analytics and calendar freshness work may occur.","security":[],"parameters":[{"name":"propertiesIds","in":"query","required":false,"style":"form","explode":true,"description":"Repeat propertiesIds=UUID for multiple UUID v4 anchors; bracket names are rejected. Each option includes at least one anchor and may include compatible cabins.","schema":{"type":"array","maxItems":50,"items":{"type":"string","format":"uuid"}}},{"name":"checkInDate","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"checkOutDate","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"adultsQuantity","in":"query","required":true,"description":"Integer >= 1, serialized as a decimal query string. adultsQuantity=0 → 400.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"teenagersQuantity","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100,"default":0}},{"name":"childrenQuantity","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100,"default":0}},{"name":"babiesQuantity","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100,"default":0}},{"name":"petsQuantity","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100,"default":0}}],"responses":{"200":{"description":"Public quote options. Empty array means no available options; a quote does not hold inventory.","headers":{"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicBookingOption"}}}}},"400":{"description":"Invalid civil date, date range, quantity, unknown/duplicate query field, UUID filter or technical computation limit. Rejected before inventory.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"429":{"description":"Rate limit exceeded; Retry-After and X-RateLimit-Reset are seconds until retry/reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"schema":{"type":"integer","minimum":0}}}},"500":{"description":"Internal service failure; never interpret as empty inventory.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}}}}},"/offers/booking-options":{"get":{"operationId":"getOfferBookingOptions","summary":"Guest-visible offers/promos (calendar discount ≥ 5%, no dates required)","security":[],"parameters":[{"name":"adultsQuantity","in":"query","required":true,"schema":{"type":"string"}},{"name":"teenagersQuantity","in":"query","required":false,"schema":{"type":"string"}},{"name":"childrenQuantity","in":"query","required":false,"schema":{"type":"string"}},{"name":"babiesQuantity","in":"query","required":false,"schema":{"type":"string"}},{"name":"petsQuantity","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OfferBookingOptionDTO[] — same as booking-options plus offerNightDiscounts and propertyCovers with absolute coverImageUrl. Stay dates are synthesized server-side."}}}},"/offers/has-offers":{"get":{"operationId":"hasOffers","summary":"Whether any guest-visible offer nights exist","security":[],"responses":{"200":{"description":"{ hasOffers: boolean }"}}}},"/availability/property-calendar":{"get":{"operationId":"getPropertyCalendar","summary":"Booked/blocked calendar for one property","security":[],"parameters":[{"name":"propertyId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Date-keyed calendar cells"}}}},"/availability/search-restrictions":{"get":{"operationId":"getSearchRestrictions","summary":"Aggregated search restriction thresholds","security":[],"parameters":[{"name":"startDate","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Per-date restriction thresholds"}}}}},"components":{"schemas":{"PublicBookingOption":{"type":"object","required":["id","code","status","dates","properties","guestsDetails","payments","pricing","propertyCovers"],"properties":{"id":{"type":"string","const":"","description":"A quote has no persisted booking ID."},"code":{"type":"string","description":"Ephemeral quote code, not a hold or booking."},"status":{"type":"string","const":"proposed"},"dates":{"type":"object","required":["checkInDate","checkOutDate","creationDate"],"properties":{"checkInDate":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOutDate":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Exclusive checkout."},"creationDate":{"type":"string","format":"date-time","description":"Quote generation time; not an inventory validity guarantee."}}},"properties":{"type":"object","required":["propertiesIds","propertiesSchedule"],"properties":{"propertiesIds":{"type":"array","items":{"type":"string","format":"uuid"}},"propertiesSchedule":{"type":"object","description":"Civil night date to cabin UUIDs.","additionalProperties":{"type":"array","items":{"type":"string","format":"uuid"}}}}},"guestsDetails":{"type":"object","required":["guestsList","petsQuantity"],"properties":{"guestsList":{"type":"array","items":{"type":"object","required":["ageLabel"],"properties":{"ageLabel":{"type":"string","enum":["adult","teenager","child","baby"]}}}},"petsQuantity":{"type":"integer","minimum":0}}},"payments":{"type":"array","maxItems":0,"items":{},"description":"Quotes contain no payment records."},"pricing":{"$ref":"#/components/schemas/QuotePricing"},"propertyCovers":{"type":"object","additionalProperties":{"type":"object","required":["name","coverImageUrl"],"properties":{"name":{"type":"string"},"coverImageUrl":{"type":"string","description":"Absolute public image URL, or empty when no cover exists.","anyOf":[{"format":"uri"},{"const":""}]}}}}}},"QuotePricing":{"type":"object","required":["totalGrossPrice","totalNetPrice","totalDiscount","currency","priceBreakdown","lastUpdate"],"properties":{"totalGrossPrice":{"type":"integer","minimum":0,"description":"Total stay before calculated discounts, in MXN centavos."},"totalNetPrice":{"type":"integer","minimum":0,"description":"Total stay after calculated discounts, in MXN centavos. Revalidate final conditions and additional charges at checkout."},"totalDiscount":{"type":"integer","minimum":0,"description":"MXN centavos (100 centavos = 1 MXN)."},"currency":{"type":"string","const":"MXN"},"lastUpdate":{"type":"string","format":"date-time"},"priceBreakdown":{"type":"object","additionalProperties":{"type":"object","required":["basePrice","guestPrice","guestsQuantityIncludedInBasePrice","extraChildrenQuantityIncludedInBasePrice","petPrice","discountPercentage","grossPriceOfTheNight"],"properties":{"basePrice":{"type":"integer","minimum":0,"description":"MXN centavos (100 centavos = 1 MXN)."},"guestPrice":{"type":"integer","minimum":0,"description":"MXN centavos (100 centavos = 1 MXN)."},"petPrice":{"type":"integer","minimum":0,"description":"MXN centavos (100 centavos = 1 MXN)."},"grossPriceOfTheNight":{"type":"integer","minimum":0,"description":"MXN centavos (100 centavos = 1 MXN)."},"guestsQuantityIncludedInBasePrice":{"type":"integer","minimum":0},"extraChildrenQuantityIncludedInBasePrice":{"type":"integer","minimum":0},"guestsCapacityIncludedInBasePrice":{"type":"integer","minimum":0},"extraChildrenCapacityIncludedInBasePrice":{"type":"integer","minimum":0},"discountPercentage":{"type":"number","minimum":0,"maximum":100}}}}}},"PublicApiError":{"type":"object","required":["statusCode","error","message","path","timestamp"],"properties":{"statusCode":{"type":"integer","minimum":400,"maximum":599},"error":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"details":{"type":"array","items":{"type":"string"}},"validationErrors":{"type":"array","items":{"type":"object","required":["code","field","message"],"properties":{"code":{"type":"string"},"field":{"type":"string"},"message":{"type":"string"}}}}}}}},"x-aloja-booking-deep-links":{"description":"Human booking CTAs live on the tenant guest site (not on this API host). Resolve the guest origin from the brand website that linked here (or from guest /llms.txt).","searchOptions":{"path":"/search/options","template":"{guestSiteOrigin}/search/options?checkInDate=YYYY-MM-DD&checkOutDate=YYYY-MM-DD&adultsQuantity=N","queryNames":["checkInDate","checkOutDate","adultsQuantity","teenagersQuantity","childrenQuantity","babiesQuantity","petsQuantity"],"note":"Query names match GET /availability/booking-options. Do not invent checkout hold URLs."},"propertyPage":{"path":"/properties/{slug-or-uuid}","template":"{guestSiteOrigin}/properties/{slug-or-uuid}","note":"Property browse page; calendar CTA continues on the guest site."},"guestDiscovery":{"llmsTxt":"{guestSiteOrigin}/llms.txt","wellKnownLlmsTxt":"{guestSiteOrigin}/.well-known/llms.txt"}}}