Bookings REST API Reference

The REST API Reference is targeted at WooCommerce Bookings 1.14.0+ only and written for developers looking to extend or customize WooCommerce Bookings. It requires an advanced understanding of PHP and WordPress development.

Booking Slots ↑ Back to top

Slots Properties

Attribute Type Description
product_ids string Product IDs for slots you want to query. (Comma-separated IDs)
category_ids string Category IDs for slots you want to query. (Comma-separated IDs)
resource_ids string Resource IDs for slots you want to query. (Comma-separated IDs)
intervals string The interval of days to query. (Comma-separated IDs)
timezone_offset string The timezone offset to query against.
min_date string The minimum date range for slots you want to query.
max_date string The maximum date range for slots you want to query.
page integer The page you want to query.

Retrieve a slot

GET /wp-json/wc-bookings/v1/products/slots

JSON response example:

Booking Categories ↑ Back to top

Category Properties

GET /wp-json/wc-bookings/v1/products/categories

JSON response example:

Booking Resources ↑ Back to top

Resources Properties

GET /wp-json/wc-bookings/v1/resources

JSON response example:

Booking Products ↑ Back to top

Products Properties

GET /wp-json/wc-bookings/v1/products

JSON response example:

Bookings ↑ Back to top

Bookings Properties

GET /wp-json/wc-bookings/v1/bookings

JSON response example:

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top