{"openapi":"3.1.0","info":{"title":"TierBook Cloud organization API","version":"1.0","description":"Server-to-server API for one organization. Every response uses the envelope\n`{ ok, data, meta, error }`. Lists are cursor-paginated: pass `meta.next_cursor` back as `cursor`\n(`per_page` 1\u2013200). A key limited to some events only ever sees those events, on every endpoint.\n\n**Authentication** \u2014 either\n* `Authorization: Bearer {key}.{secret}` (the \"API token\" shown once when a key is created), or\n* signed headers `X-Tierbook-Key`, `X-Tierbook-Timestamp` (unix seconds, \u00b15 min),\n  `X-Tierbook-Request-Id` (8\u2013160 of `A-Za-z0-9._:-`) and\n  `X-Tierbook-Signature: v1=` + hex HMAC-SHA256(secret, \"{timestamp}\\n{request id}\\n{sha256 hex of body}\").\n  Writes must be signed; the request id makes them idempotent.\n\n**Webhooks** are documented at the end of this file (`x-webhooks`).\n"},"servers":[{"url":"https://app.tierbook.com/api/v1"}],"security":[{"bearer":[]},{"signed":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"{key}.{secret}"},"signed":{"type":"apiKey","in":"header","name":"X-Tierbook-Signature"}},"parameters":{"event":{"name":"event","in":"path","required":true,"description":"Event id or event code (e.g. ASM27).","schema":{"type":"string"}},"cursor":{"name":"cursor","in":"query","schema":{"type":"string"}},"perPage":{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},"updatedSince":{"name":"updated_since","in":"query","description":"ISO 8601; only records updated at or after.","schema":{"type":"string","format":"date-time"}}},"responses":{"Error":{"description":"Error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"schemas":{"ErrorEnvelope":{"type":"object","properties":{"ok":{"const":false},"data":{"type":"null"},"meta":{"type":"object"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_client","insufficient_scope","not_found","stale_request","invalid_signature"]},"message":{"type":"string"}}}}},"PageMeta":{"type":"object","properties":{"per_page":{"type":"integer"},"next_cursor":{"type":["string","null"]},"prev_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}}},"EventRef":{"type":"object","properties":{"id":{"type":"integer"},"code":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"starts_at_utc":{"type":["string","null"],"format":"date-time"},"ends_at_utc":{"type":["string","null"],"format":"date-time"}}},"Event":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string","format":"uuid"},"code":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"short_name":{"type":["string","null"]},"status":{"type":"string","enum":["draft","published","live","completed","archived","cancelled"]},"format":{"type":"string","enum":["in_person","virtual","hybrid"]},"timezone":{"type":"string","example":"America/Chicago"},"starts_at":{"type":["string","null"],"description":"Event-local ISO 8601"},"ends_at":{"type":["string","null"]},"starts_at_utc":{"type":["string","null"],"format":"date-time"},"ends_at_utc":{"type":["string","null"],"format":"date-time"},"local_start_date":{"type":["string","null"],"format":"date"},"local_end_date":{"type":["string","null"],"format":"date"},"date_label":{"type":"string"},"venue":{"type":"object","properties":{"name":{"type":["string","null"]},"address":{"type":["string","null"]},"city":{"type":["string","null"]},"region":{"type":["string","null"]},"country":{"type":["string","null"]},"location":{"type":["string","null"],"description":"\"City, Region\""}}},"brand":{"type":["object","null"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"logo_url":{"type":["string","null"]},"colors":{"type":"object"}}},"brand_color":{"type":["string","null"]},"description":{"type":["string","null"]},"image_url":{"type":["string","null"]},"capacity":{"type":["integer","null"]},"currency":{"type":"string"},"parent_id":{"type":["integer","null"]},"external_ids":{"type":"object","description":"e.g. {\"wordpress\": 42} for imported events"},"updated_at":{"type":"string","format":"date-time"},"parent":{"description":"Detail only","oneOf":[{"$ref":"#/components/schemas/EventRef"},{"type":"null"}]},"children":{"description":"Detail only","type":"array","items":{"$ref":"#/components/schemas/EventRef"}}}},"ProgramItem":{"type":"object","description":"The published snapshot, identical to the mobile app's AgendaItem (docs/api/mobile.md): id, event_id, parent_id, type, title, subtitle, summary, content, timezone, starts_at, ends_at, starts_at_utc, ends_at_utc, local_date, local_start_time, local_end_time, duration_minutes, room, location_text, capacity, access_level, credits[], tracks[], labels[], participants[], sponsors[], is_cancelled, segments[], attachments[], has_stream, has_replay, resources[], status, visibility, version, updated_at. Stream URLs are never included.\n","additionalProperties":true},"Speaker":{"type":"object","properties":{"id":{"type":"integer"},"first_name":{"type":"string"},"last_name":{"type":["string","null"]},"full_name":{"type":"string"},"credentials":{"type":["string","null"]},"title":{"type":["string","null"]},"organization":{"type":["string","null"]},"bio":{"type":["string","null"]},"photo_url":{"type":["string","null"]},"website":{"type":["string","null"]},"email":{"type":["string","null"],"description":"Only for keys with people:read"},"program_item_ids":{"type":"array","items":{"type":"integer"}}}},"Room":{"type":"object","properties":{"id":{"type":"integer"},"event_id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"capacity":{"type":["integer","null"]},"location":{"type":["string","null"]},"position":{"type":"integer"}}},"TicketType":{"type":"object","properties":{"id":{"type":"integer"},"event_id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"attendance_mode":{"type":"string","enum":["in_person","virtual"]},"status":{"type":"string"},"price_minor":{"type":"integer"},"currency":{"type":"string"}}},"Person":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string","format":"uuid"},"email":{"type":"string"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"full_name":{"type":"string"},"credentials":{"type":["string","null"]},"title":{"type":["string","null"]},"organization":{"type":["string","null"]},"occupation":{"type":["string","null"]},"phone":{"type":["string","null"]},"city":{"type":["string","null"]},"region":{"type":["string","null"]},"country":{"type":["string","null"]},"profile":{"type":"object","description":"Organization-defined profile fields"},"updated_at":{"type":"string","format":"date-time"},"registrations":{"description":"Detail only, with registrations:read","type":"array","items":{"$ref":"#/components/schemas/Registration"}}}},"Registration":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string","format":"uuid"},"code":{"type":"string","example":"R-1042"},"event_id":{"type":"integer"},"status":{"type":"string","enum":["active","pending_payment","cancelled","refunded","void"]},"status_reason":{"type":["string","null"]},"details_status":{"type":"string","enum":["pending","complete"]},"source":{"type":"string"},"attendance_mode":{"type":"string"},"ticket_type":{"type":["object","null"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"attendance_mode":{"type":"string"}}},"attendee":{"oneOf":[{"$ref":"#/components/schemas/Person"},{"type":"null"}]},"purchaser":{"type":"object","properties":{"email":{"type":["string","null"]},"name":{"type":["string","null"]}}},"order_id":{"type":["integer","null"]},"sponsorship_id":{"type":["integer","null"]},"answers":{"type":"object","description":"Custom registration answers keyed by field"},"completed_at":{"type":["string","null"],"format":"date-time"},"checked_in_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"CheckIn":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string"},"event_id":{"type":"integer"},"registration_id":{"type":"integer"},"registration_uuid":{"type":["string","null"]},"context":{"type":"string","enum":["event_entry","event_exit","session_checkin","session_checkout","workshop","sponsored_session"]},"program_item_id":{"type":["integer","null"]},"direction":{"type":["string","null"]},"result":{"type":"string"},"source":{"type":"string"},"scanned_at":{"type":"string","format":"date-time"}}},"Attendance":{"type":"object","properties":{"id":{"type":"integer"},"event_id":{"type":"integer"},"registration_id":{"type":"integer"},"registration_uuid":{"type":["string","null"]},"program_item_id":{"type":["integer","null"],"description":"null = at the event"},"in_at":{"type":"string","format":"date-time"},"out_at":{"type":["string","null"],"format":"date-time"},"minutes":{"type":["integer","null"]},"verification":{"type":"string"}}},"Sponsor":{"type":"object","description":"Confirmed sponsors only; no contacts, deal values or notes.","properties":{"id":{"type":"integer"},"code":{"type":"string"},"event_id":{"type":"integer"},"name":{"type":"string"},"display_name":{"type":"string"},"logo_url":{"type":["string","null"]},"website":{"type":["string","null"]},"category":{"type":["string","null"]},"tier":{"type":["object","null"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"rank":{"type":"integer"}}},"status":{"type":"string"}}},"DealLine":{"type":"object","properties":{"id":{"type":"integer"},"package_id":{"type":["integer","null"]},"description":{"type":"string"},"sku":{"type":["string","null"]},"quantity":{"type":"integer"},"unit_price_minor":{"type":"integer","description":"Integer minor units in the deal currency"},"total_minor":{"type":"integer"},"source_type":{"type":["string","null"]},"source_id":{"type":["string","null"]}}},"Deal":{"type":"object","properties":{"id":{"type":"integer"},"code":{"type":"string"},"event_id":{"type":"integer"},"title":{"type":"string"},"status":{"type":"string","enum":["open","won","lost"]},"stage":{"type":["object","null"],"properties":{"key":{"type":"string"},"name":{"type":"string"}}},"company":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"amount_minor":{"type":"integer"},"currency":{"type":"string"},"probability":{"type":["integer","null"]},"expected_close_on":{"type":["string","null"],"format":"date"},"sponsorship_id":{"type":["integer","null"],"description":"Set once the deal is won"},"source_type":{"type":["string","null"]},"source_id":{"type":["string","null"]},"lines":{"type":"array","items":{"$ref":"#/components/schemas/DealLine"}},"updated_at":{"type":"string","format":"date-time"}}},"Package":{"type":"object","properties":{"id":{"type":"integer"},"event_id":{"type":"integer"},"name":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["draft","published","archived"]},"price_minor":{"type":"integer"},"currency":{"type":"string"},"sku":{"type":["string","null"]},"benefits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"quantity":{"type":"integer"}}}}}}}},"paths":{"/me":{"get":{"summary":"The calling key (no scope needed)","responses":{"200":{"description":"data: { organization{id,slug,name,timezone}, client{name,key,scopes,event_ids}, api_version }"},"401":{"$ref":"#/components/responses/Error"}}}},"/events":{"get":{"summary":"Events (scope events:read)","parameters":[{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/perPage"},{"$ref":"#/components/parameters/updatedSince"},{"name":"status","in":"query","description":"Comma-separated","schema":{"type":"string"}},{"name":"parent_id","in":"query","schema":{"type":"integer"}},{"name":"top_level","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Page of events (without parent/children)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":true},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"meta":{"$ref":"#/components/schemas/PageMeta"}}}}}}}}},"/events/{event}":{"get":{"summary":"One event with parent and children (scope events:read)","parameters":[{"$ref":"#/components/parameters/event"}],"responses":{"200":{"description":"data: Event","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Event"}}}}}},"404":{"$ref":"#/components/responses/Error"}}}},"/events/{event}/program":{"get":{"summary":"Published program (scope program:read)","description":"Top-level items in time order with segments nested. `meta.version` is the program version. With `since_version`, returns the change list instead (`{item_id, action, item}`).","parameters":[{"$ref":"#/components/parameters/event"},{"name":"visibility","in":"query","schema":{"type":"string","enum":["public"]},"description":"Only public items (default includes attendee-only)"},{"name":"type","in":"query","schema":{"type":"string"},"description":"Session type slug"},{"name":"date","in":"query","schema":{"type":"string","format":"date"},"description":"Event-local date"},{"name":"since_version","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"data: ProgramItem[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProgramItem"}}}}}}}}}},"/events/{event}/program/{item}":{"get":{"summary":"One published item or segment (scope program:read)","parameters":[{"$ref":"#/components/parameters/event"},{"name":"item","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"data: ProgramItem"},"404":{"$ref":"#/components/responses/Error"}}}},"/events/{event}/speakers":{"get":{"summary":"Speakers appearing in published items (scope program:read)","parameters":[{"$ref":"#/components/parameters/event"}],"responses":{"200":{"description":"data: Speaker[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Speaker"}}}}}}}}}},"/events/{event}/rooms":{"get":{"summary":"Rooms (scope program:read)","parameters":[{"$ref":"#/components/parameters/event"}],"responses":{"200":{"description":"data: Room[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Room"}}}}}}}}}},"/events/{event}/ticket-types":{"get":{"summary":"Ticket types (scope registrations:read)","parameters":[{"$ref":"#/components/parameters/event"}],"responses":{"200":{"description":"data: TicketType[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TicketType"}}}}}}}}}},"/events/{event}/registrations":{"get":{"summary":"Registrations (scope registrations:read)","parameters":[{"$ref":"#/components/parameters/event"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/perPage"},{"$ref":"#/components/parameters/updatedSince"},{"name":"status","in":"query","description":"Comma-separated","schema":{"type":"string"}},{"name":"ticket_type_id","in":"query","schema":{"type":"integer"}},{"name":"email","in":"query","schema":{"type":"string"}},{"name":"attendee_id","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"data: Registration[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Registration"}},"meta":{"$ref":"#/components/schemas/PageMeta"}}}}}}}}},"/registrations/{registration}":{"get":{"summary":"One registration by id or uuid (scope registrations:read)","parameters":[{"name":"registration","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"data: Registration"},"404":{"$ref":"#/components/responses/Error"}}}},"/people":{"get":{"summary":"Attendee profiles (scope people:read)","parameters":[{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/perPage"},{"$ref":"#/components/parameters/updatedSince"},{"name":"email","in":"query","schema":{"type":"string"}},{"name":"event_id","in":"query","schema":{"type":"integer"},"description":"Registered for this event"}],"responses":{"200":{"description":"data: Person[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Person"}},"meta":{"$ref":"#/components/schemas/PageMeta"}}}}}}}}},"/people/{person}":{"get":{"summary":"One person by id or uuid, with registrations when the key has registrations:read (scope people:read)","parameters":[{"name":"person","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"data: Person"},"404":{"$ref":"#/components/responses/Error"}}}},"/events/{event}/check-ins":{"get":{"summary":"Accepted entry and session scans (scope attendance:read)","parameters":[{"$ref":"#/components/parameters/event"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/perPage"},{"name":"registration","in":"query","description":"Registration id or uuid","schema":{"type":"string"}},{"name":"context","in":"query","description":"Comma-separated scan contexts","schema":{"type":"string"}},{"name":"result","in":"query","schema":{"type":"string","default":"accepted"}},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"data: CheckIn[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CheckIn"}},"meta":{"$ref":"#/components/schemas/PageMeta"}}}}}}}}},"/events/{event}/attendance":{"get":{"summary":"Attendance intervals built from scans (scope attendance:read)","parameters":[{"$ref":"#/components/parameters/event"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/perPage"},{"name":"registration","in":"query","schema":{"type":"string"}},{"name":"program_item_id","in":"query","schema":{"type":"integer"}},{"name":"scope","in":"query","schema":{"type":"string","enum":["event","sessions"]}}],"responses":{"200":{"description":"data: Attendance[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Attendance"}},"meta":{"$ref":"#/components/schemas/PageMeta"}}}}}}}}},"/events/{event}/sponsors":{"get":{"summary":"Confirmed sponsors (scope sponsors:read)","parameters":[{"$ref":"#/components/parameters/event"}],"responses":{"200":{"description":"data: Sponsor[]","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Sponsor"}}}}}}}}}},"/events/{event}/sponsors/{sponsor}":{"get":{"summary":"One confirmed sponsor (scope sponsors:read)","parameters":[{"$ref":"#/components/parameters/event"},{"name":"sponsor","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"data: Sponsor"},"404":{"$ref":"#/components/responses/Error"}}}},"/registrations/complimentary":{"post":{"summary":"Issue complimentary registrations (signed; scope registrations:comp)","responses":{"201":{"description":"data: { idempotent, order, registrations[{uuid, code, email, status}] }"}}}},"/fulfillment/{item}/deliveries":{"post":{"summary":"Report deliverable delivery (signed; scope fulfillment:write)","parameters":[{"name":"item","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"201":{"description":"Delivery recorded"}}}},"/events/{event}/deals":{"get":{"summary":"Deals for an event (scope deals:read)","parameters":[{"$ref":"#/components/parameters/event"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/perPage"},{"name":"source_type","in":"query","schema":{"type":"string"}},{"name":"source_id","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"data: Deal[] (page)"}}},"put":{"summary":"Create or update a deal by your source_type + source_id (scope deals:write)","description":"Idempotent: the same source_type + source_id always updates the same deal. `stage` is a pipeline stage key\n(lead, qualified, proposal, negotiation, won, lost by default); moving to won books the sponsorship and\nraises `deal.stage_changed` and `deal.won` webhooks. Won needs at least one line.\n","parameters":[{"$ref":"#/components/parameters/event"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["source_type","source_id"],"properties":{"company_id":{"type":"integer"},"company_name":{"type":"string","description":"Matched by normalized name; created when new"},"title":{"type":"string"},"stage":{"type":"string"},"probability":{"type":"integer"},"expected_close_on":{"type":"string","format":"date"},"notes":{"type":"string"},"source_type":{"type":"string"},"source_id":{"type":"string"}}}}}},"responses":{"201":{"description":"data: Deal (created)"},"200":{"description":"data: Deal (updated)"},"422":{"$ref":"#/components/responses/Error"}}}},"/deals/{deal}":{"get":{"summary":"One deal with lines (scope deals:read)","parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"data: Deal"},"404":{"$ref":"#/components/responses/Error"}}},"patch":{"summary":"Update title, probability, expected close or notes (scope deals:write)","parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"data: Deal"}}}},"/deals/{deal}/stage":{"post":{"summary":"Move a deal to a stage by key (scope deals:write)","parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["stage"],"properties":{"stage":{"type":"string"},"lost_reason":{"type":"string"}}}}}},"responses":{"200":{"description":"data: Deal"},"422":{"$ref":"#/components/responses/Error"}}}},"/deals/{deal}/lines":{"put":{"summary":"Create or update a line by your source_type + source_id (scope deals:write)","description":"A package line takes the package's name, SKU and price unless you send them. Won deals keep their lines (422).","parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["source_type","source_id"],"properties":{"source_type":{"type":"string"},"source_id":{"type":"string"},"package_id":{"type":"integer"},"description":{"type":"string"},"sku":{"type":"string"},"quantity":{"type":"integer"},"unit_price_minor":{"type":"integer"}}}}}},"responses":{"201":{"description":"data: DealLine (created)"},"200":{"description":"data: DealLine (updated)"}}}},"/deals/{deal}/lines/{line}":{"delete":{"summary":"Remove a line from an open deal (scope deals:write)","parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"}},{"name":"line","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"data: { deleted: true }"},"409":{"$ref":"#/components/responses/Error"}}}},"/deals/{deal}/deliverables":{"post":{"summary":"Add a deliverable to a won deal's sponsorship, idempotent on source ids (scope deals:write)","parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type","title","source_type","source_id"],"properties":{"type":{"type":"string","enum":["image","file","text","textarea","url","email","number","date","select","multiselect","contact","confirmation"]},"title":{"type":"string"},"instructions":{"type":"string"},"due_on":{"type":"string","format":"date"},"source_type":{"type":"string"},"source_id":{"type":"string"}}}}}},"responses":{"201":{"description":"data: { id, code, title, type, status }"}}}},"/events/{event}/packages":{"post":{"summary":"Create a sponsorship package (scope packages:write)","description":"Money is integer minor units. A package without benefits stays a draft.","parameters":[{"$ref":"#/components/parameters/event"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","type","price_minor"],"properties":{"name":{"type":"string"},"type":{"type":"string"},"price_minor":{"type":"integer"},"description":{"type":"string"},"sku":{"type":"string"},"status":{"type":"string","enum":["draft","published"]},"inventory_mode":{"type":"string","enum":["unlimited","limited"]},"inventory_limit":{"type":"integer"},"benefits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"quantity":{"type":"integer"},"label":{"type":"string"}}}}}}}}},"responses":{"201":{"description":"data: Package"}}}},"/packages/{package}":{"patch":{"summary":"Update a package; omitted fields keep their values (scope packages:write)","parameters":[{"name":"package","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"data: Package"}}}},"/packages/{package}/publish":{"post":{"summary":"Publish a package, or unpublish with `unpublish=true` (scope packages:write)","parameters":[{"name":"package","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"data: Package"},"422":{"$ref":"#/components/responses/Error"}}}}},"x-webhooks":{"description":"Configure endpoints in Settings \u2192 Integrations & API \u2192 Webhooks. Each notification is an HTTPS POST of\nJSON, never following redirects, to public addresses only.\n\nHeaders: `X-TierBook-Event` (type), `X-TierBook-Delivery` (message id, stable across retries \u2014 deduplicate\non it), `X-TierBook-Timestamp` (unix seconds), `X-TierBook-Signature-V2: v1=` + hex HMAC-SHA256(secret,\n\"{timestamp}.{raw body}\") (preferred; reject timestamps more than 5 minutes off) and\n`X-TierBook-Signature: sha256=` + hex HMAC-SHA256(secret, raw body) (WordPress TierBook scheme).\n\nBody: `{ id, event, created_at, site_url, organization, api_version, data }`.\n\nAny 2xx is success. Otherwise retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h, then given up;\nan endpoint is switched off after 20 failed attempts in a row. Redeliver or send a test (`ping`) from the\nendpoint page.\n","types":{"attendee.registration.*":{"description":"created, assigned, completed, updated, status_changed, cancelled, ticket_changed, transferred. data = { registration_id, registration_uuid, registration_instance_id, registration_code, event_id, event_title, registration_type, registration_type_label, ticket_type_id, status, details_status, details_source, source, order_id, purchaser_email, attendee_id, attendee{id,uuid,first_name,last_name, email,organization}|null, responses, registration (Registration) } plus: created/completed/updated `channel`; status_changed/cancelled `previous_status`; ticket_changed `previous_ticket_type_id`, `previous_registration_type`, `previous_registration_type_label`; transferred `from_attendee_id`, `to_attendee_id`.\n"},"attendee.checked_in / attendee.session_checked_in":{"description":"Registration data plus scan_id, context, result, scanned_at, program_item_id (accepted event_entry / session_checkin scans)."},"attendee.profile_updated":{"description":"{ attendee_id, attendee_uuid, changed[], before (Person), after (Person) }"},"attendee.email_changed":{"description":"{ attendee_id, attendee_uuid, old_email, new_email }"},"event.created / event.updated":{"description":"{ event (Event), changed[] } \u2014 updated only when public fields change"},"program.changed":{"description":"{ event_id, version, action: published, item_ids: [], feed_url }"},"order.paid / order.refunded":{"description":"{ order{id,uuid,code,event_id,status,source,currency,customer{name,email,company},subtotal_minor,discount_minor,tax_minor,total_minor,paid_minor,refunded_minor,placed_at,paid_at}, refund{id,amount_minor,currency,status,reason} (refunded) }"},"deal.stage_changed":{"description":"{ id, from_stage, to_stage (stage keys), event_id, status }"},"deal.won":{"description":"{ id, code, event_id, company_id, sponsorship_id, title, amount_minor, currency, won_at }"},"fulfillment.status_changed / fulfillment.submitted / fulfillment.approved":{"description":"{ item_id, code, event_id, sponsorship_id, title, status }"},"ping":{"description":"{ message, endpoint_id } \u2014 test notification"}}}}