Skip to main content

OpenAPI client for Cloudbeds PMS API.

Project description

Cloudbeds PMS

Welcome to the documentation for Cloudbeds API Version v2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

Run in Postman use this link to access our Public collection in Postman.

The cloudbeds_pms package is automatically generated by the OpenAPI Generator project:

  • API version: v2
  • Package version: 2.4.0
  • Generator version: 7.11.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.8+

Installation & Usage

This python library package is generated without supporting files like setup.py or requirements files

To be able to use it, you will need these dependencies in your own package that uses this library:

  • urllib3 >= 1.25.3, < 3.0.0
  • python-dateutil >= 2.8.2
  • pydantic >= 2
  • typing-extensions >= 4.7.1

Getting Started

In your own code, to use this library to connect and interact with Cloudbeds PMS, you can run the following:

import cloudbeds_pms
from cloudbeds_pms.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.cloudbeds.com
# See configuration.py for a list of all supported configuration parameters.
configuration = cloudbeds_pms.Configuration(
    host = "https://api.cloudbeds.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with cloudbeds_pms.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cloudbeds_pms.DoorlockKeysApi(api_client)
    key_ids = '1,2' # str | 
    x_property_id = '1,2,3' # str | A numeric, comma-separated string representing the property IDs, sent in the header.

    try:
        # Delete a list of doorlock keys.
        api_response = api_instance.door_lock_key_controller_batch_delete(key_ids, x_property_id)
        print("The response of DoorlockKeysApi->door_lock_key_controller_batch_delete:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DoorlockKeysApi->door_lock_key_controller_batch_delete: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.cloudbeds.com

Class Method HTTP request Description
DoorlockKeysApi door_lock_key_controller_batch_delete DELETE /doorlock/v1/keys Delete a list of doorlock keys.
DoorlockKeysApi door_lock_key_controller_create POST /doorlock/v1/keys Create a new doorlock key.
DoorlockKeysApi door_lock_key_controller_delete DELETE /doorlock/v1/keys/{id} Delete a doorlock key.
DoorlockKeysApi door_lock_key_controller_index GET /doorlock/v1/keys/{propertyId} Get a list of doorlock keys for a specific app client and property.
DoorlockKeysApi door_lock_key_controller_update PATCH /doorlock/v1/keys/{id} Update a doorlock key.
DoorlockSettingsApi door_lock_settings_controller_delete DELETE /doorlock/v1/settings/{propertyId} Delete doorlock settings for property for specific application client.
DoorlockSettingsApi door_lock_settings_controller_single GET /doorlock/v1/settings/{propertyId} Get doorlock settings for property for specific application client.
DoorlockSettingsApi door_lock_settings_controller_upsert PUT /doorlock/v1/settings/{propertyId} Upsert doorlock settings for property for specific application client.
HousekeepingApi call_27abd48cb30106ec3251cf3baf34174c GET /housekeeping/v1/inspections/{propertyId} Housekeeping inspection list
IntegrationEventsApi integration_event_controller_create POST /integration/v1/events Create a new integration event.
IntegrationEventsApi integration_event_controller_index GET /integration/v1/events Get a list of integration events for a specific property.
IntegrationEventsApi integration_event_controller_retry POST /integration/v1/events/{id}/retry Retry an integration event.
IntegrationEventsApi integration_event_controller_update PATCH /integration/v1/events/{id} Update an integration event.
MarketSegmentationGroupsApi group_controller_create POST /market-segmentation/v1/groups Create a new Market Segmentation Group.
MarketSegmentationGroupsApi group_controller_delete DELETE /market-segmentation/v1/groups/{id} Delete a Market Segmentation Group.
MarketSegmentationGroupsApi group_controller_disable POST /market-segmentation/v1/groups/{id}/disable Disable a Market Segmentation Group.
MarketSegmentationGroupsApi group_controller_enable POST /market-segmentation/v1/groups/{id}/enable Enable a Market Segmentation Group.
MarketSegmentationGroupsApi group_controller_index GET /market-segmentation/v1/groups Get a list of Market Segmentation Groups.
MarketSegmentationGroupsApi group_controller_single GET /market-segmentation/v1/groups/{id} Get Market Segmentation Group data.
MarketSegmentationGroupsApi group_controller_update PATCH /market-segmentation/v1/groups/{id} Update a Market Segmentation Group.
MarketSegmentationSegmentsApi segment_controller_create POST /market-segmentation/v1/segments Create a new Market Segmentation Segment.
MarketSegmentationSegmentsApi segment_controller_default POST /market-segmentation/v1/segments/{id}/default Set Market Segmentation Segment as Default.
MarketSegmentationSegmentsApi segment_controller_delete DELETE /market-segmentation/v1/segments/{id} Delete a Market Segmentation Segment.
MarketSegmentationSegmentsApi segment_controller_disable POST /market-segmentation/v1/segments/{id}/disable Disable a Market Segmentation Segment.
MarketSegmentationSegmentsApi segment_controller_enable POST /market-segmentation/v1/segments/{id}/enable Enable a Market Segmentation Segment.
MarketSegmentationSegmentsApi segment_controller_index GET /market-segmentation/v1/segments/{enabled} Get a list of Market Segmentation Segments.
MarketSegmentationSegmentsApi segment_controller_reservations GET /market-segmentation/v1/segments/{id}/reservations/{active} Get a list of reservations linked to a Market Segmentation Segment.
MarketSegmentationSegmentsApi segment_controller_single GET /market-segmentation/v1/segments/{id} Get Market Segmentation Segment data.
MarketSegmentationSegmentsApi segment_controller_update PATCH /market-segmentation/v1/segments/{id} Update a Market Segmentation Segment.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

default

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://api.cloudbeds.com/auth/oauth/authorize
  • Scopes:
  • read:doorLockKey: Read DoorLock keys and settings
  • write:doorLockKey: Write DoorLock keys and settings
  • delete:doorLockKey: Delete DoorLock keys and settings
  • read:housekeeping: Read Housekeeping inspections
  • read:marketSegmentation: Read Market Segmentation groups and segments
  • write:marketSegmentation: Write Market Segmentation groups and segments
  • delete:marketSegmentation: Delete Market Segmentation groups and segments
  • write:importTask: Create new data imports
  • read:importTask: Read data imports
  • hotel:read: Read Hotel information
  • hotel:write: Write Hotel information
  • hotel:delete: Delete Hotel information
  • write:appError: Write AppError information

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudbeds_pms-2.4.0.tar.gz (77.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudbeds_pms-2.4.0-py3-none-any.whl (351.6 kB view details)

Uploaded Python 3

File details

Details for the file cloudbeds_pms-2.4.0.tar.gz.

File metadata

  • Download URL: cloudbeds_pms-2.4.0.tar.gz
  • Upload date:
  • Size: 77.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cloudbeds_pms-2.4.0.tar.gz
Algorithm Hash digest
SHA256 76bd1f9c71d4afc149284e212ba9f3e587795fd78de25b29047829a54d5b3977
MD5 ef5f8545045472200f8a32c1b5ad8acd
BLAKE2b-256 b4d6a28bdb3aa337dc52846792bc7c0cbbc8f2af779ae6710278c41a4e3a1414

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudbeds_pms-2.4.0.tar.gz:

Publisher: publish.yaml on cloudbeds/cloudbeds-api-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cloudbeds_pms-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: cloudbeds_pms-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 351.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cloudbeds_pms-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e56f064623a8a0dd4817dfe3bdbe453925d6d537befadca344491e4c92a805b
MD5 077d61cc12c9b095e48f6ee9f36975db
BLAKE2b-256 144f00b52dacef02cade19f2284142ecd71068f078f07bb8292bdee277f38009

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudbeds_pms-2.4.0-py3-none-any.whl:

Publisher: publish.yaml on cloudbeds/cloudbeds-api-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page