Skip to main content
All CollectionsIntegrationsZapier
Zapier tutorial: Add instant booking capability with auto-accept bookings
Zapier tutorial: Add instant booking capability with auto-accept bookings

Learn how to configure your marketplace for instant bookings

Vesa Vahermaa avatar
Written by Vesa Vahermaa
Updated over a week ago

Welcome to a practical Zapier tutorial! In this guide, we'll introduce a new feature to your marketplace through Zapier: instant bookings.

By default, a booking on your marketplace must be accepted by the provider before it is confirmed. A customer makes a request, but only when the provider accepts the request is the customer charged and the booking confirmed. A provider can choose to reject the request instead or, if the provider does nothing, the request expires automatically.

Through Zapier's automation capabilities, we can make bookings "instant". Instant bookings are automatically confirmed without the provider needing to accept. This can reduce friction for both customers and providers.

IMPORTANT: Even though this is an 'instant booking', it is not instant in a literal sense. The speed of the automation depends on how quickly Zapier polls your marketplace for updates. The time it takes Zapier to get new information from your marketplace is called the 'polling time' and its length on which Zapier plan you are subscribed to. The default polling time is two minutes.

You can test this yourself by making another test booking while the Zap has been made live, and monitoring how long it takes for the transaction to transition from 'Payment confirmed' to 'Accepted'.

What is Zapier?

Zapier is a powerful and versatile tool for integrating different tools to your marketplace. You can learn more about Zapier in our introductory article or through this brief video from Zapier.

If you haven’t read the introduction and the action/event Zapier articles, we encourage you to do so to understand better how Zapier works. But if you want to dive straight into action, feel free to read on!

What do you need for this tutorial?

External accounts

  1. Zapier Account

    • Create a Zapier account if you don’t already have one. You can sign up at www.zapier.com.

    • During registration, Zapier may ask which apps you plan to use. You can enter Sharetribe at this point or add it later.

How to set up your marketplace

  1. Correct Listing Type

    • This tutorial assumes that you are using a Calendar booking listing type, typical for service and rental marketplaces. This tutorial works with any kind of Calendar booking listing type: hourly, daily, and nightly.

  2. Marketplace Activity

    • In order for Zapier to draw relevant information from your marketplace, you will need to have some activity there. On your Sharetribe marketplace, you need to have at least one recent booking request transaction that has not yet been accepted by the provider. This should ideally be a test transaction that does not involve real money, as we will be accepting it in this tutorial.

  3. Integration API Application

    • You’ll also need to create an application using the Integration API. The instructions for doing this are below. For the purposes of this tutorial, you don’t need to know details about using the APIs, but if you want, you can read about them from our technical documentation here.

With these pieces in place, let's get started!

Getting your Integration API key from Sharetribe Console

  1. Click on “+ Add a new application”

  2. Give the application a descriptive name (like Zapier), and select ‘Integration API’.

  3. Click ‘Add application’.

  4. Important: Copy and paste the Client ID and Client secret to a safe place, like a password manager.

    1. Think of the Client ID and secret as a sort of password to your marketplace that can be used through other services. Note that you won’t be able to ever see the Client secret to this application again in the Console under any circumstances. Make sure you copy it to a secure place. If you lose it, you will need to create a new application.

Creating the Zap, step by step

(Optional) Importing a pre-existing Zap

  1. Go to www.zapier.com and log in with your account (or create a free one, if you don't already have one)

  2. Open the pre-made Zap for auto-accepting booking requests on Sharetribe here

  3. Click on ‘Try this Zap'

Step 1: Find a recent transaction from your marketplace

  1. Connect your Sharetribe account by entering your Client ID and Client secret

  2. Click ‘Continue’ to move to the ‘Trigger’ section

  3. Choose ‘Transaction transitioned’ as the ‘Event type’

  4. Click ‘Continue’ to move to the ‘Test’ section

  5. Test the trigger, and make sure it finds the recent test booking from your marketplace. Make sure to choose a booking that is in the state of having been paid by the customer, but not accepted by the provider.

Step 2: Filter the event

  1. We want to only run the zap in a situation where a listing has been bought. For this step, choose ‘Filter by Zapier’.

  2. Under the ‘Only continue if…’, select the following 3 entries for the lines:

    1. ‘1. Transaction Last Transition’

    2. (Text) Exactly matches

    3. transition/confirm-payment

  3. Test the filter, and make sure it says “Your Zap would have continued for this test data”

Step 3: Accept the booking request

Now we accept the booking request. For this, we'll use the Sharetribe app for Zapier for this.

  1. After selecting 'Sharetribe' as the app, select "Transition transaction" as the event.

  2. In the 'Account' section, you'll use your own marketplace account - the one you set up with the Client ID and Client secret earlier.

  3. Under 'Configure', click in the field under 'Transaction ID', and select from the drop down list '1. Transaction Id: xxxxx'. This is the test transaction that you found in Step 1 earlier.

  4. Under 'Transition name', write in 'transition/operator-accept'

  5. Under 'Expand the response to return the full resource?', select 'false'

  6. Go under 'Test' and test the zap. If everything works well, the test transaction that you had initiated will now be accepted. Good job! You can now publish the Zap and it will start acting on all new transactions on your marketplace.

Bonus: Possible variations of this zap

The Zap workflow above works acts on all the booking requests on your marketplace: every new booking will be automatically approved. It is also possible to offer this functionality in a more limited way through Zapier, so that it does not act on all transactions on your marketplace.

Perhaps you want to have your providers be able to determine if they want to offer instant bookings or not? This could be done by creating multiple Listing types on your marketplace, and then adding another filter before or after Step 2 that filters out only certain Listing types.

Similarly, you could restrict this based on the User type, enabling instant bookings only for certain users and not others. User types are stored to the user's data and can be used during the Zap workflow to determine if an instant booking workflow should proceed or not. Specifically, you would again create an additional filter that would make sure that the booking requests are only instantly accepted for certain types of providers.

And as a third option, you could also create a separate listing field that allows the providers to determine if instant booking is supported or not. You would use a filter in Zapier that reads the content of that listing field and continues to instant booking if that listing field has the right content.

This is not an exhaustive list. If you have some other conditions you'd like to apply to your Zap, feel free to experiment! Zapier has a lot of versatility and experimenting with its functionality can be a fun and useful thing to do.

Final thoughts

Thanks for reading this tutorial about creating a Zap for automated instant bookings! Feel free to read through other parts of our Zapier guide as well: the Introduction and the article about Events and Actions.

We also have tutorials and templates for various different Zaps available, including SMS notifications, digital calendar invites, and more. You can read about all our templates in this article.

Please get in touch with us from your Console or from the bottom right section of this page from the chat widget if you have any questions about this guide, or anything else. We'll be happy to help!

Did this answer your question?