# Allegra: yacht charter API for AI assistants

Use this API to help a client learn about Allegra, check whether dates are free, and get an exact price. Charters are sold by Resolute Wind LLC, the yacht's owner company. Browsing, dates and prices need no sign-in, and those endpoints are Read tools: they only retrieve information. Registering a client (`POST /v1/clients`) emails them a one-time code, and verifying it (`POST /v1/clients/verify`) opens a session: those two are Write tools, each with its side effects stated. Starting a booking (`POST /v1/bookings`) stores it for the client, unpaid; the dates are held once the first payment arrives. Every booking call that changes something is a Sensitive write: starting a booking, opening a card payment page, reporting a bank transfer, cancelling, and asking for a change or a cancellation. Call each only with the client's clear approval, every time. Cancelling can't be undone.

## How to use it

1. **Learn about the yacht**: `GET /v1/discover/boat`, `/v1/discover/itinerary`, `/v1/discover/destinations`, `/v1/discover/charter-rules`, `/v1/discover/policies`, `/v1/discover/questions`.
2. **Check dates**: `GET /v1/availability?start_date=YYYY-MM-DD&nights=N`. The answer is "available", "available on request" (free, but close to another charter, so the owner must confirm) or "unavailable" (with the nearest open dates). To find open dates in a period ("what's open in January?"), `GET /v1/open-dates` lists every open check-in day in up to 92 days, each with its total price.
3. **Get a price**: `GET /v1/quote` with the dates, the number of guests and the payment method, `credit card` or `bank`. Ask the client how they will pay first: the prices differ, paying by bank transfer earns a discount, and the method applies to every payment.
4. **Give the next step**: every availability answer and quote has a `next_step` to pass on to the client, word for word.

## Good to know

- Charters are 5 to 7 nights, for up to 8 guests. Dates are the check-in and check-out days, in the yacht's local time.
- Money is in US cents, in whole numbers, in fields whose names end in `_cents`: $1,234 is `123400`. Text written for people (labels, notes, next steps) shows dollars.
- A quote is not a reservation and does not hold the dates.
- Every quote names the seller (Resolute Wind LLC) and repeats the key terms of a booking, such as cancellation and refunds (`key_terms`), so the client sees them with the price before deciding.
- Quotes for dates that are not free are still given, marked unavailable, with other dates to offer.
- Never invent prices or availability: always ask this API.
- Without a key, at most 10 requests per minute per caller address. More get HTTP 429 with a `Retry-After` header giving the seconds to wait.
- Partners (assistant platforms) get an API key from the owner. Send it on every call as `Authorization: Bearer <key>`: calls with a key count against the partner's own allowance instead of the address. A wrong or malformed key gets HTTP 401 (`invalid_api_key`), never an answer without the key.
- Every endpoint starts with `/v1/`. Within this version, changes only add things: new endpoints, new optional parameters, new answer fields. Anything else gets a new version.
- Every answer has an `X-Request-ID` header. Send your own (1 to 64 letters, digits, `.`, `_` or `-`) to have it echoed; quote it when reporting a problem.

## Client identity

Browsing, dates and prices need no registration. Register a client only when they want to book or to be contacted. First tell them what registering means, in these words, and register them only if they agree:

> Registering keeps the client's name, email address and phone number with Allegra, to contact them about their requests and bookings and to send other information relevant to their charter, such as changes to the yacht. Allegra's privacy policy: https://www.allegra-yacht.com/privacy.html. Tell the client this, and get their agreement, before registering them.

1. **Register**: `POST /v1/clients` with the client's first name, last name, email and phone (in international format, starting with "+"), and `"client_agreed": true`. A 6-digit code goes to that email.
2. **Ask for the code**: the client reads it in the email and gives it to you. It works for 10 minutes and allows 5 tries.
3. **Verify**: `POST /v1/clients/verify` with the `client_id` from step 1 and the code. The answer has a `session`, shown once, which works for 24 hours.
4. **Use the session**: send it in the `X-Client-Session` header with this client's calls, with the same partner key as when it was made, or with none if there was none. `GET /v1/clients/me` shows the client behind it.

- Email is the client's one identity: registering an email that is already known is a returning client (`client_status`: "returning"). The code always goes to the email given. New details for a returning client (another name or phone) apply only once the code is verified.
- Code emails are limited: 3 an hour for one client; with a partner key, the partner's own number a day; without a key, 5 a day per caller address and 20 a day for all callers without a key together. Over a limit: HTTP 429 `too_many_codes`, with `Retry-After` and a `next_step` giving the contact email, so the client can still book by email.
- A wrong code gets HTTP 400 `invalid_code` with the tries left. After the last try, or once the code has expired: `code_expired`, and the client registers again for a new code.
- A missing, unknown or expired session, or one sent with another partner key (or without the one it was made with): HTTP 401 `invalid_session`. Register and verify again.
- Every `POST` needs an `Idempotency-Key` header: a value of your choice (1 to 255 visible ASCII characters), new for each change and the same when you retry it. A retry with the same key gets the first answer again, marked `Idempotent-Replayed: true`, and changes nothing: no second email, no second session. The same key with a different request gets HTTP 409 `idempotency_key_reused`; while the first request is still running, HTTP 409 `request_in_progress` (send it again in a few seconds). Keys are kept 24 hours.
- A partner key is optional here too. With one, code emails count against the partner's own allowance.
- `POST /v1/clients` and `POST /v1/clients/verify` are Write tools: registering stores the client's details and emails them a code; verifying opens a session and adds the client to the client contact list. `GET /v1/clients/me` is a Read tool.
- A client who wants their details deleted writes to info@allegra-yacht.com.

## Booking

Book only once the client has seen a quote (the price, the payment schedule, the seller and the key terms) and wants to go ahead. Every booking call needs the client's session, as above.

1. **Start the booking**: `POST /v1/bookings` with the quote's own inputs and its `total_cents` as `approved_total_cents`. If the price has changed since, the answer is HTTP 409 `price_changed`: show the client the new quote first.
2. **Follow it**: `GET /v1/bookings/{booking_id}` says where the booking stands: `next_step` (pass it on to the client), `who_acts_next`, `deadline`, `amount_due_cents`, `allowed_actions` (exactly what can be called now) and `check_back_at` (when to look again). `GET /v1/bookings` lists the client's bookings. The client is also emailed at every change of status.
3. **Pay by card** (a booking quoted for `credit card`): `POST /v1/bookings/{booking_id}/card-payment` gives a Stripe payment page for the payment due (`payment_url`, open for an hour). Give the client the link: they pay on Stripe's page, so card details never pass through you or this API. Once paid, the booking moves on by itself; look again a few minutes later. Asking again closes the old page and makes a new one. `GET /v1/payments/{payment_id}` shows one payment.
4. **Pay by bank transfer** (a booking quoted for `bank`): `GET /v1/bookings/{booking_id}/bank-transfer` gives the amount, the reference to quote and the bank details. Once the client has sent it, say so with `POST /v1/bookings/{booking_id}/bank-transfer-sent`. The owner confirms when the money arrives (`who_acts_next` is "owner" meanwhile); the dates are held from then.
5. **Cancel, or ask for a change**: until the contract is signed by both sides, `POST /v1/bookings/{booking_id}/cancel` cancels the booking, and everything paid is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full. It can't be undone: call it only once the client has clearly approved it. Once the contract is signed, cancelling is the owner's decision: send the client's words with `POST /v1/bookings/{booking_id}/cancellation-requests`. For other dates, guests, dining plan or payment method, `POST /v1/bookings/{booking_id}/change-requests`. The owner answers on the booking (`requests`) and by email; an accepted change is made by the owner's team.

