# Products tools

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

## Products

### add_product_location

Offer a product at another location, with its main ticket type's (Standard's) price there in minor units of that location's currency, and the resources its sessions occupy there. Other ticket types need their own price there (set_ticket_type_price). Returns a preview to confirm.

Changes · Members of an organization · Needs products:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; required. The location's id, from get_setup
- `price` — integer; required. Standard's price per person at this location, in minor units of its currency (15900 is $159.00) minimum: 0
- `resourceIds` — array; optional. Resources at this location its sessions occupy default: \[\]
  - `resourceIds[]` — string; optional. The resource's id, from get_setup

#### Output

- `id` — string; required. 
- `name` — string; required. 
- `slug` — string; required. Its part of booking page addresses
- `description` — string or null; required. 
- `type` — string; required. 
- `status` — string; required.  Allowed: "draft", "active", "archived"
- `durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `taxClass` — string; required. 
- `settings` — object; required. Settings overridden on the product (see get_settings)
  - `settings.*` — any value; optional. 
- `locations` — array; required. 
  - `locations[]` — object; optional. 
    - `locations[].locationId` — string; required. 
    - `locations[].name` — string; required. 
    - `locations[].currency` — string; required. 
    - `locations[].settings` — object; required. Settings overridden for the product at this location
      - `locations[].settings.*` — any value; optional. 
    - `locations[].resources` — array; required. 
      - `locations[].resources[]` — object; optional. 
        - `locations[].resources[].id` — string; required. 
        - `locations[].resources[].name` — string; required. 
- `bookingModes` — array; required. 
  - `bookingModes[]` — object; optional. 
    - `bookingModes[].id` — string; required. 
    - `bookingModes[].kind` — string; required.  Allowed: "individual", "group"
    - `bookingModes[].name` — string; required. 
    - `bookingModes[].description` — string or null; required. 
    - `bookingModes[].status` — string; required.  Allowed: "active", "archived"
    - `bookingModes[].includedSeats` — integer or null; required. A group option's: seats its base charge covers minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].minSize` — integer or null; required. A group option's smallest party for guests; null: 1 minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].maxSize` — integer or null; required. A group option's largest party; null: up to the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].wholeSession` — boolean; required. A group option that takes the whole session
    - `bookingModes[].ticketTypes` — array; required. 
      - `bookingModes[].ticketTypes[]` — object; optional. 
        - `bookingModes[].ticketTypes[].id` — string; required. 
        - `bookingModes[].ticketTypes[].name` — string; required. 
        - `bookingModes[].ticketTypes[].description` — string or null; required. 
        - `bookingModes[].ticketTypes[].status` — string; required.  Allowed: "active", "archived"
        - `bookingModes[].ticketTypes[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].salesStartAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].salesEndAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
        - `bookingModes[].ticketTypes[].includedAddOns` — array; required. Add-ons its price includes (a package)
          - `bookingModes[].ticketTypes[].includedAddOns[]` — object; optional. 
            - `bookingModes[].ticketTypes[].includedAddOns[].addOnId` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].name` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
            - `bookingModes[].ticketTypes[].includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].prices` — array; required. 
          - `bookingModes[].ticketTypes[].prices[]` — object; optional. 
            - `bookingModes[].ticketTypes[].prices[].locationId` — string; required. 
            - `bookingModes[].ticketTypes[].prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
            - `bookingModes[].ticketTypes[].prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
            - `bookingModes[].ticketTypes[].prices[].followsTicketTypeId` — string or null; required. 
            - `bookingModes[].ticketTypes[].prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
            - `bookingModes[].ticketTypes[].prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency
- `fees` — array; required. The product's own charge for an entity fee (set_product_fee): a rate in parts per million or an amount, 0 waiving it. A fee not listed is charged as its entity sets it (get_setup). Shown with pricing:read where the fee's entity offers the product
  - `fees[]` — object; optional. 
    - `fees[].feeId` — string; required. 
    - `fees[].name` — string; required. 
    - `fees[].entityId` — string; required. 
    - `fees[].ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `fees[].amount` — integer or null; required. Minor units in the entity's currency
