Get Property Discounts - Pull_ListPropertyDiscounts
This method returns length of stay and last-minute discounts settings. You can use this method to display: Early bird discounts, Last minute discounts, Weekly stay discounts, Monthly stay discounts and Seasonal promotions to your guests.
warning
Both DateFrom and DateTo are inclusive.
Use Cases
- Display promotional pricing
- Calculate discounted rates
- Show special offers
- Encourage longer stays
Best Practices
- Apply discounts in price calculations
- Show savings to guests
- Highlight best deals
- Cache for 2-6 hours or until you receive an LNM notification
Request
XML request
<Pull_ListPropertyDiscounts_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
<PropertyID>1</PropertyID>
</Pull_ListPropertyDiscounts_RQ>
Request fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListPropertyDiscounts_RQ | C | Root element | |
| Pull_ListPropertyDiscounts_RQ/Authentication | C, M | Authentication details | |
| Pull_ListPropertyDiscounts_RQ/Authentication/AccessKey | String(100) | M | Access key |
| Pull_ListPropertyDiscounts_RQ/Authentication/SecretKey | String(100) | M | Secret key |
| Pull_ListPropertyDiscounts_RQ/PropertyID | String | M | Unique property ID |
Response
XML response
<Pull_ListPropertyDiscounts_RS>
<Status ID="0">Success</Status>
<ResponseID>0123456789ABCDEF0123456789ABCDEF</ResponseID>
<Discounts PropertyID="1">
<LongStays>
<LongStay DateFrom="2012-03-01" DateTo="2012-06-01" Bigger="2" Smaller="20">
10
</LongStay>
<LongStay DateFrom="2012-06-02" DateTo="2012-09-01" Bigger="2" Smaller="20">
20
</LongStay>
</LongStays>
<LastMinutes>
<LastMinute DateFrom="2012-03-01" DateTo="2012-06-01" DaysToArrivalFrom="2" DaysToArrivalTo="5">
10
</LastMinute>
<LastMinute DateFrom="2012-06-02" DateTo="2012-08-01" DaysToArrivalFrom="0" DaysToArrivalTo="1">
10
</LastMinute>
</LastMinutes>
</Discounts>
</Pull_ListPropertyDiscounts_RS>
Response fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListPropertyDiscounts_RS | C | Root element | |
| Pull_ListPropertyDiscounts_RS/Status | String(100) | M | See ListStatuses |
| Pull_ListPropertyDiscounts_RS/Status@ID | Integer | M | See ListStatuses |
| Pull_ListPropertyDiscounts_RS/ResponseID | String(32) | M | Unique response ID |
| Pull_ListPropertyDiscounts_RS/Discounts | C, O | A collection of long stay discounts | |
| Pull_ListPropertyDiscounts_RS/Discounts@PropertyID | String | C, M | Unique property ID |
| Pull_ListPropertyDiscounts_RS/Discounts/LongStays | C, O | Long stay discounts value, percentage of the final price | |
| Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay | Integer | C, O | Discount details |
| Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@DateFrom | String | M | Start of the date range(YYYY-MM-DD format) |
| Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@DateTo | String | M | End of the date range(YYYY-MM-DD format) |
| Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@Bigger | Integer | M | Minimum length of stay in order to get the discount |
| Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@Smaller | Integer | M | Maximum length of stay in order to get the discount |
| Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes | C, O | Last-minute discounts | |
| Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute | Integer | C, O | Last-minute discount, percentage of final price |
| Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DateFrom | String | M | Start of the date range(YYYY-MM-DD format) |
| Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DateTo | String | M | End of the date range(YYYY-MM-DD format) |
| Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DaysToArrivalFrom | Integer | M | Minimum number of days away from the arrival date when the discount is valid |
| Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DaysToArrivalTo | Integer | M | Maximum number of days away the arrival date when the discount is valid |