Auto Actions: Difference between revisions

Jump to navigation Jump to search
Andrian (talk | contribs)
Andrian (talk | contribs)
Line 662: Line 662:
===Use API/Webhook to write the value of the 'commission' field to a new invoice item===
===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 use the API 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>