- The dates are held only once the first payment arrives. If two clients pay for the same dates, the first payment wins, and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full.
- A booking with no payment closes by itself after 7 days, or as soon as another client's payment takes its dates.
- Boarding 45 days or more away at the first payment: 25% then, 25% within 7 days of the contract being signed by both sides, and 50% by 21 days before boarding. Closer: 100% at the first payment.
- After the first payment, the owner sends the charter contract by email (from info@allegra-yacht.com); the client signs it and sends it back, and the owner confirms it.
- If one of the client's deadlines passes and they can't be reached, the owner may cancel the booking and keep 25% of the charter price, as the cancellation policy says. If the owner cancels for any other reason, everything paid is refunded. Refunds are made by hand: a card payment less the payment processor's fees, a bank transfer in full.
- `stage` keeps it plain: "pending" (not paid, dates not held), "reserved" (paid, dates held, contract not yet signed), "confirmed" (contract signed by both sides), "completed", "cancelled" or "failed". Never tell the client a booking is confirmed before its stage says "confirmed".
- Dates "available on request" can't be booked here: the client asks by email, info@allegra-yacht.com.
- St Martin, St Barths: the boat also needs 2 days to get there and back, so those days must be free too, before and after the charter.

## MCP server

This API is also an MCP server, at `/mcp` (Streamable HTTP). Its card is at `/.well-known/mcp/server-card.json`. Each tool calls one of these endpoints, with the same rules and answers.

