Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 2.87 KB

File metadata and controls

81 lines (52 loc) · 2.87 KB

cloudbeds_accounting.InternalTransactionCodesApi

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

Method HTTP request Description
get_internal_transaction_codes GET /accounting/v1.0/internal-transaction-codes List internal transaction codes

get_internal_transaction_codes

InternalTransactionCodesListResponse get_internal_transaction_codes()

List internal transaction codes

Retrieve the complete list of Cloudbeds internal transaction codes. These are system-defined codes that categorize each type of transaction (e.g., room rate, tax, fee, payment). Internal codes cannot be modified, but you can map them to your own custom codes using the custom transaction codes endpoints.

Example

  • OAuth Authentication (bearerAuth):
import cloudbeds_accounting
from cloudbeds_accounting.models.internal_transaction_codes_list_response import InternalTransactionCodesListResponse
from cloudbeds_accounting.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.cloudbeds-stage.com
# See configuration.py for a list of all supported configuration parameters.
configuration = cloudbeds_accounting.Configuration(
    host = "https://api.cloudbeds-stage.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_accounting.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cloudbeds_accounting.InternalTransactionCodesApi(api_client)

    try:
        # List internal transaction codes
        api_response = api_instance.get_internal_transaction_codes()
        print("The response of InternalTransactionCodesApi->get_internal_transaction_codes:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InternalTransactionCodesApi->get_internal_transaction_codes: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

InternalTransactionCodesListResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]