- `addOns` — array; required. Add-ons it offers its guests (list_add_ons has their prices and stock)
  - `addOns[]` — object; optional. 
    - `addOns[].addOnId` — string; required. 
    - `addOns[].name` — string; required. 
    - `addOns[].placement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
    - `addOns[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].id` — string; required. 
    - `schedules[].name` — string; required. 
    - `schedules[].locationId` — string; required. 
    - `schedules[].startsOn` — string; required.  format: "date"
    - `schedules[].endsOn` — string or null; required.  format: "date"

### create_product

Create a timed product (an experience with sessions) offered at one or more locations, with a Standard ticket type priced per location (minor units of the location's currency) and a capacity in seats per session. Returns a preview to confirm. It starts as a draft unless status is active; guests can only book active products with sessions (create a schedule next). Add more ticket types with create_ticket_type. To create a product with its price, capacity, and schedule in one go, use set_up_product instead.

Changes · Members of an organization · Needs products:write

#### Input

- `name` — string; required.  minLength: 1; maxLength: 100
- `slug` — string; optional. Its part of booking page addresses; made from the name unless given minLength: 2; maxLength: 48; pattern: "^\[a-z0-9\]+(-\[a-z0-9\]+)\*$"
- `description` — string; optional.  maxLength: 2000
- `type` — string; optional.  Allowed: "timed"; default: "timed"
- `durationMinutes` — integer; required.  minimum: 1; maximum: 1440
- `taxClass` — string; optional. A tax class code (see get_setup) default: "standard"
- `status` — string; optional.  Allowed: "draft", "active"; default: "draft"
- `capacity` — integer; required. Seats in each session minimum: 0; maximum: 100000
- `locations` — array; required.  minItems: 1
  - `locations[]` — object; optional. 
    - `locations[].locationId` — string; required. The location's id, from get_setup
    - `locations[].price` — integer; required. Standard's price per person at this location, in minor units of its currency (15900 is $159.00) minimum: 0
    - `locations[].resourceIds` — array; optional. Resources at this location its sessions occupy default: \[\]
      - `locations[].resourceIds[]` — string; optional. The resource's id, from get_setup

#### Output

- `id` — string; required. 
- `name` — string; required. 
- `slug` — string; required. Its part of booking page addresses
- `description` — string or null; required. 
- `type` — string; required. 
- `status` — string; required.  Allowed: "draft", "active", "archived"
- `durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `taxClass` — string; required. 
- `settings` — object; required. Settings overridden on the product (see get_settings)
  - `settings.*` — any value; optional. 
- `locations` — array; required. 
  - `locations[]` — object; optional. 
    - `locations[].locationId` — string; required. 
    - `locations[].name` — string; required. 
    - `locations[].currency` — string; required. 
    - `locations[].settings` — object; required. Settings overridden for the product at this location
      - `locations[].settings.*` — any value; optional. 
    - `locations[].resources` — array; required. 
      - `locations[].resources[]` — object; optional. 
        - `locations[].resources[].id` — string; required. 
        - `locations[].resources[].name` — string; required. 
- `bookingModes` — array; required. 
  - `bookingModes[]` — object; optional. 
    - `bookingModes[].id` — string; required. 
    - `bookingModes[].kind` — string; required.  Allowed: "individual", "group"
    - `bookingModes[].name` — string; required. 
    - `bookingModes[].description` — string or null; required. 
    - `bookingModes[].status` — string; required.  Allowed: "active", "archived"
    - `bookingModes[].includedSeats` — integer or null; required. A group option's: seats its base charge covers minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].minSize` — integer or null; required. A group option's smallest party for guests; null: 1 minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].maxSize` — integer or null; required. A group option's largest party; null: up to the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].wholeSession` — boolean; required. A group option that takes the whole session
    - `bookingModes[].ticketTypes` — array; required. 
      - `bookingModes[].ticketTypes[]` — object; optional. 
        - `bookingModes[].ticketTypes[].id` — string; required. 
        - `bookingModes[].ticketTypes[].name` — string; required. 
        - `bookingModes[].ticketTypes[].description` — string or null; required. 
        - `bookingModes[].ticketTypes[].status` — string; required.  Allowed: "active", "archived"
        - `bookingModes[].ticketTypes[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].salesStartAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].salesEndAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
        - `bookingModes[].ticketTypes[].includedAddOns` — array; required. Add-ons its price includes (a package)
          - `bookingModes[].ticketTypes[].includedAddOns[]` — object; optional. 
            - `bookingModes[].ticketTypes[].includedAddOns[].addOnId` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].name` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
            - `bookingModes[].ticketTypes[].includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].prices` — array; required. 
          - `bookingModes[].ticketTypes[].prices[]` — object; optional. 
            - `bookingModes[].ticketTypes[].prices[].locationId` — string; required. 
            - `bookingModes[].ticketTypes[].prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
            - `bookingModes[].ticketTypes[].prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
            - `bookingModes[].ticketTypes[].prices[].followsTicketTypeId` — string or null; required. 
            - `bookingModes[].ticketTypes[].prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
            - `bookingModes[].ticketTypes[].prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency
- `fees` — array; required. The product's own charge for an entity fee (set_product_fee): a rate in parts per million or an amount, 0 waiving it. A fee not listed is charged as its entity sets it (get_setup). Shown with pricing:read where the fee's entity offers the product
  - `fees[]` — object; optional. 
    - `fees[].feeId` — string; required. 
    - `fees[].name` — string; required. 
    - `fees[].entityId` — string; required. 
    - `fees[].ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `fees[].amount` — integer or null; required. Minor units in the entity's currency
- `addOns` — array; required. Add-ons it offers its guests (list_add_ons has their prices and stock)
  - `addOns[]` — object; optional. 
    - `addOns[].addOnId` — string; required. 
    - `addOns[].name` — string; required. 
    - `addOns[].placement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
    - `addOns[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].id` — string; required. 
    - `schedules[].name` — string; required. 
    - `schedules[].locationId` — string; required. 
    - `schedules[].startsOn` — string; required.  format: "date"
    - `schedules[].endsOn` — string or null; required.  format: "date"

### create_ticket_type

