1. Home
  2. Booking & Appointment Plugin for WooCommerce – NEW
  3. Integrations
  4. Zapier

Zapier

Zapier is a tool that helps you automate repetitive tasks between two or more apps without reliance on coding or developers.

Zapier can instruct an app to perform a particular task when an event happens in another app. For more information on Zapier, please see https://zapier.com.

Zapier Integration has been introduced in the 5.12.0 version of the Booking & Appointment Plugin for WooCommerce (BKAP) which lets you connect BKAP to hundreds of web services available on Zapier.

Automated connections called Zaps can be set up in minutes and can do the following:

  • Automate your day-to-day tasks and build sophisticated workflows
  • Automate tasks in the background, so you can focus on more important work
  • Perform Triggers and Actions: Zap starts with a trigger—an event in one of your apps that kicks off your workflow. It has one app as the Trigger (where your information comes from) which causes one or more Actions (where your data gets sent automatically) in other apps.

Requirements

  1. Zapier Account
  2. WooCommerce 3.5+
  3. WordPress 4.4+
  4. Booking & Appointment Plugin 5.12.0+
  5. WordPress Pretty Permalinks – must be enabled
  6. WooCommerce Consumer and Secret Keys – must be generated
  7. Legacy REST API – must be enabled

Zapier Actions available in the Booking & Appointment plugin

  • Create Booking – Creates a new booking on WordPress for a specified Product and Customer. Depending on the booking settings of the Product, certain required booking parameters have to be provided else the booking creation process will fail. Information on the required booking parameters is usually displayed after the selection of a Product
  • Update Booking – Updates booking information of a specified Booking. The Booking ID of the booking to be updated is required.
  • Delete Booking – Deletes a Booking. The Booking ID of the booking to be deleted is required

Note: Zapier Integration for the Booking & Appointment Plugin for WooCommerce is currently in early access. You can find it in the Zapier app directory here.

A. Setting up Zapier on WordPress

B. Setting up Zap Triggers on Zapier & WordPress

C. Setting up Zap Actions on Zapier

D. Configuring ‘Create Booking Action’ on Zapier using Google Sheet

A. Setting up Zapier on WordPress

This step is required to ensure that Zapier is allowed to successfully interact with WordPress.

Go to the Booking & Appointment Settings > Integrations tab > Zapier.

Click on Zapier Integration and activate the Zapier Integration option.

Zapier - Tyche Softwares Documentation

Activate the Zapier Trigger and the Log option to view debug and error messages.

Zapier - Tyche Softwares Documentation

Make sure to Save your settings.

B. Setting up Zap Triggers on Zapier & WordPress

A trigger is an event that starts a Zap.

For example, you may want to send a Slack message each time a customer places a booking on your WooCommerce site. In this case, the trigger is Create Booking while the action is Send Channel Message in Slack.

On WooCommerce, triggers are usually triggered during:

  • Create Booking: During the checkout process and completion of the order.
  • Update Booking: On the Edit Booking page on the Admin Panel. Quantity and Date can only be updated.
  • Delete Booking: On the Edit Booking page when the “Move to trash” link is clicked.

Setting up a Zap is super easy! You just have to follow the following steps to complete your first zap!

1. Sign up for a Zapier account

To get started you’ll need a Zapier account.

You may need to create an account on Zapier if you do not have one already.

Once logged into the Zapier platform, click on the Create Zap button.

Zapier - Tyche Softwares Documentation

2. Select the Trigger app

Select the Trigger option.

Zapier - Tyche Softwares Documentation

Select Tyche Softwares as your trigger app from the list of apps.

Zapier - Tyche Softwares Documentation

3. Select Trigger Event

Based on what you intend to do, you can select Create Booking, Update Booking or Delete Booking.

Zapier - Tyche Softwares Documentation

The steps to set up Zapier for Create Booking, Update Booking or Delete Booking are all similar.

Zapier - Tyche Softwares Documentation

Click the Continue button.

4. Connect the WordPress account

Continue by clicking the Sign in button. This will help connect your Tyche Softwares to Zapier.

