# Pricing tools

[All tool areas](/docs/tools.md). Each tool acts within your access.

## Pricing

### create_price_rule

Add a price rule to a product: when its conditions hold (weekday, local start time, season, lead time, occupancy, party size; left out means any), it sets the price, or adds an amount (minor units) or a percentage (parts per million). Party size rules price the whole party at its tier, as in Bookeo. The preview shows the all-in price range per ticket type before and after, over the next 4 weeks. Prices stay within the guardrails (priceFloorPpm, priceCeilingPpm, or the price's own range), which clamp the rule rather than refuse it; the preview warns where they cut it back. Prices never depend on who the customer is.

Changes · Members of an organization · Needs pricing:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `name` — string; required.  minLength: 1; maxLength: 100
- `locationId` — string or null; optional. Only at this location; null for every location
- `ticketTypeId` — string or null; optional. Only this ticket type; null for every type priced on its own (types that follow another inherit the result)
- `priority` — integer; optional. Rules apply lowest first; ties by name minimum: -9007199254740991; maximum: 9007199254740991
- `active` — boolean; optional. 
- `weekdays` — array or null; optional. ISO weekdays of the session: 1 is Monday, 7 Sunday minItems: 1
  - `weekdays[]` — integer; optional.  minimum: 1; maximum: 7
- `startTimeFrom` — string or null; optional. Local start time, from (inclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startTimeTo` — string or null; optional. Local start time, to (exclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startsOnFrom` — string or null; optional. Season: first local date (inclusive) format: "date"
- `startsOnTo` — string or null; optional. Season: last local date (inclusive) format: "date"
- `bookedMinutesBeforeMin` — integer or null; optional. Lead time: booked at least this many minutes before the start minimum: 0; maximum: 9007199254740991
- `bookedMinutesBeforeMax` — integer or null; optional. Lead time: booked less than this many minutes before the start minimum: 1; maximum: 9007199254740991
- `occupancyPercentFrom` — integer or null; optional. Seats taken before the booking, as % of capacity, from (inclusive) minimum: 0; maximum: 100
- `occupancyPercentTo` — integer or null; optional. Seats taken before the booking, as % of capacity, to (exclusive) minimum: 0; maximum: 100
- `partySizeMin` — integer or null; optional. Party size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price minimum: 1; maximum: 9007199254740991
- `partySizeMax` — integer or null; optional. Party size, at most (inclusive) minimum: 1; maximum: 9007199254740991
- `adjustment` — string; required. set: the price becomes `value` (not for party-size rules); amount: adds `value` (negative subtracts); percent: adds `value` parts per million (-100000 is 10% off) Allowed: "set", "amount", "percent"
- `value` — integer; required. Minor units (cents) for set and amount; parts per million for percent minimum: -9007199254740991; maximum: 9007199254740991

#### Output

- `id` — string; required. 
- `productId` — string; required. 
- `description` — string; required. 
- `name` — string; required.  minLength: 1; maxLength: 100
- `locationId` — string or null; required. Only at this location; null for every location
- `ticketTypeId` — string or null; required. Only this ticket type; null for every type priced on its own (types that follow another inherit the result)
- `priority` — integer; required. Rules apply lowest first; ties by name minimum: -9007199254740991; maximum: 9007199254740991
- `active` — boolean; required. 
- `weekdays` — array or null; required. ISO weekdays of the session: 1 is Monday, 7 Sunday minItems: 1
  - `weekdays[]` — integer; optional.  minimum: 1; maximum: 7
- `startTimeFrom` — string or null; required. Local start time, from (inclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startTimeTo` — string or null; required. Local start time, to (exclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startsOnFrom` — string or null; required. Season: first local date (inclusive) format: "date"
- `startsOnTo` — string or null; required. Season: last local date (inclusive) format: "date"
- `bookedMinutesBeforeMin` — integer or null; required. Lead time: booked at least this many minutes before the start minimum: 0; maximum: 9007199254740991
- `bookedMinutesBeforeMax` — integer or null; required. Lead time: booked less than this many minutes before the start minimum: 1; maximum: 9007199254740991
- `occupancyPercentFrom` — integer or null; required. Seats taken before the booking, as % of capacity, from (inclusive) minimum: 0; maximum: 100
- `occupancyPercentTo` — integer or null; required. Seats taken before the booking, as % of capacity, to (exclusive) minimum: 0; maximum: 100
- `partySizeMin` — integer or null; required. Party size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price minimum: 1; maximum: 9007199254740991
- `partySizeMax` — integer or null; required. Party size, at most (inclusive) minimum: 1; maximum: 9007199254740991
- `adjustment` — string; required. set: the price becomes `value` (not for party-size rules); amount: adds `value` (negative subtracts); percent: adds `value` parts per million (-100000 is 10% off) Allowed: "set", "amount", "percent"
- `value` — integer; required. Minor units (cents) for set and amount; parts per million for percent minimum: -9007199254740991; maximum: 9007199254740991

### get_price_history

Show what a session's price changed through and who changed it, newest first: its own price (set or removed), its schedule's own prices (set_schedule_price), its ticket types' base prices at its location, group options' base charges and per-person rates there, price rules that could apply to its product and location (added, changed, removed), the price guardrail settings, a private session's terms, and undos of any of these. Each entry names the actor (`actorName`, the member's name), the ticket type, and the amounts before and after when they were recorded (older entries may lack them), and `current` ends the list: each ticket type's price for this session now before price rules, and whether it comes from the session's own price, its schedule's, or the base price. A price rule is listed when it could apply here, whether or not its conditions match this session; for what rules do to a price, use preview_prices. Page back with `before`. Pass `ticketTypeId` to follow one ticket type.

Reads · Members of an organization · Needs pricing:read

#### Input

- `sessionId` — string; required. The session's id, from list_sessions
- `ticketTypeId` — string; optional. Only this ticket type's changes (and rules and guardrails that reach every type)
- `limit` — integer; optional. The most results to return (default 50) minimum: 1; maximum: 100; default: 50
- `before` — string; optional. An event id; returns entries older than it

#### Output

- `sessionId` — string; required. 
- `currency` — string; required. 
- `current` — array; required. 
  - `current[]` — object; optional. 
    - `current[].ticketTypeId` — string; required. 
    - `current[].ticketTypeName` — string; required. 
    - `current[].kind` — string; required.  Allowed: "individual", "group"
    - `current[].amount` — integer or null; required. Per seat before price rules (a group option's base charge); null: no price, so it can't be booked
    - `current[].perPersonAmount` — integer or null; required. Minor units (cents) in the location's currency
    - `current[].source` — string or null; required. session: the session's own price; schedule: its schedule's own price (set_schedule_price); base: the price at its location Allowed: "session", "schedule", "base"
    - `current[].followsTicketTypeId` — string or null; required. 
    - `current[].currency` — string; required. 
- `entries` — array; required. 
  - `entries[]` — object; optional. 
    - `entries[].eventId` — string; required. 
    - `entries[].at` — string; required.  format: "date-time"
    - `entries[].actor` — object; required. 
      - `entries[].actor.type` — string; required.  Allowed: "user", "agent", "system", "guest"
      - `entries[].actor.id` — string or null; required. 
      - `entries[].actor.via` — string; required.  Allowed: "session", "api\_key", "oauth", "internal", "public"
    - `entries[].actorName` — string or null; required. The member's name (their email when they have none), even after they were removed; null for the system, an agent, a guest, or anyone no longer found
    - `entries[].kind` — string; required.  Allowed: "base\_price", "schedule\_price", "session\_price", "group\_option\_price", "price\_rule", "guardrail", "private\_session\_price"
    - `entries[].undo` — boolean; required. True when this undid an earlier change
    - `entries[].ticketTypeId` — string or null; required. 
    - `entries[].ticketTypeName` — string or null; required. 
    - `entries[].before` — integer or null; required. The price per seat (a group option's base charge) before the change, in minor units; null when the entry isn't a price, wasn't recorded, or follows another type
    - `entries[].after` — integer or null; required. The same, after the change; null when removed, not recorded, or it follows another type
    - `entries[].perPersonBefore` — integer or null; required. A group option's rate per person above its included seats
    - `entries[].perPersonAfter` — integer or null; required. Minor units (cents) in the location's currency
    - `entries[].currency` — string; required. 
    - `entries[].summary` — string; required. 
    - `entries[].changesetId` — string or null; required. 
- `nextBefore` — string or null; required. 

### list_price_rules

List a product's price rules, on and off, in the order they apply, each with its conditions, its adjustment, and a plain-English description. Rules change a ticket type's price by weekday, start time, season, lead time, occupancy, or party size. Use before creating or changing a rule, or to build `proposedRules` for preview_prices.

Reads · Members of an organization · Needs pricing:read

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; optional. Only rules that apply at this location (its own and those for every location)

#### Output

- `rules` — array; required. 
  - `rules[]` — object; optional. 
    - `rules[].id` — string; required. 
    - `rules[].productId` — string; required. 
    - `rules[].description` — string; required. 
    - `rules[].name` — string; required.  minLength: 1; maxLength: 100
    - `rules[].locationId` — string or null; required. Only at this location; null for every location
    - `rules[].ticketTypeId` — string or null; required. Only this ticket type; null for every type priced on its own (types that follow another inherit the result)
    - `rules[].priority` — integer; required. Rules apply lowest first; ties by name minimum: -9007199254740991; maximum: 9007199254740991
    - `rules[].active` — boolean; required. 
    - `rules[].weekdays` — array or null; required. ISO weekdays of the session: 1 is Monday, 7 Sunday minItems: 1
      - `rules[].weekdays[]` — integer; optional.  minimum: 1; maximum: 7
    - `rules[].startTimeFrom` — string or null; required. Local start time, from (inclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
    - `rules[].startTimeTo` — string or null; required. Local start time, to (exclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
    - `rules[].startsOnFrom` — string or null; required. Season: first local date (inclusive) format: "date"
    - `rules[].startsOnTo` — string or null; required. Season: last local date (inclusive) format: "date"
    - `rules[].bookedMinutesBeforeMin` — integer or null; required. Lead time: booked at least this many minutes before the start minimum: 0; maximum: 9007199254740991
    - `rules[].bookedMinutesBeforeMax` — integer or null; required. Lead time: booked less than this many minutes before the start minimum: 1; maximum: 9007199254740991
    - `rules[].occupancyPercentFrom` — integer or null; required. Seats taken before the booking, as % of capacity, from (inclusive) minimum: 0; maximum: 100
    - `rules[].occupancyPercentTo` — integer or null; required. Seats taken before the booking, as % of capacity, to (exclusive) minimum: 0; maximum: 100
    - `rules[].partySizeMin` — integer or null; required. Party size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price minimum: 1; maximum: 9007199254740991
    - `rules[].partySizeMax` — integer or null; required. Party size, at most (inclusive) minimum: 1; maximum: 9007199254740991
    - `rules[].adjustment` — string; required. set: the price becomes `value` (not for party-size rules); amount: adds `value` (negative subtracts); percent: adds `value` parts per million (-100000 is 10% off) Allowed: "set", "amount", "percent"
    - `rules[].value` — integer; required. Minor units (cents) for set and amount; parts per million for percent minimum: -9007199254740991; maximum: 9007199254740991

### preview_prices

Show what guests would pay at a product's sessions over a range of local dates: for each session and each band of party sizes that prices differently, every ticket type's price, its price per person as guests see it (`price`: fees in, and tax in only when `pricesIncludeTax`) and with tax, and the steps that led to it, plus the lowest to highest price per ticket type. Pass `proposedRules` (the complete set, e.g. from list_price_rules with changes) to see prices under rules not yet applied, and `seatsTaken` to see sessions as if that full. Changes nothing. Per-person prices only; for a whole party's total with fees and tax, use preview_hold or create_quote.

Reads · Members of an organization · Needs pricing:read

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; required. The location's id, from get_setup
- `from` — string; optional. First local date; today at the location by default format: "date"
- `days` — integer; optional. How many local days from `from` (default 14) minimum: 1; maximum: 31; default: 14
- `seatsTaken` — integer; optional. Preview every session as if this many seats were taken minimum: 0; maximum: 9007199254740991
- `proposedRules` — array; optional. The complete set of rules to preview instead of the product's active rules (a JSON array in the query string). Rules for another location are ignored; inactive ones are left out.
  - `proposedRules[]` — object; optional. 
    - `proposedRules[].id` — string; optional. The price rule's id, from list_price_rules
    - `proposedRules[].name` — string; required.  minLength: 1; maxLength: 100
    - `proposedRules[].locationId` — string or null; optional. Only at this location; null for every location
    - `proposedRules[].ticketTypeId` — string or null; optional. Only this ticket type; null for every type priced on its own (types that follow another inherit the result)
    - `proposedRules[].priority` — integer; optional. Rules apply lowest first; ties by name minimum: -9007199254740991; maximum: 9007199254740991
    - `proposedRules[].active` — boolean; optional. 
    - `proposedRules[].weekdays` — array or null; optional. ISO weekdays of the session: 1 is Monday, 7 Sunday minItems: 1
      - `proposedRules[].weekdays[]` — integer; optional.  minimum: 1; maximum: 7
    - `proposedRules[].startTimeFrom` — string or null; optional. Local start time, from (inclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
    - `proposedRules[].startTimeTo` — string or null; optional. Local start time, to (exclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
    - `proposedRules[].startsOnFrom` — string or null; optional. Season: first local date (inclusive) format: "date"
    - `proposedRules[].startsOnTo` — string or null; optional. Season: last local date (inclusive) format: "date"
    - `proposedRules[].bookedMinutesBeforeMin` — integer or null; optional. Lead time: booked at least this many minutes before the start minimum: 0; maximum: 9007199254740991
    - `proposedRules[].bookedMinutesBeforeMax` — integer or null; optional. Lead time: booked less than this many minutes before the start minimum: 1; maximum: 9007199254740991
    - `proposedRules[].occupancyPercentFrom` — integer or null; optional. Seats taken before the booking, as % of capacity, from (inclusive) minimum: 0; maximum: 100
    - `proposedRules[].occupancyPercentTo` — integer or null; optional. Seats taken before the booking, as % of capacity, to (exclusive) minimum: 0; maximum: 100
    - `proposedRules[].partySizeMin` — integer or null; optional. Party size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price minimum: 1; maximum: 9007199254740991
    - `proposedRules[].partySizeMax` — integer or null; optional. Party size, at most (inclusive) minimum: 1; maximum: 9007199254740991
    - `proposedRules[].adjustment` — string; required. set: the price becomes `value` (not for party-size rules); amount: adds `value` (negative subtracts); percent: adds `value` parts per million (-100000 is 10% off) Allowed: "set", "amount", "percent"
    - `proposedRules[].value` — integer; required. Minor units (cents) for set and amount; parts per million for percent minimum: -9007199254740991; maximum: 9007199254740991

#### Output

- `currency` — string; required. 
- `pricesIncludeTax` — boolean; required. Whether `price` includes tax (the organization's or entity's setting). When false, show the tax's name beside it ("+ HST")
- `taxNames` — array; required. The taxes charged, by name, for "+ HST" (empty when untaxed)
  - `taxNames[]` — string; optional. 
- `sessions` — array; required. 
  - `sessions[]` — object; optional. 
    - `sessions[].sessionId` — string; required. 
    - `sessions[].startsAt` — string; required.  format: "date-time"
    - `sessions[].seatsTaken` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `sessions[].capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `sessions[].bands` — array; required. 
      - `sessions[].bands[]` — object; optional. 
        - `sessions[].bands[].partySizeFrom` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `sessions[].bands[].partySizeTo` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `sessions[].bands[].ticketTypes` — array; required. 
          - `sessions[].bands[].ticketTypes[]` — object; optional. 
            - `sessions[].bands[].ticketTypes[].ticketTypeId` — string; required. 
            - `sessions[].bands[].ticketTypes[].name` — string; required. 
            - `sessions[].bands[].ticketTypes[].unitAmount` — integer or null; required. Minor units (cents) in the location's currency
            - `sessions[].bands[].ticketTypes[].price` — integer or null; required. Per person as shown to guests under the operator's setting: the service charge and other fees in, and tax in only when pricesIncludeTax is on. A party's total isn't this times the party: preview_hold gives it
            - `sessions[].bands[].ticketTypes[].priceWithTax` — integer or null; required. Per person with fees and tax
            - `sessions[].bands[].ticketTypes[].steps` — array; required. 
              - `sessions[].bands[].ticketTypes[].steps[]` — object; optional. 
                - `sessions[].bands[].ticketTypes[].steps[].kind` — string; required. schedule: the price started at its schedule's own price (set_schedule_price), not the location's; it comes first, named "Schedule price" Allowed: "schedule", "rule", "relative", "rounding", "floor", "ceiling"
                - `sessions[].bands[].ticketTypes[].steps[].amount` — integer; required. Minor units (cents) in the location's currency
                - `sessions[].bands[].ticketTypes[].steps[].ruleId` — string; optional. A prr_ id, or proposed-N for a proposed rule
                - `sessions[].bands[].ticketTypes[].steps[].name` — string; optional. 
                - `sessions[].bands[].ticketTypes[].steps[].ticketTypeId` — string; optional. 
                - `sessions[].bands[].ticketTypes[].steps[].difference` — integer; optional. Minor units (cents) in the location's currency
                - `sessions[].bands[].ticketTypes[].steps[].scheduleId` — string; optional. A schedule step's schedule (sch_)
            - `sessions[].bands[].ticketTypes[].taxNames` — array; optional. The taxes this ticket type's seats are charged, by name, for "+ HST" beside its price (empty when untaxed): the product's, plus those of the add-ons its package includes with a share of its price (a VIP including a wine pairing in BC: GST and PST, where the dinner alone is GST). Show these beside this price, not the session's taxNames. Always present
              - `sessions[].bands[].ticketTypes[].taxNames[]` — string; optional. 
- `ranges` — array; required. 
  - `ranges[]` — object; optional. 
    - `ranges[].ticketTypeId` — string; required. 
    - `ranges[].name` — string; required. 
    - `ranges[].min` — integer; required. The lowest `price`
    - `ranges[].max` — integer; required. The highest `price`
    - `ranges[].minWithTax` — integer; required. Minor units (cents) in the location's currency
    - `ranges[].maxWithTax` — integer; required. Minor units (cents) in the location's currency
    - `ranges[].from` — integer; required. The lowest `price` for the smallest party that can book (the guest's "from")
    - `ranges[].fromWithTax` — integer; required. Minor units (cents) in the location's currency
    - `ranges[].taxNames` — array; optional. The taxes this ticket type's seats are charged, by name, for "+ HST" beside its price (empty when untaxed): the product's, plus those of the add-ons its package includes with a share of its price (a VIP including a wine pairing in BC: GST and PST, where the dinner alone is GST). Show these beside this price, not the session's taxNames. Always present
      - `ranges[].taxNames[]` — string; optional. 

### set_schedule_price

Give a schedule its own price for a ticket type (from get_product), used by every session the schedule generates on every date it runs, in place of the location price (set_ticket_type_price); when the schedule ends, its sessions are over and prices are back to the location's. Sessions outside it (another schedule's, a one-off, a private session) keep the location price. `amount` is per seat in minor units; for a group option's ticket type it's the base charge, with `perPersonAmount` above the included seats. `amount: null` removes it. Price rules and the guardrails apply on top, a session's own price (set_session_price) still replaces it, and a type that follows another (VIP: Standard plus $40) follows it unless the schedule gives that type its own. The ticket type must be the schedule's product's and priced at its location. The preview shows the price per person before and after over the schedule's next 4 weeks. Holds already placed and existing bookings keep their prices.

Changes · Members of an organization · Needs pricing:write

#### Input

- `scheduleId` — string; required. The schedule's id, from list_schedules
- `ticketTypeId` — string; required. The ticket type's id, from get_product
- `amount` — integer or null; required. The schedule's price per seat in minor units, or a group option's base charge covering its included seats; null removes it, so the schedule's sessions start from the location price again minimum: 1
- `perPersonAmount` — integer or null; optional. A group option's rate per person above its included seats at the schedule's sessions (null: nobody above them). Required for a group option's ticket type; left out for any other minimum: 0

#### Output

- `scheduleId` — string; required. 
- `ticketTypeId` — string; required. 
- `currency` — string; required. 
- `amount` — integer or null; required. The schedule's price (a group option's base charge); null: it has none, and its sessions start from the location price
- `perPersonAmount` — integer or null; required. A group option's rate per person above its included seats; null for an individual ticket type, or nobody above them
- `description` — string; required. 

### set_session_price

Give one session its own price for a ticket type (minor units per seat; a private session's price is changed with update_private_session, a group option's with set_group_option_price), or clear it with `amount: null` to go back to its schedule's price (set_schedule_price) or the location price, and rules. A session's own price replaces those and skips session rules and the guardrails; party size rules still apply. Holds already placed keep their prices.

Changes · Members of an organization · Needs pricing:write

#### Input

- `sessionId` — string; required. The session's id, from list_sessions
- `ticketTypeId` — string; required. The ticket type's id, from get_product
- `amount` — integer or null; required. The session's own price per seat in minor units; null goes back to its schedule's price or the location price, and rules minimum: 0

#### Output

- `sessionId` — string; required. 
- `ticketTypeId` — string; required. 
- `currency` — string; required. 
- `amount` — integer or null; required. Null: its schedule's price or the location price applies

### set_ticket_type_price

Set a ticket type's price at a location (a group option's is set with set_group_option_price): its own `amount` per seat (minor units), or `followsTicketTypeId` plus a `difference` (VIP is Standard plus $40, so every price rule flows through; one level deep), and optionally the range rules keep it in (`minAmount`, `maxAmount`). `remove: true` takes the price away, so the type can't be booked there. Without amount or follows, only the range changes; a range that would leave one of the type's schedule prices there (set_schedule_price) outside it is refused (`conflict`, each schedule and its amount in `issues`). This is the base price before price rules; the preview shows before and after.

Changes · Members of an organization · Needs pricing:write

#### Input

- `ticketTypeId` — string; required. The ticket type's id, from get_product
- `locationId` — string; required. The location's id, from get_setup
- `amount` — integer; optional. The ticket type's own price per seat, in minor units (cents) minimum: 0
- `followsTicketTypeId` — string; optional. Price this type as another type's final price plus `difference` (VIP is Standard plus $40), so every rule flows through. One level deep.
- `difference` — integer; optional. With followsTicketTypeId: added to that type's price (may be negative)
- `minAmount` — integer or null; optional. Lowest price rules can take it to; null clears it (the floor setting applies). Left out keeps it. minimum: 0
- `maxAmount` — integer or null; optional. Highest price rules can take it to; null clears it (the ceiling setting applies). Left out keeps it. minimum: 0
- `remove` — boolean; optional. Remove the price, so the type can't be booked at this location

#### Output

- `ticketTypeId` — string; required. 
- `locationId` — string; required. 
- `currency` — string; required. 
- `price` — object or null; required. Null when removed: the type can't be booked there
  - `price.amount` — integer; required. The own price, or the difference when it follows another type
  - `price.followsTicketTypeId` — string or null; required. 
  - `price.minAmount` — integer or null; required. Minor units (cents) in the location's currency
  - `price.maxAmount` — integer or null; required. Minor units (cents) in the location's currency
- `description` — string; required. 

### update_price_rule

Change a price rule: any of its fields, leaving the rest as they are (null clears a condition, so it matches anything). Turn a rule off with `active: false`; there's no delete. The preview shows the all-in price range per ticket type before and after, over the next 4 weeks.

Changes · Members of an organization · Needs pricing:write

#### Input

- `priceRuleId` — string; required. The price rule's id, from list_price_rules
- `name` — string; optional.  minLength: 1; maxLength: 100
- `locationId` — string or null; optional. Only at this location; null for every location
- `ticketTypeId` — string or null; optional. Only this ticket type; null for every type priced on its own (types that follow another inherit the result)
- `priority` — integer; optional. Rules apply lowest first; ties by name minimum: -9007199254740991; maximum: 9007199254740991
- `active` — boolean; optional. 
- `weekdays` — array or null; optional. ISO weekdays of the session: 1 is Monday, 7 Sunday minItems: 1
  - `weekdays[]` — integer; optional.  minimum: 1; maximum: 7
- `startTimeFrom` — string or null; optional. Local start time, from (inclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startTimeTo` — string or null; optional. Local start time, to (exclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startsOnFrom` — string or null; optional. Season: first local date (inclusive) format: "date"
- `startsOnTo` — string or null; optional. Season: last local date (inclusive) format: "date"
- `bookedMinutesBeforeMin` — integer or null; optional. Lead time: booked at least this many minutes before the start minimum: 0; maximum: 9007199254740991
- `bookedMinutesBeforeMax` — integer or null; optional. Lead time: booked less than this many minutes before the start minimum: 1; maximum: 9007199254740991
- `occupancyPercentFrom` — integer or null; optional. Seats taken before the booking, as % of capacity, from (inclusive) minimum: 0; maximum: 100
- `occupancyPercentTo` — integer or null; optional. Seats taken before the booking, as % of capacity, to (exclusive) minimum: 0; maximum: 100
- `partySizeMin` — integer or null; optional. Party size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price minimum: 1; maximum: 9007199254740991
- `partySizeMax` — integer or null; optional. Party size, at most (inclusive) minimum: 1; maximum: 9007199254740991
- `adjustment` — string; optional. set: the price becomes `value` (not for party-size rules); amount: adds `value` (negative subtracts); percent: adds `value` parts per million (-100000 is 10% off) Allowed: "set", "amount", "percent"
- `value` — integer; optional. Minor units (cents) for set and amount; parts per million for percent minimum: -9007199254740991; maximum: 9007199254740991

#### Output

- `id` — string; required. 
- `productId` — string; required. 
- `description` — string; required. 
- `name` — string; required.  minLength: 1; maxLength: 100
- `locationId` — string or null; required. Only at this location; null for every location
- `ticketTypeId` — string or null; required. Only this ticket type; null for every type priced on its own (types that follow another inherit the result)
- `priority` — integer; required. Rules apply lowest first; ties by name minimum: -9007199254740991; maximum: 9007199254740991
- `active` — boolean; required. 
- `weekdays` — array or null; required. ISO weekdays of the session: 1 is Monday, 7 Sunday minItems: 1
  - `weekdays[]` — integer; optional.  minimum: 1; maximum: 7
- `startTimeFrom` — string or null; required. Local start time, from (inclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startTimeTo` — string or null; required. Local start time, to (exclusive) pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `startsOnFrom` — string or null; required. Season: first local date (inclusive) format: "date"
- `startsOnTo` — string or null; required. Season: last local date (inclusive) format: "date"
- `bookedMinutesBeforeMin` — integer or null; required. Lead time: booked at least this many minutes before the start minimum: 0; maximum: 9007199254740991
- `bookedMinutesBeforeMax` — integer or null; required. Lead time: booked less than this many minutes before the start minimum: 1; maximum: 9007199254740991
- `occupancyPercentFrom` — integer or null; required. Seats taken before the booking, as % of capacity, from (inclusive) minimum: 0; maximum: 100
- `occupancyPercentTo` — integer or null; required. Seats taken before the booking, as % of capacity, to (exclusive) minimum: 0; maximum: 100
- `partySizeMin` — integer or null; required. Party size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price minimum: 1; maximum: 9007199254740991
- `partySizeMax` — integer or null; required. Party size, at most (inclusive) minimum: 1; maximum: 9007199254740991
- `adjustment` — string; required. set: the price becomes `value` (not for party-size rules); amount: adds `value` (negative subtracts); percent: adds `value` parts per million (-100000 is 10% off) Allowed: "set", "amount", "percent"
- `value` — integer; required. Minor units (cents) for set and amount; parts per million for percent minimum: -9007199254740991; maximum: 9007199254740991