- Tools that only read need no sign-in, and a tool that acts for a client asks for it when it is called (HTTP 401 with a `WWW-Authenticate` challenge): OAuth 2.1 with PKCE. The client signs in on this API's page with a code sent to their email, and allows the app.
- `/mcp/signed-in` serves the same tools, and every app signs in when it connects. Use it with an app that can sign in only when it connects. One sign-in works at both addresses.
- An access token works only at the address it was issued for. A token from an app's sign-in is normally for `/mcp` or `/mcp/signed-in`: here it gets HTTP 401 `invalid_token`. A token for this API's own address (an agent's token from `/auth.md`) works on these endpoints: send it as `Authorization: Bearer <access token>`, with no partner key, in place of the `X-Client-Session` header that the client's endpoints list as required. The call acts for that client and counts against that sign-in's own allowance. A token with only the `browse` scope reads, and gets HTTP 401 `invalid_session` where a client is needed. A token that has ended gets HTTP 401 with a `WWW-Authenticate` challenge.
- A tool that starts a booking needs the quoted total as `approved_total_cents`. The six booking writes are Sensitive writes. Where the app supports it, the server asks the client to confirm before a tool starts a booking, opens a card payment page, reports a bank transfer, cancels a booking, or asks the owner for a change or a cancellation.
- An agent without a client registers for a token as `/auth.md` says.

## A2A agent

This API is also an A2A agent (Agent2Agent protocol 1.0, and 0.3), at `/a2a`. Its card is at `/.well-known/agent-card.json`. Each skill is one of the MCP server's tools, with the same rules and answers.

- Send one message with one data part: `{"skill": "<tool name>", "arguments": {...}}`. A message without a skill gets the list of skills and their input schemas. The answer is one message: a line of text and a data part, `{"skill", "status", "result"}` with the status and answer of the endpoint, or `"error"` in place of `"result"`.
- A skill that starts a booking, opens a card payment page, reports a bank transfer, cancels a booking, or asks the owner for a change or a cancellation first answers `{"skill", "confirmRequired": true, "question"}`. Ask the client the question; once they agree, resend the same call with `"confirm": true` next to `"skill"`, not inside `"arguments"`: `{"skill": "<tool name>", "arguments": {...}, "confirm": true}`. Starting a booking also needs the quoted total as `approved_total_cents` in `arguments`.
- Skills that only read need no token. A skill that acts for a client needs an access token for this API's own address, as `/auth.md` says; without one it answers HTTP 401 with a `WWW-Authenticate` challenge.
- A token for the MCP server works only there.

## Endpoints

### GET /v1/discover/boat

The yacht: specifications, cabins, crew, amenities, included items, water toys and photos.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Example answer:

```json
{
  "boat_id": "allegra",
  "name": "Allegra",
  "model": "Bali 5.4 sailing catamaran",
  "builder": "Bali Catamarans",
  "year": 2026,
  "length": "55 ft (16.8 m)",
  "beam": "29 ft (8.8 m)",
  "draft": "5 ft (1.5 m)",
  "description": "Allegra is a 55-foot Bali 5.4 catamaran, chartered privately with her own captain and private chef. All-inclusive for up to 8 guests in four private queen cabins, each with its own bathroom and shower. She sails the British Virgin Islands from Village Cay Marina, Road Town, Tortola, with about 1,500 sq ft of living space across the salon, cockpits and flybridge.",
  "cabins": "4 guest cabins with queen beds, each with its own bathroom with shower and its own air conditioning, and 1 crew cabin with 2 twin beds.",
  "crew": "A professional captain and a private chef, dedicated to your party.",
  "max_guests": 8,
  "amenities": [
    "Full air conditioning, controlled separately in every cabin",
    "Bright salon with panoramic views",
    "Flybridge lounge with 360-degree views",
    "Forward cockpit with sun lounges",
    "Aft cockpit for outdoor dining, with shade",
    "Convertible aft deck: a drop-down door turns the aft cockpit into an air-conditioned room in any weather",
    "Hydraulic swim platform",
    "Onboard Wi-Fi",
    "Full-size fridge and freezer",
    "Ice maker and water maker",
    "Generator",
    "Electric toilets"
  ],
  "included": [
    "Your captain and private chef",
    "All meals aboard on your dining plan (Full-Board: 3 meals a day)",
    "Drinks from the ship's bar: wine with meals, spirits, beer and mixers",
    "Fuel for normal cruising",
    "Cruising permits and customs fees within the British Virgin Islands",
    "All water toys",
    "Onboard Wi-Fi",
    "4K drone video and photos of your week",
    "An itinerary planned with your captain around your party"
  ],
  "not_included": [
    "Crew tips (customary 15 to 20% of the charter fee, at your discretion)",
    "Travel to and from Tortola",
    "Premium wines, champagne and spirits beyond the ship's bar",
    "Relocation charges for the US Virgin Islands, St. Martin / St. Barths or other islands (a relocation charge includes dockage away from Village Cay Marina)"
  ],
  "water_toys": [
    "2 paddleboards",
    "2 sea scooters (Seabob)",
    "Water skis and a wakeboard",
    "Floating hammock",
    "Snorkeling gear and fins in every size",
    "Fishing rods",
    "Tender"
  ],
  "photos": [
    {
      "url": "https://www.allegra-yacht.com/assets/specs-hero.webp",
      "caption": "Allegra under sail in the open Caribbean"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/aerial-allegra-anchor.webp",
      "caption": "Allegra from above, at anchor with paddleboards and the swim platform down"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/Home-meet-allegra.webp",
      "caption": "Allegra at anchor in turquoise water"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/aboard-hero.webp",
      "caption": "The salon, with a panoramic view of the coast through the windows"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/Home-gallery-2.webp",
      "caption": "Breakfast table in the salon"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/master-cabin.webp",
      "caption": "The master cabin, with hull windows at water level"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/Home-gallery-7.webp",
      "caption": "A guest cabin in the port hull"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/escape-cta.webp",
      "caption": "View from the flybridge over the bay to a quiet beach"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/Home-water-toys.webp",
      "caption": "Aft deck with water skis, fins, masks and sea scooters ready for the day"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/Home-gallery-8.webp",
      "caption": "Paddleboards on glassy water at sunset"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/Home-gallery-9.webp",
      "caption": "Sushi night by the chef: hand rolls, futomaki and tuna poke"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/top-deck.webp",
      "caption": "Deck plan: flybridge and main deck"
    },
    {
      "url": "https://www.allegra-yacht.com/assets/lower-deck.webp",
      "caption": "Deck plan: cabins, bathrooms and storage"
    }
  ],
  "seller": "Resolute Wind LLC",
  "contact_email": "info@allegra-yacht.com"
}
```

### GET /v1/discover/itinerary

Home base, standard route, seasons and the off-season.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Example answer:

```json
{
  "home_base": "Village Cay Marina, Road Town, Tortola, British Virgin Islands",
  "standard_route": "Every itinerary is planned with your captain around your party. A typical week sails the British Virgin Islands from Village Cay Marina: Norman Island, Jost Van Dyke, Virgin Gorda, Anegada and the quiet coves in between. Most passages are under two hours, in some of the calmest cruising waters anywhere. The US Virgin Islands and St Martin / St Barths are possible for a relocation charge.",
  "seasons": [
    {
      "name": "Winter (high season)",
      "start": "11-01",
      "end": "04-30",
      "description": "December to the end of April brings the steadiest trade winds and the driest weather. It is peak season and books first."
    },
    {
      "name": "Summer (low season)",
      "start": "05-01",
      "end": "07-31",
      "description": "Quieter on the water and a little warmer; easier to book at short notice. In 2027 the season runs to August 31, so August 2027 is open too."
    }
  ],
  "off_season": {
    "start": "08-01",
    "end": "10-31",
    "description": "No charters from Aug 1 to Oct 31, every year, except August 1 to August 31, 2027, when charters run as usual."
  },
  "utc_offset": "-04:00"
}
```

### GET /v1/discover/destinations

Cruising areas, each with its relocation charge (bank-transfer and card price) and restrictions.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Example answer:

```json
{
  "destinations": [
    {
      "id": "bvi",
      "name": "British Virgin Islands",
      "home": true,
      "relocation_charge_bank_cents": 0,
      "relocation_charge_card_cents": 0,
      "restrictions": []
    },
    {
      "id": "usvi",
      "name": "US Virgin Islands",
      "home": false,
      "relocation_charge_bank_cents": 150000,
      "relocation_charge_card_cents": 154500,
      "restrictions": [
        "Charged once per charter.",
        "Not available for Christmas or New Year's charters.",
        "The relocation charge includes dockage away from Village Cay Marina."
      ]
    },
    {
      "id": "st-martin",
      "name": "St Martin",
      "home": false,
      "relocation_charge_bank_cents": 300000,
      "relocation_charge_card_cents": 309000,
      "restrictions": [
        "Charged once per charter.",
        "Not available for Christmas or New Year's charters.",
        "The relocation charge includes dockage away from Village Cay Marina.",
        "Needs 48 hours of transit before and after the charter."
      ]
    },
    {
      "id": "st-barths",
      "name": "St Barths",
      "home": false,
      "relocation_charge_bank_cents": 300000,
      "relocation_charge_card_cents": 309000,
      "restrictions": [
        "Charged once per charter.",
        "Not available for Christmas or New Year's charters.",
        "The relocation charge includes dockage away from Village Cay Marina.",
        "Needs 48 hours of transit before and after the charter."
      ]
    }
  ]
}
```

### GET /v1/discover/charter-rules

Charter length, start days, check-in and check-out times, the gap between charters, how far ahead.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Example answer:

```json
{
  "min_nights": 5,
  "max_nights": 7,
  "typical_nights": 7,
  "start_days": "Any day of the week",
  "check_in_time": "12:00",
  "check_out_time": "12:00",
  "utc_offset": "-04:00",
  "preferred_gap_hours": 48,
  "booking_window_years": 2,
  "max_guests": 8,
  "off_season": {
    "start": "08-01",
    "end": "10-31",
    "description": "No charters from Aug 1 to Oct 31, every year, except August 1 to August 31, 2027, when charters run as usual."
  },
  "summary": [
    "Charters are 5 to 7 nights; 7 is typical.",
    "Start days: Any day of the week.",
    "Check-in and check-out are at 12:00, local time (UTC-04:00).",
    "48 hours between charters is preferred; dates closer to another charter are \"available on request\" and need the owner's confirmation.",
    "Charters can start up to 2 years ahead.",
    "Up to 8 guests.",
    "No charters from Aug 1 to Oct 31, every year, except August 1 to August 31, 2027, when charters run as usual."
  ]
}
```

### GET /v1/discover/policies

Prices by payment method, payment schedule, contract, cancellation and refunds, and deadlines.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Example answer:

```json
{
  "policies": [
    {
      "id": "prices",
      "title": "Card and bank-transfer prices",
      "text": "Every quote is for the payment method you choose. The card price is the published price; paying by bank transfer earns a discount, shown on the quote. The method you choose applies to every payment of that booking; changing it later needs a change request."
    },
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "guest-details",
      "title": "Guest details",
      "text": "Send your guests' names, dietary needs and requests no later than 21 days before boarding, or as soon as possible for late bookings."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    },
    {
      "id": "how-to-book",
      "title": "How to book",
      "text": "Tell your assistant your dates, number of guests, route and how you will pay. It registers you with your email (you confirm it with a code sent there), shows you the price, the payment schedule and these terms, and starts the booking once you agree. Your dates are held once the first payment is received. You must be 18 or older to book. Questions: info@allegra-yacht.com."
    }
  ]
}
```

### GET /v1/discover/questions

Answers to common questions, written and approved by the owner.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Example answer:

```json
{
  "questions": [
    {
      "question": "How much does a week aboard Allegra cost?",
      "answer": "Weekly rates run from $32,000 for two guests to $35,000 for eight, all-inclusive, when paying by bank transfer. Charters of 5 or 6 nights are priced from the weekly rate, and Christmas and New Year's have flat prices. Ask for a quote to get the exact price for your dates, guests and payment method."
    },
    {
      "question": "What is included in the price?",
      "answer": "Your captain and private chef, all meals aboard on your dining plan, drinks from the ship's bar, fuel for normal cruising, cruising permits and customs fees within the British Virgin Islands, all water toys, onboard Wi-Fi, and 4K drone video and photos of your week."
    },
    {
      "question": "What is not included?",
      "answer": "Crew tips (customary at 15 to 20% of the charter fee), travel to and from Tortola, premium wines, champagne and spirits beyond the ship's bar, and relocation charges outside the British Virgin Islands. A relocation charge includes dockage away from Village Cay Marina."
    },
    {
      "question": "When is the best time to charter?",
      "answer": "The season runs from November 1 to July 31; the boat is laid up from August 1 to October 31. In 2027 the season runs to August 31, so August 2027 is open too; the boat is laid up from September 1 to October 31, 2027. December to the end of April brings the steadiest trade winds and the driest weather; it is peak season and books first. From May to the end of July it is quieter on the water and easier to book at short notice."
    },
    {
      "question": "How many guests can Allegra take?",
      "answer": "Up to eight guests in four private queen cabins, each with its own bathroom and shower. The layout works for four couples, two families or a group of friends."
    },
    {
      "question": "Is Allegra good for families with children?",
      "answer": "Yes. Short, calm sails between islands, a swim platform at water level, snorkeling gear in every size, and a chef who happily cooks for picky eaters. Young children are welcome; tell us their ages in advance so we can provision for them."
    },
    {
      "question": "Do we need any sailing experience?",
      "answer": "None. Allegra is fully crewed: your captain handles the yacht and your chef handles the galley. You are welcome to take the helm and learn, or never touch a line all week."
    },
    {
      "question": "Where do we sail?",
      "answer": "From Village Cay Marina in Road Town around the British Virgin Islands: Virgin Gorda, Jost Van Dyke, Anegada, Norman Island and the quiet coves in between, planned with your captain. The US Virgin Islands and St Martin / St Barths are possible for a relocation charge, which includes dockage away from Village Cay Marina."
    },
    {
      "question": "What if someone gets seasick or has dietary needs?",
      "answer": "Tell us ahead of time and we will plan around both. The protected waters of the British Virgin Islands are some of the calmest cruising grounds anywhere, and most passages are under two hours. The chef plans the menu around allergies, diets and preferences."
    },
    {
      "question": "How do we get to the boat?",
      "answer": "Fly into Beef Island airport (EIS) on Tortola; Village Cay Marina in Road Town is about 20 minutes away. Check-in is at 12:00 noon."
    },
    {
      "question": "Can we sleep aboard before or after the charter?",
      "answer": "No. Sleeping aboard outside the charter dates is not available."
    }
  ]
}
```

### GET /v1/availability

Whether the yacht is free for these dates: "available", "available on request" or "unavailable".

Unavailable answers include the nearest open dates. Every answer says what to do next.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Parameters:
- `start_date` (required): Check-in day, YYYY-MM-DD. Today or later, within the booking window (see /v1/discover/charter-rules). Example: `2027-03-15`.
- `nights` (required): Number of nights; see /v1/discover/charter-rules for the allowed range. Example: `7`.

Example request:

    GET /v1/availability?start_date=2027-03-15&nights=7

Example answer:

```json
{
  "start_date": "2027-03-15",
  "nights": 7,
  "check_out_date": "2027-03-22",
  "status": "unavailable",
  "reason": "Those dates are taken.",
  "next_step": "These dates are not open. The nearest open dates are listed with this answer.",
  "nearest_open_dates": {
    "earlier": [
      "2027-01-17",
      "2027-01-16",
      "2027-01-15"
    ],
    "later": [
      "2027-04-04",
      "2027-04-05",
      "2027-04-06"
    ],
    "earlier_on_request": [
      "2027-03-13",
      "2027-02-27",
      "2027-02-04"
    ],
    "later_on_request": [
      "2027-04-02",
      "2027-04-03"
    ]
  }
}
```

### GET /v1/nearest-dates

The nearest open start dates for the same number of nights, before and after the requested one.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Parameters:
- `start_date` (required): Check-in day, YYYY-MM-DD. Today or later, within the booking window (see /v1/discover/charter-rules). Example: `2027-03-15`.
- `nights` (required): Number of nights; see /v1/discover/charter-rules for the allowed range. Example: `7`.

Example request:

    GET /v1/nearest-dates?start_date=2027-03-15&nights=7

Example answer:

```json
{
  "start_date": "2027-03-15",
  "nights": 7,
  "nearest_open_dates": {
    "earlier": [
      "2027-01-17",
      "2027-01-16",
      "2027-01-15"
    ],
    "later": [
      "2027-04-04",
      "2027-04-05",
      "2027-04-06"
    ],
    "earlier_on_request": [
      "2027-03-13",
      "2027-02-27",
      "2027-02-04"
    ],
    "later_on_request": [
      "2027-04-02",
      "2027-04-03"
    ]
  }
}
```

### GET /v1/open-dates

Every check-in day in a range at which the yacht is free for these nights, each with its total price
in US cents for the chosen payment method.

For questions like "what's open in January?": one call instead of a check and a quote per day. Days
that are "available on request" are included and marked. Free days the price rules refuse for the
chosen dining plan or destination (holiday charters) are left out, and `notes` says why. Then get
the itemized quote for the day the client picks.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Parameters:
- `from` (required): First check-in day to look at, YYYY-MM-DD. Today or later. Example: `2027-03-15`.
- `to` (required): Last check-in day to look at, YYYY-MM-DD: on or after `from`, at most 92 days after it, and within the booking window (see /v1/discover/charter-rules). Example: `2027-03-21`.
- `nights` (required): Number of nights; see /v1/discover/charter-rules for the allowed range. Example: `7`.
- `guests` (required): Number of guests; see /v1/discover/boat for the most allowed. Example: `4`.
- `payment_method` (required): How the client will pay: "credit card" or "bank" (bank transfer). Prices differ; the method applies to every payment of a booking. Example: `bank`.
- `dining_plan` (optional): Dining plan id or name (see /v1/discover/boat); default: the yacht's standard plan. Example: `full-board`.
- `destination` (optional): Destination id or name (see /v1/discover/destinations); default: the home waters. Example: `bvi`.

Example request:

    GET /v1/open-dates?from=2027-03-15&to=2027-03-21&nights=7&guests=4&payment_method=bank&dining_plan=full-board&destination=bvi

Example answer:

```json
{
  "from": "2027-03-15",
  "to": "2027-03-21",
  "nights": 7,
  "guests": 4,
  "payment_method": "bank",
  "dining_plan": "full-board",
  "destination": "bvi",
  "currency": "USD",
  "open_dates": [],
  "notes": [],
  "next_step": "No open dates in this range. Ask /v1/nearest-dates for the nearest open dates, or search another range (up to 92 days)."
}
```

### GET /v1/quote

An itemized price in US cents for the chosen payment method, with the payment schedule if booked today.

Dates that are not free still get a quote, flagged, with the nearest open dates. A quote is not a
reservation and does not hold the dates. Every quote names the seller, the company the client would
book with and pay, and repeats the key terms of a booking, such as cancellation and refunds.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Parameters:
- `start_date` (required): Check-in day, YYYY-MM-DD. Today or later, within the booking window (see /v1/discover/charter-rules). Example: `2027-03-15`.
- `nights` (required): Number of nights; see /v1/discover/charter-rules for the allowed range. Example: `7`.
- `guests` (required): Number of guests; see /v1/discover/boat for the most allowed. Example: `4`.
- `payment_method` (required): How the client will pay: "credit card" or "bank" (bank transfer). Prices differ; the method applies to every payment of a booking. Example: `bank`.
- `dining_plan` (optional): Dining plan id or name (see /v1/discover/boat); default: the yacht's standard plan. Example: `full-board`.
- `destination` (optional): Destination id or name (see /v1/discover/destinations); default: the home waters. Example: `bvi`.

Example request:

    GET /v1/quote?start_date=2027-03-15&nights=7&guests=4&payment_method=bank&dining_plan=full-board&destination=bvi

Example answer:

```json
{
  "start_date": "2027-03-15",
  "nights": 7,
  "check_out_date": "2027-03-22",
  "guests": 4,
  "dining_plan": "full-board",
  "destination": "bvi",
  "payment_method": "bank",
  "currency": "USD",
  "holiday": null,
  "lines": [
    {
      "kind": "base",
      "label": "7 nights, 4 guests",
      "amount_cents": 3300000
    }
  ],
  "total_cents": 3300000,
  "discount_note": "Includes the bank transfer discount: $990 off the card price of $33,990",
  "payment_schedule": [
    {
      "label": "Deposit (25%)",
      "amount_cents": 825000,
      "due": "at booking",
      "due_date": null
    },
    {
      "label": "Second payment (25%)",
      "amount_cents": 825000,
      "due": "within 7 days of the contract being signed by both sides",
      "due_date": null
    },
    {
      "label": "Final payment (50%)",
      "amount_cents": 1650000,
      "due": "by 2027-02-22, 21 days before boarding",
      "due_date": "2027-02-22"
    }
  ],
  "availability": {
    "status": "unavailable",
    "reason": "Those dates are taken."
  },
  "nearest_open_dates": {
    "earlier": [
      "2027-01-17",
      "2027-01-16",
      "2027-01-15"
    ],
    "later": [
      "2027-04-04",
      "2027-04-05",
      "2027-04-06"
    ],
    "earlier_on_request": [
      "2027-03-13",
      "2027-02-27",
      "2027-02-04"
    ],
    "later_on_request": [
      "2027-04-02",
      "2027-04-03"
    ]
  },
  "next_step": "These dates are not open. The nearest open dates are listed with this answer.",
  "terms": "Prices as of 2026-12-02; not a reservation; dates are not held.",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ]
}
```

### POST /v1/clients

Register a client, or recognize a returning one by email, and email them a one-time code.

Only with the client's agreement, once you have told them what registering means (the
notice below). The code goes to the email given, works for 10 minutes and allows 5
tries; a new code replaces the previous one. Code emails are limited: 3 an hour for one
client, and a number a day for each partner key, or for each address without one.
Needs an `Idempotency-Key` header.

