POST

Preview Price


Previews the base price for a set of line items belonging to the same service, before a booking is created.

The response includes each line item's individual preview price and the total of all line item preview prices. In most situations, the preview price matches the final booking price when using the same parameters. The final amount may differ due to discounts, booking fees, payment processing charges, or service price changes made by the business between preview and booking creation.

Preview Price fails if:

  • You specify line items that belong to different services (SDK | REST).
  • The site is using a Bookings Pricing Integration Service Plugin (REST). Note that external apps can't currently check whether a plugin is installed on the site before calling Preview Price.

To retrieve the price of an existing booking, call Calculate Price (SDK | REST) instead.

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

Errors
400Invalid Argument

There are 2 errors with this status code.

428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?