Connector API
  • Mews Connector API
  • Getting started
  • Usage guidelines
    • Authentication
    • Requests
    • Responses
    • Environments
    • Serialization
    • Pagination
    • Best practices
  • Concepts
    • Multi-property
    • Restrictions
    • Taxation
    • Time units
  • Use cases
    • 'How to' use cases
    • Accounting
    • Customer loyalty
    • Customer management
    • Customer messaging
    • Data export
    • Device integration
    • Events
    • Guest technology
    • Housekeeping
    • Kiosk
    • Mews Payment Terminals
    • Payment automation
    • Point of sale
    • Reputation management
    • Revenue management
    • Upsell
  • API Operations
    • Common objects
    • Accounting categories
    • Accounting items
    • Accounts
    • Account notes
    • Addresses
    • Age categories
    • Availability adjustments
    • Availability blocks
    • Bills
    • Business segments
    • Cancellation policies
    • Cashiers
    • Cashier transactions
    • Commands
    • Companies
    • Companionships
    • Company contracts
    • Configuration
    • Counters
    • Countries
    • Credit cards
    • Currencies
    • Customers
    • Departments
    • Devices
    • Enterprises
    • Exchange rates
    • Exports
    • Identity documents
    • Images
    • Languages
    • Loyalty memberships
    • Loyalty programs
    • Loyalty tiers
    • Messages
    • Message threads
    • Order items
    • Orders
    • Outlet bills
    • Outlet items
    • Outlets
    • Payments
    • Payment requests
    • Preauthorizations
    • Product categories
    • Product service orders
    • Products
    • Rates
    • Rate groups
    • Reservations
    • Reservation groups
    • Resource access tokens
    • Resource blocks
    • Resources
    • Resource categories
    • Resource features
    • Restrictions
    • Routing rules
    • Rules
    • Service order notes
    • Service overbooking limits
    • Services
    • Source assignments
    • Sources
    • Tasks
    • Tax environments
    • Taxations
    • Vouchers
    • Voucher codes
  • API Events
    • Ways to communicate
    • General Webhooks
    • Integration Webhooks
    • Webhooks FAQ
    • WebSockets
  • Your integration journey
    • Certification
  • Deprecations
    • Migration guide: Get all reservations
  • Changelog
    • Changelog 2024
    • Changelog 2023
    • Changelog 2022
    • Changelog 2021
    • Changelog 2020
    • Changelog 2019
    • Changelog 2018
    • Changelog 2017
    • Changelog 2016
Powered by GitBook
On this page
  • Get all cancellation policies
  • Request
  • Response
  • Get cancellation policies by reservations
  • Request
  • Response
  • Get cancellation policies by rates
  • Request
  • Response

Was this helpful?

  1. API Operations

Cancellation policies

PreviousBusiness segmentsNextCashiers

Last updated 4 months ago

Was this helpful?

Get all cancellation policies

Restricted!

This operation is currently in beta-test and as such it is subject to change. Returns all cancellation policies, filtered by services, rate groups and other filters. Note this operation uses and supports .

Request

[PlatformAddress]/api/connector/v1/cancellationPolicies/getAll

{
  "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
  "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
  "Client": "Sample Client 1.0.0",
  "EnterpriseIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "4d0201db-36f5-428b-8d11-4f0a65e960cc"
  ],
  "ServiceIds": [
    "e654f217-d1b5-46be-a820-e93ba568dfac"
  ],
  "CancellationPolicyIds": [
    "fe795f96-0b64-445b-89ed-c032563f2bac"
  ],
  "RateGroupIds": [
    "deb9444e-6897-4f2a-86b4-aff100c2896e"
  ],
  "UpdatedUtc": {
    "StartUtc": "2023-04-27T11:48:57Z",
    "EndUtc": "2023-04-27T11:48:57Z"
  },
  "Limitation": {
    "Count": 10
  }
}
Property
Type
Contract
Description

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

EnterpriseIds

array of string

optional, max 1000 items

Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.

ServiceIds

array of string

required, max 100 items

CancellationPolicyIds

array of string

optional, max 1000 items

RateGroupIds

array of string

optional, max 1000 items

UpdatedUtc

optional, max length 3 months

Interval in which the Cancellation Policy was updated. Required if no other filter is provided.

ActivityStates

optional

