> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aicoflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm appointment

> Complete the booking by providing customer and vehicle details. This is step 2 of the two-step booking process.

**Required information**:
- **Vehicle**: License plate, type/make/model, mileage
- **Customer**: Name (surname or first+last), email, at least one phone number

**Appointment ID Resolution**:
- If `appointment_id` is provided, it will be used directly
- Otherwise, the API looks up the ID stored during `/booking/reserve` using the `session_id`
- If neither is found, the request fails



## OpenAPI

````yaml /connectors/openapi/brunkhorst-openapi.json post /api/booking/confirm
openapi: 3.1.0
info:
  title: Brunkhorst Connector
  description: >

    ## Zeitmechanik Booking Integration


    This connector provides a REST API for the Zeitmechanik workshop booking
    system used by Autohaus Brunkhorst.


    ### Features


    - **Service Catalog**: Browse available workshop services (inspections,
    maintenance, repairs)

    - **Availability Check**: Find available days and time slots for selected
    services

    - **Appointment Booking**: Two-step reservation and confirmation flow

    - **Customer Lookup**: Search existing customers by phone, name, or license
    plate


    ### Booking Flow


    1. **Get Services** → List available services and select one or more

    2. **Check Days** → Get available days for the selected services (filtered
    to 14+ days out)

    3. **Check Times** → Get available time slots for a specific day

    4. **Reserve** → Reserve a time slot (holds for ~10 minutes)

    5. **Confirm** → Complete booking with customer and vehicle details


    ### Authentication


    All endpoints (except `/health` and `/ready`) require an `X-API-Key` header.
    Requests may also be restricted by IP whitelist.
  contact:
    name: AICO Engineering
    url: https://aicoflow.com/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://brunkhorst.connectors.aicoflow.com
    description: Production
  - url: http://localhost:8101
    description: Local development
security:
  - ApiKeyAuth: []
tags:
  - name: Services
    description: >-
      Service catalog operations. Browse available workshop services like
      inspections, maintenance, and repairs.
  - name: Availability
    description: >-
      Check appointment availability. Find open days and time slots for selected
      services.
  - name: Booking
    description: >-
      Appointment booking flow. Reserve time slots and confirm appointments with
      customer/vehicle details.
  - name: Lookup
    description: >-
      Customer and vehicle lookup. Search existing records by phone, name, or
      license plate.
  - name: Health
    description: Service health and readiness checks.
paths:
  /api/booking/confirm:
    post:
      tags:
        - Booking
      summary: Confirm appointment
      description: >-
        Complete the booking by providing customer and vehicle details. This is
        step 2 of the two-step booking process.


        **Required information**:

        - **Vehicle**: License plate, type/make/model, mileage

        - **Customer**: Name (surname or first+last), email, at least one phone
        number


        **Appointment ID Resolution**:

        - If `appointment_id` is provided, it will be used directly

        - Otherwise, the API looks up the ID stored during `/booking/reserve`
        using the `session_id`

        - If neither is found, the request fails
      operationId: confirm_appointment_api_booking_confirm_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmRequest'
        required: true
      responses:
        '200':
          description: Confirmation status
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConfirmRequest:
      properties:
        appointment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Appointment Id
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        car:
          $ref: '#/components/schemas/CarInfo'
        customer:
          $ref: '#/components/schemas/CustomerInfo'
        comment:
          type: string
          title: Comment
          default: ''
        customer_wants_to_wait:
          type: boolean
          title: Customer Wants To Wait
          default: false
        customer_needs_rental:
          type: boolean
          title: Customer Needs Rental
          default: false
        storage_number:
          type: string
          title: Storage Number
          default: ''
      type: object
      required:
        - car
        - customer
      title: ConfirmRequest
      description: Request model for confirming an appointment.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CarInfo:
      properties:
        license_plate:
          type: string
          title: License Plate
        make:
          anyOf:
            - type: string
            - type: 'null'
          title: Make
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        mileage:
          type: string
          title: Mileage
      type: object
      required:
        - license_plate
        - mileage
      title: CarInfo
      description: Car information model.
    CustomerInfo:
      properties:
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          title: First Name
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Name
        surname:
          anyOf:
            - type: string
            - type: 'null'
          title: Surname
        email:
          type: string
          title: Email
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
        phones:
          anyOf:
            - items:
                $ref: '#/components/schemas/Phone'
              type: array
            - type: 'null'
          title: Phones
      type: object
      required:
        - email
      title: CustomerInfo
      description: Customer information model.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Phone:
      properties:
        number:
          type: string
          title: Number
        type:
          type: string
          title: Type
          default: mobile
      type: object
      required:
        - number
      title: Phone
      description: Phone number model.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````