Add a ticket type (a priced tier such as VIP, child, or member) to a product's individual booking mode, with an optional seat limit per session and sales window. Give `price` to price it at a location in the same step (its own amount, or another type's price plus a difference); otherwise it can't be booked anywhere until it has a price at a location (set_ticket_type_price, which can also make it follow another type's price, e.g. Standard plus $40). Returns a preview to confirm.

Changes · Members of an organization · Needs products:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `name` — string; required.  minLength: 1; maxLength: 100
- `description` — string or null; optional.  maxLength: 2000
- `position` — integer; optional. Display order, lowest first minimum: 0; maximum: 1000
- `capacity` — integer or null; optional. Most seats of this type in one session (e.g. VIP limited by the kitchen); null for no limit minimum: 0; maximum: 100000
- `salesStartAt` — string or null; optional. When it goes on sale; null for no start format: "date-time"
- `salesEndAt` — string or null; optional. When it comes off sale; null for no end format: "date-time"
- `upgradePlacement` — string; optional. Offer it as an upgrade from the product's cheaper ticket types: at checkout (the booking card shows what upgrading a seat adds), on the manage link (once it sells upgrades), both, or off Allowed: "off", "checkout", "manage\_link", "both"
- `price` — one of: object, object; optional. Its price at a location where the product is offered, set in the same changeset (needs pricing:write): its own `amount` per person, or `relativeTo` another ticket type plus a `difference`. The same as set_ticket_type_price afterwards
  - `price — object option 1` — object; optional. 
    - `price — object option 1.locationId` — string; required. The location's id, from get_setup
    - `price — object option 1.amount` — integer; required.  minimum: 0; maximum: 10000000
  - `price — object option 2` — object; optional. 
    - `price — object option 2.locationId` — string; required. The location's id, from get_setup
    - `price — object option 2.relativeTo` — string; required. The ticket type's id, from get_product
    - `price — object option 2.difference` — integer; required.  minimum: -10000000; maximum: 10000000

#### Output

- `productId` — string; required. 
- `ticketType` — object; required. 
  - `ticketType.id` — string; required. 
  - `ticketType.name` — string; required. 
  - `ticketType.description` — string or null; required. 
  - `ticketType.status` — string; required.  Allowed: "active", "archived"
  - `ticketType.position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `ticketType.capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
  - `ticketType.salesStartAt` — string or null; required.  format: "date-time"
  - `ticketType.salesEndAt` — string or null; required.  format: "date-time"
  - `ticketType.upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
  - `ticketType.includedAddOns` — array; required. Add-ons its price includes (a package)
    - `ticketType.includedAddOns[]` — object; optional. 
      - `ticketType.includedAddOns[].addOnId` — string; required. 
      - `ticketType.includedAddOns[].name` — string; required. 
      - `ticketType.includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
      - `ticketType.includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
  - `ticketType.prices` — array; required. 
    - `ticketType.prices[]` — object; optional. 
      - `ticketType.prices[].locationId` — string; required. 
      - `ticketType.prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
      - `ticketType.prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
      - `ticketType.prices[].followsTicketTypeId` — string or null; required. 
      - `ticketType.prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
      - `ticketType.prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency

### get_product

Get one product's full setup: its fields and settings overrides, each location it's offered at (currency, overrides there, resources), its booking modes (a group option's included seats and smallest and largest party) and ticket types with each type's price per location (amounts in minor units of the location's currency; a type can follow another's price plus a difference), its own charge for any entity fee (set_product_fee), and its schedules.

Reads · Members of an organization · Needs products:read

#### Input

- `productId` — string; required. The product's id, from list_products

#### Output

- `id` — string; required. 
- `name` — string; required. 
- `slug` — string; required. Its part of booking page addresses
- `description` — string or null; required. 
- `type` — string; required. 
- `status` — string; required.  Allowed: "draft", "active", "archived"
- `durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `taxClass` — string; required. 
- `settings` — object; required. Settings overridden on the product (see get_settings)
  - `settings.*` — any value; optional. 
- `locations` — array; required. 
  - `locations[]` — object; optional. 
    - `locations[].locationId` — string; required. 
    - `locations[].name` — string; required. 
    - `locations[].currency` — string; required. 
    - `locations[].settings` — object; required. Settings overridden for the product at this location
      - `locations[].settings.*` — any value; optional. 
    - `locations[].resources` — array; required. 
      - `locations[].resources[]` — object; optional. 
        - `locations[].resources[].id` — string; required. 
        - `locations[].resources[].name` — string; required. 
