POST

Calculate Price


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Calculates the base price of a booking.

You can call Calculate Price after a booking is created. The returned calculated price includes information about each line item's price and the booking's total price.

You can use Preview Price to get the base price before a booking is created.

The calculated price is the base price that will be used as a basis for charging the customer. During checkout, additional taxes and fees might be added to this base price.

Calculating the price

Wix Bookings has its own default pricing logic for calculating the price. When using Wix Bookings' default pricing logic, you must pass the serviceId in the slot or schedule object to Calculate Price.

Alternatively you can customize the pricing logic using the Bookings Pricing Integration SPI. If you integrate with a pricing provider, the customized pricing logic becomes the default logic. This means that, if the Pricing Integration SPI is implemented, when calling the API's Calculate Price endpoint, the SPI's Calculate Price endpoint is used instead.

Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Including Participants
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/bookings/v2/pricing/calculate

Did this help?