Changes

Jump to navigation Jump to search

Auto Actions

8,737 bytes added, 13:11, 20 May 2022
=== Send Emails/Message/SMS to guests ===
<span style="color:#019cde; font-size: 150%;“ >{{#fas:info-circle}} </span> Message API messages will be shown in the message tab of the booking and in the Channel Message centre. Currently this is only available for Booking.com and Airbnb.
<div class="mw-collapsible mw-collapsed">
<div class="mw-collapsible-content">
'''Trigger tab:'''
Time:
<div class="mw-collapsible-content">
'''Trigger tab:'''
 
Time:-
*Trigger Event = Check-in
*Trigger Time = -2 (the number of days before check-in you want to sent the code or link)
*Trigger Window = 2
 
Booking Souce :-
*Booking Source = All
*Booking Status = All but not cancelled
 
Booking Conditions:-
*Group bookings = Trigger all on master
 
Info Codes :-
*Info Code = LOCKSTATE_PIN or NUKI_PIN or CHEKIN_URL (select the appropriate Booking Info Code for the service you use)
</div>
<div class="mw-collapsible-content">
 
This auto action will be sent only when the Invoice Balance of the booking is zero. This can be used to ensure that the checkin details are only sent when the guest has completed the payments.
 
'''Trigger tab:'''
*Plain text box - will send to channels using Message API
Message Text :- enter the text you wish to send to your guests . This can include URL. Include these any information that is important for the checkin of the guest, for example the Key code for the door, who to contact if there are any issues, template variables - [BOOKINGINFOCODETEXT:LOCKSTATE_PIN] or [BOOKINGINFOCODETEXT:NUKI_PIN] or [BOOKINGINFOCODETEXT:CHEKIN_PIN] can be used, see the list of ALL template variables that can be used [[Template_Variables| see here]]
*HTML box - Email will be sent
Email Text :- It Enter the text you wish to send to your guests this can include URLs. Include any information that is possible to use important for the checkin of the guest, for example the same details (URL) as in Key code for the Plain Text box above. Include these door, who to contact if there are any issues, template variables - [BOOKINGINFOCODETEXT:LOCKSTATE_PIN] or [BOOKINGINFOCODETEXT:NUKI_PIN] or [BOOKINGINFOCODETEXT:CHEKIN_PIN] can be used, see the list of ALL template variables that can be used [[Template_Variables| see here]]
</div>
<div class="mw-collapsible-content">
To send an automated Email to the guest confirming that it is possible to have an Early Checkin a Late Checkout as room is available the day of before arrivaldeparture.
This example uses fixed values that you have entered into {{#fas:cog}} (SETTINGS) > PROPERTIES > ROOMS > SETUP > ROOM TEMPLATES and standard Template Variables set in the Property/Rooms, useful way to utilise the template variables and different values rather than duplicating auto actions.
</div>
===Booking Info Codes===
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >  ====Add CHECKIN Booking info code Send Email to bookings your guest - Offering Late Checkout Only on a Sunday when there is no new arrival ====
</div>
<div class="mw-collapsible-content">
If you need To send an automated Email to use the Booking info code CHECKIN/CHECKOUT for reporting/other auto actions, you can set the Booking info code rather than use guest confirming that it is possible to have a Late checkout on Sundays as the Current guest module in room is available on the dashboardday of departure.
Trigger tab:*Trigger Event = Check-in*Trigger Time = Immediate*Trigger Window = 1 day*Booking Source = All*Booking Status = All but not cancelled*Group This auto action will create a new booking for the date of departure, closing the calendar to any other bookings = Trigger all on master.
Booking Info The URL link in the message tab: *Booking Info Code = CHECKIN*Booking Info Text = Auto Checkin</div></div>, will send the guest to your guest booking page with set conditions, the leaving date of the existing booking, the room id of the existing booking and the Offer you have created for the LateCheckout.
<div class="mw-collapsible mw-collapsed"This example uses fixed values that you have entered into {{#fas:cog}} (SETTINGS) > PROPERTIES > ROOMS > SETUP >ROOM TEMPLATES and standard Template Variables set in the Property/Rooms, useful way to utilise the template variables and different values rather than duplicating auto actions.  <div class="headline-collapse" '''Step 1: ''' Create a new offer in {{#fas:cog}} (SETTINGS) > PROPERTIES > OFFERS  *Name =Latecheckout*Enable ===Add CHECKOUT Only if Available*Booking info code to bookings ===Type =</div><div class="mwConfirmed with Deposit 2 -collapsible-content">via payment gateway
If you need to use the Booking info code CHECKIN/CHECKOUT for reporting/other auto actions'''Step 2:''' Create a Rate or Daily Price, you can set the Booking info code rather than use the Current guest module in the dashboard. PRICES
Trigger tab:*Trigger Event = Check-out*Trigger Time Guests = ImmediateMax Occupancy*Trigger Window Max Stay = 1 day*Booking Source = All*Booking Status = All but not cancelled*Group bookings Offer = Trigger all on masterselect the offer number as created in the above step.
Booking Info tab: *Booking Info Code = CHECKOUT*Booking Info Text If you are using Rates, select 'Rate allowed' = Auto Checkout</div>Sunday, untick all the other days. </div>Channel Tab, untick all channels, leave only 'beds24.com' for your booking page.
<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Group check-in ====</div>If using Daily Prices, then go to Calendar, and set the price and date range, then only Sunday, untick all the other days. <div class="mw-collapsible-content">This requires the master Enable list, untick all channels, leave only 'beds24.com' for your booking to be checked-in via the check-in functionpage.
Trigger tab'''Step 3:''' Create the Auto Action
Trigger Tab :- *Trigger Event = After BookingCheckout*Trigger Time = immediately-1 days (depending on when you want to notify the guest, in this example 2 days before arrival)*Trigger Window = 3651*Booking Source = All
*Booking Status = All but not cancelled
*Group bookings" Between Booking and Check in = Trigger all 2 and 999 (to stop the auto action triggering on master*Info Code = CHECKINthe new booking)
Booking info tab : *Info Code Group bookings = CHECKIN</div></div> Trigger all on master
<div class*Template Variables ="mw-collapsible mw-collapsed"><div class[IF="headline-collapse" :[LEAVINGDAY:{%a}]:Sun:|[IF> ====Identify Repeat Guest ====</div><div class="mw-collapsible-content">This requires you to use the Guest database. ^[TURNOVERDAYS]^1^yes~no]] equal yes
Trigger tab:This template variable tests if the departure day is a Sunday and there is at least 1 day between the existing guest booking and the next booking.
Message tab :- *Trigger Event Send Email = After BookingGuest API/Smart Email (or one of the other options)*Trigger Time EMail Subject = immediatelyEnter the appropriate details *Trigger Window Email Text = Your text, using the template variables to modify the specific text in the booking. Enter the text in both Plain text Box (Messaging API) and HTML Box (Emails) Dear, [GUESTNAME], We are very happy to offer you 'Late Check-out' at [PROPERTYNAME] at the exceptional rate of [ROOMTEMPLATE3][PROPERTYCURRENCYBACK]. If you would like a late checkout, please use this link to make the booking and payment.  https://beds24.com/booking2.php?checkin=[LEAVINGDAYYYYY-MM-DD]&br7-[ROOMID] <span class="" style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> The details in the URL, will direct the guest to make a new booking in the existing room with the check-in date = 365leaving date and for Offer 7 &br-7 (offer created in Step 1 above) *Enter your Booking Reservation Number [BOOKID] into the Booking Source = Allid box on the booking page. Best regards, [PROPERTYCONTACTFIRSTNAME] [PROPERTYCONTACTLASTNAME] Email :-[PROPERTYEMAIL] Website :- [PROPERTYWEB] *Booking Status = All but not cancelledInfo Tab :- Optional*Group bookings" Booking info code = Trigger all on masterLATCHECKOUT, *Template Variable Booking Info Description = Upsell email sent [GUESTSID1CURRENTDATE] greater than 0: Late Checkout
Booking info tab :
*Info Code = REPEAT
</div>
</div>
===Send an email to the Owner/Internal email address ===
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >
====Identify bookings with Custom Question tickedSend an email to the Owner/unticked Internal email address when a payment FAILS at Stripe====
</div>
<div class="mw-collapsible-content">
If you have a custom question with a 'Tick box' for example, they want a late checkin.  Setup the custom question in {{#fas:cog}} (SETTINGS) PROPERTIES -> BOOKING QUESTIONS -> CUSTOM QUESTIONS -> Custom question 1, set with TYPE = Tick Box.  
Trigger tab:
 
*Trigger Event = After Booking
*Trigger Time = immediatelyImmediate
*Trigger Window = 365
*Booking Source = All
*Booking Status = All but not cancelled
*Group bookings" Booking Info Code = Trigger all on master*Template Variable = [GUESTCUSTOMQ1] equals ticked (or) not ticked STRIPEFAIL, CARDFAILSTRIPE
Booking info Messaging tab : *Info Code Send Message = LATECHECKINInternal</div>*Internal Email Address = enter the email address to receive the notification</div>*Subject = Failed Stripe Payment*HTML Box = Enter the text to be sent, you can use template variables in this message, for example
===Add invoice items to a [BOOKID] - booking ===reference number[GUESTNAMES] - name of all guests in the booking on the "summary" tab of the booking[FIRSTNIGHT][LASTNIGHT]
<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Add a fee to all bookings from a channel====</div><div class="mw-collapsible-content">Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Booking Source = Expedia (for example) Invoice tab:*Type = Amount*Description = Cleaning fee (for exampleoptional)*Amount Execution = 50 (for example - the amount of your cleaning fee)*per = RoomOne time only*Period Flag Text = one timeStripe Payment Failed*VAT = 19% (for example Flag Colour - enter the VAT amount if applicable) The fee will be added the next time choose the auto actions run. flag colour
</div>
</div>
===Booking Info Codes===
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >
====Add a fee (Penalty) CHECKIN Booking info code to all bookings with an Outstanding Balance==== 
</div>
<div class="mw-collapsible-content">
You want If you need to add a 2.2% fee to all bookings if there is an outstanding balance 2 days prior to checkinuse the Booking info code CHECKIN/CHECKOUT for reporting/other auto actions, you can set the Booking info code rather than use the Current guest module in the dashboard.
Trigger tab:
*Trigger Event = Check-in
*Trigger Time = Immediate
*Trigger Window = 1 day
*Booking Source = All
*Booking Status = All but not cancelled
*Group bookings = Trigger all on master
Time :*Trigger Event = Checkin *Trigger Time = -2 days*Trigger Window = 2 days  Booking Conditions:*Status = All not Cancelled *Invoice Balance = Not Zero Invoice Info tab:*Type Booking Info Code = AmountCHECKIN*Description Booking Info Text = Payment Fee||[INVOICEBALANCE:2.2%]*Amount = 0 (leave as 0 so the value is set from the calculation in Description field)*Per = Room*Period = one time*VAT = 19% (for example - enter the VAT amount if applicable) The fee will be added the next time the auto actions run. Auto Checkin
</div>
</div>
 
===Payments/Pending Payments===
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" > ====Add a pending paymentCHECKOUT Booking info code to bookings ====
</div>
<div class="mw-collapsible-content">
 
If you need to use the Booking info code CHECKIN/CHECKOUT for reporting/other auto actions, you can set the Booking info code rather than use the Current guest module in the dashboard.
 
Trigger tab:
*Trigger Event = After Booking or Before Check-inout*Trigger Time = set the time you want to collect the paymentImmediate*Trigger Window = 1 day*Booking Source =All (for example, you can also set different rules for different channels)*Booking Status = All but not cancelled*Group bookings = Trigger all on master
Booking Info tab: OptionalAdd a booking info tab for information and reporting*Booking Info Code = CHECKOUT*Flag Booking Info Text = PendingPayment (for example)Auto Checkout</div>*Flag Colour = select the colour as this will be visible in the Calendar</Bookings listdiv>
Booking tab: Optional<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > *Flag Text = Pending payment added (for example)===Group check-in ====</div>*Flag Colour <div class= select "mw-collapsible-content">This requires the colour as this will master booking to be visible checked-in via the Calendar/Bookings listcheck-in function.
Invoice Trigger tab:*Payment Type = select on what the payment is calculated (Percent of Balance due)*Description = the text you will see in the "Charges and Payments" tab*Status = if you use the status function add the status you want to apply to the pending payment (optional)*Amount = enter the amount or percentage you want to collect*Payment Rule = use auto or manual - if you have set up payment rules in {{#fas:cog}} (SETTINGS) GUEST MANAGEMENT->PAYMENT COLLECTION they will be available here *Payment Due = Set when the payment is due
*Trigger Event = After Booking
*Trigger Time = immediately
*Trigger Window = 365
*Booking Source = All
*Booking Status = All but not cancelled
*Group bookings" = Trigger all on master
*Info Code = CHECKIN
Create a Payment Rule to collect a payments when bookings are not cancelled. Booking info tab : *Info Code = CHECKIN</div></div>
Go to Settings <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Identify Repeat Guest ====</div> Payments <div class="mw-collapsible-content"> Payment RulesThis requires you to use the Guest database.
Payment Rule Trigger tab:
Name *Trigger Event = Enter your title - Not Cancelled (for example)After BookingAction *Trigger Time = Auto immediately Payment *Trigger :Window = 365*Booking Status Source = All not cancelled*Any Booking Info Code Status = optional*All Booking Info Codes = optionalbut not cancelled*Exclude Booking Info Code Group bookings" = optional (can exclude Virtual Credit cards, find the Booking info code in the booking) Payment Action : *Capture = Yes - immediately charged (Capture=Yes)*Add info code Trigger all on success = add a Booking Info item to the booking on successmaster*Add info code on failure Template Variable = add a Booking Info item to the booking on failure[GUESTSID1] greater than 0
Booking info tab :
*Info Code = REPEAT
</div>
</div>
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" > ====Collect outstanding booking balance 3 days prior to arrival( Credit card details were collected at time of booking)Identify bookings with Custom Question ticked/unticked ====
</div>
<div class="mw-collapsible-content">
If you have a custom question with a 'Tick box' for example, they want a late checkin.
''''Create a Payment Rule Setup the custom question in {{#fas:cog}} (OptionalSETTINGS)'''' PROPERTIES -> BOOKING QUESTIONS -> CUSTOM QUESTIONS -> Custom question 1, set with TYPE = Tick Box.
Standard payment rules in the system are Auto & Manual, you can create additional rules for the collection of outstanding payments, you can control the collection of payments if the booking status is changed, for example the booking is cancelled before the final payment is due to be collected. Trigger tab:
Go to {{#fas:cog}} *Trigger Event = After Booking*Trigger Time = immediately*Trigger Window = 365*Booking Source = All*Booking Status = All but not cancelled*Group bookings" = Trigger all on master*Template Variable = [GUESTCUSTOMQ1] equals ticked (SETTINGSor) PAYMENTS > PAYMENT RULESnot ticked
Create a Payment Rule to collect payments if bookings are not cancelled.Booking info tab : *Info Code = LATECHECKIN</div></div>
Click '''Create New Payment Rule''' :
Payment Rule:
*Name = Enter your title - Not Cancelled (for example)
*Action = Auto
Payment Trigger :*Booking Status = All not cancelled*Any Booking Info Code (optional)*All Booking Info Codes (optional)*Exclude Booking Info Code = optional (can exclude Virtual Credit cards, find the Booking info code in the =Add invoice items to a booking)===
Payment Action :<div class="mw-collapsible mw-collapsed">*Funding Source <div class= Guest card only"headline-collapse" > *Payment value adjustment = Limit ===Add a fee to group booking balanceall bookings from a channel====</div>*Capture <div class= Yes "mw- immediately charged (Capture=Yes)collapsible-content">Trigger tab:*Add info code on success Trigger Event = add a After Booking Info item to the booking on success*Add info code on failure Trigger Time = add a Immediate*Booking Info item to the booking on failureSource = Expedia (for example)
Prevent Auto Payment Invoice tab:*Prevent payment if booking status Add Invoice Item = Add new*Type = CancelledAmount*Prevent payment after check-out Description = Cleaning fee (daysfor example) - Template variables can be used. *Amount = 7 50 (defaultfor example - the amount of your cleaning fee)*Prevent payment action per = Room*Period = one time*VAT = Set Manual19% (for example - enter the VAT amount if applicable)
The fee will be added the next time the auto actions run.
</div>
</div>
'''Create Auto Actions '''<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" >
Collect the outstanding balance for ====Add a fee (Penalty) to all bookings created via your booking page. with an Outstanding Balance====
Go </div><div class="mw-collapsible-content">You want to add a 2.2% fee to {{#fas:cog}} (SETTINGS) GUEST MANAGEMENT > AUTO ACTIONS and click '''Create New Action''' all bookings if there is an outstanding balance 2 days prior to create themcheckin.
'''Collect outstanding balance for direct bookings'''Trigger tab:
Trigger tabTime :*Time**Trigger Event = Checkin**Trigger Time = -3 2 days (set the time you want to collect the payment)**Time Trigger Window = 3 2 days (set this to the same number (positive) as Trigger time.
*Booking SourceConditions:*Status = All not Cancelled *Booking Source Invoice Balance = Direct. You can have different auto actions/rules for direct bookings -v- channel bookings, then select ‘Direct’ this will include manually created bookings and booking page bookings. Not Zero
*Booking Conditions**Group Booking Trigger = Trigger only Master**Status = All not cancelled**Invoice Balance= Not Zero (can be used to refine the auto action being triggered) Booking tab: Optional*Flag Text Type = Pending payment added (for example)Amount*Flag Colour Description = select the colour as this will be visible in the Calendar/Bookings list Booking Info tabPayment Fee||[INVOICEBALANCE: Optional, for information and reporting2.2%]*Booking Info Code Amount = BALANCE 0 (for example enter leave as 0 so the value - use one word only)*Booking Info Text = Enter is set from the description/text to show calculation in for the Booking Info Code.  Invoice tab: <div class="warning">{{#fas:exclamation-triangle}} ONLY use Payment Type =‘ Percent of Group balance due’ if you selected Trigger tab > Booking Conditions > Group Booking Trigger = Trigger Only Master.</div>  *Add a Pending Payment to the booking**Payment Type = Percent of Group Balance due (select on what the payment is calculatedDescription field) **Description Per = the text you will see in the "Charges and Payments" tabRoom**Status Period = if you use the status function add the status you want to apply to the pending payment (optional)one time**Amount VAT = 100 19% (this will be 100% of for example - enter the outstanding group balance) **Payment Rule = Not Cancelled - See Step 4 above (VAT amount if you have set up payment rules in {{#fas:cog}} (SETTINGSapplicable) PAYMENTS ->PAYMENT RULES they will be available here) **Payment Due = Trigger date**Payment time = set the time to collect payment**Invoicee = If you use the "invoicee" function you can select which invoicee the pending payment will be assigned to.
The fee will be added the next time the auto actions run.
</div>
</div>
 
===Payments/Pending Payments===
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" > ===='Capture' Add a Security Deposit when Credit card is collected at time of booking. pending payment====
</div>
<div class="mw-collapsible-content">
 
Trigger tab:
*Trigger Event = After Booking or Before Check-in*Trigger Time = immediateset the time you want to collect the payment
*Booking Source =All (for example, you can also set different rules for different channels)
 
Booking Info tab: Optional
Add a booking info tab for information and reporting
*Flag Text = PendingPayment (for example)
*Flag Colour = select the colour as this will be visible in the Calendar/Bookings list
 
Booking tab: Optional
*Booking Info Code = PENDPAY
*Booking Info Text = Pending payment added
Invoice tab:
*Payment Type = Fixed amountselect on what the payment is calculated (Percent of Balance due)*Description = Security Deposit (the text you will see in the "Charges and Payments" tab)
*Status = if you use the status function add the status you want to apply to the pending payment (optional)
*Amount = 100 (balance is full price so 100% of enter the balance)amount or percentage you want to collect*Payment Rule = Security Deposit use auto or manual - if you have set up payment rules in {{#fas:cog}} (Create a Payment Rule, see belowSETTINGS) GUEST MANAGEMENT->PAYMENT COLLECTION they will be available here *Payment Due = check inSet when the payment is due
<span style="color:#fe746c;“ >{{#fas:exclamation-triangle}} </span> Automatic collection is only available for customer who use [[Stripe]]Create a Payment Rule to collect a payments when bookings are not cancelled.
Create a Go to Settings > Payments > Payment Rule to 'Capture' a payment only. Captured payments will only be valid for 7 days, then it will expire, if the booking is for a longer period, then you can create a second Capture, you will need to create another auto action for this.Rules
Go to {{#fasPayment Rule :cog}} (SETTINGS) PAYMENTS > PAYMENT RULES
Payment Rule : *Name = Enter your title - Security Deposit Not Cancelled (for example)*Action = Auto
Payment Trigger :
 *Booking Status = select from the drop down listAll not cancelled
*Any Booking Info Code = optional
*All Booking Info Codes = optional
Payment Action :
 *Capture = Yes/No - immediately charged (Capture=Yes), if you want to make sure that the amount is available for later capture (Capture=No)
*Add info code on success = add a Booking Info item to the booking on success
*Add info code on failure = add a Booking Info item to the booking on failure
 
</div>
</div>
<div class="headline-collapse" >
====Apply an info code and and/or icon when Add a pending payment was made- Set the Security Deposit value based on the price of the booking, using a calculation ====
</div>
<div class="mw-collapsible-content">
Trigger tab:
*Trigger Event = After Bookingor Before Check-in*Trigger Time = Immediate*Trigger Window = 365set the time you want to collect the payment*Booking Source = All(for example, you can also set different rules for different channels) Booking tab: Optional*Booking Status Flag Text = All but not cancelledPendingPayment (for example)*Invoice Balance Flag Colour = Any Payment madeselect the colour as this will be visible in the Calendar/Bookings list
Booking Info tab:OptionalAdd a booking info tab for information and reporting*Execution Booking Info Code = One time onlyPENDPAY*Booking Info Code Text = Enter the preset code for the icon or info code which you have created in {{#fas:cog}} (SETTINGS) ACCOUNT->PREFERENCES.</div></div>Pending payment added
Invoice tab:*Payment Type = fixed value*Description = Security Deposit||[IF<div class="mw-collapsible mw-collapsed">:[INVOICEFIRSTITEMNUM]:800:200|[INVOICEFIRSTITEMNUM][/.0]4] (Security Deposit is the description, then 2 | symbol, then the calculation for the 'Amount' to be set.)<div classThis calculation, tests if the first invoice item value (usually the Accommodation value) is greater than or = 800 if so set the Security Deposit Amount = 1 quarter of the first invoice item value, otherwise set ="headline-collapse" >200.
<span class="" style===Assign invoice numbers===="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </divspan> <div classspan style="mwfont-collapsible-contentweight: bold;">Tip</span> A price value for the invoice item can be specified after a second pipe (|) symbol, this can be used to calculate a price using template variables. If the price value in the description field is zero or absent, the numeric value from the amount field will be used.Trigger tab:*Trigger Event Status = Check-outif you use the status function add the status you want to apply to the pending payment (optional)*Trigger Time Amount = Immediate0*Any Booking Info Code Payment Rule = CHECKOUT (optional only if you use the checkauto or manual -out function, if not leave blankyou have set up payment rules in {{#fas:cog}} (SETTINGS)Payments > Payment Rules they will be available here *Payment Due = Set when the payment is due
Invoice tab:
*Assign Invoice Number = yes
</div>
</div>
<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Using Pending Payments as Create a Payment Reminder====</div><div class="mw-collapsible-content">Trigger tab:*Trigger Event = After Booking or Before Check-in*Trigger Time = set the time you want Rule to add the pending payment to the booking*Booking Source =All (for example, you can also set different rules for different channels)collect a payments when bookings are not cancelled.
Booking Info tab:*Optional, add a booking info tab for information and reportingGo to Settings > Payments > Payment Rules
Booking tabPayment Rule : Optional*Flag Text = PaymentDue1 (for example), set multiple if multiple payments are required. *Flag Colour = select the colour as this will be visible in the Calendar/Bookings list
Invoice tab:*Payment Type Name = select on what the payment is calculated Enter your title - Not Cancelled (Percent of Balance duefor example)Action = Auto Payment Trigger : *Description Booking Status = the text you will see in the "Charges and Payments" tabAll not cancelled*Status Any Booking Info Code = if you use the status function add the status you want to apply to the pending payment (optional)*Amount All Booking Info Codes = enter the amount or percentage you want to collectoptional*Payment Rule Exclude Booking Info Code = Manual - if you have set up payment rules optional (can exclude Virtual Credit cards, find the Booking info code in {{#fas:cog}} (SETTINGSthe booking) GUEST MANAGEMENT->PAYMENT COLLECTION they will be available here *Payment Due = Set when the payment is dueAction :
The Pending Payment Report is available in Bookings > Pending Payments. This report can be used *Capture = Yes - immediately charged (Capture=Yes)*Add info code on success = add a Booking Info item to see outstanding pending payments, this can be used the booking on success*Add info code on failure = add a Booking Info item to see all outstanding payments, when payment gateways other than Stripe are used, the Pending Payments report can be used to see outstanding payments and a checklist for bank transfers. booking on failure
</div>
</div>
<div class="mw-collapsible mw-collapsed"><div class==Booking Flags/Colours==="headline-collapse" >
<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag when a Collect outstanding booking balance 3 days prior to arrival( Credit card details were collected at time of booking is cancelled)====
</div>
<div class="mw-collapsible-content">
Trigger tab
*Trigger Event = After Booking
*Trigger Time = 1 Hour
*Trigger Window = 365 days
*Booking Status = Cancelled
Booking tab:''''Create a Payment Rule (Optional)''''*Execution = One time only*Booking Status = No Change*Flag text = (enter Standard payment rules in the system are Auto & Manual, you can create additional rules for the text collection of outstanding payments, you require)*Flag Colour = Set as required</div></div>can control the collection of payments if the booking status is changed, for example the booking is cancelled before the final payment is due to be collected.
<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag for a bookings from a channel which have breakfast included====</div><div class="mw-collapsible-content">Trigger tabGo to {{#fas:*Trigger Event = After Booking*Trigger Time = Immediate*Booking Source = Booking.com cog}} (for exampleSETTINGS)*Booking Field Contains - select "API Message" in the next field enter: meal_plan=Breakfast (or Extra Breakfast - use the text the channel uses)PAYMENTS > PAYMENT RULES
Booking tab:*Execution = One time only*Flag Text = The text you want Create a Payment Rule to display*Flag Colour - choose the flag colourcollect payments if bookings are not cancelled.
Booking changes are applied before the mail is sent so that the flag template variable can be reflected in the Email.</div></div>Click '''Create New Payment Rule''' :
<div class="mw-collapsible mw-collapsed">Payment Rule:<div class*Name ="headlineEnter your title -collapse" > Not Cancelled (for example) *Action ====Apply a flag when deposit was made prior to Check-in====</div><div class="mw-collapsible-content">Trigger tab:Auto
*Payment Trigger Event = Check-in*Trigger Time = -365 (for example : must be a negative value and the same as the value in Trigger window)*Trigger Window Booking Status = 365All not cancelled*Any Booking Source = AllInfo Code (optional)*All Booking Status = All but not cancelledInfo Codes (optional)*Invoice Balance Exclude Booking Info Code = Any Payment madeoptional (can exclude Virtual Credit cards, find the Booking info code in the booking)
Message tabPayment Action : *Funding Source = Guest card only*Payment value adjustment = Limit to group booking balance*Capture = Yes - immediately charged (Capture=Yes)*Add info code on success = add a Booking Info item to the booking on success*Add info code on failure = add a Booking Info item to the booking on failure
Prevent Auto Payment :*Prevent payment if booking status = Cancelled*Send Email : select appropriate optionPrevent payment after check-out (days) = 7 (default)*Enter : Subject and Email contentPrevent payment action = Set Manual
Booking tab: (optional)
*Execution = One time only*Flag Text = The text you want to display*Flag Colour - choose the flag colour'''Create Auto Actions '''
Booking info tab : (optional)Collect the outstanding balance for bookings created via your booking page.
*Booking Info Code Go to {{#fas: DEPOSITPAID cog}} (for exampleSETTINGS)*Booking Info Text : additional text if required GUEST MANAGEMENT > AUTO ACTIONS and click '''Create New Action''' to create them.
Setting details with the Booking tab and Booking info tab allows you to trigger additional (follow on) Auto Actions and Reports.</div></div>'''Collect outstanding balance for direct bookings'''
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >
====Apply a flag when booking is fully paid====
</div>
<div class="mw-collapsible-content">
Trigger tab:
*Time**Trigger Event = After BookingCheckin**Trigger Time = Immediate-3 days (set the time you want to collect the payment)*Trigger *Time Window = 365*Booking Source = All*Booking Status = All not cancelled*Invoice Balance = ZERO3 days (set this to the same number (positive) as Trigger time.
*Booking tab:Source*Execution = One time only*Flag Text Booking Source = The text you want to display*Flag Colour Direct. You can have different auto actions/rules for direct bookings -v- choose the flag colour</div></div>channel bookings, then select ‘Direct’ this will include manually created bookings and booking page bookings.
<div class*Booking Conditions**Group Booking Trigger = Trigger only Master**Status ="mw-collapsible mw-collapsed">All not cancelled<div class**Invoice Balance="headline-collapse" >Not Zero (can be used to refine the auto action being triggered)
Booking tab: Optional*Flag Text =Pending payment added (for example)*Flag Colour ===Apply a flag/select the colour for a booking coming from a certain channel====<as this will be visible in the Calendar/div><div class="mw-collapsible-content">Bookings list
Trigger Booking Info tab:Optional, for information and reporting*Trigger Event = After Booking*Trigger Time Info Code = ImmediateBALANCE (for example enter the value - use one word only)*Booking Source Info Text = Enter the description/text to show in for the BookingInfo Code.com (for example)
Booking Invoice tab: <div class="warning">{{#fas:exclamation-triangle}} ONLY use Payment Type =‘ Percent of Group balance due’ if you selected Trigger tab > Booking Conditions > Group Booking Trigger = Trigger Only Master.</div>  *Add a Pending Payment to the booking**Execution Payment Type = One time onlyPercent of Group Balance due (select on what the payment is calculated) *Flag Text *Description = The the text you will see in the "Charges and Payments" tab**Status = if you use the status function add the status you want to displayapply to the pending payment (optional)**Amount = 100 (this will be 100% of the outstanding group balance) *Flag Colour *Payment Rule = Not Cancelled - See Step 4 above (if you have set up payment rules in {{#fas:cog}} (SETTINGS) PAYMENTS - choose >PAYMENT RULES they will be available here) **Payment Due = Trigger date**Payment time = set the time to collect payment**Invoicee = If you use the "invoicee" function you can select which invoicee the flag colourpending payment will be assigned to.
Booking changes are applied before the mail is sent so that the flag template variable can be reflected in the email.
</div>
</div>
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >  ====Apply 'Capture' a flag Security Deposit when a payment was madeCredit card is collected at time of booking. ====
</div>
<div class="mw-collapsible-content">
<span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Also see Example : " Apply a flag when deposit was made prior to Check-in AND/OR Apply a flag when booking is fully paid".
Trigger tab:
*Trigger Event = After Booking*Trigger Time = Immediate*Trigger Window = 365immediate*Booking Source = All(for example, you can also set different rules for different channels) *Info Codes:Any Booking Status = All not cancelled*Invoice Balance Info Code = Any Payment madeCARDTOSTRIPE
Booking Invoice tab:*Execution Payment Type = One time onlyFixed amount*Flag Text Description = The Security Deposit (the text you will see in the "Charges and Payments" tab)*Status = if you use the status function add the status you want to displayapply to the pending payment (optional)*Flag Colour - choose Amount = 100 (balance is full price so 100% of the flag colourbalance)</div>*Payment Rule = Security Deposit (Create a Payment Rule, see below) </div>*Payment Due = check in
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >
====Apply a flag when a payment FAILS at Stripe====
</div>
<div class="mw-collapsible-content">
Trigger tab:
*Trigger Event = After Booking
*Trigger Time = Immediate
*Trigger Window = 365
*Booking Source = All
*Booking Status = All but not cancelled
*Booking Info Code = STRIPEFAIL
<span style="color:#fe746c;“ >{{#fas:exclamation-triangle}} </span> Automatic collection is only available for customer who use [[Stripe]]. Create a Payment Rule to 'Capture' a payment only. Captured payments will only be valid for 7 days, then it will expire, if the booking is for a longer period, then you can create a second Capture, you will need to create another auto action for this. Go to {{#fas:cog}} (SETTINGS) PAYMENTS > PAYMENT RULES Payment Rule : *Name = Enter your title - Security Deposit (for example)*Action = Auto Payment Trigger :*Booking Status = select from the drop down list*Any Booking tab:Info Code = optional*Execution All Booking Info Codes = One time onlyoptional*Flag Text Exclude Booking Info Code = Stripe optional (can exclude Virtual Credit cards, find the Booking info code in the booking) Payment FailedAction :*Flag Colour Capture = Yes/No - choose immediately charged (Capture=Yes), if you want to make sure that the amount is available for later capture (Capture=No) *Add info code on success = add a Booking Info item to the booking on success*Add info code on failure = add a Booking Info item to the flag colourbooking on failure</div></div>
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >  ====Apply a flag to Booking.com bookings an info code and and auto report the Credit Card /or icon when a payment FAILS at Stripewas made====
</div>
<div class="mw-collapsible-content">
 
Go to Settings > Channel Manager > Preferences and set Auto report failed cards = Yes
Trigger tab:
*Trigger Event = After Booking
*Booking Source = All
*Booking Status = All but not cancelled
*Booking Info Code Invoice Balance = BOOKINGCOMCARDAny Payment made
Booking Info tab:
*Execution = One time only
*Flag Text Info Code = Failed CC reported to BookingEnter the preset code for the icon or info code which you have created in {{#fas:cog}} (SETTINGS) ACCOUNT->PREFERENCES.com *Flag Colour - choose the flag colour
</div>
</div>
===Status changes===
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >  ==== Change the status of all "Request" bookings to "Cancelled" after three days Assign invoice numbers====
</div>
<div class="mw-collapsible-content">
Trigger tab:*Trigger Event = After BookingCheck-out*Trigger Time = 3 daysImmediate*Any Booking Status Info Code = RequestCHECKOUT (optional only if you use the check-out function, if not leave blank)
Booking Invoice tab:*Execution Assign Invoice Number = One time only*Booking Status = Cancelledyes
</div>
</div>
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" > ==== Change the status of all bookings which have been imported from Ical to "Request" Using Pending Payments as a Payment Reminder====
</div>
<div class="mw-collapsible-content">
Trigger tab:
*Trigger Event = After Bookingor Before Check-in*Trigger Time = Immediateset the time you want to add the pending payment to the booking*Booking Source = Ical Import All (1for example, 2you can also set different rules for different channels) Booking Info tab:*Optional, add a booking info tab for information and reporting Booking tab: Optional*Flag Text = PaymentDue1 (for example), 3set multiple if multiple payments are required. *Flag Colour = select the colour as this will be visible in the Calendar/Bookings list Invoice tab:*Payment Type = select on what the payment is calculated (Percent of Balance due)*Description = the text you will see in the "Charges and Payments" tab*Status = if you use the status function add the status you want to apply to the pending payment (optional)*Amount = enter the amount or percentage you want to collect*Payment Rule = Manual - if you have set up payment rules in {{#fas:cog}} (SETTINGS) GUEST MANAGEMENT->PAYMENT COLLECTION they will be available here *Payment Due = Set when the payment is due The Pending Payment Report is available in Bookings > Pending Payments. This report can be used to see outstanding pending payments, this can be used to see all outstanding payments, when payment gateways other than Stripe are used, the Pending Payments report can be used to see outstanding payments and a checklist for bank transfers.  </div></div> ===Booking Flags/Colours===
<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag when a booking is cancelled====</div><div class="mw-collapsible-content">Trigger tab*Trigger Event = After Booking*Trigger Time = 1 Hour*Trigger Window = 365 days*Booking Status = Cancelled Booking tab:
*Execution = One time only
*Booking Status = No Change*Flag text = (enter the text you require)*Flag Colour = Set as required</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag for a bookings from a channel which have breakfast included====</div><div class="mw-collapsible-content">Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Booking Source = Booking.com (for example)*Booking Field Contains - select "API Message" in the next field enter: meal_plan=Breakfast (or Extra Breakfast - use the text the channel uses) Booking tab:*Execution = One time only*Flag Text = The text you want to display*Flag Colour - choose the flag colour Booking changes are applied before the mail is sent so that the flag template variable can be reflected in the Email.</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag when deposit was made prior to Check-in====</div><div class="mw-collapsible-content">Trigger tab: *Trigger Event = Check-in*Trigger Time = -365 (for example : must be a negative value and the same as the value in Trigger window)*Trigger Window = 365*Booking Source = All*Booking Status = All but not cancelled*Invoice Balance = Any Payment made Message tab:  *Send Email : select appropriate option*Enter : Subject and Email content Booking tab: (optional) *Execution = One time only*Flag Text = The text you want to display*Flag Colour - choose the flag colour Booking info tab : (optional) *Booking Info Code : DEPOSITPAID (for example)*Booking Info Text : additional text if required.  Setting details with the Booking tab and Booking info tab allows you to trigger additional (follow on) Auto Actions and Reports.</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag when booking is fully paid====</div><div class="mw-collapsible-content">Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Trigger Window = 365*Booking Source = All*Booking Status = All not cancelled*Invoice Balance = ZERO Booking tab:*Execution = One time only*Flag Text = The text you want to display*Flag Colour - choose the flag colour</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag/colour for a booking coming from a certain channel====</div><div class="mw-collapsible-content"> Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Booking Source = Booking.com (for example) Booking tab:*Execution = One time only*Flag Text = The text you want to display*Flag Colour - choose the flag colour Booking changes are applied before the mail is sent so that the flag template variable can be reflected in the email.</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag when a payment was made====</div><div class="mw-collapsible-content"><span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Also see Example : " Apply a flag when deposit was made prior to Check-in AND/OR Apply a flag when booking is fully paid". Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Trigger Window = 365*Booking Source = All*Booking Status = All not cancelled*Invoice Balance = Any Payment made Booking tab:*Execution = One time only*Flag Text = The text you want to display*Flag Colour - choose the flag colour</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag when a payment FAILS at Stripe====</div><div class="mw-collapsible-content"> Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Trigger Window = 365*Booking Source = All*Booking Status = All but not cancelled*Booking Info Code = STRIPEFAIL, CARDFAILSTRIPE Booking tab:*Execution = One time only*Flag Text = Stripe Payment Failed*Flag Colour - choose the flag colour</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Apply a flag to Booking.com bookings and auto report the Credit Card when a payment FAILS at Stripe====</div><div class="mw-collapsible-content"> Go to Settings > Channel Manager > Preferences and set Auto report failed cards = Yes Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Trigger Window = 365*Booking Source = All*Booking Status = All but not cancelled*Booking Info Code = BOOKINGCOMCARD Booking tab:*Execution = One time only*Flag Text = Failed CC reported to Booking.com *Flag Colour - choose the flag colour</div></div> ===Status changes===<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ==== Change the status of all "Request" bookings to "Cancelled" after three days ====</div><div class="mw-collapsible-content">Trigger tab*Trigger Event = After Booking*Trigger Time = 3 days*Booking Status = Request Booking tab:*Execution = One time only*Booking Status = Cancelled</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ==== Change the status of all bookings which have been imported from Ical to "Request" ====</div><div class="mw-collapsible-content">Trigger tab:*Trigger Event = After Booking*Trigger Time = Immediate*Booking Source = Ical Import (1, 2, 3) Booking tab:*Execution = One time only*Booking Status = Request Booking changes are applied before the mail is sent.</div></div>  <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ==== Change Room Unit Status when guest checks out ====</div><div class="mw-collapsible-content">Trigger tab*Trigger Event = Check-out*Trigger Time = Immediate*Trigger Window = 1 day*Booking Status = All but not cancelled*Any Booking Info Code = CHECKOUT Booking tab:*Execution = One time only*Change Room Unit Status = Select the option It is assumed you use the Checkin/Checkout feature in the Dashboard, if not you can either manually add Checkin to your bookings (Booking info tab) or create an auto action to add the Booking Info Codes to the bookings.</div></div> ===API/Webhook===<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Use API/Webhook to write to the field 'Message'====</div><div class="mw-collapsible-content"> You can use a webhook in conjunction with the API JSON function '''setBooking''' to write to any field in the booking. First you have 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> '''API key:'''*{{#fas:cog}} (SETTINGS) ACCOUNT -> ACCOUNT->ACCESS "API Key 1"*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*'''Property key:'''*{{#fas:cog}} (SETTINGS) PROPERTIES > ACCESS > propKey = secret_key_for_prop_XXXXXX Set the triggers you need, for example: Booking Field Contains: Message = XXX 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]",::"message": "[MESSAGE] - Append this message":}</div></div> <div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Use API/Webhook to write the value of the 'commission' field to a new invoice item====</div><div class="mw-collapsible-content">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>'''API key:'''*{{#fas:cog}} (SETTINGS) ACCOUNT -> ACCOUNT->ACCESS "API Key 1"*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*'''Property key:'''*{{#fas:cog}} (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": "":::}::]:}
</div>
</div>
 
<div class="mw-collapsible mw-collapsed">
<div class="headline-collapse" >
==== Change Room Unit Status when guest checks out Use Auto Action/Webhook to write to send data to Integromat====
</div>
<div class="mw-collapsible-content">
Trigger tab
*Trigger Event = Check-out
*Trigger Time = Immediate
*Trigger Window = 1 day
*Booking Status = All but not cancelled
*Any Booking Info Code = CHECKOUT
Booking tab:*Execution = One time only*Change Room Unit Status = Select the You can use this optionto send data to your Integromat account.
It is assumed you use Set the Checkin/Checkout feature rules in the DashboardTrigger tab, if not when you can either manually add Checkin need to your bookings (Booking info tab) or create an auto action to add send the Booking Info Codes data to the bookingsIntegromat.</div></div>
===API/Webhook===<div class="mw-collapsible mw-collapsed"><div class="headline-collapse" > ====Use API/Go to Webhook to write to the field 'Message'====</div><div class="mw-collapsible-content">tab:
You can use a webhook in conjunction with the API JSON function '''setBooking''' to write to any field in the bookingURL = https://hook.integromat.com/ followed by your integromat account key. First you have to configure access to the API:
You need two keys to Body Data = you can use our API JSON functions - one for the API itself and one template variables allows in the list for the propertyIntegromat [[https://wiki.beds24. The keys have to consist of 16 characters of your choosingcom/index.<br> '''API key:'''*{{php/Make#fas:cog}} (SETTINGS) ACCOUNT -> ACCOUNT->ACCESS "API Key 1"*API Key = my_very_secret_api_key*API Key Access = allow any IP*IP Whitelist = [leave emptyData_Fields Data fields]]*Allow Writes = Yes*Property Access = Owned by this account only*'''Property key:'''*{{#fas:cog}} (SETTINGS) PROPERTIES > ACCESS > propKey = secret_key_for_prop_XXXXXX
Set the triggers you need, for For example:-
Booking Field Contains: Message bookingData= XXX{
Set the webhook like this"bookId":"[BOOKID]",
* URL = <nowiki>https"guestMobileNum"://api.beds24.com/json/setBooking</nowiki>* Custom Header = "[leave emptyGUESTMOBILENUM]",
Body Data::{::"authentication":::{:::"apiKey": "my_very_secret_api_key",:::"propKey": "secret_key_for_prop_XXXXXX"::},::"bookIdguestMobile": "[BOOKIDGUESTMOBILE]",::"message": "[MESSAGE] - Append this message":}</div></div>
<div class="mw-collapsible mw-collapsedguestSMS"><div class=:"headline-collapse[GUESTSMS:44]" >,
====Use API/Webhook to write the value of the 'commission' field to a new invoice item====</div><div class="mw-collapsible-contentguestFirstName">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:"[REPLACE|&|and|[GUESTFIRSTNAME]]",
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:'''*{{#fas"propertyName":cog}} (SETTINGS) ACCOUNT -> ACCOUNT->ACCESS "API Key 1"*API Key = my_very_secret_api_key*API Key Access = allow any IP*IP Whitelist = [leave emptyPROPERTYNAME]*Allow Writes = Yes*Property Access = Owned by this account only*'''Property key:'''*{{#fas:cog}} (SETTINGS) PROPERTIES > ACCESS> propKey = secret_key_for_prop_XXXXXX",
Set the triggers you need"propertyId":"[PROPERTYID]", for example:
Booking Source = Booking.com"firstNight":"[FIRSTNIGHTSHORT]",
Set the webhook like this"lastNight":"[LEAVINGDAYSHORT]"
*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": ""
:::}
::]
:}
</div>
</div>
2,866

edits

Navigation menu