- `bookingModes` — array; required. 
  - `bookingModes[]` — object; optional. 
    - `bookingModes[].id` — string; required. 
    - `bookingModes[].kind` — string; required.  Allowed: "individual", "group"
    - `bookingModes[].name` — string; required. 
    - `bookingModes[].description` — string or null; required. 
    - `bookingModes[].status` — string; required.  Allowed: "active", "archived"
    - `bookingModes[].includedSeats` — integer or null; required. A group option's: seats its base charge covers minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].minSize` — integer or null; required. A group option's smallest party for guests; null: 1 minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].maxSize` — integer or null; required. A group option's largest party; null: up to the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].wholeSession` — boolean; required. A group option that takes the whole session
    - `bookingModes[].ticketTypes` — array; required. 
      - `bookingModes[].ticketTypes[]` — object; optional. 
        - `bookingModes[].ticketTypes[].id` — string; required. 
        - `bookingModes[].ticketTypes[].name` — string; required. 
        - `bookingModes[].ticketTypes[].description` — string or null; required. 
        - `bookingModes[].ticketTypes[].status` — string; required.  Allowed: "active", "archived"
        - `bookingModes[].ticketTypes[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].salesStartAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].salesEndAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
        - `bookingModes[].ticketTypes[].includedAddOns` — array; required. Add-ons its price includes (a package)
          - `bookingModes[].ticketTypes[].includedAddOns[]` — object; optional. 
            - `bookingModes[].ticketTypes[].includedAddOns[].addOnId` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].name` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
            - `bookingModes[].ticketTypes[].includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].prices` — array; required. 
          - `bookingModes[].ticketTypes[].prices[]` — object; optional. 
            - `bookingModes[].ticketTypes[].prices[].locationId` — string; required. 
            - `bookingModes[].ticketTypes[].prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
            - `bookingModes[].ticketTypes[].prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
            - `bookingModes[].ticketTypes[].prices[].followsTicketTypeId` — string or null; required. 
            - `bookingModes[].ticketTypes[].prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
            - `bookingModes[].ticketTypes[].prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency
- `fees` — array; required. The product's own charge for an entity fee (set_product_fee): a rate in parts per million or an amount, 0 waiving it. A fee not listed is charged as its entity sets it (get_setup). Shown with pricing:read where the fee's entity offers the product
  - `fees[]` — object; optional. 
    - `fees[].feeId` — string; required. 
    - `fees[].name` — string; required. 
    - `fees[].entityId` — string; required. 
    - `fees[].ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `fees[].amount` — integer or null; required. Minor units in the entity's currency
- `addOns` — array; required. Add-ons it offers its guests (list_add_ons has their prices and stock)
  - `addOns[]` — object; optional. 
    - `addOns[].addOnId` — string; required. 
    - `addOns[].name` — string; required. 
    - `addOns[].placement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
    - `addOns[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].id` — string; required. 
    - `schedules[].name` — string; required. 
    - `schedules[].locationId` — string; required. 
    - `schedules[].startsOn` — string; required.  format: "date"
    - `schedules[].endsOn` — string or null; required.  format: "date"

### list_products

List the organization's products: name, type, status (draft, active, archived), duration, tax class, the locations each is offered at, and how many active ticket types it has. Filter by status or location. Use get_product for one product's full setup.

Reads · Members of an organization · Needs products:read

#### Input

- `status` — string; optional.  Allowed: "draft", "active", "archived"
- `locationId` — string; optional. The location's id, from get_setup

#### Output

- `products` — array; required. 
  - `products[]` — object; optional. 
    - `products[].id` — string; required. 
    - `products[].name` — string; required. 
    - `products[].slug` — string; required. 
    - `products[].type` — string; required. 
    - `products[].status` — string; required.  Allowed: "draft", "active", "archived"
    - `products[].durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `products[].taxClass` — string; required. 
    - `products[].locations` — array; required. 
      - `products[].locations[]` — object; optional. 
        - `products[].locations[].id` — string; required. 
        - `products[].locations[].name` — string; required. 
    - `products[].activeTicketTypes` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991

### remove_product_location

Stop offering a product at a location: removes its prices, resources, and turned-off price rules there. Refused once it has sessions or schedules there (cancel sessions instead), or price rules there that are on (turn them off or move them first). Returns a preview to confirm.

Changes · Members of an organization · Needs products:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; required. The location's id, from get_setup

#### Output

- `id` — string; required. 
- `name` — string; required. 
- `slug` — string; required. Its part of booking page addresses
- `description` — string or null; required. 
- `type` — string; required. 
- `status` — string; required.  Allowed: "draft", "active", "archived"
- `durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `taxClass` — string; required. 
- `settings` — object; required. Settings overridden on the product (see get_settings)
  - `settings.*` — any value; optional. 
- `locations` — array; required. 
  - `locations[]` — object; optional. 
    - `locations[].locationId` — string; required. 
    - `locations[].name` — string; required. 
    - `locations[].currency` — string; required. 
    - `locations[].settings` — object; required. Settings overridden for the product at this location
      - `locations[].settings.*` — any value; optional. 
    - `locations[].resources` — array; required. 
      - `locations[].resources[]` — object; optional. 
        - `locations[].resources[].id` — string; required. 
        - `locations[].resources[].name` — string; required. 