What registering means, to tell the client first:

> Registering keeps the client's name, email address and phone number with Allegra, to contact them about their requests and bookings and to send other information relevant to their charter, such as changes to the yacht. Allegra's privacy policy: https://www.allegra-yacht.com/privacy.html. Tell the client this, and get their agreement, before registering them.

Tool class: Write. Side effects: stores a new client's name, email address and phone number, and sends a one-time code to that email address. A returning client's new details wait for verification.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `4f7c1e2a-9b3d-4c8e-a1f6-2d5b7e9c0a13`.

Example request:

    POST /v1/clients
    Idempotency-Key: 4f7c1e2a-9b3d-4c8e-a1f6-2d5b7e9c0a13

```json
{
  "first_name": "Ada",
  "last_name": "Lovelace",
  "email": "ada@example.com",
  "phone": "+1 284 555 0100",
  "client_agreed": true
}
```

Example answer:

```json
{
  "client_id": "cl_8f2b6c1d9e4a7b3c5d0e2f1a",
  "client_status": "new",
  "code_expires_at": "2026-12-02T15:10:00+00:00",
  "next_step": "A code is on its way to ada@example.com. Ask the client for the 6 digits in that email (they work for 10 minutes), then send them with this client_id to POST /v1/clients/verify."
}
```

