Auto Actions: Difference between revisions

Jump to navigation Jump to search
Andrian (talk | contribs)
Andrian (talk | contribs)
Line 681: Line 681:
Set the webhook like this:
Set the webhook like this:


* 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]


Body Data =
*Body Data =
{
:{
"authentication":
:"authentication":
{
:{
"apiKey": "my_very_secret_api_key",
:"apiKey": "my_very_secret_api_key",
"propKey": "secret_key_for_prop_XXXXXX"
:"propKey": "secret_key_for_prop_XXXXXX"
},
:},
"bookId": "[BOOKID]",
:"bookId": "[BOOKID]",
"invoice":
:"invoice":
[
:[
{
:{
"description": "Booking.com Commission",
:"description": "Booking.com Commission",
"status": "",
:"status": "",
"qty": "1",
:"qty": "1",
"price": "-[COMMISSIONNUM]",
:"price": "-[COMMISSIONNUM]",
"vatRate": "7.00",
:"vatRate": "7.00",
"type": "0",
:"type": "0",
"invoiceeId": ""
:"invoiceeId": ""
}
:}
]
:]
}
:}


== Troubleshooting ==
== Troubleshooting ==