- `bookingModes` — array; required. 
  - `bookingModes[]` — object; optional. 
    - `bookingModes[].id` — string; required. 
    - `bookingModes[].kind` — string; required.  Allowed: "individual", "group"
    - `bookingModes[].name` — string; required. 
    - `bookingModes[].description` — string or null; required. 
    - `bookingModes[].status` — string; required.  Allowed: "active", "archived"
    - `bookingModes[].includedSeats` — integer or null; required. A group option's: seats its base charge covers minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].minSize` — integer or null; required. A group option's smallest party for guests; null: 1 minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].maxSize` — integer or null; required. A group option's largest party; null: up to the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].wholeSession` — boolean; required. A group option that takes the whole session
    - `bookingModes[].ticketTypes` — array; required. 
      - `bookingModes[].ticketTypes[]` — object; optional. 
        - `bookingModes[].ticketTypes[].id` — string; required. 
        - `bookingModes[].ticketTypes[].name` — string; required. 
        - `bookingModes[].ticketTypes[].description` — string or null; required. 
        - `bookingModes[].ticketTypes[].status` — string; required.  Allowed: "active", "archived"
        - `bookingModes[].ticketTypes[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].salesStartAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].salesEndAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
        - `bookingModes[].ticketTypes[].includedAddOns` — array; required. Add-ons its price includes (a package)
          - `bookingModes[].ticketTypes[].includedAddOns[]` — object; optional. 
            - `bookingModes[].ticketTypes[].includedAddOns[].addOnId` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].name` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
            - `bookingModes[].ticketTypes[].includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].prices` — array; required. 
          - `bookingModes[].ticketTypes[].prices[]` — object; optional. 
            - `bookingModes[].ticketTypes[].prices[].locationId` — string; required. 
            - `bookingModes[].ticketTypes[].prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
            - `bookingModes[].ticketTypes[].prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
            - `bookingModes[].ticketTypes[].prices[].followsTicketTypeId` — string or null; required. 
            - `bookingModes[].ticketTypes[].prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
            - `bookingModes[].ticketTypes[].prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency
- `fees` — array; required. The product's own charge for an entity fee (set_product_fee): a rate in parts per million or an amount, 0 waiving it. A fee not listed is charged as its entity sets it (get_setup). Shown with pricing:read where the fee's entity offers the product
  - `fees[]` — object; optional. 
    - `fees[].feeId` — string; required. 
    - `fees[].name` — string; required. 
    - `fees[].entityId` — string; required. 
    - `fees[].ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `fees[].amount` — integer or null; required. Minor units in the entity's currency
- `addOns` — array; required. Add-ons it offers its guests (list_add_ons has their prices and stock)
  - `addOns[]` — object; optional. 
    - `addOns[].addOnId` — string; required. 
    - `addOns[].name` — string; required. 
    - `addOns[].placement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
    - `addOns[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].id` — string; required. 
    - `schedules[].name` — string; required. 
    - `schedules[].locationId` — string; required. 
    - `schedules[].startsOn` — string; required.  format: "date"
    - `schedules[].endsOn` — string or null; required.  format: "date"

### set_product_resources

Replace the resources (rooms, equipment, staff roles) a product's sessions occupy at a location. Sessions that share a resource can't overlap. Applies to sessions created from now on; existing sessions keep theirs. Returns a preview to confirm.

Changes · Members of an organization · Needs products:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; required. The location's id, from get_setup
- `resourceIds` — array; required. 
  - `resourceIds[]` — string; optional. The resource's id, from get_setup

#### Output

- `id` — string; required. 
- `name` — string; required. 
- `slug` — string; required. Its part of booking page addresses
- `description` — string or null; required. 
- `type` — string; required. 
- `status` — string; required.  Allowed: "draft", "active", "archived"
- `durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `taxClass` — string; required. 
- `settings` — object; required. Settings overridden on the product (see get_settings)
  - `settings.*` — any value; optional. 
- `locations` — array; required. 
  - `locations[]` — object; optional. 
    - `locations[].locationId` — string; required. 
    - `locations[].name` — string; required. 
    - `locations[].currency` — string; required. 
    - `locations[].settings` — object; required. Settings overridden for the product at this location
      - `locations[].settings.*` — any value; optional. 
    - `locations[].resources` — array; required. 
      - `locations[].resources[]` — object; optional. 
        - `locations[].resources[].id` — string; required. 
        - `locations[].resources[].name` — string; required. 
- `bookingModes` — array; required. 
  - `bookingModes[]` — object; optional. 
    - `bookingModes[].id` — string; required. 
    - `bookingModes[].kind` — string; required.  Allowed: "individual", "group"
    - `bookingModes[].name` — string; required. 
    - `bookingModes[].description` — string or null; required. 
    - `bookingModes[].status` — string; required.  Allowed: "active", "archived"
    - `bookingModes[].includedSeats` — integer or null; required. A group option's: seats its base charge covers minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].minSize` — integer or null; required. A group option's smallest party for guests; null: 1 minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].maxSize` — integer or null; required. A group option's largest party; null: up to the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].wholeSession` — boolean; required. A group option that takes the whole session
    - `bookingModes[].ticketTypes` — array; required. 
      - `bookingModes[].ticketTypes[]` — object; optional. 
        - `bookingModes[].ticketTypes[].id` — string; required. 
        - `bookingModes[].ticketTypes[].name` — string; required. 
        - `bookingModes[].ticketTypes[].description` — string or null; required. 
        - `bookingModes[].ticketTypes[].status` — string; required.  Allowed: "active", "archived"
        - `bookingModes[].ticketTypes[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].salesStartAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].salesEndAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
        - `bookingModes[].ticketTypes[].includedAddOns` — array; required. Add-ons its price includes (a package)
          - `bookingModes[].ticketTypes[].includedAddOns[]` — object; optional. 
            - `bookingModes[].ticketTypes[].includedAddOns[].addOnId` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].name` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
            - `bookingModes[].ticketTypes[].includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].prices` — array; required. 
          - `bookingModes[].ticketTypes[].prices[]` — object; optional. 
            - `bookingModes[].ticketTypes[].prices[].locationId` — string; required. 
            - `bookingModes[].ticketTypes[].prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
            - `bookingModes[].ticketTypes[].prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
            - `bookingModes[].ticketTypes[].prices[].followsTicketTypeId` — string or null; required. 
            - `bookingModes[].ticketTypes[].prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
            - `bookingModes[].ticketTypes[].prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency
- `fees` — array; required. The product's own charge for an entity fee (set_product_fee): a rate in parts per million or an amount, 0 waiving it. A fee not listed is charged as its entity sets it (get_setup). Shown with pricing:read where the fee's entity offers the product
  - `fees[]` — object; optional. 
    - `fees[].feeId` — string; required. 
    - `fees[].name` — string; required. 
    - `fees[].entityId` — string; required. 
    - `fees[].ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `fees[].amount` — integer or null; required. Minor units in the entity's currency