Whether to return only active, only deleted, or both types of record. If not specified, only active records will be returned.

Limitation

required

Limitation on the quantity of data returned and optional Cursor for the starting point of data.

Response

{
  "CancellationPolicies": [
    {
      "Id": "769fc613-838f-41a7-ac2a-aff100c3189f",
      "RateGroupId": "deb9444e-6897-4f2a-86b4-aff100c2896e",
      "CreatedUtc": "2023-04-27T11:48:57Z",
      "UpdatedUtc": "2023-04-27T11:48:57Z",
      "Applicability": "Creation",
      "FeeExtent": [
        "TimeUnits",
        "Products"
      ],
      "ApplicabilityOffset": "0M0D0:0:0.0",
      "FeeMaximumTimeUnits": 0,
      "AbsoluteFee": {
        "Currency": "EUR",
        "Value": 15
      },
      "RelativeFee": 0
    }
  ],
  "Cursor": "769fc613-838f-41a7-ac2a-aff100c3189f"
}
Property
Type
Contract
Description

CancellationPolicies

required, max 1000 items

The filtered cancellation policies.

Cursor

string

optional

Cancellation Policy

Property
Type
Contract
Description

Id

string

required

Unique identifier of the cancellation policy.

RateGroupId

string

required

Unique identifier of the rate group the cancellation policy belongs to.

CreatedUtc

string

required

Date and time of the cancellation policy creation in UTC timezone in ISO 8601 format.

UpdatedUtc

string

required

Date and time of the cancellation policy update in UTC timezone in ISO 8601 format.

Applicability

required

Applicability mode of the cancellation policy.

FeeExtent

required

Extent for the cancellation fee, i.e. what should be in scope for the automatic payment.

ApplicabilityOffset

string

required

Offset for order start (assuming Applicability is set to Start) from which the fee is applied.

FeeMaximumTimeUnits

integer

optional

Maximum number of time units the cancellation fee is applicable to.

AbsoluteFee

required

Absolute value of the fee.

RelativeFee

number

required

Relative value of the fee, as a percentage of the reservation price.

IsActive

boolean

required

Whether the cancellation policy is still active.

Cancellation Policy Applicability

  • Creation

  • Start

  • StartDate

Cancellation Fee Extent

  • TimeUnits

  • Products

Get cancellation policies by reservations

Restricted!

This operation is currently in beta-test and as such it is subject to change.

Request

[PlatformAddress]/api/connector/v1/cancellationPolicies/getByReservations

{
  "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
  "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
  "Client": "Sample Client 1.0.0",
  "ReservationIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "4d0201db-36f5-428b-8d11-4f0a65e960cc"
  ]
}
Property
Type
Contract
Description

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

ReservationIds

array of string

required, max 100 items

Unique identifiers of the Reservation.

Response

{
  "CancellationPolicies": [
    {
      "ReservationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "Policies": [
        {
          "Applicability": "Start",
          "FeeExtents": [
            "TimeUnits",
            "Products"
          ],
          "ApplicabilityOffset": "P10DT20H30M",
          "FeeMaximumTimeUnits": 1,
          "AbsoluteFee": {
            "Currency": "EUR",
            "Value": 20
          },
          "RelativeFee": 0.1
        }
      ]
    },
    {
      "ReservationId": "4d0201db-36f5-428b-8d11-4f0a65e960cc",
      "Policies": [
        {
          "Applicability": "Start",
          "FeeExtents": [
            "TimeUnits",
            "Products"
          ],
          "ApplicabilityOffset": "P5DT10H30M",
          "FeeMaximumTimeUnits": 2,
          "AbsoluteFee": {
            "Currency": "EUR",
            "Value": 15
          },
          "RelativeFee": 0.4
        },
        {
          "Applicability": "Start",
          "FeeExtents": [
            "TimeUnits",
            "Products"
          ],
          "ApplicabilityOffset": "P10DT10H30M",
          "FeeMaximumTimeUnits": 2,
          "AbsoluteFee": {
            "Currency": "EUR",
            "Value": 15
          },
          "RelativeFee": 0.2
        }
      ]
    }
  ]
}
Property
Type
Contract
Description

CancellationPolicies

required, max 1300 items

List of cancellation policies data grouped by reservation.

Cancellation policy data grouped by reservation