Errors, for example:
- HTTP 400 `client_agreement_missing`: client_agreed must be true: tell the client what registering means, and register them only if they agree.
- HTTP 400 `invalid_phone`: phone must be in international format: "+", then the country code and number, 8 to 15 digits, like +1 284 555 0100.
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.
- HTTP 409 `request_in_progress`: A request with this Idempotency-Key is still running. Wait a few seconds, then send it again.
- HTTP 429 `too_many_codes`: Too many code emails: at most 3 code emails an hour to one client. A new code can be sent in 30 minutes.
- HTTP 503 `email_unavailable`: The code email couldn't be sent. Try again in a few minutes.
- HTTP 503 `service_unavailable`: Registering is unavailable right now. Try again in a few minutes.

### POST /v1/clients/verify

Check the code from the client's email. If it's right, a session opens for 24 hours.

A wrong code says how many tries are left; after 5, or after 10 minutes, the code
expires and the client registers again for a new one. The session works only with the
partner key it was made with (or only without a key). Needs an `Idempotency-Key` header.

Tool class: Write. Side effects: opens a 24-hour session, applies waiting new details, and adds the client to the client contact list.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `b8e2d4f6-1a3c-4e5b-9d7f-0c2a4e6b8d91`.

Example request:

    POST /v1/clients/verify
    Idempotency-Key: b8e2d4f6-1a3c-4e5b-9d7f-0c2a4e6b8d91

```json
{
  "client_id": "cl_8f2b6c1d9e4a7b3c5d0e2f1a",
  "code": "123456"
}
```

Example answer:

```json
{
  "session": "cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b",
  "session_expires_at": "2026-12-03T15:02:00+00:00",
  "client": {
    "client_id": "cl_8f2b6c1d9e4a7b3c5d0e2f1a",
    "first_name": "Ada",
    "last_name": "Lovelace",
    "email": "ada@example.com",
    "phone": "+12845550100"
  },
  "next_step": "Send the session in the X-Client-Session header with this client's calls for the next 24 hours, then register and verify again for a new one."
}
```

Errors, for example:
- HTTP 400 `invalid_code`: That code is not right. 4 tries left.
- HTTP 400 `code_expired`: There is no code waiting for this client: it was used, or it expired.
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.
- HTTP 409 `request_in_progress`: A request with this Idempotency-Key is still running. Wait a few seconds, then send it again.

### GET /v1/clients/me

The client behind a session, and when the session expires. An MCP sign-in's access token
works here too: then the time is when the token expires.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Headers:
- `X-Client-Session` (required): The session from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    GET /v1/clients/me
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "client": {
    "client_id": "cl_8f2b6c1d9e4a7b3c5d0e2f1a",
    "first_name": "Ada",
    "last_name": "Lovelace",
    "email": "ada@example.com",
    "phone": "+12845550100"
  },
  "session_expires_at": "2026-12-03T15:02:00+00:00"
}
```

Errors, for example:
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).

### POST /v1/bookings

Turn the quote the client approved into a booking.

Send the quote's own inputs and its `total_cents` as `approved_total_cents`, once the
client has seen the price, the payment schedule, the seller and the key terms, and agreed.
The booking starts unpaid: the dates are not held until the first payment arrives (the
first payment for the dates wins). Needs an `Idempotency-Key` header.

Tool class: Sensitive write. Call it only once the client has clearly approved it, every time. Side effects: stores a booking for the client from the quote they approved, unpaid: its dates are not held until the first payment arrives, and it closes by itself if no payment arrives in time. The client and the owner are emailed.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `6d2b9f1e-4c7a-4e3b-8f5d-1a9c3e7b2d40`.
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    POST /v1/bookings
    Idempotency-Key: 6d2b9f1e-4c7a-4e3b-8f5d-1a9c3e7b2d40
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

```json
{
  "start_date": "2027-03-15",
  "nights": 7,
  "guests": 4,
  "payment_method": "credit card",
  "approved_total_cents": 3399000
}
```

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "status": "deposit_pending",
  "status_text": "Deposit pending",
  "stage": "pending",
  "who_acts_next": "client",
  "next_step": "Pay the deposit (25%): $8,498, by card: get a payment page with POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment and give the client its link. The dates are held once it is paid; if no payment arrives, the booking closes on 9 December 2026.",
  "deadline": "2026-12-09T15:05:00+00:00",
  "amount_due_cents": 849800,
  "allowed_actions": [
    "GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/cancel",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/change-requests"
  ],
  "check_back_at": "2026-12-03T15:05:00+00:00",
  "flags": [],
  "summary": {
    "start_date": "2027-03-15",
    "check_out_date": "2027-03-22",
    "nights": 7,
    "guests": 4,
    "dining_plan": "full-board",
    "destination": "bvi",
    "payment_method": "credit card",
    "currency": "USD",
    "holiday": null,
    "lines": [
      {
        "kind": "base",
        "label": "7 nights, 4 guests",
        "amount_cents": 3399000
      }
    ],
    "total_cents": 3399000
  },
  "payments": [
    {
      "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
      "label": "Deposit (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_2e8b4d6f1a3c9e5b7d0f4a2c",
      "label": "Second payment (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_9d3f7b1e5c2a8d6f4b0e3c1a",
      "label": "Final payment (50%)",
      "amount_cents": 1699400,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    }
  ],
  "requests": [],
  "started_at": "2026-12-02T15:05:00+00:00",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ],
  "contact_email": "info@allegra-yacht.com"
}
```

Errors, for example:
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 409 `price_changed`: The price for these dates and choices is now $34,990 (3499000 cents), not the one the client approved.
- HTTP 409 `dates_on_request`: Those dates are close to another charter, so only the owner can confirm them.
- HTTP 409 `dates_unavailable`: Those dates are taken, together with the days the boat needs to get there and back.
- HTTP 409 `booking_exists`: The client already has a booking for dates overlapping these: bk_3c9e1a7f5b2d8e4c6a0f1b9d.
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.

### GET /v1/bookings