Zapier - Tyche Softwares Documentation

Select an account if you are already logged in. If not, connect to a new account. 

Zapier - Tyche Softwares Documentation

Here, you will need to create WC API Rest keys to generate the WooCommerce Consumer and Secret Keys.

After generating the keys, please keep them handy as they will be needed in creating a Zap.

Go to WooCommerce > Settings > Advanced > REST API > Create an API key.

Zapier - Tyche Softwares Documentation

Add the description, User, and Permissions.

Click the Generate API Key button to create your key.

Zapier - Tyche Softwares Documentation

Make a note of the Consumer Key and Consumer secret. These details will not be available later when you go back to this page.

Zapier - Tyche Softwares Documentation

Go back to Zapier and add the Consumer Public Key as the Username and Consumer Secret Key as the password.

In the domain field, enter the domain for your WooCommerce store as shown below:

Zapier - Tyche Softwares Documentation

5. Enter Trigger Label

This label would be used to identify the Trigger setting on WooCommerce, so give the label a very descriptive word.

Zapier - Tyche Softwares Documentation

For instance, you can select the label ‘Create Booking Trigger’ here.

6. Select User

This Trigger would be assigned a User so select one accordingly.

Users cannot use or execute triggers not assigned to them.

Zapier - Tyche Softwares Documentation

For instance, you can go with the User admin. 

Zapier - Tyche Softwares Documentation

Click Continue after it.

7. Test Trigger

This will place a call to the Zapier API on WooCommerce and fetch a recent booking for testing purposes.

You will see a message that says Test your trigger. Click the Test Trigger button once done.

Zapier - Tyche Softwares Documentation

Next, click the Continue button.

Zapier - Tyche Softwares Documentation

After the triggers, you will have to configure the Action step.

8. Complete your Zap by adding an Action step

This is the app or execution step that will occur when the Trigger is activated by WooCommerce.

For this tutorial, let’s use Slack (a widely used team messaging app), which will send a message to a Slack channel when a booking has been created/updated/edited on WooCommerce.

Search for the Slack application.

Zapier - Tyche Softwares Documentation

Select it.

Zapier - Tyche Softwares Documentation

Under Action Event, choose an event.

Zapier - Tyche Softwares Documentation

Select the Send Private Channel Message. This ensures that the trigger will send a private message to a person on Slack.

Zapier - Tyche Softwares Documentation

Click on Continue.

Zapier - Tyche Softwares Documentation

Go to Choose Account and Sign in to Slack.

Zapier - Tyche Softwares Documentation

Select Add another workspace. It will allow your workspace to be connected.

Zapier - Tyche Softwares Documentation

Enter your Workspace’s URL and proceed forward.

Zapier - Tyche Softwares Documentation

Enter your email address, and password and click the Sign in button.

Zapier - Tyche Softwares Documentation

It will ask you what will be accessed by Slack. Click Allow and proceed forward.

Zapier - Tyche Softwares Documentation

Under Choose app & event, choose your account once it has been linked. Click Continue. 

Zapier - Tyche Softwares Documentation

Next, set up the action. Choose value under the Channel field. 

Zapier - Tyche Softwares Documentation

Search for Zapier and find the channel.

Zapier - Tyche Softwares Documentation

Select it and write the message text.

Zapier - Tyche Softwares Documentation

Add all the following things in your Text Message by clicking on the Booking ID next.

Zapier - Tyche Softwares Documentation

Follow it up with Show all options. 

Zapier - Tyche Softwares Documentation

Select the Customer Name next.

Zapier - Tyche Softwares Documentation

Choose Customer Email. 

Zapier - Tyche Softwares Documentation

Lastly, select the Product ID.

Zapier - Tyche Softwares Documentation

You have added all of these details in the Text Message as shown below. Configure other settings too.

Zapier - Tyche Softwares Documentation

Click the Continue button.

Zapier - Tyche Softwares Documentation

You will get a summary of your settings. Choose the Test & Review button.

Zapier - Tyche Softwares Documentation

