Product management
ReferenceProduct management

feeSets query

This mutation is offered as part of the product management capability, which is available to pilot partners only. If you are interested in adopting this capability, contact your Technical Account Manager.

Retrieves fee sets for the property. You can retrieve all fee sets or you can filter the results by fee set ID(s).

Syntax

1query {
2 property(
3 id: String!,
4 idSource: IdSource
5 ) {
6 feeSets(
9 }
10}

Examples

Use the interactive GraphQL explorer in the following sections to run a sample query. A test property ID is passed into the explorer; its test data is returned. The GraphQL explorer will help you get comfortable with the GraphQL:

  • For each query, a test property ID is passed into the explorer; its test data is returned.
  • Click Run Query to execute the query in the explorer on the page. You can modify the query to retrieve the desired fields, and the explorer provides a list of fields when you start typing.
  • Click API Explorer to launch the full explorer in another tab/window, which provides syntax highlighting, schema introspection, real-time error highlighting, and auto-completion, among other things.

Response

Arguments

NameDescription

id

Required.

Expedia ID (EID) or supplier ID (external ID in the partner's system) of the property..

Type: String

idSource

Source system of the ID. EXPEDIA is the default value.

Type: IdSource

Types


Name
Type
Boolean
Boolean

The Boolean scalar type represents true or false.

CurrencyCode
CurrencyCode

Scalar that represents the three-letter currency code defined by the ISO 4217 standard.

Date
Date

Scalar that represents a date string compliant with the RFC 3339 profile of the ISO 8601 standard.

Decimal
Decimal

A type representing a signed decimal number (supporting up to two decimal places), which is serialized as a string.

Fee
Object

Details about a fee.

FieldDescription
ageCategory

Age category to which the fee applies.

Type: String
categoryNot nullable.

Fee category.

Type: String
chargesNot nullable.

Amount, type, and duration of the fee.

Type: Array of non nullable FeeCharge
restrictions

Restrictions applied to the fee (dates or extra guests).

Type: FeeRestrictions
taxable

Whether the fee is taxable.

Type: Boolean
FeeBusinessModel
Enum

Values for the property's business model.

NameDescription
AGENCY
MERCHANT
FeeCharge
Object

Amount, type, and duration of the fee.

FieldDescription
durationNot nullable.

Duration of time to which the fee is applied.

Type: FeeChargeDuration
flatAmount

Amount of the fee if applied as a flat amount.

Type: Money
percentage

Percentage of the rental amount if the fee is applied as a percentage.

Type: Decimal
typeNot nullable.

How the fee is applied (flat amount or percentage).

Type: FeeChargeType
FeeChargeDuration
Enum

Duration of time to which the fee is applied.

NameDescription
NIGHT
STAY
FeeChargeType
Enum

How the fee is applied (flat amount or percentage).

NameDescription
FLAT_AMOUNT
PERCENTAGE
FeeDateRange
Object

Date range when the fee is applied.

FieldDescription
fromNot nullable.

Start date of the date range.

Type: Date
to

End date of the date range.

Type: Date
FeeRestrictions
Object

Restrictions applied to the fee (dates or extra guests).

FieldDescription
dateRange

Date range restriction

Type: FeeDateRange
extraGuestRange

Number of guests (minimum and maximum) that are restricted.

Type: IntRange
FeeSet
Object

Details and fees that make up the fee set.

FieldDescription
businessModelNot nullable.

Business model used by the property.

Type: FeeBusinessModel
feesNot nullable.

One or more fees included in the fee set.

Type: Array of non nullable Fee
idNot nullable.

Fee set ID.

Type: ID
nameNot nullable.

Fee set name.

Type: String
variesByLengthOfStay

Whether the fee changes based on length of stay.

Type: Boolean
ID
ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

IdSource
Enum

Source of a given ID.

NameDescription
EXPEDIA

Expedia is the source of the ID.

SUPPLIER

Connectivity provider or lodging partner is the source of the ID. This value is not supported for use in promotions.

VRBO

Unsupported.

Int
Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

IntRange
Object

Range of integers.

FieldDescription
maxNot nullable.

Maximum integer value.

Type: Int
minNot nullable.

Minimum integer value.

Type: Int
Money
Object

Monetary amount value and its currency code.

FieldDescription
amountNot nullable.

Monetary amount value. The scale of the amount varies according to the currency or any rate conversion that may have been applied.

Type: Decimal
currencyCodeNot nullable.

Currency code.

Type: CurrencyCode
Property
Object

Representation of a physical property, including its units, reservations, and promotions.

FieldDescription
feeSets

Fee sets defined for the property. You can filter the results by one or more fee set IDs using the filters argument (PropertyFeeSetsFiltersInput input type).

Type: PropertyFeeSetsResponse
PropertyFeeSetsFiltersInput
InputObject

Input parameter for the feeSets query.

FieldDescription
feeSetIdsNot nullable.

One or more fee set IDs to filter results on.

Type: Array of non nullable ID
PropertyFeeSetsResponse
Object

Details about the fee sets defined for the property.

FieldDescription
elementsNot nullable.

Details about the fee set(s).

Type: Array of non nullable FeeSet
totalCountNot nullable.

Number of fee sets defined for the property.

Type: Int
String
String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.