{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"1ed20f1e-909a-4414-bcc0-78cecacdf27e","name":"Casona API v1","description":"## Introduction\n\nThe Casona API provides a secure, RESTful interface for automating your hotel management workflows. By leveraging standard HTTP methods and JSON payloads, you can integrate reservation and guest management into your own applications or scripts: pull upcoming bookings, create reservations, check guests in, book payments or update guest profiles.\n\n**The Casona API is under active development. Endpoints, request/response formats and behaviours may change at short notice. Keep your integration tolerant of additional fields and consult the latest documentation.**\n\n## Key points\n\n- The API only responds to HTTPS. Requests sent via HTTP are redirected (301) to HTTPS.\n- Requests and responses use JSON. Always set `Content-Type: application/json` when sending a JSON body.\n- Authenticate by POSTing your email and password to `/auth`. The response contains the token in `user.token` and your venture ID in `user.venture.id`.\n- Send `Authorization: Bearer {token}` with every request after login.\n- IDs are UUIDs. Hotel data lives under `/ventures/{venture_id}/hotels/{hotel_id}/…`; payment types belong to the venture (`/ventures/{venture_id}/payment_types`).\n- Dates use `YYYY-MM-DD`, timestamps ISO 8601. Amounts are numbers in the hotel's currency.\n- Responses may contain more fields than shown in the examples. Ignore fields you do not need.\n\n## Getting started guide\n\nEnter the login details (email, password) and the hotel ID in the Postman environment. After a successful login the token and the venture ID are stored automatically.\n\nThen categories, rooms, guests and statuses can be added. A reservation needs an existing guest, and the booked rooms (roomings) need the reservation:\n\n1. Create a guest with first name, last name and email address.\n2. Create a reservation with check-in and check-out dates and the `guest_id`.\n3. Create the booked rooms (roomings) for this reservation with the `reservation_id`.\n\n## Authentication\n\nCreate a dedicated Casona user for your integration and give it a role that contains only the rights it needs, assigned to the hotels it may access. Requests outside these rights return `403 Access denied`. Please contact your Casona administrator if you cannot create users.\n\nThe token is valid for 7 days (`user.token_expires` in seconds, `user.token_expiry_date`). When a request returns `401` with `Auth token has expired`, log in again.\n\nUsers with two-factor authentication receive `{\"two_factor_required\": true, \"two_factor_method\": \"totp\", \"user_id\": \"…\"}` instead of a token. Use an API user without two-factor authentication for automated integrations.\n\n## Errors\n\n| Status | Meaning | Example body |\n| --- | --- | --- |\n| 400 | A required parameter is missing, e.g. the `reservation` object | `{\"message\": \"…\", \"errors\": [\"…\"], \"error_code\": \"missing_parameter\", \"parameter\": \"reservation\", \"status\": 400}` |\n| 401 | Token missing, invalid or expired | `{\"errors\": [\"Invalid auth token\"], \"status\": 401}` |\n| 403 | The user's role does not grant this action in this hotel | `{\"nothing\": true, \"message\": \"Access denied\", \"status\": 403}` |\n| 404 | The record does not exist in this hotel | `{\"message\": \"Payment not found\", \"status\": 404}` |\n| 422 | Validation failed | `{\"errors\": {\"guest_id\": [\"…\"]}, \"message\": \"Error: Reservation could not be saved.\", \"status\": 422}` |\n| 429 | Rate limit exceeded | see below |\n\nValidation and error messages are returned in the hotel's language.\n\n## Pagination\n\nPaginated lists return `{\"data\": […], \"meta\": {…}}`. `meta` contains `page`, `prev`, `next`, `last`, `pages`, `count` and `scaffold_url`. Request further pages with the `page` parameter until `next` is `null`.\n\n## Rate and usage limits\n\nEach user may send up to 300 requests per 10 seconds and 6,000 requests per 5 minutes. Additional limits apply per IP address and to login attempts. When a limit is exceeded, the API responds with `429 Too Many Requests`, a `Retry-After` header (seconds) and this body:\n\n```json\n{\n  \"message\": \"Too many API requests. Please retry later.\",\n  \"status\": 429,\n  \"retry_after\": 7,\n  \"error\": {\"code\": \"rate_limited\", \"message\": \"Too many API requests. Please retry later.\", \"retryable\": true, \"request_id\": \"…\"}\n}\n```\n\nWait for `Retry-After` seconds before retrying. Casona reserves the right to throttle, suspend or revoke API access for accounts that consistently cause unreasonable load.\n\nIf you receive any `5XX` error repeatedly, contact support at [support@casona.com](mailto:support@casona.com).\n\n## Example: self check-in\n\n1. Find the booking: `GET /reservations?view=index_arrivals&search={booking number or last name}&date_start={today}&date_end={today}`. Each result contains its `roomings` and the `open_amount`.\n2. Show the open amount: `open_amount` in the search result or in `GET /reservations/{reservation_id}`.\n3. Book the card payment: `POST /payments` with `reservation_id`, `amount` and `payment_type_id` (from `GET /ventures/{venture_id}/payment_types`).\n4. Check in: `PATCH /roomings/{rooming_id}` with `guest_checked_in` for each rooming of the booking.\n\n### Need some help?\n\nOur German help pages explain important topics: [https://www.casona.com/de/hilfe](https://www.casona.com/de/hilfe)\n\nAny other questions will be answered by our support team: [support@casona.com](mailto:support@casona.com). Please name the hotel concerned.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"15123537","team":9308439,"collectionId":"1ed20f1e-909a-4414-bcc0-78cecacdf27e","publishedId":"2sBYHbqbTi","public":true,"publicUrl":"https://developer.casona.com","privateUrl":"https://go.postman.co/documentation/15123537-1ed20f1e-909a-4414-bcc0-78cecacdf27e","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"D92E73"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"D92E73"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"D92E73"}}]}},"version":"8.12.12","publishDate":"2026-11-16T17:01:23.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[{"name":"Casona API v1 Example","id":"e939fa9a-7406-49f7-9839-d4bb945760d5","owner":"15123537","values":[{"key":"base_url","value":"https://api.casona.com/api/v1","enabled":true,"type":"default"},{"key":"user_email","value":"hotel-user@example.com","enabled":true,"type":"default"},{"key":"user_password","value":"password","enabled":true,"type":"secret"},{"key":"hotel_id","value":"Ab1Cd2Ef","enabled":true,"type":"default"},{"key":"bearer_token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","enabled":true,"type":"any"},{"key":"venture_id","value":"2e85bd7e-3565-43cc-a79b-d996361e6f19","enabled":true,"type":"default"},{"key":"guest_id","value":"72586d7c-70ae-436d-b1fa-baab75e6a511","enabled":true,"type":"default"},{"key":"reservation_id","value":"393d3f8a-2fde-42f9-acc3-ec6e3f089ea9","enabled":true,"type":"default"},{"key":"status_id","value":"dadacefb-2060-4297-95f7-84ce16d1addc","enabled":true,"type":"default"},{"key":"category_id","value":"f603b5b2-766d-47f5-8bc1-58e17c87c230","enabled":true,"type":"any"},{"key":"room_id","value":"1b88e11f-bbc0-4fb3-afa3-9b1dcde7757a","enabled":true,"type":"default"},{"key":"rooming_id","value":"555b0c77-43a7-450f-b7c4-ff29c4a9d362","enabled":true,"type":"default"},{"key":"payment_type_id","value":"","enabled":true,"type":"any"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/6bdef107800876363a7f2912304c43eac772acacddcbd19c08afb5628c4f4a64","favicon":"https://casona.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Casona API v1 Example","value":"15123537-e939fa9a-7406-49f7-9839-d4bb945760d5"}],"canonicalUrl":"https://developer.casona.com/view/metadata/2sBYHbqbTi"}