getPricePreview( )


Retrieves a plan's pricing.

The price preview uses the same logic as purchasing a plan, but the preview is not saved. Tax is only applied if the site has it configured. The price is returned in the pricing model format used for orders. Learn more about pricing models (REST|SDK).

Buyers do not have to be logged in to preview the price, and as such, the details returned are not buyer-specific. To generate a preview of a purchase for a specific buyer, call Get Offline Order Preview.

Permissions
Manage Bookings Services and Settings
Manage Orders
Read Orders
Read Pricing Plans
Manage Pricing Plans
Manage Portfolio
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
planIdstringRequired

ID of plan to preview.


optionsGetPricePreviewOptions

Options for getting a price preview.

Returns
Return Type:Promise<GetPricePreviewResponse>
Errors
428Failed Precondition

There are 8 errors with this status code:

See the entire list and learn more about Wix errors.

Did this help?