- `addOns` — array; required. Add-ons it offers its guests (list_add_ons has their prices and stock)
  - `addOns[]` — object; optional. 
    - `addOns[].addOnId` — string; required. 
    - `addOns[].name` — string; required. 
    - `addOns[].placement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
    - `addOns[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].id` — string; required. 
    - `schedules[].name` — string; required. 
    - `schedules[].locationId` — string; required. 
    - `schedules[].startsOn` — string; required.  format: "date"
    - `schedules[].endsOn` — string or null; required.  format: "date"

### set_up_product

Set up a bookable product in one step: a timed product at one location with its Standard price per person, seats per session, length, an optional group option (`groupOption`: base charge covering included seats, then an optional per-person amount, priced in the location's currency as with create_group_option), optional extra price types after Standard (`ticketTypes`: any names, each a difference from Standard or its own price; `vip` is kept for older callers), an optional weekly schedule (which generates its sessions), and whether it goes on sale now. Returns one preview to confirm. Everything else (menus, add-ons, questions, price rules, photos) is set up afterwards. Undo removes it all while nothing has been held or booked. The usual way to add an experience; create_product is for one offered at several locations.

Changes · Members of an organization · Needs pricing:write, products:write, sessions:write

#### Input

- `name` — string; required.  minLength: 1; maxLength: 100
- `locationId` — string; required. The location's id, from get_setup
- `price` — integer; required.  minimum: 1; maximum: 10000000
- `groupOption` — object; optional. 
  - `groupOption.name` — string; required.  minLength: 1; maxLength: 100
  - `groupOption.includedSeats` — integer; required. Seats the base charge covers minimum: 1; maximum: 10000
  - `groupOption.minSize` — integer or null; optional. The group minimum: the smallest party guests can book it for (at most maxSize); null or 1: any. Staff can book fewer minimum: 1; maximum: 10000
  - `groupOption.maxSize` — integer or null; optional. The largest party it takes (at least includedSeats); null: up to the session's capacity minimum: 1; maximum: 10000
  - `groupOption.wholeSession` — boolean; optional. Take the whole session (a private booking): offered only on an empty session, which then closes to everyone else. Default false: it shares the session
  - `groupOption.amount` — integer; required. The base charge, covering the option's included seats minimum: 0
  - `groupOption.perPersonAmount` — integer or null; optional. Per person above the included seats; null or left out: nobody above them minimum: 0
- `capacity` — integer; required.  minimum: 1; maximum: 10000
- `durationMinutes` — integer; required.  minimum: 15; maximum: 1440
- `ticketTypes` — array; optional. More price types after Standard, in this order (at most 9), each with a name and either a `difference` from Standard or its own `price`. Names are unique, Standard included, and you can call them anything maxItems: 9
  - `ticketTypes[]` — one of: object, object; optional. 
    - `ticketTypes[] — object option 1` — object; optional. 
      - `ticketTypes[] — object option 1.name` — string; required.  minLength: 1; maxLength: 60
      - `ticketTypes[] — object option 1.difference` — integer; required. Minor units added to the Standard price minimum: 1; maximum: 10000000
    - `ticketTypes[] — object option 2` — object; optional. 
      - `ticketTypes[] — object option 2.name` — string; required.  minLength: 1; maxLength: 60
      - `ticketTypes[] — object option 2.price` — integer; required. Its own price per person at the location, minor units minimum: 1; maximum: 10000000
- `vip` — object; optional. Kept for older callers: use `ticketTypes` instead. Can't be sent with it
  - `vip.name` — string; optional.  minLength: 1; maxLength: 60; default: "VIP"
  - `vip.difference` — integer; required.  minimum: 1; maximum: 10000000
- `schedule` — object; optional. 
  - `schedule.weekdays` — array; optional.  minItems: 1; maxItems: 7
    - `schedule.weekdays[]` — integer; optional.  minimum: 1; maximum: 7
  - `schedule.startTimes` — array; optional.  minItems: 1; maxItems: 24
    - `schedule.startTimes[]` — string; optional. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
  - `schedule.times` — array; optional. Different start times on different days: one entry per group of ISO weekdays (1 is Monday) with that group's start times, e.g. Thursday and Friday at 19:00, Saturday and Sunday at 17:00 and 20:00. Send either `times`, or `weekdays` with `startTimes` (the same times every day), not both minItems: 1; maxItems: 7
    - `schedule.times[]` — object; optional. 
      - `schedule.times[].weekdays` — array; required.  minItems: 1; maxItems: 7
        - `schedule.times[].weekdays[]` — integer; optional.  minimum: 1; maximum: 7
      - `schedule.times[].startTimes` — array; required.  minItems: 1; maxItems: 24
        - `schedule.times[].startTimes[]` — string; optional. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
  - `schedule.startsOn` — string; optional. A local date at the location, YYYY-MM-DD format: "date"
- `onSale` — boolean; optional.  default: false

#### Output

- `productId` — string; required. The product's id, from list_products
- `groupOptionId` — string or null; required. The booking mode's id
- `ticketTypeIds` — object; required. 
  - `ticketTypeIds.standard` — string; required. The ticket type's id, from get_product
  - `ticketTypeIds.vip` — string; optional. The ticket type's id, from get_product
  - `ticketTypeIds.others` — array; optional. The `ticketTypes` created, in order
    - `ticketTypeIds.others[]` — object; optional. 
      - `ticketTypeIds.others[].name` — string; required. 
      - `ticketTypeIds.others[].id` — string; required. The ticket type's id, from get_product
- `scheduleId` — string or null; required. The schedule's id, from list_schedules
- `sessionsGenerated` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991

### update_product

Change a product's name, slug (its part of booking page addresses; old addresses keep working), description, duration, status, or tax class. Set status to active to put it on sale (it needs a price at a location first, with set_ticket_type_price, and a capacity there, with update_settings), draft to take it off sale while setting up, or archived when it's no longer sold. An add-on is changed with update_add_on and priced with set_add_on_price instead. Tax classes are named by their codes (get_setup lists them). Returns a preview to confirm.

Changes · Members of an organization · Needs products:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `name` — string; optional.  minLength: 1; maxLength: 100
- `slug` — string; optional. A new part for its booking page addresses. Addresses with its old slugs keep working minLength: 2; maxLength: 48; pattern: "^\[a-z0-9\]+(-\[a-z0-9\]+)\*$"
- `description` — string or null; optional.  maxLength: 2000
- `durationMinutes` — integer; optional. Applies to sessions generated from now on minimum: 1; maximum: 1440
- `status` — string; optional. active: on sale where it has sessions. draft: being set up. archived: no longer sold Allowed: "draft", "active", "archived"
- `taxClass` — string; optional. A tax class code (see get_setup)

#### Output

- `id` — string; required. 
- `name` — string; required. 
- `slug` — string; required. Its part of booking page addresses
- `description` — string or null; required. 
- `type` — string; required. 
- `status` — string; required.  Allowed: "draft", "active", "archived"
- `durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `taxClass` — string; required. 
- `settings` — object; required. Settings overridden on the product (see get_settings)
  - `settings.*` — any value; optional. 
