castomAPI
Get your key

The platform · book.castomapi.com

Book

Bookings and availability: resources, slots, reservations, reminders and refunds by policy.

22 operationsOpenAPI → castomocastomUI

A resource has a calendar; a customer picks a slot; castomapi-book holds it, takes the payment through Pay if the seller wants one, and sends the reminder. Cancellation and refund policies are data the seller sets, not code.

Every product that needs "pick a time" — a clinic, a studio, a consultant, a rental — uses this instead of building it.

Operations

MethodPathDescription
GET/b/{id}
POST/b/{id}/cancel
GET/public/v1/bookings/{id}The booking this link is for
POST/public/v1/bookings/{id}/cancelGive the time back
GET/public/v1/calendars/{key}What a practice offers, and how to reach it
GET/public/v1/calendars/{key}/availabilityFree times, computed from the practice's hours
POST/public/v1/calendars/{key}/bookingsAsk for a time
GET/v1/calendarsEvery diary this account owns
POST/v1/calendarsOpen a diary
DELETE/v1/calendars/{id}Delete a diary and everything in it
GET/v1/calendars/{id}One diary, with its hours and visit types
PATCH/v1/calendars/{id}Change how the diary works
PUT/v1/calendars/{id}/availabilitySet the weekly opening hours
GET/v1/calendars/{id}/bookingsThe diary itself
POST/v1/calendars/{id}/bookings/{bookingId}/cancelCancel somebody's appointment, and refund it
POST/v1/calendars/{id}/exceptionsClose a day, or open an extra one
DELETE/v1/calendars/{id}/exceptions/{exceptionId}Undo a closed or extra day
DELETE/v1/calendars/{id}/feedSwitch the calendar-app link off
POST/v1/calendars/{id}/feedIssue the calendar-app link for this diary (replaces the previous one)
POST/v1/calendars/{id}/visit-typesAdd something that can be booked
DELETE/v1/calendars/{id}/visit-types/{typeId}Remove a visit type
PATCH/v1/calendars/{id}/visit-types/{typeId}Change a visit type

Base URL: https://book.castomapi.com · Open the live docs

The platform