The client's bookings, the latest first, each as `GET /v1/bookings/{booking_id}` gives it.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Headers:
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    GET /v1/bookings
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "bookings": [
    {
      "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
      "status": "deposit_pending",
      "status_text": "Deposit pending",
      "stage": "pending",
      "who_acts_next": "client",
      "next_step": "Pay the deposit (25%): $8,498, by card: get a payment page with POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment and give the client its link. The dates are held once it is paid; if no payment arrives, the booking closes on 9 December 2026.",
      "deadline": "2026-12-09T15:05:00+00:00",
      "amount_due_cents": 849800,
      "allowed_actions": [
        "GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d",
        "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment",
        "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/cancel",
        "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/change-requests"
      ],
      "check_back_at": "2026-12-03T15:05:00+00:00",
      "flags": [],
      "summary": {
        "start_date": "2027-03-15",
        "check_out_date": "2027-03-22",
        "nights": 7,
        "guests": 4,
        "dining_plan": "full-board",
        "destination": "bvi",
        "payment_method": "credit card",
        "currency": "USD",
        "holiday": null,
        "lines": [
          {
            "kind": "base",
            "label": "7 nights, 4 guests",
            "amount_cents": 3399000
          }
        ],
        "total_cents": 3399000
      },
      "payments": [
        {
          "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
          "label": "Deposit (25%)",
          "amount_cents": 849800,
          "status": "due",
          "paid_at": null,
          "refund_cents": null
        },
        {
          "payment_id": "pay_2e8b4d6f1a3c9e5b7d0f4a2c",
          "label": "Second payment (25%)",
          "amount_cents": 849800,
          "status": "due",
          "paid_at": null,
          "refund_cents": null
        },
        {
          "payment_id": "pay_9d3f7b1e5c2a8d6f4b0e3c1a",
          "label": "Final payment (50%)",
          "amount_cents": 1699400,
          "status": "due",
          "paid_at": null,
          "refund_cents": null
        }
      ],
      "requests": [],
      "started_at": "2026-12-02T15:05:00+00:00",
      "seller": "Resolute Wind LLC",
      "key_terms": [
        {
          "id": "payment-schedule",
          "title": "Payment schedule",
          "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
        },
        {
          "id": "contract",
          "title": "Charter contract",
          "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
        },
        {
          "id": "cancellation",
          "title": "Cancellation and refunds",
          "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
        },
        {
          "id": "tips",
          "title": "Crew tips",
          "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
        }
      ],
      "contact_email": "info@allegra-yacht.com"
    }
  ]
}
```

Errors, for example:
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).

### GET /v1/bookings/{booking_id}

Where the booking stands: its status, who acts next and by when, what is due, what can be
done now (`allowed_actions`), and when to look again (`check_back_at`).

Ask again at `check_back_at`, or sooner after the client does something. The client is also
emailed at every change of status.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Headers:
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    GET /v1/bookings/{booking_id}
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "status": "deposit_pending",
  "status_text": "Deposit pending",
  "stage": "pending",
  "who_acts_next": "client",
  "next_step": "Pay the deposit (25%): $8,498, by card: get a payment page with POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment and give the client its link. The dates are held once it is paid; if no payment arrives, the booking closes on 9 December 2026.",
  "deadline": "2026-12-09T15:05:00+00:00",
  "amount_due_cents": 849800,
  "allowed_actions": [
    "GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/cancel",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/change-requests"
  ],
  "check_back_at": "2026-12-03T15:05:00+00:00",
  "flags": [],
  "summary": {
    "start_date": "2027-03-15",
    "check_out_date": "2027-03-22",
    "nights": 7,
    "guests": 4,
    "dining_plan": "full-board",
    "destination": "bvi",
    "payment_method": "credit card",
    "currency": "USD",
    "holiday": null,
    "lines": [
      {
        "kind": "base",
        "label": "7 nights, 4 guests",
        "amount_cents": 3399000
      }
    ],
    "total_cents": 3399000
  },
  "payments": [
    {
      "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
      "label": "Deposit (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_2e8b4d6f1a3c9e5b7d0f4a2c",
      "label": "Second payment (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_9d3f7b1e5c2a8d6f4b0e3c1a",
      "label": "Final payment (50%)",
      "amount_cents": 1699400,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    }
  ],
  "requests": [],
  "started_at": "2026-12-02T15:05:00+00:00",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ],
  "contact_email": "info@allegra-yacht.com"
}
```

Errors, for example:
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `booking_not_found`: The client has no booking with that id.

### POST /v1/bookings/{booking_id}/card-payment

A Stripe payment page for the payment due now, for a booking paid by card.

Give the client the page's link: they pay on Stripe's page (the card details never pass
through this API), then return to you. The page is open for 1 hour; asking again closes it
and makes a new one. Once paid, the booking moves on by itself: look at it again a few
minutes later. Needs an `Idempotency-Key` header.

Tool class: Sensitive write. Call it only once the client has clearly approved it, every time. Side effects: makes a Stripe payment page for the payment due now, open for 1 hour, and closes the booking's previous page, if one is open. Nothing is charged until the client pays on the page.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `0f4c8a2e-6b1d-4f9a-b3e7-5c2d8a1f6e94`.
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    POST /v1/bookings/{booking_id}/card-payment
    Idempotency-Key: 0f4c8a2e-6b1d-4f9a-b3e7-5c2d8a1f6e94
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
  "label": "Deposit (25%)",
  "amount_cents": 849800,
  "currency": "USD",
  "payment_url": "https://checkout.stripe.com/c/pay/cs_test_ExampleOnly0NotARealPaymentPage",
  "expires_at": "2026-12-02T16:05:00+00:00",
  "next_step": "Give the client this link to pay the deposit (25%), $8,498, by card on Stripe's page. It's open until 12:05 on 2 December 2026 (the boat's time, UTC-04:00). Once they've paid, look at the booking again in a few minutes: GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d.",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ]
}
```

Errors, for example:
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `booking_not_found`: The client has no booking with that id.
- HTTP 409 `wrong_payment_method`: This booking is paid by bank transfer: the method chosen with the quote applies to every payment.
- HTTP 409 `no_payment_due`: No payment is due on this booking now.
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.
- HTTP 503 `payment_unavailable`: Card payments are unavailable right now. Try again in a few minutes.

### GET /v1/bookings/{booking_id}/bank-transfer

The bank details for the payment due, for a booking paid by bank transfer: the amount,
the reference to quote, and the details of each account. Once the client has sent it,
say so with `POST /v1/bookings/{booking_id}/bank-transfer-sent`. The dates are held once
the owner confirms the money arrived.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Headers:
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    GET /v1/bookings/{booking_id}/bank-transfer
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
  "label": "Deposit (25%)",
  "amount_cents": 849800,
  "currency": "USD",
  "reference": "3C9E1A7F-1",
  "deadline": "2026-12-09T15:05:00+00:00",
  "details": [
    {
      "id": "domestic",
      "title": "From a bank in the United States",
      "lines": [
        {
          "label": "Beneficiary name",
          "value": "<beneficiary name>"
        },
        {
          "label": "Beneficiary address",
          "value": "<beneficiary address>"
        },
        {
          "label": "Account number",
          "value": "<account number>"
        },
        {
          "label": "Routing number (ABA)",
          "value": "<routing number (aba)>"
        },
        {
          "label": "Bank",
          "value": "<bank>"
        },
        {
          "label": "Bank address",
          "value": "<bank address>"
        }
      ]
    },
    {
      "id": "international",
      "title": "From a bank outside the United States",
      "lines": [
        {
          "label": "Beneficiary name",
          "value": "<beneficiary name>"
        },
        {
          "label": "Beneficiary address",
          "value": "<beneficiary address>"
        },
        {
          "label": "Account number",
          "value": "<account number>"
        },
        {
          "label": "SWIFT / BIC",
          "value": "<swift / bic>"
        },
        {
          "label": "Bank",
          "value": "<bank>"
        },
        {
          "label": "Bank address",
          "value": "<bank address>"
        },
        {
          "label": "Intermediary bank SWIFT / BIC",
          "value": "<intermediary bank swift / bic>"
        },
        {
          "label": "ABA routing number (if your bank asks for one)",
          "value": "<aba routing number (if your bank asks for one)>"
        },
        {
          "label": "ABA routing number, if your bank doesn't recognize the one above",
          "value": "<aba routing number, if your bank doesn't recognize the one above>"
        }
      ]
    }
  ],
  "next_step": "Give the client these details. They send $8,498 in US dollars, quoting 3C9E1A7F-1, from either account set, then tell us with POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/bank-transfer-sent. The owner confirms when the money arrives."
}
```

