Find open dates and start times
find_timesFind real open dates, or start times on one date, for a booking at a postal code. Without date: the open dates in the next 14 days. With date only: that day's start times, each with its price. With date and end_date: the open dates in that range (at most 14 days). A booking can only start inside the booking window: a later date is refused, and the refusal names the last day. A weekly or bi-weekly plan carries on past it. Times are not held here: on the checkout page a picked time is held for 7 minutes, and a direct booking's time is held once it is paid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, Singapore date. | |
| hours | No | Cleaning only: visit length in hours (see find_services for the lengths we sell, e.g. 2, 3 or 4). When the customer has not said, use usual_hours on the cleaning entry of find_services (find_times and get_quote use it when hours is left out) and say it in your proposal; do not ask. Only if they ask how long their home needs, suggest from hours_by_home. | |
| service | Yes | Required: the code of the service the customer asked for, from find_services (e.g. cleaning, aircon, sofa_cleaning). cleaning = home cleaning by the hour, a housekeeper's work (tidying, fridge, dishes, plants, vacuuming soft furnishings included); a deep, spring or move-out clean is a home clean with more hours, and a machine deep clean of one item is its own service. Every other service is booked by the job: give job_type and unit_count from its card. | |
| end_date | No | YYYY-MM-DD. With date, return open dates in the range instead of times. | |
| job_type | No | Every service but cleaning: the job, a job_type from the service's card (find_services with its code), e.g. general_service for aircon. A service quoted for each job has one: its quotation visit (quotation_visit) or consultation. | |
| frequency | No | Cleaning only: one-time, weekly, or bi-weekly (every 2 weeks). | one-time |
| unit_count | No | Every service but cleaning: how many, in the service's own unit from its card (units, pieces, hours, panels...). 1 for a quotation visit or a consultation. | |
| postal_code | Yes | 6-digit Singapore postal code, e.g. 238823. |