Changes

Jump to navigation Jump to search

Auto Actions

1,236 bytes added, 07:50, 8 March 2020
"bookId": "[BOOKID]",
"message": "[MESSAGE] - Append this message"
}
 
 
===Use API/Webhook to write the value of the 'commission' field to a new invoice item===
 
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 need two keys to use our API - 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>
Settings > Account > Account Access > API Key 1:<br>
API Key = my_very_secret_api_key
API Key Access = allow any IP
IP Whitelist = [leave empty]
Allow Writes = Yes
Property Access = Owned by this account only<br>
'''Property key:'''<br>
Settings > Properties > Access > propKey = secret_key_for_prop_XXXXXX
 
Set the triggers you need, for example:
 
Booking Source = Booking.com
 
Set the webhook like this:
 
URL = <nowiki>https://api.beds24.com/json/setBooking</nowiki>
 
Custom Header = [leave empty]
 
Body Data =
{
"authentication":
{
"apiKey": "my_very_secret_api_key",
"propKey": "secret_key_for_prop_XXXXXX"
},
"bookId": "[BOOKID]",
"invoice":
[
{
"description": "Booking.com Commission",
"status": "",
"qty": "1",
"price": "-[COMMISSIONNUM]",
"vatRate": "7.00", "type": "0",
"invoiceeId": ""
}
]
}
770

edits

Navigation menu