Potwierdź rezerwację
create_bookingPURPOSE: Step 2 of 2 of booking. Creates the real, confirmed SzuruSzuru booking for a confirmation_id from prepare_booking, using the 6-digit SMS code the customer received. WHEN TO USE: Only after prepare_booking succeeded and the customer has typed the SMS code in the conversation. WHEN NOT TO USE: Never to check price or availability, never without a code from the customer, never with a guessed or example code. REQUIRED: confirmation_id, sms_code. idempotency_key optional. Missing data -> error missing_required_fields; nothing is created. SIDE EFFECTS: creates a booking (a technician is scheduled) and sends SMS/e-mail confirmation to the customer. Idempotent: repeating the call with the same confirmation_id and code returns the SAME booking - it never creates a second one. RESULT: success=true, booking_id, status, date, time (Polish time), price, currency. Give these to the customer. Wrong code -> error verification_failed with attempts_left.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"confirmation_id": "<confirmation_id>",
"sms_code": "<sms_code>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sms_code | Yes | 6-digit code the customer received by SMS | |
| session_id | No | Optional. session_id from the previous result, if you have it. The server also recovers the session from quote_id / slot_id / confirmation_id / customer_grant. | |
| confirmation_id | Yes | confirmation_id from prepare_booking | |
| idempotency_key | No | Optional. Same value when retrying the same request. If omitted, the server derives the key from the request, so a retry never creates a second booking. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| date | No | YYYY-MM-DD, Polish time | |
| time | No | HH:MM, Polish time | |
| error | No | Stable machine-readable error id when success=false, e.g. missing_required_fields, unsupported_postcode, no_availability | |
| price | No | ||
| total | No | ||
| end_at | No | ||
| status | No | ||
| message | No | ||
| success | Yes | true = operation done / data returned; false = see error | |
| currency | No | ||
| start_at | No | ||
| duplicate | No | ||
| booking_id | No | Booking reference to give the customer (same as booking_reference) | |
| can_cancel | No | ||
| session_id | No | ||
| can_reschedule | No | ||
| missing_fields | No | ||
| service_summary | No | ||
| booking_reference | No |