Simulate the price of a would-be basket, with customer discounts

Send a set of ticket lines you are considering adding to a basket and get back what they would actually cost, including any discounts that apply to the identified customer when the optional identity query parameter is supplied. This is a simulation: it creates nothing and reserves nothing, so it is safe to call repeatedly for "your price" badges, basket previews, or showing a member their discount before they commit. Use GET /api/schedules/ticket for availability and calendars, and this endpoint for prices; only adding lines to a real cart actually reserves capacity. `fromDate` and `toDate` must form a valid range of at most 60 days that is not entirely in the past. Responses are cached at the edge, keyed on the request body, store and `identity`: an identical repeat request may return a byte-identical cached price for up to an hour, so do not rely on this endpoint to reflect a capacity or discount change that just happened.

Headers

x-entriastringRequired
Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

Query parameters

identitystringOptional
Opaque encrypted customer token, passed through untouched, used to apply the discounts that customer is entitled to. Omit it to price the basket as a guest.

Request

This endpoint expects an object.
lineslist of objectsRequired
fromDatestringRequired
toDatestringRequired

Response

Simulated prices for the requested lines, including any discounts
lineslist of objects

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error