← capabilitiesscheduling.read

list_bookings_for_customer

booking.list_bookings_for_customer · v0.1.0

Return bookings made by a given customer email at a Bookio provider.

Semantics

Read-only. Returns the customer's bookings on this provider's calendar, including past + future, filterable by status. Each booking has booking_id, start_at, end_at, service info, status. Use this to answer "what do I have coming up at X provider?"

Invariants

  • Pure read. No state change.
  • Email match is case-insensitive.
  • Returns chronologically (most recent first by default).

When to use

When the user asks about their upcoming or past bookings with a specific provider, or before `cancel_booking` to confirm which booking to target.

Input schema

{
  "type": "object",
  "required": [
    "customer_email"
  ],
  "properties": {
    "limit": {
      "type": "number",
      "maximum": 100,
      "minimum": 1
    },
    "status_in": {
      "type": "array",
      "items": {
        "enum": [
          "confirmed",
          "cancelled"
        ],
        "type": "string"
      }
    },
    "agent_vendor": {
      "type": "string"
    },
    "include_past": {
      "type": "boolean",
      "description": "Default false — only future bookings unless true."
    },
    "customer_email": {
      "type": "string",
      "format": "email"
    }
  },
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "required": [
    "ok"
  ],
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "enum": [
        "invalid_email",
        "invalid_input"
      ],
      "type": "string"
    },
    "bookings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "end_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string"
          },
          "service": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "start_at": {
            "type": "string",
            "format": "date-time"
          },
          "booking_id": {
            "type": "string"
          }
        }
      }
    }
  }
}

Recent conformance runs

passprovidertestmswhen
bookio:bistro-modra-houbarejects_invalid_email005-18 19:50
bookio:bistro-modra-houbahappy_path7805-18 19:50
bookio:verde-wellness-austinrejects_invalid_email005-18 19:50
bookio:verde-wellness-austinhappy_path7205-18 19:50
bookio:studio-sangharejects_invalid_email005-18 19:50
bookio:studio-sanghahappy_path8705-18 19:50
bookio:salon-aurorarejects_invalid_email005-18 19:50
bookio:salon-aurorahappy_path8505-18 19:50
bookio:massage-relaxrejects_invalid_email005-18 19:50
bookio:massage-relaxhappy_path8105-18 19:50
bookio:ink-quarter-portlandrejects_invalid_email005-18 19:50
bookio:ink-quarter-portlandhappy_path8405-18 19:50
bookio:ink-houserejects_invalid_email005-18 19:50
bookio:ink-househappy_path8005-18 19:50
bookio:fitness-zelenarejects_invalid_email105-18 19:50
bookio:fitness-zelenahappy_path9005-18 19:50
bookio:dental-vinohradyrejects_invalid_email005-18 19:50
bookio:dental-vinohradyhappy_path11205-18 19:50
bookio:aurora-hair-brooklynrejects_invalid_email005-18 19:50
bookio:aurora-hair-brooklynhappy_path111605-18 19:50