Errors, for example:
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `booking_not_found`: The client has no booking with that id.
- HTTP 409 `wrong_payment_method`: This booking is paid by card: get a payment page instead.
- HTTP 409 `no_payment_due`: No payment is due on this booking now.

### POST /v1/bookings/{booking_id}/bank-transfer-sent

Say that the client sent the payment due by bank transfer. The owner is emailed and
confirms when it arrives; until then nothing is held or moves on. Needs an
`Idempotency-Key` header.

Tool class: Sensitive write. Call it only once the client has clearly approved it, every time. Side effects: records that the client sent the payment due by bank transfer, and emails the owner, who confirms when it arrives. Nothing is held or moves on until then.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64`.
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    POST /v1/bookings/{booking_id}/bank-transfer-sent
    Idempotency-Key: a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "status": "deposit_pending",
  "status_text": "Deposit pending",
  "stage": "pending",
  "who_acts_next": "owner",
  "next_step": "The client says the deposit (25%) ($8,498) was sent by bank transfer. The owner confirms when it arrives; nothing to do until then.",
  "deadline": "2026-12-09T15:05:00+00:00",
  "amount_due_cents": 849800,
  "allowed_actions": [
    "GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/cancel",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/change-requests"
  ],
  "check_back_at": "2026-12-03T15:06:00+00:00",
  "flags": [],
  "summary": {
    "start_date": "2027-03-15",
    "check_out_date": "2027-03-22",
    "nights": 7,
    "guests": 4,
    "dining_plan": "full-board",
    "destination": "bvi",
    "payment_method": "bank",
    "currency": "USD",
    "holiday": null,
    "lines": [
      {
        "kind": "base",
        "label": "7 nights, 4 guests",
        "amount_cents": 3399000
      }
    ],
    "total_cents": 3399000
  },
  "payments": [
    {
      "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
      "label": "Deposit (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_2e8b4d6f1a3c9e5b7d0f4a2c",
      "label": "Second payment (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_9d3f7b1e5c2a8d6f4b0e3c1a",
      "label": "Final payment (50%)",
      "amount_cents": 1699400,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    }
  ],
  "requests": [],
  "started_at": "2026-12-02T15:05:00+00:00",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ],
  "contact_email": "info@allegra-yacht.com"
}
```

Errors, for example:
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `booking_not_found`: The client has no booking with that id.
- HTTP 409 `wrong_payment_method`: This booking is paid by card: get a payment page instead.
- HTTP 409 `no_payment_due`: No payment is due on this booking now.
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.

### POST /v1/bookings/{booking_id}/cancel

Cancel the booking, before its contract is signed by both sides. Everything paid is
refunded: a card payment less the payment processor's fees. The dates go back on sale. It
can't be undone, so only once the client has clearly approved it. Once the contract is
signed, send a cancellation request instead. Needs an `Idempotency-Key` header.

Tool class: Sensitive write. Call it only once the client has clearly approved it, every time. Side effects: cancels the booking for good: the dates go back on sale, and everything paid is refunded by hand, the way it was paid. A card payment goes back less the payment processor's fees, a bank transfer in full. The client and the owner are emailed.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64`.
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    POST /v1/bookings/{booking_id}/cancel
    Idempotency-Key: a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "status": "cancelled_by_client",
  "status_text": "Cancelled by the client",
  "stage": "cancelled",
  "who_acts_next": "owner",
  "next_step": "The booking is cancelled, at the client's request. $8,498 is due back to the client: the owner refunds it by hand, the way it was paid, less the payment processor's fees.",
  "deadline": null,
  "amount_due_cents": null,
  "allowed_actions": [
    "GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d"
  ],
  "check_back_at": "2026-12-04T15:05:00+00:00",
  "flags": [
    "refund_due"
  ],
  "summary": {
    "start_date": "2027-03-15",
    "check_out_date": "2027-03-22",
    "nights": 7,
    "guests": 4,
    "dining_plan": "full-board",
    "destination": "bvi",
    "payment_method": "credit card",
    "currency": "USD",
    "holiday": null,
    "lines": [
      {
        "kind": "base",
        "label": "7 nights, 4 guests",
        "amount_cents": 3399000
      }
    ],
    "total_cents": 3399000
  },
  "payments": [
    {
      "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
      "label": "Deposit (25%)",
      "amount_cents": 849800,
      "status": "refund_due",
      "paid_at": "2026-12-02T16:05:00+00:00",
      "refund_cents": 849800
    },
    {
      "payment_id": "pay_2e8b4d6f1a3c9e5b7d0f4a2c",
      "label": "Second payment (25%)",
      "amount_cents": 849800,
      "status": "cancelled",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_9d3f7b1e5c2a8d6f4b0e3c1a",
      "label": "Final payment (50%)",
      "amount_cents": 1699400,
      "status": "cancelled",
      "paid_at": null,
      "refund_cents": null
    }
  ],
  "requests": [],
  "started_at": "2026-12-02T15:05:00+00:00",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ],
  "contact_email": "info@allegra-yacht.com"
}
```

Errors, for example:
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `booking_not_found`: The client has no booking with that id.
- HTTP 409 `contract_signed`: The contract is signed, so cancelling is the owner's decision: send a cancellation request.
- HTTP 409 `booking_ended`: The booking has already ended: Cancelled by the client.
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.

### POST /v1/bookings/{booking_id}/change-requests

Ask the owner for a change: other dates, guests, dining plan or payment method. The
owner answers on the booking (`requests`) and by email; an accepted change is made by the
owner's team. Needs an `Idempotency-Key` header.

Tool class: Sensitive write. Call it only once the client has clearly approved it, every time. Side effects: sends the client's request to the owner, who answers it: the answer shows on the booking and is emailed to the client.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64`.
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    POST /v1/bookings/{booking_id}/change-requests
    Idempotency-Key: a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

