replaceFeeSet 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.
Updates a fee set.
Note: When updating a fee set, all parameters (full payload) must be specified; this mutation is a full overlay.
Syntax
1mutation {3}
Examples
- Request
- Response
1mutation {2 replaceFeeSet(3 input: {4 clientMutationId: "sfg5jd-6dj-d12-po"5 id: "450015502"6 name: "fee-set523"7 propertyId: "12293874"8 businessModel: MERCHANT9 variesByLengthOfStay: false10 fees: [11 {12 category: "GUEST_FEE_PER_GUEST"13 charges: [{ duration: NIGHT, type: PERCENTAGE, percentage: "10" }]14 ageCategory: "ADULT"15 restrictions: {16 extraGuestRange: { min: 1, max: 1 }17 dateRange: { from: "2025-01-01", to: "2079-06-06" }18 }19 taxable: false20 }21 {22 category: "GUEST_FEE_PER_GUEST"23 charges: [{ duration: NIGHT, type: FLAT_AMOUNT, flatAmount: "25" }]24 ageCategory: "CHILD_A"25 restrictions: {26 extraGuestRange: { min: 1, max: 1 }27 dateRange: { from: "2025-01-01", to: "2079-06-06" }28 }29 taxable: false30 }31 {32 category: "SERVICE_FEE_PER_GUEST"33 charges: [34 {35 duration: NIGHT36 type: FLAT_AMOUNT37 flatAmount: "0"39 }40 {41 duration: STAY42 type: FLAT_AMOUNT43 flatAmount: "20"46 }47 ]48 ageCategory: "ADULT"49 restrictions: {50 extraGuestRange: { min: 1, max: 1 }51 dateRange: { from: "2025-08-01", to: "2079-06-06" }52 }53 taxable: false54 }55 {56 category: "SERVICE_FEE_PER_GUEST"57 charges: [58 {59 duration: NIGHT60 type: FLAT_AMOUNT63 }64 {65 duration: STAY66 type: FLAT_AMOUNT67 flatAmount: "0"69 }70 ]71 ageCategory: "CHILD_A"72 restrictions: {73 extraGuestRange: { min: 1, max: 1 }74 dateRange: { from: "2025-08-01", to: "2079-06-06" }75 }76 taxable: false77 }78 {79 category: "SERVICE_FEE_PER_ACCOMMODATION"80 charges: [81 { duration: NIGHT, type: FLAT_AMOUNT, flatAmount: "10" }82 { duration: STAY, type: FLAT_AMOUNT, flatAmount: "0" }83 { duration: STAY, type: PERCENTAGE, percentage: "5" }84 ]85 taxable: false86 }87 ]88 }89 ) {90 clientMutationId91 feeSet {92 id93 name94 businessModel95 variesByLengthOfStay96 fees {97 category98 charges {99 duration100 percentage101 flatAmount102 }103 ageCategory104 restrictions {105 dateRange {106 from107 to108 }109 extraGuestRange {110 min111 max112 }113 }114 taxable115 }116 }117 }118}
Arguments
Name | Description |
---|---|
| Required. Type: ReplaceFeeSetInput |
Types
Name | Type | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Boolean | Boolean | |||||||||||||
The | ||||||||||||||
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.
| ||||||||||||||
ReplaceFeeSetInput | InputObject | |||||||||||||
Details to update a fee set.
| ||||||||||||||
ReplaceFeeSetPayload | Object | |||||||||||||
Details about the fee set after it is updated.
| ||||||||||||||
String | String | |||||||||||||
The |