Platforma · book.castomapi.com
Book
Rezerwacje i dostępność: zasoby, sloty, rezerwacje, przypomnienia i zwroty według polityki.
Zasób ma kalendarz; klient wybiera slot; castomapi-book go trzyma, pobiera płatność przez Pay, jeśli sprzedawca tego chce, i wysyła przypomnienie. Polityki anulowania i zwrotów to dane ustawiane przez sprzedawcę, nie kod.
Każdy produkt, który potrzebuje „wybierz termin” — przychodnia, studio, konsultant, wypożyczalnia — używa tego zamiast budować to samemu.
Operacje
| Metoda | Ścieżka | Opis |
|---|---|---|
| GET | /b/{id} | |
| POST | /b/{id}/cancel | |
| GET | /public/v1/bookings/{id} | The booking this link is for |
| POST | /public/v1/bookings/{id}/cancel | Give the time back |
| GET | /public/v1/calendars/{key} | What a practice offers, and how to reach it |
| GET | /public/v1/calendars/{key}/availability | Free times, computed from the practice's hours |
| POST | /public/v1/calendars/{key}/bookings | Ask for a time |
| GET | /v1/calendars | Every diary this account owns |
| POST | /v1/calendars | Open 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}/availability | Set the weekly opening hours |
| GET | /v1/calendars/{id}/bookings | The diary itself |
| POST | /v1/calendars/{id}/bookings/{bookingId}/cancel | Cancel somebody's appointment, and refund it |
| POST | /v1/calendars/{id}/exceptions | Close a day, or open an extra one |
| DELETE | /v1/calendars/{id}/exceptions/{exceptionId} | Undo a closed or extra day |
| DELETE | /v1/calendars/{id}/feed | Switch the calendar-app link off |
| POST | /v1/calendars/{id}/feed | Issue the calendar-app link for this diary (replaces the previous one) |
| POST | /v1/calendars/{id}/visit-types | Add 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 |
Adres bazowy: https://book.castomapi.com · Otwórz dokumentację na żywo
Platforma
Auth
Jedna tożsamość dla każdego produktu: logowanie, sesje, klienci OAuth, projekty i klucze unieważniania, które sprawdza każda usługa.
Rozliczenia i plany
Uprawnienia planów dla każdego produktu castomo: subskrypcje Stripe na wejściu, obowiązujące limity na wyjściu, wypychane do produktu, który je egzekwuje.
Pay
Płatności między ludźmi i firmami na platformie, ze Stripe pod spodem.
Events
Darmowe globalne API wydarzeń: co się dzieje gdzie, dla dashboardów i witryn, które potrzebują kalendarza, którego nie napisały.
Data
Darmowe globalne dane referencyjne: kraje, języki, waluty, logistyka, standardy — dziesiątki milionów rekordów, bez klucza.
Query
Zapytania SQL i dokumentowe tylko do odczytu na własnym MySQL, PostgreSQL albo MongoDB klienta, z przeglądarki, bezpiecznie.