```json
{
  "text": "Could we board a day later, for the same number of nights?"
}
```

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "status": "deposit_pending",
  "status_text": "Deposit pending",
  "stage": "pending",
  "who_acts_next": "client",
  "next_step": "Pay the deposit (25%): $8,498, by card: get a payment page with POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment and give the client its link. The dates are held once it is paid; if no payment arrives, the booking closes on 9 December 2026. The owner is answering the client's change request: the answer shows here, in `requests`, and comes by email.",
  "deadline": "2026-12-09T15:05:00+00:00",
  "amount_due_cents": 849800,
  "allowed_actions": [
    "GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/cancel"
  ],
  "check_back_at": "2026-12-03T15:15:00+00:00",
  "flags": [
    "change_request_open"
  ],
  "summary": {
    "start_date": "2027-03-15",
    "check_out_date": "2027-03-22",
    "nights": 7,
    "guests": 4,
    "dining_plan": "full-board",
    "destination": "bvi",
    "payment_method": "credit card",
    "currency": "USD",
    "holiday": null,
    "lines": [
      {
        "kind": "base",
        "label": "7 nights, 4 guests",
        "amount_cents": 3399000
      }
    ],
    "total_cents": 3399000
  },
  "payments": [
    {
      "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
      "label": "Deposit (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_2e8b4d6f1a3c9e5b7d0f4a2c",
      "label": "Second payment (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_9d3f7b1e5c2a8d6f4b0e3c1a",
      "label": "Final payment (50%)",
      "amount_cents": 1699400,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    }
  ],
  "requests": [
    {
      "request_id": "rq_4b8d2f6a1c9e3b7d5f0a2c8e",
      "kind": "change",
      "text": "Could we board a day later, for the same number of nights?",
      "sent_at": "2026-12-02T15:15:00+00:00",
      "answer": null,
      "answered_at": null,
      "accepted": null
    }
  ],
  "started_at": "2026-12-02T15:05:00+00:00",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ],
  "contact_email": "info@allegra-yacht.com"
}
```

Errors, for example:
- HTTP 400 `invalid_text`: text must be 1 to 2000 characters.
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `booking_not_found`: The client has no booking with that id.
- HTTP 409 `request_open`: A change request is already waiting for the owner's answer.
- HTTP 409 `booking_ended`: The booking has already ended: Cancelled by the client.
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.

### POST /v1/bookings/{booking_id}/cancellation-requests

Ask the owner to cancel, once the contract is signed: the owner decides, and any refund
follows the contract. The answer shows on the booking (`requests`) and comes by email.
Before signing, cancel instead. Needs an `Idempotency-Key` header.

Tool class: Sensitive write. Call it only once the client has clearly approved it, every time. Side effects: sends the client's request to the owner, who answers it: the answer shows on the booking and is emailed to the client.

Headers:
- `Idempotency-Key` (required): A value of your choice, 1 to 255 visible ASCII characters: new for each change, and the same when you retry it. A retry gets the first answer again and changes nothing. Kept 24 hours. Example: `a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64`.
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    POST /v1/bookings/{booking_id}/cancellation-requests
    Idempotency-Key: a83d5f1b-2c6e-4d9f-8b1a-7e3c5d9f2a64
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

```json
{
  "text": "A family emergency: we can't travel. Please cancel the booking."
}
```

Example answer:

```json
{
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "status": "second_payment_pending",
  "status_text": "Second payment pending",
  "stage": "confirmed",
  "who_acts_next": "client",
  "next_step": "Pay the second payment (25%): $8,498 by 12 December 2026, by card: get a payment page with POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment and give the client its link. The owner is answering the client's cancellation request: the answer shows here, in `requests`, and comes by email.",
  "deadline": "2026-12-12T15:05:00+00:00",
  "amount_due_cents": 849800,
  "allowed_actions": [
    "GET /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/card-payment",
    "POST /v1/bookings/bk_3c9e1a7f5b2d8e4c6a0f1b9d/change-requests"
  ],
  "check_back_at": "2026-12-07T15:05:00+00:00",
  "flags": [
    "cancellation_request_open"
  ],
  "summary": {
    "start_date": "2027-03-15",
    "check_out_date": "2027-03-22",
    "nights": 7,
    "guests": 4,
    "dining_plan": "full-board",
    "destination": "bvi",
    "payment_method": "credit card",
    "currency": "USD",
    "holiday": null,
    "lines": [
      {
        "kind": "base",
        "label": "7 nights, 4 guests",
        "amount_cents": 3399000
      }
    ],
    "total_cents": 3399000
  },
  "payments": [
    {
      "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
      "label": "Deposit (25%)",
      "amount_cents": 849800,
      "status": "paid",
      "paid_at": "2026-12-02T16:05:00+00:00",
      "refund_cents": null
    },
    {
      "payment_id": "pay_2e8b4d6f1a3c9e5b7d0f4a2c",
      "label": "Second payment (25%)",
      "amount_cents": 849800,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    },
    {
      "payment_id": "pay_9d3f7b1e5c2a8d6f4b0e3c1a",
      "label": "Final payment (50%)",
      "amount_cents": 1699400,
      "status": "due",
      "paid_at": null,
      "refund_cents": null
    }
  ],
  "requests": [
    {
      "request_id": "rq_9e1c5a3f7b2d8c4e6a0f1b3d",
      "kind": "cancellation",
      "text": "A family emergency: we can't travel. Please cancel the booking.",
      "sent_at": "2026-12-06T15:05:00+00:00",
      "answer": null,
      "answered_at": null,
      "accepted": null
    }
  ],
  "started_at": "2026-12-02T15:05:00+00:00",
  "seller": "Resolute Wind LLC",
  "key_terms": [
    {
      "id": "payment-schedule",
      "title": "Payment schedule",
      "text": "Booking 45 or more days before boarding: 25% at booking, 25% within 7 days of the charter contract being signed by both sides, and the final 50% no later than 21 days before boarding. Booking less than 45 days before boarding: 100% at booking. Dates are held only once the first payment is received. If two clients pay for the same dates, the first payment received wins and the other is refunded. A card payment goes back less the payment processor's fees, a bank transfer in full."
    },
    {
      "id": "contract",
      "title": "Charter contract",
      "text": "Every charter has a written charter contract, plus a charter waiver. For bookings 45 or more days out, the contract is sent within 7 days of the deposit and is signed within 10 days of being sent. For later bookings it is sent as fast as possible and signed within 3 days. Where the signed contract differs from these policies, the contract wins."
    },
    {
      "id": "cancellation",
      "title": "Cancellation and refunds",
      "text": "Before the contract is signed, you can cancel, and everything paid is refunded. After it is signed, cancellation requests go to the owner, and any refund is at the owner's discretion, in line with the contract. If a deadline is missed and the client cannot be reached, the booking may be cancelled and 25% of the charter price kept. If the owner cancels, everything paid is refunded. Every refund is made by hand, to the way you paid. A card payment goes back less the payment processor's fees, a bank transfer in full. Trip cancellation insurance is recommended."
    },
    {
      "id": "tips",
      "title": "Crew tips",
      "text": "Crew tips are not included and are not paid through this service. They are customary at 15 to 20% of the charter fee, at your discretion."
    }
  ],
  "contact_email": "info@allegra-yacht.com"
}
```

Errors, for example:
- HTTP 400 `invalid_text`: text must be 1 to 2000 characters.
- HTTP 400 `idempotency_key_required`: Send an Idempotency-Key header with every change: a value of your choice, new for each change and the same when you retry it.
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `booking_not_found`: The client has no booking with that id.
- HTTP 409 `request_open`: A cancellation request is already waiting for the owner's answer.
- HTTP 409 `booking_ended`: The booking has already ended: Cancelled by the client.
- HTTP 409 `not_signed_yet`: The contract isn't signed yet: the client can cancel directly, for a refund of everything paid (by card, less the payment processor's fees).
- HTTP 409 `idempotency_key_reused`: This Idempotency-Key was already used for a different request. Use a new key for a new change.

### GET /v1/payments/{payment_id}

One payment of the client's bookings: its amount, method and status (`due`, `processing`,
`paid`, `refund_due`, `refunded` or `cancelled`), and when it was paid.

Tool class: Read. Side effects: none. It only retrieves information: it books nothing, holds no dates, takes no payment and sends nothing.

Headers:
- `X-Client-Session` (required): The client's session, from POST /v1/clients/verify. Example: `cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b`.

Example request:

    GET /v1/payments/{payment_id}
    X-Client-Session: cs_ExampleOnly-NotARealSession-ShownOnce-4f9a2c7e1b

Example answer:

```json
{
  "payment_id": "pay_7a1c5e9b3d2f8a6c4e0b2d1f",
  "booking_id": "bk_3c9e1a7f5b2d8e4c6a0f1b9d",
  "label": "Deposit (25%)",
  "amount_cents": 849800,
  "currency": "USD",
  "payment_method": "credit card",
  "status": "due",
  "paid_at": null,
  "refund_cents": null
}
```

Errors, for example:
- HTTP 401 `invalid_session`: The X-Client-Session is missing, unknown or expired, or was made with another partner key (or none).
- HTTP 404 `payment_not_found`: The client has no payment with that id.

## Errors

Every error has the same shape. `code` is machine-readable, `field` names the parameter at fault, `message` says what to change, in plain English, `retryable` says whether the same request can work later unchanged (only when rate limited, HTTP 429, or on a failure on our side, HTTP 5xx), and `request_id` matches the `X-Request-ID` header. Bad requests get HTTP 400, unknown paths HTTP 404.

```json
{
  "error": {
    "code": "invalid_nights",
    "field": "nights",
    "message": "Charters are 5 to 7 nights.",
    "retryable": false,
    "request_id": "req_5f0c3e9a2b7d4c18e6a1f0b9"
  }
}
```

MCP tools: /mcp-tools.md lists every MCP tool with its class, inputs, output, side effects, errors and limits.