Once it is successful, click the Turn on Zap button. 

Zapier - Tyche Softwares Documentation

You will see the following message once done!

Zapier - Tyche Softwares Documentation

In the workflow above, Slack was used as the action step in configuring the Zapier Trigger.

During the configuration, Zapier would send a test message to the Slack channel to confirm that it can send messages to the channel.

Zapier Integration - Tyche Softwares Documentation

At this point, the Zap has been created successfully on Zapier.

9. Configure Zap Trigger on WordPress

Now it is time to configure the created Zap with the WooCommerce store on WordPress.

This way, WordPress would be able to effectively activate the Zapier trigger when a booking has been created, updated, or deleted.

The configuration of the Zap with the WooCommerce store on WordPress involves a direct connection with a specific booking product.

The booking event (create, update, or delete) associated with the Zapier trigger and originating from the booking product would initiate the Zapier Trigger.

Zapier triggers that are not configured on WordPress will not be activated even if they have been successfully created on Zapier.

Let’s start.

Go to Products > Add New. 

Zapier - Tyche Softwares Documentation

Give a name to the product. Since this is a sample product, you can go with the name ‘Zapier – Create Booking Trigger.’

Zapier - Tyche Softwares Documentation

Add the price. 

Zapier - Tyche Softwares Documentation

Enable the booking for this product and configure the Booking type. 

Zapier - Tyche Softwares Documentation

Go to Integrations > Zapier. 

Zapier - Tyche Softwares Documentation

Enable the Create Booking Trigger. 

Zapier - Tyche Softwares Documentation

In the Select Created Triggers field, choose your trigger. It would be Create Booking Trigger. 

Click the Save Changes button once done.

Zapier - Tyche Softwares Documentation

Lastly, publish the product.

Zapier - Tyche Softwares Documentation

10. Test Zapier Trigger on WordPress (optional)

A test booking can be placed on the WooCommerce store to make sure that things are working right. This is optional.

After creating your sample product, place an order for it by clicking the Book Now button.

Zapier - Tyche Softwares Documentation

Proceed to View your cart. 

Zapier - Tyche Softwares Documentation

Next, go to the Checkout. 

Zapier - Tyche Softwares Documentation

Lastly, place an order. 

Zapier - Tyche Softwares Documentation

After the booking has been placed, a message containing the booking information will be sent to the Slack channel.

This will be based on the configuration of the Zapier trigger. 

Zapier Integration - Tyche Softwares Documentation

C. Setting up Zap Actions on Zapier

Zapier Actions are events that occur outside of WooCommerce and are expected to create, update, or delete bookings.

They are a result of the execution of a non-Tyche Zap app such as Gmail, Calendar, WordPress, WebHooks, etc.

Due to it, a corresponding action on the WooCommerce store – create, update, or delete bookings will be performed.

When setting up Zapier Actions, filling in a couple of required fields is necessary. Especially when creating bookings where the fields are dependent on the type of booking – single day, multiple dates, multiple nights, etc.

