# Pricing suggestions tools

[All tool areas](/docs/tools.md). 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

- `suggestionId` — string; required. The pricing suggestion's id, from list_pricing_suggestions

#### Output

- `suggestionId` — string; required. 
- `sessionId` — string; required. 
- `ticketTypeId` — string; required. 
- `currency` — string; required. 
- `amount` — integer; required. The session's own price now
- `before` — integer or null; required. The 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

- `from` — string; required. A local date at the location, YYYY-MM-DD format: "date"
- `to` — string; required. A local date at the location, YYYY-MM-DD format: "date"
- `period` — string; optional.  Allowed: "day", "week", "month"; default: "week"
- `locationId` — string; optional. The location's id, from get_setup
- `productId` — string; optional. The product's id, from list_products

#### Output

- `from` — string; required. A local date at the location, YYYY-MM-DD format: "date"
- `to` — string; required. A local date at the location, YYYY-MM-DD format: "date"
- `period` — string; required.  Allowed: "day", "week", "month"
- `rows` — array; required. 
  - `rows[]` — object; optional. 
    - `rows[].period` — string; required. The period's first local date (a week starts on Monday) format: "date"
    - `rows[].currency` — string; required. 
    - `rows[].sessions` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `rows[].capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `rows[].seatsBooked` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `rows[].fillRate` — number or null; required. Seats booked over capacity (occupancy)
    - `rows[].netSales` — integer; required. Minor units (cents) in the location's currency
    - `rows[].revenuePerAvailableSeat` — integer or null; required. Minor units (cents) in the location's currency
    - `rows[].averagePrice` — integer or null; required. Net sales per seat booked
- `suggestions` — object; required. 
  - `suggestions.total` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `suggestions.byStatus` — object; required. 
    - `suggestions.byStatus.*` — integer; optional.  minimum: -9007199254740991; maximum: 9007199254740991
  - `suggestions.byMode` — object; required. 
    - `suggestions.byMode.*` — integer; optional.  minimum: -9007199254740991; maximum: 9007199254740991
  - `suggestions.byKind` — object; required. 
    - `suggestions.byKind.*` — integer; optional.  minimum: -9007199254740991; maximum: 9007199254740991
  - `suggestions.acceptanceRate` — number or null; required. applied / (applied + rejected), over suggest-mode ones; null with none decided
- `shadowAccuracy` — object; required. 
  - `shadowAccuracy.raise` — object; required. 
    - `shadowAccuracy.raise.measured` — integer; required. Suggestions with an outcome, one per session and ticket type minimum: -9007199254740991; maximum: 9007199254740991
    - `shadowAccuracy.raise.accurate` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `shadowAccuracy.raise.rate` — number or null; required. 
  - `shadowAccuracy.lower` — object; required. 
    - `shadowAccuracy.lower.measured` — integer; required. Suggestions with an outcome, one per session and ticket type minimum: -9007199254740991; maximum: 9007199254740991
    - `shadowAccuracy.lower.accurate` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `shadowAccuracy.lower.rate` — number or null; required. 

### 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

- `locationId` — string; optional. The location's id, from get_setup
- `productId` — string; optional. The product's id, from list_products
- `from` — string; optional. The session's local date, from (inclusive) format: "date"
- `to` — string; optional. The session's local date, to (inclusive) format: "date"
- `status` — string; optional. open by default; any for every status Allowed: "open", "applied", "undone", "rejected", "expired", "superseded", "any"; default: "open"
- `mode` — string; optional.  Allowed: "shadow", "suggest"
- `kind` — string; optional.  Allowed: "raise", "lower"
- `limit` — integer; optional. The most results to return (default 100) minimum: 1; maximum: 200; default: 100
- `after` — string; optional. A suggestion id from nextAfter: the page after it

#### Output

- `suggestions` — array; required. 
  - `suggestions[]` — object; optional. 
    - `suggestions[].id` — string; required. The pricing suggestion's id, from list_pricing_suggestions
    - `suggestions[].proposalId` — string or null; required. Its proposal (prp_…). In suggest mode, approve_proposal on it approves this suggestion
    - `suggestions[].status` — string; required.  Allowed: "open", "applied", "undone", "rejected", "expired", "superseded"
    - `suggestions[].stale` — object or null; required. 
      - `suggestions[].stale.reason` — string; required. 
    - `suggestions[].mode` — string; required. shadow: recorded for evaluation, never in the Inbox (a member with pricing:approve may still apply it). suggest: an Inbox card Allowed: "shadow", "suggest"
    - `suggestions[].kind` — string; required.  Allowed: "raise", "lower"
    - `suggestions[].runDate` — string; required. The location's date of the nightly run that made it format: "date"
    - `suggestions[].session` — object; required. 
      - `suggestions[].session.id` — string; required. The session's id, from list_sessions
      - `suggestions[].session.startsAt` — string; required.  format: "date-time"
      - `suggestions[].session.endsAt` — string; required.  format: "date-time"
      - `suggestions[].session.localDate` — string; required. A local date at the location, YYYY-MM-DD format: "date"
      - `suggestions[].session.localTime` — string; required. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
      - `suggestions[].session.weekday` — string; required. 
      - `suggestions[].session.timeZone` — string; required. 
      - `suggestions[].session.productId` — string; required. The product's id, from list_products
      - `suggestions[].session.productName` — string; required. 
      - `suggestions[].session.locationId` — string; required. The location's id, from get_setup
      - `suggestions[].session.locationName` — string; required. 
    - `suggestions[].ticketType` — object; required. 
      - `suggestions[].ticketType.id` — string; required. The ticket type's id, from get_product
      - `suggestions[].ticketType.name` — string; required. 
    - `suggestions[].currency` — string; required. 
    - `suggestions[].currentAmount` — integer; required. The ticket's price for one guest when suggested: per seat, minor units, before the service charge and tax (what set_session_price sets)
    - `suggestions[].proposedAmount` — integer; required. What applying it makes the session's own price for this ticket type, per seat, before the service charge and tax
    - `suggestions[].changeAmount` — integer; required. proposedAmount - currentAmount
    - `suggestions[].changePpm` — integer; required. The change over currentAmount in parts per million, signed (-50000 is 5% lower) minimum: -9007199254740991; maximum: 9007199254740991
    - `suggestions[].changePercent` — number; required. The same in percent, signed, to one decimal place (4.7, -8.3): filter on its absolute value
    - `suggestions[].why` — string; required. From the signals, in Lokl's words (never a model's)
    - `suggestions[].summary` — string or null; required. The night's batch summary for the location (suggest mode only; null in shadow mode or when AI was unavailable)
    - `suggestions[].signals` — object; required. What the suggestion saw when it was made
      - `suggestions[].signals.booked` — integer; required. Seats of confirmed bookings minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.seatsLeft` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.leadMinutes` — integer; required. From the run to the start minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.daysOut` — integer; required. Calendar days to the session's date in its location's time zone minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.fill` — number; required. booked / capacity
      - `suggestions[].signals.expectedBooked` — integer; required. What similar past sessions had booked at the same lead time (Home's expectedBooked) minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.expectedFill` — number; required. expectedBooked / capacity
      - `suggestions[].signals.paceRatio` — number or null; required. booked / expectedBooked; null when similar sessions had nobody booked this far out
      - `suggestions[].signals.pace` — string; required.  Allowed: "ahead", "behind", "on"
      - `suggestions[].signals.expectedAtStart` — integer; required. What similar sessions ended with minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.projectedAtStart` — integer; required. Where this session is heading at its pace, at most its capacity minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.sampleSize` — integer; required. Similar past sessions behind the curve: same product, location, weekday and local start time, the last 8 that ran minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.soldOutOfSample` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].signals.history` — array; required. History in staff's words
        - `suggestions[].signals.history[]` — string; optional. 
    - `suggestions[].guardrails` — object; required. The guardrails the proposed amount was held to
      - `suggestions[].guardrails.baseAmount` — integer; required. The ticket type's price at the location, before rules
      - `suggestions[].guardrails.floorAmount` — integer; required. Minor units (cents) in the location's currency
      - `suggestions[].guardrails.ceilingAmount` — integer; required. Minor units (cents) in the location's currency
      - `suggestions[].guardrails.maxStepPpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].guardrails.roundTo` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].guardrails.changesThisWeek` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].guardrails.maxChangesPerWeek` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].guardrails.limitedBy` — string or null; required. What held the change back from what the pace asked for, if anything Allowed: "step", "ceiling", "floor"
      - `suggestions[].guardrails.ownPrice` — boolean; required. The session already had its own price, from an earlier suggestion
    - `suggestions[].expectedRevenueChange` — integer or null; required. Tickets 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[].createdAt` — string; required.  format: "date-time"
    - `suggestions[].expiresAt` — string or null; required.  format: "date-time"
    - `suggestions[].applied` — object or null; required. 
      - `suggestions[].applied.changesetId` — string; required. 
      - `suggestions[].applied.appliedAt` — string; required.  format: "date-time"
    - `suggestions[].rejectReason` — string or null; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
    - `suggestions[].rejectNote` — string or null; required. 
    - `suggestions[].outcome` — object or null; required. What happened, once the session ended
      - `suggestions[].outcome.bookedAtStart` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].outcome.capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
      - `suggestions[].outcome.soldOut` — boolean; required. 
      - `suggestions[].outcome.amountAtStart` — integer or null; required. The ticket type's price for one guest when the session started
      - `suggestions[].outcome.priceChanged` — boolean; required. amountAtStart differs from currentAmount
      - `suggestions[].outcome.applied` — boolean; required. This suggestion's change stood when the session started
      - `suggestions[].outcome.accurate` — boolean; required. A raise: sold out or ended above expectedAtStart. A lower: ended below it
