Send a booking request to a club
request_bookingSend a booking request to a club whose card says booking.requests_enabled is true. golfdata only FORWARDS the request to the club (by email, or a WhatsApp click-to-chat link) and does NOT confirm the booking. Returns a request id and, for the whatsapp channel, a tracked link. For a club that is not enabled it returns accepted: false. You must have the golfer's consent before sending their name, email or phone. The golfer's details are forwarded to the club and kept for 24 months, then anonymized; a golfer can ask to erase them sooner by writing to hello@golfdata.online.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Requested play date, YYYY-MM-DD (today..+365). | |
| name | Yes | The golfer's name (with their consent). | |
| time | No | Preferred tee time, HH:MM (24h). | |
| Yes | The golfer's email (with their consent); used as reply-to, never shared beyond the club. | ||
| holes | No | 9 or 18. | |
| phone | No | The golfer's phone in E.164, e.g. +34600123456 (with their consent). | |
| channel | No | email (default) or whatsapp. | |
| club_id | Yes | Club UUID (from get_club or the card). | |
| message | No | Optional message to the club. | |
| players | Yes | Number of players, 1..8. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| links | No | ||
| phone | No | ||
| reason | No | ||
| status | No | ||
| channel | No | ||
| accepted | Yes | ||
| request_id | No | ||
| booking_url | No | ||
| whatsapp_url | No |