Stays
What you need in the ERP
Section titled “What you need in the ERP”- the Accommodation module enabled, with room types, units and rates
- the site key
- room copy and photos in Site, if you want richer pages
Prompt
Section titled “Prompt”Paste it after the base prompt, then add Design without the AI look.
Build room reservations on /api/site/v1/stay.
1. Search bar: arrival, departure, adults, children with ages, promo code. A calendar in the site style.2. GET /stay/search?checkIn=&checkOut=&adults=&children=&ages=&promo=3. Results: room, photos, capacity, amenities, total price for the period, units left. Show full or unpriced rooms clearly.4. Several rooms can be selected (rooms[]).5. Guest details and a payment method from those returned by the search. Several rooms: only pay on arrival or bank transfer.6. POST /stay/reserve with { typeId, checkIn, checkOut, adults, children, name, email, phone, notes, promoCode, paymentMethod } and Idempotency-Key.7. Success: reservation number, total, transfer instructions if needed, the manageUrl link to view and cancel.
Stay errors come as { "error": "text" }. On 409 the room was just taken: search again.Add room pages with copy from Site, linked to the room type through a field holding its id.
Performance:- Serve room pages from cache; always fetch availability and price fresh.- Thumbnails for room photos in lists, the large variant only when opened.