Skip to main content

Register or Update Subscriptions - Push_PutLiveNotificationMechanismSubscriptions

LNM notifications identify what changed; they do not include the new property, availability, or price values. After receiving a callback, call the corresponding pull method to retrieve current data.

Keep scheduled synchronization

Webhook delivery is not monitored or logged. Do not base data synchronization on LNM alone; retain scheduled full synchronization.

Use this method to subscribe for Live Notifications.

Replace-all operation

This method replaces your subscriptions with the values in the request. Always send the complete set you want to keep.

In order to unsubscribe, send Push_PutLiveNotificationMechanismSubscriptions_RQ including Authentication element only.

Use Cases​

  • Subscribe to property content, availability, price, and restriction changes
  • Change the callback URL
  • Replace the observed-owner or change-type set
  • Unsubscribe from property notifications

Best Practices​

  • Send the complete desired subscription set because the operation replaces the previous values
  • Use a publicly reachable callback URL and process GET query parameters
  • Deduplicate callbacks by ChangeId
  • Fetch current values with the relevant pull method; notifications do not contain them
  • Keep scheduled full synchronization because webhook delivery is not monitored or logged

Request​

XML request​

<Push_PutLiveNotificationMechanismSubscriptions_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
<ChangeTypes>
<Type>PropertyStaticDetails</Type>
<Type>PropertyMinStay</Type>
<Type>PropertyPrice</Type>
</ChangeTypes>
<ObservedOwners>
<Owner>123456</Owner>
<Owner>987654</Owner>
</ObservedOwners>
<UrlBase>http://mywebsite.com/api/lnm</UrlBase>
</Push_PutLiveNotificationMechanismSubscriptions_RQ>

Request fields​

XML PathData TypeTypeDescription
Push_PutLiveNotificationMechanismSubscriptions_RQCRoot Element
Push_PutLiveNotificationMechanismSubscriptions_RQ/AuthenticationC, MAuthentication details
Push_PutLiveNotificationMechanismSubscriptions_RQ/Authentication/AccessKeyString(100)MAccess key
Push_PutLiveNotificationMechanismSubscriptions_RQ/Authentication/SecretKeyString(100)MSecret key
Push_PutLiveNotificationMechanismSubscriptions_RQ/ChangeTypesC, MList of types of notifications to subscribe for
Push_PutLiveNotificationMechanismSubscriptions_RQ/ChangeTypes/TypeString(50)MNotification type ID
Push_PutLiveNotificationMechanismSubscriptions_RQ/ObservedOwnersC, MList of observed owners to subscribe for
Push_PutLiveNotificationMechanismSubscriptions_RQ/ObservedOwners/OwnerIntegerMObserved owner ID
Push_PutLiveNotificationMechanismSubscriptions_RQ/UrlBaseString(200)MThe URL base to which query string will be added. It is the "http://test.com/something" part in the examples in Pull_ListLiveNotificationMe chanismChangeTypes_RS.

Response​

XML response​

<Push_PutLiveNotificationMechanismSubscriptions_RS>
<Status ID="0">Success</Status>
<ResponseID ID="1">Success</ResponseID>
</Push_PutLiveNotificationMechanismSubscriptions_RS>

Response fields​

XML PathData TypeTypeDescription
Push_PutLiveNotificationMechanismSubscriptions_RSCRoot Element
Push_PutLiveNotificationMechanismSubscriptions_RS/StatusString(100)MSee ListStatuses
Push_PutLiveNotificationMechanismSubscriptions_RS/Status/@IDIntegerMSee ListStatuses
Push_PutLiveNotificationMechanismSubscriptions_RS/ResponseIDString(32)MUnique response ID