Bookings
Booking Price
Calculate the price for a booking, including dynamic pricing adjustments.
POST
Booking Price
Documentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
Booking Price
Calculates the total price for a booking at a specific resource and time slot. When dynamic pricing is enabled, the response includes demand-based and last-minute price adjustments alongside the base price. This endpoint is used by the Members Portal to display price annotations in the booking calendar and time selectors, but it can also be called directly to preview pricing before creating a booking.Authentication
Requires a valid customer bearer token.Query Parameters
Comma-separated list of response fields to include. Use this to limit the response to only the fields you need.Example:
Price,DynamicPriceAdjustment,LastMinutePriceAdjustment,PriceFactorDemandRequest Body
The resource to calculate pricing for.
Booking start time in ISO 8601 UTC format (e.g.
2026-04-06T10:00:00.000Z).Booking end time in ISO 8601 UTC format (e.g.
2026-04-06T11:00:00.000Z).Whether the booking should be charged immediately.
Array of visitor objects associated with the booking. Pass an empty array if none.
Array of add-on products included in the booking. Pass an empty array if none.
Custom field values for the booking. Use
{ "Data": [] } if none.Booking ID. Use
0 for new bookings. For existing bookings, pass the booking ID to preserve any previously locked-in pricing.A unique identifier for the booking. Use a UUID for new bookings.
Display name of the customer making the booking.
Response
Total calculated price for the booking, including all dynamic adjustments.
Absolute price adjustment from demand-based dynamic pricing. Positive values indicate a surcharge, negative values a discount.
0 when no demand adjustment applies.Absolute price adjustment for last-minute bookings. Applied when the booking is made within the configured last-minute period before the start time.
0 when not applicable.Demand factor as a decimal multiplier. For example,
0.1 means a 10% surcharge, -0.15 means a 15% discount. 0 when no demand adjustment applies.Examples
Calculate price for a one-hour booking
Response with dynamic pricing surcharge
Response with no dynamic pricing
Response with last-minute discount
TypeScript Integration
Notes
- Dynamic pricing must be enabled via the
Nexudus.ML.DynamicPricing.Enabledbusiness setting. When disabled,DynamicPriceAdjustment,LastMinutePriceAdjustment, andPriceFactorDemandwill all be0. - Pricing is calculated per hour of the booking. Each hour may have a different demand level, so the total adjustment is the sum of all hourly adjustments.
- Previously charged bookings (non-zero
Id) preserve their original pricing factors — the response reflects the locked-in adjustments rather than recalculating. - See Dynamic Pricing for a full explanation of how demand levels, availability thresholds, and last-minute adjustments are determined.
Booking Price