Pricing suggestions tools
All tool areas. Each tool acts within your access.
Pricing suggestions
apply_pricing_suggestion
Apply one of the revenue agent's pricing suggestions: the session gets its own price for the ticket type, exactly the suggestion's proposed amount (no other amount can be given). The preview checks it still holds: the session hasn't started, its price is still the suggestion's current amount, and the guardrails, step limit and weekly limit still pass. Shadow suggestions can be applied too (your choice; nothing is ever applied by itself). Holds already placed and existing bookings keep their prices. Undo with undo_changeset in its window.
Changes · Members of an organization · Needs pricing:approve
Input
suggestionIdThe pricing suggestion's id, from list_pricing_suggestions
Output
suggestionIdsessionIdticketTypeIdcurrencyamountThe session's own price now
beforeThe session's own price before (null: it had none, and the location price and rules applied)
get_pricing_performance
Get how pricing has done over the sessions that ran from from to to (local dates, inclusive, up to 366 days), by day, week, or month: revenue per available seat, fill rate and average price (from confirmed bookings, as Home and reports count them), per currency; the revenue agent's suggestions for those sessions by status, mode and kind, with acceptance (applied over applied and rejected); and shadow accuracy, over each session's last shadow suggestion once it ran: for raises, the share that sold out or ended above what similar sessions ended with; for lowers, the share that ended below it.
Reads · Members of an organization · Needs pricing:read, revenue:read
Plan: pricing performance report
Input
fromA local date at the location, YYYY-MM-DD
toA local date at the location, YYYY-MM-DD
periodlocationIdThe location's id, from get_setup
productIdThe product's id, from list_products
Output
fromA local date at the location, YYYY-MM-DD
toA local date at the location, YYYY-MM-DD
periodrowsrows[]rows[].periodThe period's first local date (a week starts on Monday)
rows[].currencyrows[].sessionsrows[].capacityrows[].seatsBookedrows[].fillRateSeats booked over capacity (occupancy)
rows[].netSalesMinor units (cents) in the location's currency
rows[].revenuePerAvailableSeatMinor units (cents) in the location's currency
rows[].averagePriceNet sales per seat booked
suggestionssuggestions.totalsuggestions.byStatussuggestions.byStatus.*suggestions.byModesuggestions.byMode.*suggestions.byKindsuggestions.byKind.*suggestions.acceptanceRateapplied / (applied + rejected), over suggest-mode ones; null with none decided
shadowAccuracyshadowAccuracy.raiseshadowAccuracy.raise.measuredSuggestions with an outcome, one per session and ticket type
shadowAccuracy.raise.accurateshadowAccuracy.raise.rateshadowAccuracy.lowershadowAccuracy.lower.measuredSuggestions with an outcome, one per session and ticket type
shadowAccuracy.lower.accurateshadowAccuracy.lower.rate
list_pricing_suggestions
List the revenue agent's pricing suggestions, by session start (soonest first): raise or lower one session's price for a ticket type, from booking pace against similar past sessions, within the guardrails. Each gives the current and proposed amount, the change in percent, why, the signals, the expected revenue change, its status and mode (shadow suggestions are records, labelled, never in the Inbox), and its proposal. Filter by location, product, the session's local dates (inclusive), status (open by default; any for all), mode, or kind. runs is each location's latest completed nightly run (when, mode, how many it made, why it stopped, and why sessions got none): when there are none, runs says why. To apply one, preview apply_pricing_suggestion with its id and apply the changeset (or approve_proposal on its proposalId in suggest mode); to turn one down, reject_pricing_suggestion.
Reads · Members of an organization · Needs pricing:read
Input
locationIdThe location's id, from get_setup
productIdThe product's id, from list_products
fromThe session's local date, from (inclusive)
toThe session's local date, to (inclusive)
statusopen by default; any for every status
modekindlimitThe most results to return (default 100)
afterA suggestion id from nextAfter: the page after it
Output
suggestionssuggestions[]suggestions[].idThe pricing suggestion's id, from list_pricing_suggestions
suggestions[].proposalIdIts proposal (prp_…). In suggest mode, approve_proposal on it approves this suggestion
suggestions[].statussuggestions[].stalesuggestions[].stale.reasonsuggestions[].modeshadow: recorded for evaluation, never in the Inbox (a member with pricing:approve may still apply it). suggest: an Inbox card
suggestions[].kindsuggestions[].runDateThe location's date of the nightly run that made it
suggestions[].sessionsuggestions[].session.idThe session's id, from list_sessions
suggestions[].session.startsAtsuggestions[].session.endsAtsuggestions[].session.localDateA local date at the location, YYYY-MM-DD
suggestions[].session.localTimeA local start time at the location, HH:MM, 24-hour
suggestions[].session.weekdaysuggestions[].session.timeZonesuggestions[].session.productIdThe product's id, from list_products
suggestions[].session.productNamesuggestions[].session.locationIdThe location's id, from get_setup
suggestions[].session.locationNamesuggestions[].ticketTypesuggestions[].ticketType.idThe ticket type's id, from get_product
suggestions[].ticketType.namesuggestions[].currencysuggestions[].currentAmountThe ticket's price for one guest when suggested: per seat, minor units, before the service charge and tax (what set_session_price sets)
suggestions[].proposedAmountWhat applying it makes the session's own price for this ticket type, per seat, before the service charge and tax
suggestions[].changeAmountproposedAmount - currentAmount
suggestions[].changePpmThe change over currentAmount in parts per million, signed (-50000 is 5% lower)
suggestions[].changePercentThe same in percent, signed, to one decimal place (4.7, -8.3): filter on its absolute value
suggestions[].whyFrom the signals, in Lokl's words (never a model's)
suggestions[].summaryThe night's batch summary for the location (suggest mode only; null in shadow mode or when AI was unavailable)
suggestions[].signalsWhat the suggestion saw when it was made
suggestions[].signals.bookedSeats of confirmed bookings
suggestions[].signals.capacitysuggestions[].signals.seatsLeftsuggestions[].signals.leadMinutesFrom the run to the start
suggestions[].signals.daysOutCalendar days to the session's date in its location's time zone
suggestions[].signals.fillbooked / capacity
suggestions[].signals.expectedBookedWhat similar past sessions had booked at the same lead time (Home's expectedBooked)
suggestions[].signals.expectedFillexpectedBooked / capacity
suggestions[].signals.paceRatiobooked / expectedBooked; null when similar sessions had nobody booked this far out
suggestions[].signals.pacesuggestions[].signals.expectedAtStartWhat similar sessions ended with
suggestions[].signals.projectedAtStartWhere this session is heading at its pace, at most its capacity
suggestions[].signals.sampleSizeSimilar past sessions behind the curve: same product, location, weekday and local start time, the last 8 that ran
suggestions[].signals.soldOutOfSamplesuggestions[].signals.historyHistory in staff's words
suggestions[].signals.history[]suggestions[].guardrailsThe guardrails the proposed amount was held to
suggestions[].guardrails.baseAmountThe ticket type's price at the location, before rules
suggestions[].guardrails.floorAmountMinor units (cents) in the location's currency
suggestions[].guardrails.ceilingAmountMinor units (cents) in the location's currency
suggestions[].guardrails.maxStepPpmsuggestions[].guardrails.roundTosuggestions[].guardrails.changesThisWeeksuggestions[].guardrails.maxChangesPerWeeksuggestions[].guardrails.limitedByWhat held the change back from what the pace asked for, if anything
suggestions[].guardrails.ownPriceThe session already had its own price, from an earlier suggestion
suggestions[].expectedRevenueChangeTickets only, before the service charge and tax: the same expected remaining seats at both prices, allocated to this ticket type by its share of past seats sold (equally without history), times proposedAmount - currentAmount. No price-elasticity assumption; a cut is negative. Existing bookings never change. Exclude stale suggestions from batch totals. Null without revenue:read at the location
suggestions[].createdAtsuggestions[].expiresAtsuggestions[].appliedsuggestions[].applied.changesetIdsuggestions[].applied.appliedAtsuggestions[].rejectReasonsuggestions[].rejectNotesuggestions[].outcomeWhat happened, once the session ended
suggestions[].outcome.bookedAtStartsuggestions[].outcome.capacitysuggestions[].outcome.soldOutsuggestions[].outcome.amountAtStartThe ticket type's price for one guest when the session started
suggestions[].outcome.priceChangedamountAtStart differs from currentAmount
suggestions[].outcome.appliedThis suggestion's change stood when the session started
suggestions[].outcome.accurateA raise: sold out or ended above expectedAtStart. A lower: ended below it
nextAfterPass as
afterfor the next page; null on the lastrunsThe latest completed nightly run per location the caller reaches (the location filter applies); empty before any has run. When there are no suggestions, this says why
runs[]A location's latest completed nightly run
runs[].locationIdThe location's id, from get_setup
runs[].locationNameruns[].runDateThe location's date of the run
runs[].completedAtWhen the run finished
runs[].modenull when the run stopped before it knew (stoppedBecause)
runs[].madeSuggestions it made
runs[].stoppedBecauseWhy it did nothing at all: the agent is off, paused, or can't propose here
runs[].skippedWhy sessions and ticket types it looked at got none, each reason with how many
runs[].skipped[]runs[].skipped[].reasonruns[].skipped[].count
reject_pricing_suggestion
Turn down one of the revenue agent's suggest-mode pricing suggestions, with a reason (wrong, not_now, too_risky, edited, other) and an optional note: the same as reject_proposal on its proposal. Shadow suggestions are records nobody decides, so they can't be rejected. Can be undone for 15 minutes while it hasn't expired.
Changes · Members of an organization · Needs activity:read, pricing:approve
Input
suggestionIdThe pricing suggestion's id, from list_pricing_suggestions
reasonnote
Output
idThe pricing suggestion's id, from list_pricing_suggestions
proposalIdIts proposal (prp_…). In suggest mode, approve_proposal on it approves this suggestion
statusstalestale.reasonmodeshadow: recorded for evaluation, never in the Inbox (a member with pricing:approve may still apply it). suggest: an Inbox card
kindrunDateThe location's date of the nightly run that made it
sessionsession.idThe session's id, from list_sessions
session.startsAtsession.endsAtsession.localDateA local date at the location, YYYY-MM-DD
session.localTimeA local start time at the location, HH:MM, 24-hour
session.weekdaysession.timeZonesession.productIdThe product's id, from list_products
session.productNamesession.locationIdThe location's id, from get_setup
session.locationNameticketTypeticketType.idThe ticket type's id, from get_product
ticketType.namecurrencycurrentAmountThe ticket's price for one guest when suggested: per seat, minor units, before the service charge and tax (what set_session_price sets)
proposedAmountWhat applying it makes the session's own price for this ticket type, per seat, before the service charge and tax
changeAmountproposedAmount - currentAmount
changePpmThe change over currentAmount in parts per million, signed (-50000 is 5% lower)
changePercentThe same in percent, signed, to one decimal place (4.7, -8.3): filter on its absolute value
whyFrom the signals, in Lokl's words (never a model's)
summaryThe night's batch summary for the location (suggest mode only; null in shadow mode or when AI was unavailable)
signalsWhat the suggestion saw when it was made
signals.bookedSeats of confirmed bookings
signals.capacitysignals.seatsLeftsignals.leadMinutesFrom the run to the start
signals.daysOutCalendar days to the session's date in its location's time zone
signals.fillbooked / capacity
signals.expectedBookedWhat similar past sessions had booked at the same lead time (Home's expectedBooked)
signals.expectedFillexpectedBooked / capacity
signals.paceRatiobooked / expectedBooked; null when similar sessions had nobody booked this far out
signals.pacesignals.expectedAtStartWhat similar sessions ended with
signals.projectedAtStartWhere this session is heading at its pace, at most its capacity
signals.sampleSizeSimilar past sessions behind the curve: same product, location, weekday and local start time, the last 8 that ran
signals.soldOutOfSamplesignals.historyHistory in staff's words
signals.history[]guardrailsThe guardrails the proposed amount was held to
guardrails.baseAmountThe ticket type's price at the location, before rules
guardrails.floorAmountMinor units (cents) in the location's currency
guardrails.ceilingAmountMinor units (cents) in the location's currency
guardrails.maxStepPpmguardrails.roundToguardrails.changesThisWeekguardrails.maxChangesPerWeekguardrails.limitedByWhat held the change back from what the pace asked for, if anything
guardrails.ownPriceThe session already had its own price, from an earlier suggestion
expectedRevenueChangeTickets only, before the service charge and tax: the same expected remaining seats at both prices, allocated to this ticket type by its share of past seats sold (equally without history), times proposedAmount - currentAmount. No price-elasticity assumption; a cut is negative. Existing bookings never change. Exclude stale suggestions from batch totals. Null without revenue:read at the location
createdAtexpiresAtappliedapplied.changesetIdapplied.appliedAtrejectReasonrejectNoteoutcomeWhat happened, once the session ended
outcome.bookedAtStartoutcome.capacityoutcome.soldOutoutcome.amountAtStartThe ticket type's price for one guest when the session started
outcome.priceChangedamountAtStart differs from currentAmount
outcome.appliedThis suggestion's change stood when the session started
outcome.accurateA raise: sold out or ended above expectedAtStart. A lower: ended below it