ONE booking:cancel
← Receivers

booking:cancel

booking family

mcp

Dissolve a booking by ref — provider (ctx-gated) or customer (ref + matching contact)

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
public
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/booking:cancel \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "slug": "clearwater", "ref": "CLE-2026-4821", "email": "s@ex.com" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • slug string required The provider's workspace slug.
  • ref string required The booking reference.
  • email string optional Customer path: the email the booking was made with (or send phone).
  • phone string optional
  • status no_show optional Provider path only: close the booking as a no-show (the customer never came) instead of a cancel. Fires the booking:no-show workflow trigger, not booking:cancelled. The customer path ignores it.

Response

What comes back from the call.

  • ok boolean
  • calendar checked | synced | unchecked the owner's calendar (Google or Outlook through Composio): checked = busy time was read and removed; synced = the event was deleted from the owner's calendar; unchecked = it could not be, and the answer is exactly what weekly hours give (calendarReason says why)
  • calendarReason not_connected | no_account | unreachable | … why calendar is unchecked
  • error string

Traffic

Every call to booking:cancel, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names booking:cancel, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 2
  • one.ie/web/src/components/booking/AppointmentCalendar.tsx:117
  • one.ie/web/src/components/booking/ManageBooking.tsx:64
API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:76
Agent runtime 1
  • channels/src/tools/bookings.ts:140
CLI 2
  • packages/cli/src/lib/receivers-index.generated.ts:73
  • packages/cli/src/lib/receivers.generated.ts:73
→

Answered by

booking:cancel one.ie/web/src/lib/resolvers/booking.ts:1032 Dispatched through POST /api/ask/booking:cancel, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "The provider's workspace slug."
    },
    "ref": {
      "type": "string",
      "description": "The booking reference."
    },
    "email": {
      "description": "Customer path: the email the booking was made with (or send phone).",
      "type": "string",
      "format": "email",
      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "phone": {
      "type": "string"
    },
    "status": {
      "description": "Provider path only: close the booking as a no-show (the customer never came) instead of a cancel. Fires the booking:no-show workflow trigger, not booking:cancelled. The customer path ignores it.",
      "type": "string",
      "enum": [
        "no_show"
      ]
    }
  },
  "required": [
    "slug",
    "ref"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "calendar": {
      "description": "the owner's calendar (Google or Outlook through Composio): checked = busy time was read and removed; synced = the event was deleted from the owner's calendar; unchecked = it could not be, and the answer is exactly what weekly hours give (calendarReason says why)",
      "type": "string",
      "enum": [
        "checked",
        "synced",
        "unchecked"
      ]
    },
    "calendarReason": {
      "description": "why calendar is unchecked",
      "type": "string",
      "enum": [
        "not_connected",
        "no_account",
        "unreachable",
        "unreadable",
        "calendar_error",
        "rate_limited",
        "no_credits",
        "out_of_window",
        "not_recorded"
      ]
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}