Auto Actions: Difference between revisions

Jump to navigation Jump to search
Line 767: Line 767:
You can create a new invoice item that contains the price of the channel's commission as a negative value to subtract it from the room price. You use the API JSON function '''setBooking''' for this. First you need to configure access to the API:
You can create a new invoice item that contains the price of the channel's commission as a negative value to subtract it from the room price. You use the API JSON function '''setBooking''' for this. First you need to configure access to the API:


You need two keys to use our API JSON functions - one for the API itself and one for the property. The keys have to consist of 16 characters of your choosing.<br>
You need two keys to use our API JSON functions - one for the API itself and one for the property. The keys have to consist of 16 characters of your choosing.<br>
'''API key:'''<br>
'''API key:'''
Settings > Account > Account Access > API Key 1:<br>
 
API Key = my_very_secret_api_key
*SETTINGS -> ACCOUNT -> ACCOUNT->ACCESS  "API Key 1":
API Key Access = allow any IP
*API Key = my_very_secret_api_key
IP Whitelist = [leave empty]
*API Key Access = allow any IP
Allow Writes = Yes
*IP Whitelist = [leave empty]
Property Access = Owned by this account only<br>
*Allow Writes = Yes
'''Property key:'''<br>
*Property Access = Owned by this account only
Settings  >  Properties  > Access > propKey = secret_key_for_prop_XXXXXX
*'''Property key:'''
*Settings  >  Properties  > Access > propKey = secret_key_for_prop_XXXXXX


Set the triggers you need, for example:
Set the triggers you need, for example:
Line 785: Line 786:


*URL = <nowiki>https://api.beds24.com/json/setBooking</nowiki>
*URL = <nowiki>https://api.beds24.com/json/setBooking</nowiki>
*Custom Header = [leave empty]
*Custom Header = [leave empty]