Retrieve Cancellation Policy API


Endpoint

POST


Attributes

hotelid alphanumeric (Required)

Specifies the required node hotelid contains the IT provider's hotel id for which the provider wishes to add mapping information.


Sample Request


Response


Success Response - Body Elements


data object

Contains cancellation policy details for the property.


rate_info array

List of cancellation policies configured for the hotel.


Each object contains:

policy_id number

Unique identifier of the cancellation policy.


policy_name string

Name of the cancellation policy.


policy_type string

Type of cancellation policy.

circle-info

Possible values:

  • Fully Refundable

  • Partially Refundable

  • Non Refundable


status string

Indicates whether the policy is active.

circle-info

Possible values:

  • "1" → Active

  • "0" → Inactive


currency_code string

ISO currency code applicable to the cancellation policies (for example, INR).


message string

Message describing the result of the request.


Errors Response - Body Elements

Status string

Indicates the result of the API call, which will be always "Failed" in case of an error response.


Errors array

Array that contains details about any errors that occurred during the API call. Each object in the Errors array contains the following properties:

Code string

Specific error code that helps identify the type of error.

circle-info

For example: "400" indicates a bad request.

ShortText string

A short description of the error.

Last updated

Was this helpful?