Przygotuj rezerwację
prepare_bookingPrepares a booking for a chosen slot: validates the quote and slot, holds the slot for 10 minutes, records the customer's details and terms acceptance, and sends an SMS confirmation code to the customer's Polish mobile number. Returns confirmation_id and a summary that must be shown to the customer verbatim. Does NOT create the booking - the customer must read the code from the SMS and you must call create_booking. Requires the customer's explicit agreement to book and to the terms (terms_accepted=true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional note for the cleaner (fabric type, stains, parking) | |
| slot_id | Yes | ||
| customer | Yes | ||
| quote_id | Yes | ||
| session_id | No | ||
| invoice_data | No | ||
| terms_accepted | Yes | Customer accepted the terms and the consent text (must be true) |