Skip to content

Booking

The Booking resource represents a booked timeslot, as described in the WooCommerce Bookings plugin. See the Bookings documentation for more details.

Please see the Product chapter for information about the Bookable product.

Please see the announcement post for some examples of how you could use WooCommerce Booking data in your Zaps.

Only available if the WooCommerce Bookings plugin is installed.

You may choose Booking in the Zapier.com interface without installing the WooCommerce Bookings plugin, however the functionality will not work without WooCommerce Bookings, which is sold separately by WooCommerce.

The minimum required WooCommerce Bookings version is 1.15.55.

Please ensure you are using WooCommerce Zapier plugin to 2.2.0 or later.

Trigger Rules

If your WooCommerce store has WooCommerce Bookings installed, the following trigger rules are available to trigger your Zaps when booking data in your WooCommerce store is added, changed or deleted.

Booking cancelled

Triggers when a booking is canceled. Either by the customer, an administrator or automatically if the order is not finished.

Booking created

Triggers when a booking is first created.

Note

The Booking created trigger rule will trigger when a customer adds a bookable product to their cart. Before they proceed to the checkout to complete and pay for their order.

If you would like to trigger your Zap only when you receive a paid booking, then consider using the Booking ordered trigger rule instead.

Booking deleted

Triggers when a booking is deleted (trashed).

Only the ID field is available

Due to limitations in how WooCommerce handles deleted events, when using this trigger rule, only the ID of the deleted resource is sent to Zapier. No other data fields are available.

Booking ordered

Triggers when an order is placed containing a booking, which is the same time that the Order created trigger rule.

Booking restored

Triggers when an already trashed booking is restored from the trash.

Booking status changed

Booking statuses are an important part of the booking processing and fulfillment flow in WooCommerce.

More details on the booking status life cycle in WooCommerce can be found in the WooCommerce Bookings documentation.

The Booking status changed (any status) trigger rule will trigger every time a booking changes status to any status, including when a booking is first created.

If you are interested in specific status change(s) only, you may wish to use a more specific Booking status changed to … trigger rule.

Below is a full list of Booking status changed trigger rules:

  • Booking status changed (any status)
  • Booking status changed to Cancelled
  • Booking status changed to Complete
  • Booking status changed to Confirmed
  • Booking status changed to In Cart
  • Booking status changed to Paid
  • Booking status changed to Pending Confirmation

WooCommerce Zapier Plugin Version 2.4 Required

Please ensure you update the WooCommerce Zapier plugin to version 2.4.0 or later in order to use these Trigger Rules.

WooCommerce Zapier version 2.4.0 renamed Booking status changed to Booking status changed (any status) to make it more clear that this trigger rule will trigger for any status change.

Booking updated

Triggers when a booking is updated/edited/changed/modified, including any status change.

Actions and Searches

Not available.

Booking Data

NAME TYPE DESCRIPTION
Id integer Unique identifier for the resource
All Day boolean A boolean describing if the booking is for an entire day.
Cost string Total booking cost.
Customer Id integer ID of customer that purchased the booking.
Date Created date-time The time the booking was created.
Date Modified date-time The time the booking was last updated.
Date End date-time The end time of the booking.
Google Calendar Event Id string A unique ID of a synced booking event to Google Calendar.
Order Id integer The order ID linked to the booking.
Order Item Id integer The unique order line item ID of the booking.
Parent Id integer The unique item ID of the parent post.
Person Counts array The number of persons by person type within the booking.
Product Id integer The unique product ID linked to the booking.
Resource Id integer The unique resource ID linked to the booking.
Date Start date-time The start time of the booking.
Status string The current status of the booking.
Local Timezone string The local timezone used when the booking was purchased.

Tip

WooCommerce Zapier uses WooCommerce’s REST API. This means that data field names, descriptions and values can vary from one WooCommerce store to another.

Your store’s data, fields and trigger rules may be different to this documentation due any of the following:

  • Your installed (active) WordPress plugins and WooCommerce extensions.
  • Your WooCommerce and WordPress versions and the used locale/language.
  • Any custom code that overrides or changes how the WooCommerce/WordPress REST API operates.

Note: The field definitions in this documentation were generated using WordPress v6.3 and WooCommerce v8.0, with the en-US locale. The WooCommerce Bookings and WooCommerce Subscriptions plugins were enabled.


Last update: 2023-07-24