Book a home cleaning (customer confirms by payment link)
create_bookingCreates a home-cleaning booking for the price, date and arrival window the customer agreed to, and returns a secure Stripe payment_url. The booking is confirmed when the customer opens payment_url and saves a card (charged after the cleaning). The link is also emailed to the customer. Requires customer_confirmed = true and extras_offered = true (ask about extras first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | YYYY-MM-DD (today adds a same-day surcharge) | |
| notes | No | Access, pets, priorities... | |
| extras | No | Extras from get_services. Ask the customer before quoting a first cleaning: most add at least one (inside the oven id 11, inside the fridge id 10, windows id 15 with quantity, changing sheets id 12; move-out: Fin de bail id 18). e.g. [{"id":11},{"id":15,"quantity":4}] | |
| address | Yes | ||
| bedrooms | Yes | Number of bedrooms (studio = 1) | |
| customer | Yes | ||
| bathrooms | No | ||
| condition | Yes | ASK the customer, never assume: when the home last had a thorough (professional) clean. recent (<1 month), one_to_six_months, over_six_months (or never). First cleanings are rarely recent. | |
| frequency | No | once, weekly, biweekly (every 2 weeks) or monthly — recurring plans get a discount | once |
| agent_name | No | Name of the assistant/app making the booking | |
| surface_m2 | No | Living area in m² (optional, improves accuracy) | |
| high_ceilings | No | Haussmann building / ceilings over 3 m | |
| arrival_window | Yes | Start of the 2-hour arrival window from get_time_slots, e.g. "14:00" | |
| extras_offered | Yes | true = you asked the customer which extras they want (oven, fridge, windows, sheets...), even if they chose none | |
| customer_confirmed | Yes | true = the customer saw the price and details and asked to book | |
| furnished_occupied | No | Home is furnished and lived in |