API Reference
Documentazione completa per l'integrazione con Book Suite API.
Panoramica
L'API di Book Suite รจ organizzata secondo i principi REST. Tutte le richieste e risposte sono in formato JSON.
URL Base: https://api.booksuite.com/v1
Autenticazione
Usa la tua API Key passando l'header Authorization.
Authorization: Bearer YOUR_API_KEY
Prenotazioni
GET
/bookings
Restituisce una lista di tutte le prenotazioni.
Parameters
| Name | Type | Description |
|---|---|---|
limit |
integer | Max number of results (default 20) |
status |
string | Filter by status (confirmed, pending, cancelled) |
Response
{
"data": [
{
"id": "bk_123456",
"guest_name": "Mario Rossi",
"check_in": "2024-07-10",
"check_out": "2024-07-15",
"status": "confirmed",
"total": 450.00
}
],
"meta": {
"total": 1,
"page": 1
}
}
POST
/bookings
Crea una nuova prenotazione.
{
"room_id": "rm_101",
"guest_id": "cus_987",
"check_in": "2024-08-01",
"check_out": "2024-08-05"
}