Confirm Booking
confirm_bookingConfirm a reservation made with reserve_slot. Present the returned stored booking_details to the customer and relay only the customer-supplied 6-digit code received at their email or phone; never generate, guess, or fetch it. For an active configured calendar, a verified code attempts a direct commit to the selected calendar with no owner approval. booking_pending means the provider outcome is uncertain; repeat confirm_booking later to check the stored outcome, but it never retries a provider write automatically. A paid booking (reserve_slot returned payment.required = true) has no code: this answers payment_required — pay it with create_booking_payment_link — or payment_in_flight while its payment is settling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The customer-supplied 6-digit confirmation code received at their own email or SMS contact. Relay only that supplied code; never generate, guess, or fetch it. | |
| slug | Yes | Business slug identifier | |
| reservation_id | Yes | The reservation id returned by reserve_slot | |
| booking_authorization | No | For provider invitations, relay the reserved reference only after the customer accepts the exact stored summary and notification effects; required for Calendly. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | 'confirmed': a booking was committed to the selected configured calendar, or a historical legacy reservation was confirmed. 'booking_pending': the provider outcome is unresolved; do not create another booking or seek owner approval — repeat confirm_booking later to read the stored outcome. 'pending_merchant': a historical merchant-review reservation awaits a business decision — see message. 'already_confirmed': this reservation was confirmed earlier (safe replay). | |
| message | No | Optional customer-facing status detail to relay | |
| cancel_token | No | Present once, on the first confirmation of a booking on the business's Advocate calendar. Pass it to cancel_booking if the customer cancels. A capability for this booking: never pass it to another party. | |
| reservation_id | Yes | ||
| provider_confirmation | No |