- `nextAfter` — string or null; required. Pass as `after` for the next page; null on the last
- `runs` — array; required. The 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[]` — object; optional. A location's latest completed nightly run
    - `runs[].locationId` — string; required. The location's id, from get_setup
    - `runs[].locationName` — string; required. 
    - `runs[].runDate` — string; required. The location's date of the run format: "date"
    - `runs[].completedAt` — string; required. When the run finished format: "date-time"
    - `runs[].mode` — string or null; required. null when the run stopped before it knew (stoppedBecause) Allowed: "shadow", "suggest"
    - `runs[].made` — integer; required. Suggestions it made minimum: -9007199254740991; maximum: 9007199254740991
    - `runs[].stoppedBecause` — string or null; required. Why it did nothing at all: the agent is off, paused, or can't propose here
    - `runs[].skipped` — array; required. Why sessions and ticket types it looked at got none, each reason with how many
      - `runs[].skipped[]` — object; optional. 
        - `runs[].skipped[].reason` — string; required. 
        - `runs[].skipped[].count` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991

### 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

- `suggestionId` — string; required. The pricing suggestion's id, from list_pricing_suggestions
- `reason` — string; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
- `note` — string; optional.  minLength: 1; maxLength: 500

#### Output

- `id` — string; required. The pricing suggestion's id, from list_pricing_suggestions
- `proposalId` — string or null; required. Its proposal (prp_…). In suggest mode, approve_proposal on it approves this suggestion
- `status` — string; required.  Allowed: "open", "applied", "undone", "rejected", "expired", "superseded"
- `stale` — object or null; required. 
  - `stale.reason` — string; required. 
- `mode` — string; required. shadow: recorded for evaluation, never in the Inbox (a member with pricing:approve may still apply it). suggest: an Inbox card Allowed: "shadow", "suggest"
- `kind` — string; required.  Allowed: "raise", "lower"
- `runDate` — string; required. The location's date of the nightly run that made it format: "date"
- `session` — object; required. 
  - `session.id` — string; required. The session's id, from list_sessions
  - `session.startsAt` — string; required.  format: "date-time"
  - `session.endsAt` — string; required.  format: "date-time"
  - `session.localDate` — string; required. A local date at the location, YYYY-MM-DD format: "date"
  - `session.localTime` — string; required. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
  - `session.weekday` — string; required. 
  - `session.timeZone` — string; required. 
  - `session.productId` — string; required. The product's id, from list_products
  - `session.productName` — string; required. 
  - `session.locationId` — string; required. The location's id, from get_setup
  - `session.locationName` — string; required. 
- `ticketType` — object; required. 
  - `ticketType.id` — string; required. The ticket type's id, from get_product
  - `ticketType.name` — string; required. 
- `currency` — string; required. 
- `currentAmount` — integer; required. The ticket's price for one guest when suggested: per seat, minor units, before the service charge and tax (what set_session_price sets)
- `proposedAmount` — integer; required. What applying it makes the session's own price for this ticket type, per seat, before the service charge and tax
- `changeAmount` — integer; required. proposedAmount - currentAmount
- `changePpm` — integer; required. The change over currentAmount in parts per million, signed (-50000 is 5% lower) minimum: -9007199254740991; maximum: 9007199254740991
- `changePercent` — number; required. The same in percent, signed, to one decimal place (4.7, -8.3): filter on its absolute value
- `why` — string; required. From the signals, in Lokl's words (never a model's)
- `summary` — string or null; required. The night's batch summary for the location (suggest mode only; null in shadow mode or when AI was unavailable)
- `signals` — object; required. What the suggestion saw when it was made
  - `signals.booked` — integer; required. Seats of confirmed bookings minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.seatsLeft` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.leadMinutes` — integer; required. From the run to the start minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.daysOut` — integer; required. Calendar days to the session's date in its location's time zone minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.fill` — number; required. booked / capacity
  - `signals.expectedBooked` — integer; required. What similar past sessions had booked at the same lead time (Home's expectedBooked) minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.expectedFill` — number; required. expectedBooked / capacity
  - `signals.paceRatio` — number or null; required. booked / expectedBooked; null when similar sessions had nobody booked this far out
  - `signals.pace` — string; required.  Allowed: "ahead", "behind", "on"
  - `signals.expectedAtStart` — integer; required. What similar sessions ended with minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.projectedAtStart` — integer; required. Where this session is heading at its pace, at most its capacity minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.sampleSize` — integer; required. Similar past sessions behind the curve: same product, location, weekday and local start time, the last 8 that ran minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.soldOutOfSample` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `signals.history` — array; required. History in staff's words
    - `signals.history[]` — string; optional. 
- `guardrails` — object; required. The guardrails the proposed amount was held to
  - `guardrails.baseAmount` — integer; required. The ticket type's price at the location, before rules
  - `guardrails.floorAmount` — integer; required. Minor units (cents) in the location's currency
  - `guardrails.ceilingAmount` — integer; required. Minor units (cents) in the location's currency
  - `guardrails.maxStepPpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `guardrails.roundTo` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `guardrails.changesThisWeek` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `guardrails.maxChangesPerWeek` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `guardrails.limitedBy` — string or null; required. What held the change back from what the pace asked for, if anything Allowed: "step", "ceiling", "floor"
  - `guardrails.ownPrice` — boolean; required. The session already had its own price, from an earlier suggestion
- `expectedRevenueChange` — integer or null; required. Tickets 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
- `createdAt` — string; required.  format: "date-time"
- `expiresAt` — string or null; required.  format: "date-time"
- `applied` — object or null; required. 
  - `applied.changesetId` — string; required. 
  - `applied.appliedAt` — string; required.  format: "date-time"
- `rejectReason` — string or null; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
- `rejectNote` — string or null; required. 
- `outcome` — object or null; required. What happened, once the session ended
  - `outcome.bookedAtStart` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `outcome.capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `outcome.soldOut` — boolean; required. 
  - `outcome.amountAtStart` — integer or null; required. The ticket type's price for one guest when the session started
  - `outcome.priceChanged` — boolean; required. amountAtStart differs from currentAmount
  - `outcome.applied` — boolean; required. This suggestion's change stood when the session started
  - `outcome.accurate` — boolean; required. A raise: sold out or ended above expectedAtStart. A lower: ended below it
