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 Path | Data Type | Type | Description |
|---|---|---|---|
| Push_PutLiveNotificationMechanismSubscriptions_RQ | C | Root Element | |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/Authentication | C, M | Authentication details | |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/Authentication/AccessKey | String(100) | M | Access key |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/Authentication/SecretKey | String(100) | M | Secret key |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/ChangeTypes | C, M | List of types of notifications to subscribe for | |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/ChangeTypes/Type | String(50) | M | Notification type ID |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/ObservedOwners | C, M | List of observed owners to subscribe for | |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/ObservedOwners/Owner | Integer | M | Observed owner ID |
| Push_PutLiveNotificationMechanismSubscriptions_RQ/UrlBase | String(200) | M | The 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 Path | Data Type | Type | Description |
|---|---|---|---|
| Push_PutLiveNotificationMechanismSubscriptions_RS | C | Root Element | |
| Push_PutLiveNotificationMechanismSubscriptions_RS/Status | String(100) | M | See ListStatuses |
| Push_PutLiveNotificationMechanismSubscriptions_RS/Status/@ID | Integer | M | See ListStatuses |
| Push_PutLiveNotificationMechanismSubscriptions_RS/ResponseID | String(32) | M | Unique response ID |