Pricing tools
All tool areas. 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
productIdThe product's id, from list_products
namelocationIdOnly at this location; null for every location
ticketTypeIdOnly this ticket type; null for every type priced on its own (types that follow another inherit the result)
priorityRules apply lowest first; ties by name
activeweekdaysISO weekdays of the session: 1 is Monday, 7 Sunday
weekdays[]startTimeFromLocal start time, from (inclusive)
startTimeToLocal start time, to (exclusive)
startsOnFromSeason: first local date (inclusive)
startsOnToSeason: last local date (inclusive)
bookedMinutesBeforeMinLead time: booked at least this many minutes before the start
bookedMinutesBeforeMaxLead time: booked less than this many minutes before the start
occupancyPercentFromSeats taken before the booking, as % of capacity, from (inclusive)
occupancyPercentToSeats taken before the booking, as % of capacity, to (exclusive)
partySizeMinParty size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price
partySizeMaxParty size, at most (inclusive)
adjustmentset: the price becomes
value(not for party-size rules); amount: addsvalue(negative subtracts); percent: addsvalueparts per million (-100000 is 10% off)valueMinor units (cents) for set and amount; parts per million for percent
Output
idproductIddescriptionnamelocationIdOnly at this location; null for every location
ticketTypeIdOnly this ticket type; null for every type priced on its own (types that follow another inherit the result)
priorityRules apply lowest first; ties by name
activeweekdaysISO weekdays of the session: 1 is Monday, 7 Sunday
weekdays[]startTimeFromLocal start time, from (inclusive)
startTimeToLocal start time, to (exclusive)
startsOnFromSeason: first local date (inclusive)
startsOnToSeason: last local date (inclusive)
bookedMinutesBeforeMinLead time: booked at least this many minutes before the start
bookedMinutesBeforeMaxLead time: booked less than this many minutes before the start
occupancyPercentFromSeats taken before the booking, as % of capacity, from (inclusive)
occupancyPercentToSeats taken before the booking, as % of capacity, to (exclusive)
partySizeMinParty size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price
partySizeMaxParty size, at most (inclusive)
adjustmentset: the price becomes
value(not for party-size rules); amount: addsvalue(negative subtracts); percent: addsvalueparts per million (-100000 is 10% off)valueMinor units (cents) for set and amount; parts per million for percent
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
sessionIdThe session's id, from list_sessions
ticketTypeIdOnly this ticket type's changes (and rules and guardrails that reach every type)
limitThe most results to return (default 50)
beforeAn event id; returns entries older than it
Output
sessionIdcurrencycurrentcurrent[]current[].ticketTypeIdcurrent[].ticketTypeNamecurrent[].kindcurrent[].amountPer seat before price rules (a group option's base charge); null: no price, so it can't be booked
current[].perPersonAmountMinor units (cents) in the location's currency
current[].sourcesession: the session's own price; schedule: its schedule's own price (set_schedule_price); base: the price at its location
current[].followsTicketTypeIdcurrent[].currencyentriesentries[]entries[].eventIdentries[].atentries[].actorentries[].actor.typeentries[].actor.identries[].actor.viaentries[].actorNameThe 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[].kindentries[].undoTrue when this undid an earlier change
entries[].ticketTypeIdentries[].ticketTypeNameentries[].beforeThe 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[].afterThe same, after the change; null when removed, not recorded, or it follows another type
entries[].perPersonBeforeA group option's rate per person above its included seats
entries[].perPersonAfterMinor units (cents) in the location's currency
entries[].currencyentries[].summaryentries[].changesetIdnextBefore
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
productIdThe product's id, from list_products
locationIdOnly rules that apply at this location (its own and those for every location)
Output
rulesrules[]rules[].idrules[].productIdrules[].descriptionrules[].namerules[].locationIdOnly at this location; null for every location
rules[].ticketTypeIdOnly this ticket type; null for every type priced on its own (types that follow another inherit the result)
rules[].priorityRules apply lowest first; ties by name
rules[].activerules[].weekdaysISO weekdays of the session: 1 is Monday, 7 Sunday
rules[].weekdays[]rules[].startTimeFromLocal start time, from (inclusive)
rules[].startTimeToLocal start time, to (exclusive)
rules[].startsOnFromSeason: first local date (inclusive)
rules[].startsOnToSeason: last local date (inclusive)
rules[].bookedMinutesBeforeMinLead time: booked at least this many minutes before the start
rules[].bookedMinutesBeforeMaxLead time: booked less than this many minutes before the start
rules[].occupancyPercentFromSeats taken before the booking, as % of capacity, from (inclusive)
rules[].occupancyPercentToSeats taken before the booking, as % of capacity, to (exclusive)
rules[].partySizeMinParty size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price
rules[].partySizeMaxParty size, at most (inclusive)
rules[].adjustmentset: the price becomes
value(not for party-size rules); amount: addsvalue(negative subtracts); percent: addsvalueparts per million (-100000 is 10% off)rules[].valueMinor units (cents) for set and amount; parts per million for percent
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
productIdThe product's id, from list_products
locationIdThe location's id, from get_setup
fromFirst local date; today at the location by default
daysHow many local days from
from(default 14)seatsTakenPreview every session as if this many seats were taken
proposedRulesThe 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[]proposedRules[].idThe price rule's id, from list_price_rules
proposedRules[].nameproposedRules[].locationIdOnly at this location; null for every location
proposedRules[].ticketTypeIdOnly this ticket type; null for every type priced on its own (types that follow another inherit the result)
proposedRules[].priorityRules apply lowest first; ties by name
proposedRules[].activeproposedRules[].weekdaysISO weekdays of the session: 1 is Monday, 7 Sunday
proposedRules[].weekdays[]proposedRules[].startTimeFromLocal start time, from (inclusive)
proposedRules[].startTimeToLocal start time, to (exclusive)
proposedRules[].startsOnFromSeason: first local date (inclusive)
proposedRules[].startsOnToSeason: last local date (inclusive)
proposedRules[].bookedMinutesBeforeMinLead time: booked at least this many minutes before the start
proposedRules[].bookedMinutesBeforeMaxLead time: booked less than this many minutes before the start
proposedRules[].occupancyPercentFromSeats taken before the booking, as % of capacity, from (inclusive)
proposedRules[].occupancyPercentToSeats taken before the booking, as % of capacity, to (exclusive)
proposedRules[].partySizeMinParty size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price
proposedRules[].partySizeMaxParty size, at most (inclusive)
proposedRules[].adjustmentset: the price becomes
value(not for party-size rules); amount: addsvalue(negative subtracts); percent: addsvalueparts per million (-100000 is 10% off)proposedRules[].valueMinor units (cents) for set and amount; parts per million for percent
Output
currencypricesIncludeTaxWhether
priceincludes tax (the organization's or entity's setting). When false, show the tax's name beside it ("+ HST")taxNamesThe taxes charged, by name, for "+ HST" (empty when untaxed)
taxNames[]sessionssessions[]sessions[].sessionIdsessions[].startsAtsessions[].seatsTakensessions[].capacitysessions[].bandssessions[].bands[]sessions[].bands[].partySizeFromsessions[].bands[].partySizeTosessions[].bands[].ticketTypessessions[].bands[].ticketTypes[]sessions[].bands[].ticketTypes[].ticketTypeIdsessions[].bands[].ticketTypes[].namesessions[].bands[].ticketTypes[].unitAmountMinor units (cents) in the location's currency
sessions[].bands[].ticketTypes[].pricePer 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[].priceWithTaxPer person with fees and tax
sessions[].bands[].ticketTypes[].stepssessions[].bands[].ticketTypes[].steps[]sessions[].bands[].ticketTypes[].steps[].kindschedule: the price started at its schedule's own price (set_schedule_price), not the location's; it comes first, named "Schedule price"
sessions[].bands[].ticketTypes[].steps[].amountMinor units (cents) in the location's currency
sessions[].bands[].ticketTypes[].steps[].ruleIdA prr_ id, or proposed-N for a proposed rule
sessions[].bands[].ticketTypes[].steps[].namesessions[].bands[].ticketTypes[].steps[].ticketTypeIdsessions[].bands[].ticketTypes[].steps[].differenceMinor units (cents) in the location's currency
sessions[].bands[].ticketTypes[].steps[].scheduleIdA schedule step's schedule (sch_)
sessions[].bands[].ticketTypes[].taxNamesThe 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[]rangesranges[]ranges[].ticketTypeIdranges[].nameranges[].minThe lowest
priceranges[].maxThe highest
priceranges[].minWithTaxMinor units (cents) in the location's currency
ranges[].maxWithTaxMinor units (cents) in the location's currency
ranges[].fromThe lowest
pricefor the smallest party that can book (the guest's "from")ranges[].fromWithTaxMinor units (cents) in the location's currency
ranges[].taxNamesThe 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[]
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
scheduleIdThe schedule's id, from list_schedules
ticketTypeIdThe ticket type's id, from get_product
amountThe 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
perPersonAmountA 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
Output
scheduleIdticketTypeIdcurrencyamountThe schedule's price (a group option's base charge); null: it has none, and its sessions start from the location price
perPersonAmountA group option's rate per person above its included seats; null for an individual ticket type, or nobody above them
description
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
sessionIdThe session's id, from list_sessions
ticketTypeIdThe ticket type's id, from get_product
amountThe session's own price per seat in minor units; null goes back to its schedule's price or the location price, and rules
Output
sessionIdticketTypeIdcurrencyamountNull: 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
ticketTypeIdThe ticket type's id, from get_product
locationIdThe location's id, from get_setup
amountThe ticket type's own price per seat, in minor units (cents)
followsTicketTypeIdPrice this type as another type's final price plus
difference(VIP is Standard plus $40), so every rule flows through. One level deep.differenceWith followsTicketTypeId: added to that type's price (may be negative)
minAmountLowest price rules can take it to; null clears it (the floor setting applies). Left out keeps it.
maxAmountHighest price rules can take it to; null clears it (the ceiling setting applies). Left out keeps it.
removeRemove the price, so the type can't be booked at this location
Output
ticketTypeIdlocationIdcurrencypriceNull when removed: the type can't be booked there
price.amountThe own price, or the difference when it follows another type
price.followsTicketTypeIdprice.minAmountMinor units (cents) in the location's currency
price.maxAmountMinor units (cents) in the location's currency
description
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
priceRuleIdThe price rule's id, from list_price_rules
namelocationIdOnly at this location; null for every location
ticketTypeIdOnly this ticket type; null for every type priced on its own (types that follow another inherit the result)
priorityRules apply lowest first; ties by name
activeweekdaysISO weekdays of the session: 1 is Monday, 7 Sunday
weekdays[]startTimeFromLocal start time, from (inclusive)
startTimeToLocal start time, to (exclusive)
startsOnFromSeason: first local date (inclusive)
startsOnToSeason: last local date (inclusive)
bookedMinutesBeforeMinLead time: booked at least this many minutes before the start
bookedMinutesBeforeMaxLead time: booked less than this many minutes before the start
occupancyPercentFromSeats taken before the booking, as % of capacity, from (inclusive)
occupancyPercentToSeats taken before the booking, as % of capacity, to (exclusive)
partySizeMinParty size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price
partySizeMaxParty size, at most (inclusive)
adjustmentset: the price becomes
value(not for party-size rules); amount: addsvalue(negative subtracts); percent: addsvalueparts per million (-100000 is 10% off)valueMinor units (cents) for set and amount; parts per million for percent
Output
idproductIddescriptionnamelocationIdOnly at this location; null for every location
ticketTypeIdOnly this ticket type; null for every type priced on its own (types that follow another inherit the result)
priorityRules apply lowest first; ties by name
activeweekdaysISO weekdays of the session: 1 is Monday, 7 Sunday
weekdays[]startTimeFromLocal start time, from (inclusive)
startTimeToLocal start time, to (exclusive)
startsOnFromSeason: first local date (inclusive)
startsOnToSeason: last local date (inclusive)
bookedMinutesBeforeMinLead time: booked at least this many minutes before the start
bookedMinutesBeforeMaxLead time: booked less than this many minutes before the start
occupancyPercentFromSeats taken before the booking, as % of capacity, from (inclusive)
occupancyPercentToSeats taken before the booking, as % of capacity, to (exclusive)
partySizeMinParty size, at least (inclusive). A rule with a party size is a booking rule: the whole party gets its tier's price
partySizeMaxParty size, at most (inclusive)
adjustmentset: the price becomes
value(not for party-size rules); amount: addsvalue(negative subtracts); percent: addsvalueparts per million (-100000 is 10% off)valueMinor units (cents) for set and amount; parts per million for percent