- `locations` — array; required. 
  - `locations[]` — object; optional. 
    - `locations[].locationId` — string; required. 
    - `locations[].name` — string; required. 
    - `locations[].currency` — string; required. 
    - `locations[].settings` — object; required. Settings overridden for the product at this location
      - `locations[].settings.*` — any value; optional. 
    - `locations[].resources` — array; required. 
      - `locations[].resources[]` — object; optional. 
        - `locations[].resources[].id` — string; required. 
        - `locations[].resources[].name` — string; required. 
- `bookingModes` — array; required. 
  - `bookingModes[]` — object; optional. 
    - `bookingModes[].id` — string; required. 
    - `bookingModes[].kind` — string; required.  Allowed: "individual", "group"
    - `bookingModes[].name` — string; required. 
    - `bookingModes[].description` — string or null; required. 
    - `bookingModes[].status` — string; required.  Allowed: "active", "archived"
    - `bookingModes[].includedSeats` — integer or null; required. A group option's: seats its base charge covers minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].minSize` — integer or null; required. A group option's smallest party for guests; null: 1 minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].maxSize` — integer or null; required. A group option's largest party; null: up to the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
    - `bookingModes[].wholeSession` — boolean; required. A group option that takes the whole session
    - `bookingModes[].ticketTypes` — array; required. 
      - `bookingModes[].ticketTypes[]` — object; optional. 
        - `bookingModes[].ticketTypes[].id` — string; required. 
        - `bookingModes[].ticketTypes[].name` — string; required. 
        - `bookingModes[].ticketTypes[].description` — string or null; required. 
        - `bookingModes[].ticketTypes[].status` — string; required.  Allowed: "active", "archived"
        - `bookingModes[].ticketTypes[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].salesStartAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].salesEndAt` — string or null; required.  format: "date-time"
        - `bookingModes[].ticketTypes[].upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
        - `bookingModes[].ticketTypes[].includedAddOns` — array; required. Add-ons its price includes (a package)
          - `bookingModes[].ticketTypes[].includedAddOns[]` — object; optional. 
            - `bookingModes[].ticketTypes[].includedAddOns[].addOnId` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].name` — string; required. 
            - `bookingModes[].ticketTypes[].includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
            - `bookingModes[].ticketTypes[].includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
        - `bookingModes[].ticketTypes[].prices` — array; required. 
          - `bookingModes[].ticketTypes[].prices[]` — object; optional. 
            - `bookingModes[].ticketTypes[].prices[].locationId` — string; required. 
            - `bookingModes[].ticketTypes[].prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
            - `bookingModes[].ticketTypes[].prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
            - `bookingModes[].ticketTypes[].prices[].followsTicketTypeId` — string or null; required. 
            - `bookingModes[].ticketTypes[].prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
            - `bookingModes[].ticketTypes[].prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency
- `fees` — array; required. The product's own charge for an entity fee (set_product_fee): a rate in parts per million or an amount, 0 waiving it. A fee not listed is charged as its entity sets it (get_setup). Shown with pricing:read where the fee's entity offers the product
  - `fees[]` — object; optional. 
    - `fees[].feeId` — string; required. 
    - `fees[].name` — string; required. 
    - `fees[].entityId` — string; required. 
    - `fees[].ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `fees[].amount` — integer or null; required. Minor units in the entity's currency