Values for these required fields can be set in two ways:

  1. Manually when setting up the action
  2. Using values from the Action Trigger execution (Gmail, Calendar, WordPress, WebHooks, etc

1. Create Booking Action

For the Create Booking Action, the Product and User must be specified while setting up the Zap.

Based on the booking type that has been configured for the Product on WooCommerce, Zapier displays information on the required fields.

Note: All data types are sent as strings to avoid data type mismatch errors.

single_day booking type

Key Label Required? Format
order_id Order ID No
quantity Booking Quantity Yes
start_date Booking Start Date Yes YYYY-MM-DD
end_date Booking End Date Yes YYYY-MM-DD
price Booking Price Yes

 

multiple_days booking type

Key Label Required? Format
order_id Order ID No
quantity Booking Quantity Yes
start_date Booking Start Date Yes YYYY-MM-DD
end_date Booking End Date Yes YYYY-MM-DD
price Booking Price Yes
fixed_block Fixed Block Yes

 

date_time booking type

Key Label Required? Format
order_id Order ID No
quantity Booking Quantity Yes
start_date Booking Start Date Yes YYYY-MM-DD
end_date Booking End Date Yes YYYY-MM-DD
price Booking Price Yes
start_time Booking Start Time Yes H:i
end_time Booking End Time Yes H:i

 

duration_time booking type

Key Label Required? Format
order_id Order ID No
quantity Booking Quantity Yes
start_date Booking Start Date Yes YYYY-MM-DD
end_date Booking End Date Yes YYYY-MM-DD
price Booking Price Yes
start_time Booking Start Time Yes H:i
duration Booking Duration Yes

2. Configuring ‘Create Booking Action’ on Zapier using Google Sheet

You can use Google Sheets to configure the Create Booking Action on Zapier.

Google Sheets is used in this tutorial as it is usually used by most customers in keeping records of bookings. Let’s get started!

1. Create Spreadsheet

Here, you have to sign in to Google Sheets and create a new spreadsheet.

 

Create a new Blank spreadsheet. 

Zapier - Tyche Softwares Documentation

You can call this spreadsheet Zapier Create Action.

Zapier - Tyche Softwares Documentation

After creating the spreadsheet, you need to create column headers that match the required fields needed for each booking type.

Zapier - Tyche Softwares Documentation

You will have to add the following:

  • Order ID
  • Quantity
  • Start Date
  • Start Time
  • End Date 
  • End Time
  • Price 
  • Product ID
  • Customer ID

2. Add Sample Data to Sheet Row

For Zapier to configure the Zap for the Create Booking Action, you will need to add some sample data to the first row of the sheet.

Zapier - Tyche Softwares Documentation

Zapier will use the sample data to test run the Zap, so you need to ensure that the sample data contains valid information.

3. Create Zap and select the Spreadsheet

Create a Zap on Zapier using Google Sheets as the trigger.

Search for Google Sheets and select it.

Zapier - Tyche Softwares Documentation

Select the trigger event. 

Zapier - Tyche Softwares Documentation

For the trigger event, select Create Booking and select “New Spreadsheet Row” as the Trigger Event.

Zapier - Tyche Softwares Documentation

This is used because the Google Sheets Trigger needs to be activated only when a new row has been added to the spreadsheet.

Press the Continue button.

Zapier - Tyche Softwares Documentation

4. Configure Action for Zap

For the Action step, search for the Tyche Softwares Zapier app and select it.

Zapier - Tyche Softwares Documentation

Go to Action Event next.

Zapier - Tyche Softwares Documentation

Choose Create Booking and proceed to Continue. 

Zapier - Tyche Softwares Documentation

Choose an account.

Zapier - Tyche Softwares Documentation

After selecting your account, click the Continue button. 

Zapier - Tyche Softwares Documentation

It’s time to set up the actions. Here, you will have to select the Product and Customer.

This selection will determine the required fields based on the booking type that has been checked on the selected product.

Zapier - Tyche Softwares Documentation

For each of the required fields that have been displayed (after selecting the Product), link the field on the Zap to the entry on the Google Sheet by selecting the corresponding label on the dropdown.

Start with Quantity. 

Zapier - Tyche Softwares Documentation

Then Start Date. 

Zapier - Tyche Softwares Documentation

Continue with the End Date. 

Zapier - Tyche Softwares Documentation

Next is Price. 

Zapier - Tyche Softwares Documentation

Following this is the Start Time. 

Zapier - Tyche Softwares Documentation

Then the End Time.

Zapier - Tyche Softwares Documentation

All of the information once filled will appear as such:

Zapier - Tyche Softwares Documentation

Proceed by clicking the Continue button. 

Zapier - Tyche Softwares Documentation

You will see two options, proceed with the Test & Continue button.

Zapier - Tyche Softwares Documentation

4. Publish Zap

Turn on your created Zap so that it gets published on Zapier.

The Zap will watch out for newly created rows in the Google Sheet and create bookings accordingly on your WooCommerce store.

Was this article helpful to you? Yes No

How can we help?