createFeeSet mutation
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.
Creates a fee set that can be associated with rate plans. Fees defined at the rate-plan level are included in the price that travelers see when booking and are either paid in advance for Expedia Collect bookings or upon arrival for Hotel Collect bookings. These fees include
- Extra person fees (
category:GUEST_FEE_PER_GUEST
) - Service fees per person (
category:SERVICE_FEE_PER_GUEST
) - Service fees per stay (
category:SERVICE_FEE_PER_ACCOMMODATION
)
This mutation does not create mandatory and optional fees at a property level; those are created using the Property API. Property-level fees are not included in the price that travelers pay when booking and are collected upon arrival or during a traveler’s stay. These include
- Mandatory fees, such as resort or cleaning fees
- Optional fees that only apply to guests who make use of specific facilities and services, such as parking or spa fees
And you cannot define optional fees that are defined at the unit level, such as surcharges for extra beds or wifi fees. Use the createUnit
mutation or updateUnit
mutation to define these fees.
Syntax
1mutation {3}
Examples
- Request
- Response
1mutation {2 createFeeSet(3 input: {4 clientMutationId: "Fees_UAT_New_Schema_ALL_Example"5 name: "Fees_UAT_New_Schema_ALL-Example"6 propertyId: "12293874"7 businessModel: MERCHANT8 variesByLengthOfStay: false9 fees: [10 {11 category: "GUEST_FEE_PER_GUEST"12 charges: [{ duration: NIGHT, type: PERCENTAGE, percentage: "5" }]13 ageCategory: "ADULT"14 restrictions: {15 extraGuestRange: { min: 1, max: 1 }16 dateRange: { from: "2025-01-01", to: "2079-06-06" }17 }18 taxable: false19 }20 {21 category: "GUEST_FEE_PER_GUEST"22 charges: [{ duration: NIGHT, type: FLAT_AMOUNT, flatAmount: "50" }]23 ageCategory: "CHILD_A"24 restrictions: {25 extraGuestRange: { min: 1, max: 1 }26 dateRange: { from: "2025-01-01", to: "2079-06-06" }27 }28 taxable: false29 }30 {31 category: "SERVICE_FEE_PER_GUEST"32 charges: [33 {34 duration: NIGHT35 type: FLAT_AMOUNT36 flatAmount: "10"38 }39 {40 duration: STAY41 type: FLAT_AMOUNT42 flatAmount: "20"44 }45 ]46 ageCategory: "ADULT"47 restrictions: {48 extraGuestRange: { min: 1, max: 1 }49 dateRange: { from: "2025-08-01", to: "2079-06-06" }50 }51 taxable: false52 }53 {54 category: "SERVICE_FEE_PER_GUEST"55 charges: [56 {57 duration: NIGHT58 type: FLAT_AMOUNT59 flatAmount: "10"61 }62 {63 duration: STAY64 type: FLAT_AMOUNT65 flatAmount: "20"67 }68 ]69 ageCategory: "CHILD_A"70 restrictions: {71 extraGuestRange: { min: 1, max: 1 }72 dateRange: { from: "2025-08-01", to: "2079-06-06" }73 }74 taxable: false75 }76 {77 category: "SERVICE_FEE_PER_ACCOMMODATION"78 charges: [79 { duration: NIGHT, type: FLAT_AMOUNT, flatAmount: "10" }80 { duration: STAY, type: FLAT_AMOUNT, flatAmount: "5" }81 { duration: STAY, type: PERCENTAGE, percentage: "5" }82 ]83 taxable: false84 }85 ]86 }87 ) {88 clientMutationId89 feeSet {90 id91 name92 businessModel93 variesByLengthOfStay94 fees {95 category96 charges {97 duration98 type99 percentage100 flatAmount101 }102 ageCategory103 restrictions {104 dateRange {105 from106 to107 }108 extraGuestRange {109 min110 max111 }112 }113 taxable114 }115 }116 }117}
Arguments
Name | Description |
---|---|
| Required. Type: CreateFeeSetInput |
Types
Name | Type | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Boolean | Boolean | |||||||||||||||
The | ||||||||||||||||
CreateFeeSetInput | InputObject | |||||||||||||||
Input parameters for creating a fee set.
| ||||||||||||||||
CreateFeeSetPayload | Object | |||||||||||||||
Fee set defined for the property.
| ||||||||||||||||
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 represending a signed decimal number (supporting up to two decimal places), which is serialized as a string. | ||||||||||||||||
Fee | Object | |||||||||||||||
Details about a fee.
| ||||||||||||||||
FeeBusinessModel | Enum | |||||||||||||||
Values for the property's business model.
| ||||||||||||||||
FeeCharge | Object | |||||||||||||||
Amount, type, and duration of the fee.
| ||||||||||||||||
FeeChargeDuration | Enum | |||||||||||||||
Duration of time to which the fee is applied.
| ||||||||||||||||
FeeChargeInput | InputObject | |||||||||||||||
Amount, type, and duration of the fee. Note that when a fee's category is SERVICE_FEE_PER_ACCOMMODATION, all charges must be specified, even if the value is 0.
| ||||||||||||||||
FeeChargeType | Enum | |||||||||||||||
How the fee is applied (flat amount or percentage).
| ||||||||||||||||
FeeDateRange | Object | |||||||||||||||
FeeDateRangeInput | InputObject | |||||||||||||||
FeeInput | InputObject | |||||||||||||||
Details about a fee.
| ||||||||||||||||
FeeRestrictions | Object | |||||||||||||||
Restrictions applied to the fee (dates or extra guests).
| ||||||||||||||||
FeeRestrictionsInput | InputObject | |||||||||||||||
Restrictions applied to the fee (dates or extra guests).
| ||||||||||||||||
FeeSet | Object | |||||||||||||||
Details and fees that make up the fee set.
| ||||||||||||||||
ID | ID | |||||||||||||||
The | ||||||||||||||||
Int | Int | |||||||||||||||
The | ||||||||||||||||
IntRange | Object | |||||||||||||||
IntRangeInput | InputObject | |||||||||||||||
Money | Object | |||||||||||||||
Monetary amount value and its currency code.
| ||||||||||||||||
String | String | |||||||||||||||
The |