Charter Captain Bookings API
The Bookings API from Charter Captain — 6 operation(s) for bookings.
The Bookings API from Charter Captain — 6 operation(s) for bookings.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/chartercaptain-com:chartercaptain-com-bookings-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Charter Captain Bookings API
version: 1.0.0
description: REST API for the Charter Captain iOS apps
servers:
- url: http://localhost:3002
description: Development
security:
- bearerAuth: []
tags:
- name: Bookings
paths:
/api/v1/bookings:
post:
operationId: postBooking
summary: Create a manual booking (captain)
tags:
- Bookings
parameters:
- $ref: '#/components/parameters/IdempotencyKeyHeader'
requestBody:
content:
application/json:
schema:
type: object
properties:
date:
type: string
minLength: 1
startTime:
type: string
minLength: 1
endTime:
type: string
minLength: 1
durationId:
type: string
harborId:
type: string
minLength: 1
pricingTierId:
type: string
minLength: 1
firstName:
type: string
default: ''
lastName:
type: string
default: ''
email:
anyOf:
- type: string
enum:
- ''
- type: string
format: email
default: ''
phone:
type: string
default: ''
partySize:
type: integer
minimum: 1
maximum: 13
specialRequests:
type: string
default: ''
slipNumber:
type:
- string
- 'null'
maxLength: 200
gateCode:
type:
- string
- 'null'
maxLength: 200
slipInstructions:
type:
- string
- 'null'
maxLength: 200
status:
type: string
enum:
- CONFIRMED
- DEPOSIT_PAID
- BALANCE_PAID
- COMPLETED
totalPriceOverride:
type: integer
minimum: 0
depositOverride:
type: integer
minimum: 0
balanceOverride:
type: integer
minimum: 0
tipAmount:
type: integer
minimum: 0
payments:
type: array
items:
type: object
properties:
type:
type: string
enum:
- DEPOSIT
- BALANCE
- TIP
amount:
type: integer
minimum: 0
note:
type: string
default: ''
required:
- type
- amount
default: []
required:
- date
- startTime
- endTime
- harborId
- pricingTierId
- partySize
- status
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
bookingId:
type: string
required:
- bookingId
required:
- data
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/IdempotencyConflict'
get:
operationId: getBookings
summary: List bookings with filters
description: Returns a paginated list of bookings, optionally filtered by status, search query, and date range.
tags:
- Bookings
parameters:
- name: status
in: query
description: Filter by booking status
required: false
schema:
type: string
enum:
- PENDING_DEPOSIT
- DEPOSIT_PAID
- CONFIRMED
- COMPLETED
- CANCELLED
- WEATHER_CANCELLED
- name: search
in: query
description: Search by customer name or email
required: false
schema:
type: string
- name: from
in: query
description: Filter bookings on or after this date (YYYY-MM-DD)
required: false
schema:
type: string
format: date
- name: to
in: query
description: Filter bookings on or before this date (YYYY-MM-DD)
required: false
schema:
type: string
format: date
- name: page
in: query
description: Page number (default 1)
required: false
schema:
type: integer
minimum: 1
default: 1
- name: limit
in: query
description: Page size (default 20, max 100)
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 20
responses:
'200':
description: Paginated booking list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Booking'
meta:
$ref: '#/components/schemas/PaginationMeta'
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/bookings/today:
get:
operationId: getBookingsToday
summary: Today's bookings
description: Returns all active bookings for today (excludes CANCELLED, WEATHER_CANCELLED, PENDING_DEPOSIT).
tags:
- Bookings
responses:
'200':
description: Today's bookings
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Booking'
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/bookings/upcoming:
get:
operationId: getBookingsUpcoming
summary: Upcoming bookings (7 days)
description: Returns active bookings for the next 7 days starting from tomorrow, ordered by date ascending.
tags:
- Bookings
responses:
'200':
description: Upcoming bookings
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/BookingSummary'
'401':
$ref: '#/components/responses/Unauthorized'
/api/v1/bookings/{id}:
get:
operationId: getBookingById
summary: Get booking detail
description: Returns a single booking with full related data.
tags:
- Bookings
parameters:
- name: id
in: path
description: Booking ID
required: true
schema:
type: string
responses:
'200':
description: Booking detail
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Booking'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
/api/v1/bookings/{id}/status:
patch:
operationId: patchBookingStatus
summary: Update booking status
description: Updates the status of a booking.
tags:
- Bookings
parameters:
- name: id
in: path
description: Booking ID
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- status
properties:
status:
type: string
enum:
- PENDING_DEPOSIT
- DEPOSIT_PAID
- CONFIRMED
- COMPLETED
- CANCELLED
- WEATHER_CANCELLED
responses:
'200':
description: Updated booking
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Booking'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
/api/v1/bookings/{id}/send-checkout:
post:
operationId: postBookingSendCheckout
summary: Send checkout link
description: Sends a checkout link to the customer for a booking in DEPOSIT_PAID or CONFIRMED status.
tags:
- Bookings
parameters:
- name: id
in: path
description: Booking ID
required: true
schema:
type: string
responses:
'200':
description: Checkout link sent
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
sent:
type: boolean
bookingId:
type: string
'400':
description: Booking not eligible for checkout
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
components:
responses:
NotFound:
description: The requested resource does not exist (existence is not leaked).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
IdempotencyConflict:
description: Idempotency-Key was reused with a different request body
content:
application/json:
schema:
$ref: '#/components/schemas/IdempotencyConflictError'
Unauthorized:
description: Authentication required, or the bearer token is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ValidationError:
description: Request body or query parameters failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
IdempotencyKeyHeader:
type: string
format: uuid
description: Client-supplied UUID v4. Repeat requests with the same key return the cached response.
WeatherCheck:
type: object
properties:
id:
type: string
bookingId:
type: string
checkedAt:
type: string
format: date-time
hasAdvisory:
type: boolean
advisoryType:
type: string
nullable: true
windSpeed:
type: number
nullable: true
waveHeight:
type: number
nullable: true
forecast:
type: string
nullable: true
Error:
type: object
properties:
error:
type: object
properties:
message:
type: string
code:
type: string
required:
- message
- code
required:
- error
Payment:
type: object
required:
- id
- amount
- type
- status
properties:
id:
type: string
bookingId:
type: string
amount:
type: number
type:
type: string
enum:
- DEPOSIT
- BALANCE
- TIP
- REFUND
status:
type: string
enum:
- PENDING
- SUCCEEDED
- FAILED
- REFUNDED
createdAt:
type: string
format: date-time
PaginationMeta:
type: object
properties:
page:
type: integer
limit:
type: integer
total:
type: integer
required:
- page
- limit
- total
Harbor:
type: object
properties:
id:
type: string
name:
type: string
city:
type:
- string
- 'null'
state:
type:
- string
- 'null'
lat:
type:
- number
- 'null'
lng:
type:
- number
- 'null'
sortOrder:
type: integer
isActive:
type: boolean
required:
- id
- name
- isActive
Notification:
type: object
properties:
id:
type: string
bookingId:
type: string
type:
type: string
sentAt:
type: string
format: date-time
status:
type: string
Booking:
type: object
required:
- id
- captainId
- date
- status
properties:
id:
type: string
captainId:
type: string
date:
type: string
format: date-time
startTime:
type: string
nullable: true
endTime:
type: string
nullable: true
status:
type: string
enum:
- PENDING_DEPOSIT
- DEPOSIT_PAID
- CONFIRMED
- COMPLETED
- CANCELLED
- WEATHER_CANCELLED
totalPrice:
type: number
nullable: true
notes:
type: string
nullable: true
createdAt:
type: string
format: date-time
customer:
$ref: '#/components/schemas/Customer'
harbor:
$ref: '#/components/schemas/Harbor'
duration:
$ref: '#/components/schemas/Duration'
payments:
type: array
items:
$ref: '#/components/schemas/Payment'
weatherChecks:
type: array
items:
$ref: '#/components/schemas/WeatherCheck'
notifications:
type: array
items:
$ref: '#/components/schemas/Notification'
Customer:
type: object
required:
- id
- firstName
- lastName
- email
properties:
id:
type: string
firstName:
type: string
lastName:
type: string
email:
type: string
format: email
phone:
type: string
nullable: true
notes:
type: string
nullable: true
createdAt:
type: string
format: date-time
Duration:
type: object
properties:
id:
type: string
hours:
type: integer
label:
type: string
isActive:
type: boolean
sortOrder:
type: integer
required:
- id
- hours
- label
IdempotencyConflictError:
type: object
properties:
error:
type: object
properties:
message:
type: string
code:
type: string
enum:
- IDEMPOTENCY_CONFLICT
required:
- message
- code
required:
- error
BookingSummary:
type: object
required:
- id
- captainId
- date
- status
properties:
id:
type: string
captainId:
type: string
date:
type: string
format: date-time
status:
type: string
totalPrice:
type: number
nullable: true
customer:
$ref: '#/components/schemas/Customer'
harbor:
$ref: '#/components/schemas/Harbor'
parameters:
IdempotencyKeyHeader:
schema:
$ref: '#/components/schemas/IdempotencyKeyHeader'
required: false
description: Client-supplied UUID v4. Repeat requests with the same key return the cached response.
name: Idempotency-Key
in: header
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Clerk JWT token