- `addOns` — array; required. Add-ons it offers its guests (list_add_ons has their prices and stock)
  - `addOns[]` — object; optional. 
    - `addOns[].addOnId` — string; required. 
    - `addOns[].name` — string; required. 
    - `addOns[].placement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
    - `addOns[].position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].id` — string; required. 
    - `schedules[].name` — string; required. 
    - `schedules[].locationId` — string; required. 
    - `schedules[].startsOn` — string; required.  format: "date"
    - `schedules[].endsOn` — string or null; required.  format: "date"

### update_ticket_type

Change a ticket type's name, description, display position, seat limit per session (null for none), sales window (ISO datetimes, null to clear), or status (archived takes it off sale; active brings it back). A type that active types' prices follow can't be archived, and one whose price follows an archived type can't be made active. Prices are changed with set_ticket_type_price; a group option's ticket type is changed with update_group_option. Returns a preview to confirm.

Changes · Members of an organization · Needs products:write

#### Input

- `ticketTypeId` — string; required. The ticket type's id, from get_product
- `name` — string; optional.  minLength: 1; maxLength: 100
- `description` — string or null; optional.  maxLength: 2000
- `position` — integer; optional. Display order, lowest first minimum: 0; maximum: 1000
- `capacity` — integer or null; optional. Most seats of this type in one session (e.g. VIP limited by the kitchen); null for no limit minimum: 0; maximum: 100000
- `salesStartAt` — string or null; optional. When it goes on sale; null for no start format: "date-time"
- `salesEndAt` — string or null; optional. When it comes off sale; null for no end format: "date-time"
- `upgradePlacement` — string; optional. Offer it as an upgrade from the product's cheaper ticket types: at checkout (the booking card shows what upgrading a seat adds), on the manage link (once it sells upgrades), both, or off Allowed: "off", "checkout", "manage\_link", "both"
- `status` — string; optional.  Allowed: "active", "archived"

#### Output

- `productId` — string; required. 
- `ticketType` — object; required. 
  - `ticketType.id` — string; required. 
  - `ticketType.name` — string; required. 
  - `ticketType.description` — string or null; required. 
  - `ticketType.status` — string; required.  Allowed: "active", "archived"
  - `ticketType.position` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `ticketType.capacity` — integer or null; required. Most seats of this type in one session minimum: -9007199254740991; maximum: 9007199254740991
  - `ticketType.salesStartAt` — string or null; required.  format: "date-time"
  - `ticketType.salesEndAt` — string or null; required.  format: "date-time"
  - `ticketType.upgradePlacement` — string; required.  Allowed: "off", "checkout", "manage\_link", "both"
  - `ticketType.includedAddOns` — array; required. Add-ons its price includes (a package)
    - `ticketType.includedAddOns[]` — object; optional. 
      - `ticketType.includedAddOns[].addOnId` — string; required. 
      - `ticketType.includedAddOns[].name` — string; required. 
      - `ticketType.includedAddOns[].quantity` — integer; required. For each seat minimum: -9007199254740991; maximum: 9007199254740991
      - `ticketType.includedAddOns[].sharePpm` — integer or null; required. Its part of the ticket type's price in parts per million, taxed by the add-on's own tax class; null: none, taxed with the ticket minimum: -9007199254740991; maximum: 9007199254740991
  - `ticketType.prices` — array; required. 
    - `ticketType.prices[]` — object; optional. 
      - `ticketType.prices[].locationId` — string; required. 
      - `ticketType.prices[].amount` — integer; required. Minor units in the location's currency; when it follows another type, the difference from that type's price
      - `ticketType.prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats (amount is then its base charge)
      - `ticketType.prices[].followsTicketTypeId` — string or null; required. 
      - `ticketType.prices[].minAmount` — integer or null; required. Minor units (cents) in the location's currency
      - `ticketType.prices[].maxAmount` — integer or null; required. Minor units (cents) in the location's currency
