Skip to main content

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​

  1. Apply discounts in price calculations
  2. Show savings to guests
  3. Highlight best deals
  4. 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 PathData TypeTypeDescription
Pull_ListPropertyDiscounts_RQCRoot element
Pull_ListPropertyDiscounts_RQ/AuthenticationC, MAuthentication details
Pull_ListPropertyDiscounts_RQ/Authentication/AccessKeyString(100)MAccess key
Pull_ListPropertyDiscounts_RQ/Authentication/SecretKeyString(100)MSecret key
Pull_ListPropertyDiscounts_RQ/PropertyIDStringMUnique 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 PathData TypeTypeDescription
Pull_ListPropertyDiscounts_RSCRoot element
Pull_ListPropertyDiscounts_RS/StatusString(100)MSee ListStatuses
Pull_ListPropertyDiscounts_RS/Status@IDIntegerMSee ListStatuses
Pull_ListPropertyDiscounts_RS/ResponseIDString(32)MUnique response ID
Pull_ListPropertyDiscounts_RS/DiscountsC, OA collection of long stay discounts
Pull_ListPropertyDiscounts_RS/Discounts@PropertyIDStringC, MUnique property ID
Pull_ListPropertyDiscounts_RS/Discounts/LongStaysC, OLong stay discounts value, percentage of the final price
Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStayIntegerC, ODiscount details
Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@DateFromStringMStart of the date range(YYYY-MM-DD format)
Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@DateToStringMEnd of the date range(YYYY-MM-DD format)
Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@BiggerIntegerMMinimum length of stay in order to get the discount
Pull_ListPropertyDiscounts_RS/Discounts/LongStays/LongStay@SmallerIntegerMMaximum length of stay in order to get the discount
Pull_ListPropertyDiscounts_RS/Discounts/LastMinutesC, OLast-minute discounts
Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinuteIntegerC, OLast-minute discount, percentage of final price
Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DateFromStringMStart of the date range(YYYY-MM-DD format)
Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DateToStringMEnd of the date range(YYYY-MM-DD format)
Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DaysToArrivalFromIntegerMMinimum number of days away from the arrival date when the discount is valid
Pull_ListPropertyDiscounts_RS/Discounts/LastMinutes/LastMinute@DaysToArrivalToIntegerMMaximum number of days away the arrival date when the discount is valid