Inventory Webhooks: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:


Typical JSON data posted by the web hook request:
Typical JSON data posted by the web hook request:
{"roomId":"123456","propId":"12345","ownerId":"1234","action":"SYNC_ROOM"}
 
<code>{"roomId":"123456","propId":"12345","ownerId":"1234","action":"SYNC_ROOM"}</code>




You can add data in the "Custom Header" field like this:
You can add data in the "Custom Header" field like this:
my_key1:my_value1
<code> my_key1:my_value1</code>
my_key2:my_value2
 
<code>my_key2:my_value2</code>
 


<span style=color:#fe746c;“ >{{#fas:exclamation-triangle}} </span> Please note: You can NOT use [https://wiki.beds24.com/index.php?title=Template_Variables Template variables] here as this webhook operates on a room level. [https://wiki.beds24.com/index.php?title=Template_Variables Template variables] are only available in the context of a booking.
<div class="warning">{{#fas:exclamation-triangle}} You can NOT use [https://wiki.beds24.com/index.php?title=Template_Variables Template variables] here as this webhook operates on a room level. [https://wiki.beds24.com/index.php?title=Template_Variables Template variables] are only available in the context of a booking.</div>