Add-ons tools
All tool areas. Each tool acts within your access.
Add-ons
create_add_on
Create an add-on: an extra sold with other products, such as merchandise (a tote bag), a drink pairing, or the contents of a package (the VIP package). Counted per person or per booking, with optional quantity limits, taxed by its own tax class, and priced (minor units, before fees and tax) with optional stock at each location. Then offer it on a product (set_product_add_on) or include it in a ticket type's price (set_ticket_type_add_on). Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
namedescriptionperperson: up to one each for the party (times maxPerPerson), e.g. a drink pairing; booking: any number for the booking, e.g. a tote bag
taxClassA tax class code (see get_setup)
maxPerBookingThe most one booking can have; null: no limit
maxPerPersonThe most for each person in the party; null: no limit (1 for a per-person add-on)
statuslocationsWhere it's sold, at what price, with what stock. Leave out for an add-on only a package includes
locations[]locations[].locationIdThe location's id, from get_setup
locations[].pricePer unit, minor units of the location's currency, before fees and tax
locations[].inventoryUnits in stock at the location, counting those already sold (holds and bookings reserve them); null: unlimited
Output
idThe add-on (a product, prd_…)
namedescriptionstatustaxClassperperson: up to one each for the party (times maxPerPerson), e.g. a drink pairing; booking: any number for the booking, e.g. a tote bag
maxPerBookingmaxPerPersonlocationslocations[]locations[].locationIdlocations[].namelocations[].currencylocations[].amountPer unit, before fees and tax. Null without pricing:read
locations[].inventorylocations[].leftStock not yet reserved by holds or sold; null: unlimited
offeredByofferedBy[]offeredBy[].productIdofferedBy[].nameofferedBy[].placementofferedBy[].positionincludedInincludedIn[]includedIn[].ticketTypeIdincludedIn[].productIdincludedIn[].nameincludedIn[].quantityFor each seat
list_add_ons
List the organization's add-ons (extras sold with other products: merchandise, drink pairings, packages' contents): their terms, price and stock left at each location, the products offering them, and the ticket types including them.
Reads · Members of an organization · Needs products:read
Input
status
Output
addOnsaddOns[]addOns[].idThe add-on (a product, prd_…)
addOns[].nameaddOns[].descriptionaddOns[].statusaddOns[].taxClassaddOns[].perperson: up to one each for the party (times maxPerPerson), e.g. a drink pairing; booking: any number for the booking, e.g. a tote bag
addOns[].maxPerBookingaddOns[].maxPerPersonaddOns[].locationsaddOns[].locations[]addOns[].locations[].locationIdaddOns[].locations[].nameaddOns[].locations[].currencyaddOns[].locations[].amountPer unit, before fees and tax. Null without pricing:read
addOns[].locations[].inventoryaddOns[].locations[].leftStock not yet reserved by holds or sold; null: unlimited
addOns[].offeredByaddOns[].offeredBy[]addOns[].offeredBy[].productIdaddOns[].offeredBy[].nameaddOns[].offeredBy[].placementaddOns[].offeredBy[].positionaddOns[].includedInaddOns[].includedIn[]addOns[].includedIn[].ticketTypeIdaddOns[].includedIn[].productIdaddOns[].includedIn[].nameaddOns[].includedIn[].quantityFor each seat
set_add_on_price
Set an add-on's price at a location (minor units, before fees and tax) and its stock there (inventory: units in stock counting those already sold, so add new units to it; null for unlimited), or stop selling it there (remove: true). Holds placed earlier keep their prices. Returns a preview to confirm.
Changes · Members of an organization · Needs pricing:write
Input
addOnIdThe product's id, from list_products
locationIdThe location's id, from get_setup
amountPer unit, minor units of the location's currency, before fees and tax. Needed the first time
inventoryUnits in stock at the location, counting those already sold (holds and bookings reserve them); null: unlimited
removeStop selling it at this location
Output
addOnIdlocationIdcurrencysoldWhether it's sold at the location
amountMinor units (cents) in the location's currency
inventoryleftStock not yet reserved or sold; null: unlimited
set_product_add_on
Offer an add-on on a product (a tote bag with the dinner), choosing where guests can add it (placement: checkout, manage_link, both, or off for staff only) and its order (position; the booking page shows the first three inline, the rest under More options), or stop offering it (remove: true). Guests see it where the add-on has a price. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
productIdThe product's id, from list_products
addOnIdThe product's id, from list_products
placementWhere guests can add it: checkout (the default for a new offer), manage_link (after booking, once the manage link sells extras), both, or off (staff only)
positionIts place among the product's add-ons; the booking page shows the first three inline
removeStop offering it on this product
Output
productIdaddOnIdofferedplacementposition
set_ticket_type_add_on
Include an add-on in a ticket type's price, quantity for each seat (a package: VIP includes the VIP package), or stop including it (remove: true). Its price is in the ticket type's, so set that price to cover it; each seat booked still takes the add-on's stock. sharePpm is the part of that price that is the add-on, taxed by the add-on's own tax class (required when it isn't the product's: a wine pairing with dinner in BC). Holds placed earlier keep what they have. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
ticketTypeIdThe ticket type's id, from get_product
addOnIdThe product's id, from list_products
quantityHow many come with each seat (1 by default)
sharePpmThe part of the ticket type's price that is this add-on (all of its quantity per seat), in parts per million (25% is 250000): set it to the add-on's fair market value as a part of the ticket (what it would sell for on its own), so that part is taxed by the add-on's own tax class (a wine pairing's GST plus PST in BC) and the rest by the product's. Required when the add-on's tax class isn't the product's; null leaves it no part of its own (taxed with the ticket). The ticket type's shares add up to at most 1000000. Leave it out to keep the current share
removeStop including it in the ticket type
Output
ticketTypeIdaddOnIdincludedquantityFor each seat
sharePpmIts part of the ticket type's price in parts per million, taxed by its own tax class; null: none of its own, taxed with the ticket
update_add_on
Change an add-on: its name, description, status (archive to stop selling it), tax class, whether it's per person or per booking, and its quantity limits. Holds and bookings already made keep what they have. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
addOnIdThe product's id, from list_products
namedescriptionstatusactive: sold where it's offered and priced. archived: no longer sold (packages that include it still come with it)
taxClassperperson: up to one each for the party (times maxPerPerson), e.g. a drink pairing; booking: any number for the booking, e.g. a tote bag
maxPerBookingnull: no limit
maxPerPersonnull: no limit (1 for a per-person add-on)
Output
idThe add-on (a product, prd_…)
namedescriptionstatustaxClassperperson: up to one each for the party (times maxPerPerson), e.g. a drink pairing; booking: any number for the booking, e.g. a tote bag
maxPerBookingmaxPerPersonlocationslocations[]locations[].locationIdlocations[].namelocations[].currencylocations[].amountPer unit, before fees and tax. Null without pricing:read
locations[].inventorylocations[].leftStock not yet reserved by holds or sold; null: unlimited
offeredByofferedBy[]offeredBy[].productIdofferedBy[].nameofferedBy[].placementofferedBy[].positionincludedInincludedIn[]includedIn[].ticketTypeIdincludedIn[].productIdincludedIn[].nameincludedIn[].quantityFor each seat