{
    "info": {
        "_postman_id": "ushost-api-v1",
        "name": "UsHost API v1",
        "description": "Public UsHost API.\n\nBefore sending requests, set the two collection variables: `base_url` (the installation address) and `token` (issued under Integrations, UsHost API card).\n\nEvery response uses the {success, data, message, errors} envelope.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{token}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "base_url",
            "value": "http://localhost:8000/api/v1",
            "type": "string",
            "description": "Base URL of your installation, ending in /api/v1."
        },
        {
            "key": "token",
            "value": "",
            "type": "string",
            "description": "Token issued under Integrations, UsHost API card. It is displayed only once, at issue time."
        }
    ],
    "item": [
        {
            "name": "Credential",
            "item": [
                {
                    "name": "Property data and token permissions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/me",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "me"
                            ]
                        },
                        "description": "Returns the property to which the credential belongs and the token scopes, without accessing operational data. It is recommended as the first call, to validate the token. The `timezone` field indicates the property time zone: API dates are in UTC and must be converted to this time zone to determine the operating day.\n\nNo specific scope required."
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/me",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "me"
                                    ]
                                },
                                "description": "Returns the property to which the credential belongs and the token scopes, without accessing operational data. It is recommended as the first call, to validate the token. The `timezone` field indicates the property time zone: API dates are in UTC and must be converted to this time zone to determine the operating day.\n\nNo specific scope required."
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"company\": {\n            \"id\": 1,\n            \"name\": \"Hotel Aurora\",\n            \"currency\": \"BRL\",\n            \"timezone\": \"America/Sao_Paulo\",\n            \"language\": \"pt\"\n        },\n        \"token\": {\n            \"name\": \"ERP do hotel\",\n            \"prefix\": \"ush_a1b2c3d4\",\n            \"scopes\": [\n                \"reservations:view\",\n                \"guests:view\"\n            ],\n            \"expires_at\": null\n        }\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Reservations",
            "item": [
                {
                    "name": "List reservations",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/reservations",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "reservations"
                            ],
                            "query": [
                                {
                                    "key": "status",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Reservation status. The parameter may be repeated to filter by more than one status."
                                },
                                {
                                    "key": "code",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Reservation code, as shown in the panel."
                                },
                                {
                                    "key": "external_id",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Reservation identifier at the source OTA."
                                },
                                {
                                    "key": "updated_since",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Returns the records changed since this instant (ISO-8601)."
                                },
                                {
                                    "key": "check_in_from",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Check-in on or after this date."
                                },
                                {
                                    "key": "check_in_to",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Check-in on or before this date."
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Requested page. Starts at 1."
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Records per page, up to 100."
                                }
                            ]
                        },
                        "description": "Returns the property reservations, newest first. For incremental synchronization, use `updated_since`.\n\nScope: `reservations:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/reservations",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "reservations"
                                    ],
                                    "query": [
                                        {
                                            "key": "status",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Reservation status. The parameter may be repeated to filter by more than one status."
                                        },
                                        {
                                            "key": "code",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Reservation code, as shown in the panel."
                                        },
                                        {
                                            "key": "external_id",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Reservation identifier at the source OTA."
                                        },
                                        {
                                            "key": "updated_since",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Returns the records changed since this instant (ISO-8601)."
                                        },
                                        {
                                            "key": "check_in_from",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Check-in on or after this date."
                                        },
                                        {
                                            "key": "check_in_to",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Check-in on or before this date."
                                        },
                                        {
                                            "key": "page",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Requested page. Starts at 1."
                                        },
                                        {
                                            "key": "per_page",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Records per page, up to 100."
                                        }
                                    ]
                                },
                                "description": "Returns the property reservations, newest first. For incremental synchronization, use `updated_since`.\n\nScope: `reservations:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 4821,\n            \"code\": \"RSV-2026-0481\",\n            \"status\": \"confirmed\",\n            \"channel\": \"direct\",\n            \"is_day_use\": false,\n            \"currency\": \"BRL\",\n            \"total_amount\": \"1360.00\",\n            \"deposit_amount\": \"340.00\",\n            \"discount_amount\": \"0.00\",\n            \"rate_plan_id\": 7,\n            \"notes\": \"Chegada prevista para as 22h.\",\n            \"external_id\": null,\n            \"guest\": {\n                \"id\": 912,\n                \"name\": \"Marina Duarte\",\n                \"email\": \"marina@example.com\",\n                \"phone\": \"+5511988887777\"\n            },\n            \"rooms\": [\n                {\n                    \"room_id\": 33,\n                    \"room_name\": \"204\",\n                    \"check_in_date\": \"2026-10-12\",\n                    \"check_out_date\": \"2026-10-16\",\n                    \"adults\": 2,\n                    \"children\": 1\n                }\n            ],\n            \"confirmed_at\": \"2026-09-06T13:22:04+00:00\",\n            \"checked_in_at\": null,\n            \"checked_out_at\": null,\n            \"cancelled_at\": null,\n            \"created_at\": \"2026-09-06T13:20:51+00:00\",\n            \"updated_at\": \"2026-09-06T13:22:04+00:00\"\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"per_page\": 25,\n        \"total\": 53,\n        \"last_page\": 3\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "Get one reservation",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/reservations/:id",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "reservations",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1",
                                    "description": "Record id."
                                }
                            ]
                        },
                        "description": "Returns one reservation by id. An id that belongs to another property returns `404`, not `403`.\n\nScope: `reservations:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/reservations/:id",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "reservations",
                                        ":id"
                                    ],
                                    "variable": [
                                        {
                                            "key": "id",
                                            "value": "1",
                                            "description": "Record id."
                                        }
                                    ]
                                },
                                "description": "Returns one reservation by id. An id that belongs to another property returns `404`, not `403`.\n\nScope: `reservations:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"id\": 4821,\n        \"code\": \"RSV-2026-0481\",\n        \"status\": \"confirmed\",\n        \"channel\": \"direct\",\n        \"is_day_use\": false,\n        \"currency\": \"BRL\",\n        \"total_amount\": \"1360.00\",\n        \"deposit_amount\": \"340.00\",\n        \"discount_amount\": \"0.00\",\n        \"rate_plan_id\": 7,\n        \"notes\": \"Chegada prevista para as 22h.\",\n        \"external_id\": null,\n        \"guest\": {\n            \"id\": 912,\n            \"name\": \"Marina Duarte\",\n            \"email\": \"marina@example.com\",\n            \"phone\": \"+5511988887777\"\n        },\n        \"rooms\": [\n            {\n                \"room_id\": 33,\n                \"room_name\": \"204\",\n                \"check_in_date\": \"2026-10-12\",\n                \"check_out_date\": \"2026-10-16\",\n                \"adults\": 2,\n                \"children\": 1\n            }\n        ],\n        \"confirmed_at\": \"2026-09-06T13:22:04+00:00\",\n        \"checked_in_at\": null,\n        \"checked_out_at\": null,\n        \"cancelled_at\": null,\n        \"created_at\": \"2026-09-06T13:20:51+00:00\",\n        \"updated_at\": \"2026-09-06T13:22:04+00:00\"\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "Create a reservation",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": true,
                                "description": "Optional. Repeating the call with the same key returns the original response."
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"rate_plan_id\": 0,\n    \"check_in_date\": \"\",\n    \"check_out_date\": \"\",\n    \"adults\": 0,\n    \"children\": 0,\n    \"guest\": {},\n    \"notes\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/reservations",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "reservations"
                            ]
                        },
                        "description": "Creates the reservation with the same validations as the panel: availability, maximum occupancy and minimum nights. The `external_id` field is read-only. Store the returned `code` to locate the reservation later. A property suspended under the subscription plan does not accept new reservations: the response is `422`, with the reason in `errors.company_id`.\n\nScope: `reservations:create`"
                    },
                    "response": [
                        {
                            "name": "Example 201",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Idempotency-Key",
                                        "value": "{{$guid}}",
                                        "disabled": true,
                                        "description": "Optional. Repeating the call with the same key returns the original response."
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n    \"rate_plan_id\": 0,\n    \"check_in_date\": \"\",\n    \"check_out_date\": \"\",\n    \"adults\": 0,\n    \"children\": 0,\n    \"guest\": {},\n    \"notes\": \"\"\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                },
                                "url": {
                                    "raw": "{{base_url}}/reservations",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "reservations"
                                    ]
                                },
                                "description": "Creates the reservation with the same validations as the panel: availability, maximum occupancy and minimum nights. The `external_id` field is read-only. Store the returned `code` to locate the reservation later. A property suspended under the subscription plan does not accept new reservations: the response is `422`, with the reason in `errors.company_id`.\n\nScope: `reservations:create`"
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"id\": 4821,\n        \"code\": \"RSV-2026-0481\",\n        \"status\": \"confirmed\",\n        \"channel\": \"direct\",\n        \"is_day_use\": false,\n        \"currency\": \"BRL\",\n        \"total_amount\": \"1360.00\",\n        \"deposit_amount\": \"340.00\",\n        \"discount_amount\": \"0.00\",\n        \"rate_plan_id\": 7,\n        \"notes\": \"Chegada prevista para as 22h.\",\n        \"external_id\": null,\n        \"guest\": {\n            \"id\": 912,\n            \"name\": \"Marina Duarte\",\n            \"email\": \"marina@example.com\",\n            \"phone\": \"+5511988887777\"\n        },\n        \"rooms\": [\n            {\n                \"room_id\": 33,\n                \"room_name\": \"204\",\n                \"check_in_date\": \"2026-10-12\",\n                \"check_out_date\": \"2026-10-16\",\n                \"adults\": 2,\n                \"children\": 1\n            }\n        ],\n        \"confirmed_at\": \"2026-09-06T13:22:04+00:00\",\n        \"checked_in_at\": null,\n        \"checked_out_at\": null,\n        \"cancelled_at\": null,\n        \"created_at\": \"2026-09-06T13:20:51+00:00\",\n        \"updated_at\": \"2026-09-06T13:22:04+00:00\"\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "Cancel a reservation",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": true,
                                "description": "Optional. Repeating the call with the same key returns the original response."
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"reason\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/reservations/:id/cancel",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "reservations",
                                ":id",
                                "cancel"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1",
                                    "description": "Record id."
                                }
                            ]
                        },
                        "description": "Cancels the reservation. Cancellation through the API **does not issue a refund**: refunds are processed in the panel.\n\nScope: `reservations:edit`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Idempotency-Key",
                                        "value": "{{$guid}}",
                                        "disabled": true,
                                        "description": "Optional. Repeating the call with the same key returns the original response."
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n    \"reason\": \"\"\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                },
                                "url": {
                                    "raw": "{{base_url}}/reservations/:id/cancel",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "reservations",
                                        ":id",
                                        "cancel"
                                    ],
                                    "variable": [
                                        {
                                            "key": "id",
                                            "value": "1",
                                            "description": "Record id."
                                        }
                                    ]
                                },
                                "description": "Cancels the reservation. Cancellation through the API **does not issue a refund**: refunds are processed in the panel.\n\nScope: `reservations:edit`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"id\": 4821,\n        \"code\": \"RSV-2026-0481\",\n        \"status\": \"confirmed\",\n        \"channel\": \"direct\",\n        \"is_day_use\": false,\n        \"currency\": \"BRL\",\n        \"total_amount\": \"1360.00\",\n        \"deposit_amount\": \"340.00\",\n        \"discount_amount\": \"0.00\",\n        \"rate_plan_id\": 7,\n        \"notes\": \"Chegada prevista para as 22h.\",\n        \"external_id\": null,\n        \"guest\": {\n            \"id\": 912,\n            \"name\": \"Marina Duarte\",\n            \"email\": \"marina@example.com\",\n            \"phone\": \"+5511988887777\"\n        },\n        \"rooms\": [\n            {\n                \"room_id\": 33,\n                \"room_name\": \"204\",\n                \"check_in_date\": \"2026-10-12\",\n                \"check_out_date\": \"2026-10-16\",\n                \"adults\": 2,\n                \"children\": 1\n            }\n        ],\n        \"confirmed_at\": \"2026-09-06T13:22:04+00:00\",\n        \"checked_in_at\": null,\n        \"checked_out_at\": null,\n        \"cancelled_at\": null,\n        \"created_at\": \"2026-09-06T13:20:51+00:00\",\n        \"updated_at\": \"2026-09-06T13:22:04+00:00\"\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Guests",
            "item": [
                {
                    "name": "List guests",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/guests",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "guests"
                            ],
                            "query": [
                                {
                                    "key": "search",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Search by name, e-mail or phone."
                                },
                                {
                                    "key": "updated_since",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Returns the records changed since this instant (ISO-8601)."
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Requested page. Starts at 1."
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Records per page, up to 100."
                                }
                            ]
                        },
                        "description": "Returns the property guests. Document and address are not exposed, as they are sensitive personal data.\n\nScope: `guests:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/guests",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "guests"
                                    ],
                                    "query": [
                                        {
                                            "key": "search",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Search by name, e-mail or phone."
                                        },
                                        {
                                            "key": "updated_since",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Returns the records changed since this instant (ISO-8601)."
                                        },
                                        {
                                            "key": "page",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Requested page. Starts at 1."
                                        },
                                        {
                                            "key": "per_page",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Records per page, up to 100."
                                        }
                                    ]
                                },
                                "description": "Returns the property guests. Document and address are not exposed, as they are sensitive personal data.\n\nScope: `guests:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 912,\n            \"name\": \"Marina Duarte\",\n            \"email\": \"marina@example.com\",\n            \"phone\": \"+5511988887777\",\n            \"birth_date\": \"1988-04-17\",\n            \"nationality\": \"BR\",\n            \"preferred_language\": \"pt\",\n            \"person_type\": \"individual\",\n            \"marketing_consent\": true,\n            \"created_at\": \"2026-03-02T18:41:09+00:00\",\n            \"updated_at\": \"2026-09-06T13:20:51+00:00\"\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"per_page\": 25,\n        \"total\": 53,\n        \"last_page\": 3\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "Get one guest",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/guests/:id",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "guests",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1",
                                    "description": "Record id."
                                }
                            ]
                        },
                        "description": "Returns one guest by id.\n\nScope: `guests:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/guests/:id",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "guests",
                                        ":id"
                                    ],
                                    "variable": [
                                        {
                                            "key": "id",
                                            "value": "1",
                                            "description": "Record id."
                                        }
                                    ]
                                },
                                "description": "Returns one guest by id.\n\nScope: `guests:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"id\": 912,\n        \"name\": \"Marina Duarte\",\n        \"email\": \"marina@example.com\",\n        \"phone\": \"+5511988887777\",\n        \"birth_date\": \"1988-04-17\",\n        \"nationality\": \"BR\",\n        \"preferred_language\": \"pt\",\n        \"person_type\": \"individual\",\n        \"marketing_consent\": true,\n        \"created_at\": \"2026-03-02T18:41:09+00:00\",\n        \"updated_at\": \"2026-09-06T13:20:51+00:00\"\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "Create a guest",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": true,
                                "description": "Optional. Repeating the call with the same key returns the original response."
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\",\n    \"birth_date\": \"\",\n    \"nationality\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/guests",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "guests"
                            ]
                        },
                        "description": "Creates the guest in the credential property. An e-mail address that is already registered returns `422`.\n\nScope: `guests:create`"
                    },
                    "response": [
                        {
                            "name": "Example 201",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Idempotency-Key",
                                        "value": "{{$guid}}",
                                        "disabled": true,
                                        "description": "Optional. Repeating the call with the same key returns the original response."
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n    \"name\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\",\n    \"birth_date\": \"\",\n    \"nationality\": \"\"\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                },
                                "url": {
                                    "raw": "{{base_url}}/guests",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "guests"
                                    ]
                                },
                                "description": "Creates the guest in the credential property. An e-mail address that is already registered returns `422`.\n\nScope: `guests:create`"
                            },
                            "status": "Created",
                            "code": 201,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"id\": 912,\n        \"name\": \"Marina Duarte\",\n        \"email\": \"marina@example.com\",\n        \"phone\": \"+5511988887777\",\n        \"birth_date\": \"1988-04-17\",\n        \"nationality\": \"BR\",\n        \"preferred_language\": \"pt\",\n        \"person_type\": \"individual\",\n        \"marketing_consent\": true,\n        \"created_at\": \"2026-03-02T18:41:09+00:00\",\n        \"updated_at\": \"2026-09-06T13:20:51+00:00\"\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "Update a guest",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}",
                                "disabled": true,
                                "description": "Optional. Repeating the call with the same key returns the original response."
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/guests/:id",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "guests",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "1",
                                    "description": "Record id."
                                }
                            ]
                        },
                        "description": "Updates the record. Only the fields sent are changed.\n\nScope: `guests:edit`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "PUT",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Idempotency-Key",
                                        "value": "{{$guid}}",
                                        "disabled": true,
                                        "description": "Optional. Repeating the call with the same key returns the original response."
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n    \"name\": \"\",\n    \"email\": \"\",\n    \"phone\": \"\"\n}",
                                    "options": {
                                        "raw": {
                                            "language": "json"
                                        }
                                    }
                                },
                                "url": {
                                    "raw": "{{base_url}}/guests/:id",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "guests",
                                        ":id"
                                    ],
                                    "variable": [
                                        {
                                            "key": "id",
                                            "value": "1",
                                            "description": "Record id."
                                        }
                                    ]
                                },
                                "description": "Updates the record. Only the fields sent are changed.\n\nScope: `guests:edit`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"id\": 912,\n        \"name\": \"Marina Duarte\",\n        \"email\": \"marina@example.com\",\n        \"phone\": \"+5511988887777\",\n        \"birth_date\": \"1988-04-17\",\n        \"nationality\": \"BR\",\n        \"preferred_language\": \"pt\",\n        \"person_type\": \"individual\",\n        \"marketing_consent\": true,\n        \"created_at\": \"2026-03-02T18:41:09+00:00\",\n        \"updated_at\": \"2026-09-06T13:20:51+00:00\"\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Inventory",
            "item": [
                {
                    "name": "List rooms",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/rooms",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "rooms"
                            ],
                            "query": [
                                {
                                    "key": "room_type_id",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Only rooms of this type."
                                },
                                {
                                    "key": "only_active",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Excludes deactivated rooms."
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Requested page. Starts at 1."
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Records per page, up to 100."
                                }
                            ]
                        },
                        "description": "Returns the property units, each with its status and room type.\n\nScope: `rooms:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/rooms",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "rooms"
                                    ],
                                    "query": [
                                        {
                                            "key": "room_type_id",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Only rooms of this type."
                                        },
                                        {
                                            "key": "only_active",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Excludes deactivated rooms."
                                        },
                                        {
                                            "key": "page",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Requested page. Starts at 1."
                                        },
                                        {
                                            "key": "per_page",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Records per page, up to 100."
                                        }
                                    ]
                                },
                                "description": "Returns the property units, each with its status and room type.\n\nScope: `rooms:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 33,\n            \"name\": \"204\",\n            \"floor\": \"2\",\n            \"status\": \"occupied\",\n            \"is_active\": true,\n            \"room_type\": {\n                \"id\": 3,\n                \"name\": \"Suíte Luxo\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"per_page\": 25,\n        \"total\": 53,\n        \"last_page\": 3\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "Daily availability",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/availability?from=&to=",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "availability"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "",
                                    "disabled": false,
                                    "description": "First day of the range."
                                },
                                {
                                    "key": "to",
                                    "value": "",
                                    "disabled": false,
                                    "description": "Last day of the range."
                                },
                                {
                                    "key": "room_type_id",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Restricts the result to one room type."
                                }
                            ]
                        },
                        "description": "Returns, per day, the total, occupied and available units. The check-out day is not counted as occupied.\n\nScope: `rooms:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/availability?from=&to=",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "availability"
                                    ],
                                    "query": [
                                        {
                                            "key": "from",
                                            "value": "",
                                            "disabled": false,
                                            "description": "First day of the range."
                                        },
                                        {
                                            "key": "to",
                                            "value": "",
                                            "disabled": false,
                                            "description": "Last day of the range."
                                        },
                                        {
                                            "key": "room_type_id",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Restricts the result to one room type."
                                        }
                                    ]
                                },
                                "description": "Returns, per day, the total, occupied and available units. The check-out day is not counted as occupied.\n\nScope: `rooms:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": {\n        \"days\": [\n            {\n                \"date\": \"2026-10-12\",\n                \"total_rooms\": 24,\n                \"occupied\": 19,\n                \"available\": 5\n            },\n            {\n                \"date\": \"2026-10-13\",\n                \"total_rooms\": 24,\n                \"occupied\": 21,\n                \"available\": 3\n            }\n        ]\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "List room types",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/room-types",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "room-types"
                            ]
                        },
                        "description": "Returns the property accommodation types, with occupancy, beds and amenities.\n\nScope: `room_types:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/room-types",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "room-types"
                                    ]
                                },
                                "description": "Returns the property accommodation types, with occupancy, beds and amenities.\n\nScope: `room_types:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 3,\n            \"name\": \"Suíte Luxo\",\n            \"description\": \"Vista para o mar, banheira e varanda.\",\n            \"is_active\": true,\n            \"occupancy\": {\n                \"base\": 2,\n                \"max\": 4,\n                \"max_adults\": 3,\n                \"max_children\": 2\n            },\n            \"beds\": {\n                \"double\": 1,\n                \"single\": 2\n            },\n            \"amenities\": [\n                \"air_conditioning\",\n                \"smart_tv\",\n                \"minibar\"\n            ]\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"per_page\": 25,\n        \"total\": 53,\n        \"last_page\": 3\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                },
                {
                    "name": "List rate plans",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/rate-plans",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "rate-plans"
                            ],
                            "query": [
                                {
                                    "key": "room_type_id",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Only rate plans for this room type."
                                },
                                {
                                    "key": "only_active",
                                    "value": "",
                                    "disabled": true,
                                    "description": "Excludes deactivated rate plans."
                                }
                            ]
                        },
                        "description": "Returns the published rate plans, with base price, meal plan and cancellation policy. The `id` is the `rate_plan_id` required to create a reservation.\n\nScope: `rate_plans:view`"
                    },
                    "response": [
                        {
                            "name": "Example 200",
                            "originalRequest": {
                                "method": "GET",
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "url": {
                                    "raw": "{{base_url}}/rate-plans",
                                    "host": [
                                        "{{base_url}}"
                                    ],
                                    "path": [
                                        "rate-plans"
                                    ],
                                    "query": [
                                        {
                                            "key": "room_type_id",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Only rate plans for this room type."
                                        },
                                        {
                                            "key": "only_active",
                                            "value": "",
                                            "disabled": true,
                                            "description": "Excludes deactivated rate plans."
                                        }
                                    ]
                                },
                                "description": "Returns the published rate plans, with base price, meal plan and cancellation policy. The `id` is the `rate_plan_id` required to create a reservation.\n\nScope: `rate_plans:view`"
                            },
                            "status": "OK",
                            "code": 200,
                            "_postman_previewlanguage": "json",
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 7,\n            \"name\": \"Tarifa Flexível com café\",\n            \"description\": \"Cancelamento gratuito até a véspera.\",\n            \"room_type_id\": 3,\n            \"base_price\": \"340.00\",\n            \"extra_adult_price\": \"80.00\",\n            \"extra_child_price\": \"40.00\",\n            \"min_nights\": 1,\n            \"max_nights\": null,\n            \"meal_plan\": \"breakfast\",\n            \"cancellation_policy\": \"flexible\",\n            \"is_default\": true,\n            \"is_active\": true\n        }\n    ],\n    \"meta\": {\n        \"page\": 1,\n        \"per_page\": 25,\n        \"total\": 53,\n        \"last_page\": 3\n    },\n    \"message\": \"\",\n    \"errors\": []\n}"
                        }
                    ]
                }
            ]
        }
    ]
}