Property
Type
Contract
Description

ReservationId

string

required

Unique identifier of the reservation.

Policies

required

Collection of cancellation policy data.

Cancellation policy data

Property
Type
Contract
Description

Applicability

required

Applicability mode of the cancellation policy.

FeeExtents

required

Extent for the cancellation fee, i.e. what should be in scope for the automatic payment.

ApplicabilityOffset

string

required

Offset for order start (assuming Applicability is set to Start) from which the fee is applied in ISO 8601 duration format.

FeeMaximumTimeUnits

integer

optional

Maximum number of time units the cancellation fee is applicable to.

AbsoluteFee

required

Absolute value of the fee.

RelativeFee

number

required

Relative value of the fee, as a percentage of the reservation price.

Cancellation Policy Applicability

  • Creation

  • Start

  • StartDate

Cancellation Fee Extent

  • Nothing

  • TimeUnits

  • Products

  • Everything

Get cancellation policies by rates

Restricted!

This operation is currently in beta-test and as such it is subject to change.

Request

[PlatformAddress]/api/connector/v1/cancellationPolicies/getByRates

{
  "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
  "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
  "Client": "Sample Client 1.0.0",
  "RateIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "4d0201db-36f5-428b-8d11-4f0a65e960cc"
  ]
}
Property
Type
Contract
Description

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

RateIds

array of string

required, max 100 items

Unique identifiers of the Rate.

ReservationStartUtc

string

required

Start of the reservation interval in UTC timezone in ISO 8601 format.

ReservationEndUtc

string

required

End of the reservation interval in UTC timezone in ISO 8601 format.

Response

{
  "CancellationPolicies": [
    {
      "RateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "Policies": [
        {
          "Applicability": "Start",
          "FeeExtents": [
            "TimeUnits",
            "Products"
          ],
          "ApplicabilityOffset": "P10DT20H30M",
          "FeeMaximumTimeUnits": 1,
          "AbsoluteFee": {
            "Currency": "EUR",
            "Value": 20
          },
          "RelativeFee": 0.1
        }
      ]
    },
    {
      "RateId": "4d0201db-36f5-428b-8d11-4f0a65e960cc",
      "Policies": [
        {
          "Applicability": "Start",
          "FeeExtents": [
            "TimeUnits",
            "Products"
          ],
          "ApplicabilityOffset": "P5DT10H30M",
          "FeeMaximumTimeUnits": 2,
          "AbsoluteFee": {
            "Currency": "EUR",
            "Value": 15
          },
          "RelativeFee": 0.4
        },
        {
          "Applicability": "Start",
          "FeeExtents": [
            "TimeUnits",
            "Products"
          ],
          "ApplicabilityOffset": "P10DT10H30M",
          "FeeMaximumTimeUnits": 2,
          "AbsoluteFee": {
            "Currency": "EUR",
            "Value": 15
          },
          "RelativeFee": 0.2
        }
      ]
    }
  ]
}
Property
Type
Contract
Description

CancellationPolicies

required, max 1300 items

List of cancellation policies data grouped by rate.

Cancellation policy data grouped by rate

Property
Type
Contract
Description

RateId

string

required

Unique identifier of the Rate.

Policies

required

Collection of cancellation policy data.

Unique identifiers of the .

Unique identifiers of the . Required if no other filter is provided.

Unique identifiers of the . Required if no other filter is provided.

array of

array of

Unique identifier of the last and hence oldest cancellation policy returned. This can be used in in a subsequent request to fetch the next batch of older cancellation policies.

array of

Gets cancellation policies for enterprise grouped by reservation for granular cancellation policies flow. This operation supports .

array of

array of

array of

Gets cancellation policies for enterprise grouped by rate for granular cancellation policies flow. This operation supports .

array of

array of

Pagination
Portfolio Access Tokens
Portfolio Access Tokens
Portfolio Access Tokens
Cancellation Policy
Cancellation Policy
Cancellation Policy Applicability
Cancellation Fee Extent
Cancellation policy data grouped by reservation
Cancellation policy data
Cancellation Policy Applicability
Cancellation Fee Extent
Cancellation policy data grouped by rate
Cancellation policy data
Limitation
Limitation
Time interval
Activity state
Currency value (ver 2023-02-02)
Currency value (ver 2023-02-02)
Rate group
Service