# Changelog URL: /docs/changelog Changes to the API, dashboard and checkout. ## November 2026 ### 11 November * **Added** · Invitations — return some or all of an invitation usage's units to its allocation and pool, or a member's guest allowance; the return works whether or not the tickets were cancelled and does not cancel them. [Give units back](/docs/guides/invitations#give-units-back), [What counts, and giving units back](/docs/guides/memberships/reference#what-counts-and-giving-units-back) ### 10 November * **Added** · Refunds — cancel tickets on an order that took no payment with refund-and-revoke; the refund completes at zero, revokes the named tickets and returns their capacity to sale. Invitation allocation and member guest allowance units still count, and a money-only refund is refused. [Cancelling free tickets](/docs/guides/refunds#cancelling-free-tickets), [Refund confirmation](/docs/guides/notifications/customer-io#refundconfirmation) ### 8 November * **Added** · Memberships — external entitlement providers can return price effects for a cart quote or checkout, including membership benefits from another service; the engine checks the signed response and prices the cart without that provider if its response is invalid or late. [Registering an external provider](/docs/guides/capacity-and-pricing/pricing-and-entitlements#registering-an-external-provider), [The quote call](/docs/guides/capacity-and-pricing/pricing-and-entitlements#the-quote-call) ### 7 November * **Added** · Stripe Connect — attach an existing Stripe test-mode account to a test organizer when OAuth attach is enabled; the account's mode must match the organizer, and the engine records it as ready at the callback. [Attaching an account you already have](/docs/guides/connect/onboarding#attaching-an-account-you-already-have) ### 4 November * **Added** · Notifications — an organizer that sends its own order confirmations can say so (`own_order_confirmation` on `PATCH /v1/organizer`), and the engine then refuses to wire `order_confirmation` for it. [If you send your own order confirmations](/docs/guides/notifications/customer-io#if-you-send-your-own-order-confirmations) ### 2 November * **Added** · Notifications — read an activity’s notification status, and claim and settle messages for a sender of your own when the engine is not sending them. [Where an activity’s messages stand](/docs/guides/notifications/customer-io#where-an-activitys-messages-stand), [Sending a message yourself](/docs/guides/notifications/customer-io#sending-a-message-yourself) ## October 2026 ### 31 October * **Changed** · Checkout — payment credentials can have a null connected account when Lissen collects payments on its platform account; initialise Stripe.js without a connected account in that case. Membership payments use the same account handling, and each membership keeps the account it joined on for renewals and other billing actions. [Fetch payment credentials](/docs/guides/checkout/buyer-plane#fetch-payment-credentials), [Join and confirm](/docs/guides/memberships/reference#join-and-confirm) ### 30 October * **Added** · Connect — the activity `organizer.payment_account_ready` says your linked Stripe account can take charges. The account is linked (`organizer.payment_account_attached`) when onboarding starts, before Stripe lets it charge. [What emits on the activity stream](/docs/guides/connect/onboarding#what-emits-on-the-activity-stream) * **Changed** · Checkout — payment credentials and a Pay with Lissen payment carry a `null` `connected_account_id` when your ticket payments are collected on the Lissen platform account (a setting only Lissen makes); start Stripe.js without a connected account then. [Fetch payment credentials](/docs/guides/checkout/buyer-plane#fetch-payment-credentials), [Pay with Lissen](/docs/guides/checkout/buyer-plane#pay-with-lissen) * **Changed** · Memberships — when Lissen collects an organizer's memberships on its own Stripe account, a paid join's `payment` and `setup`, and a resume's `payment`, carry `connected_account_id: null`: initialise Stripe.js without a connected account. Such a join cannot name a saved payment method (`saved_payment_method_unavailable`). [Join and confirm](/docs/guides/memberships/reference#join-and-confirm) ### 27 October * **Changed** · Memberships — membership teasers include only plans the customer could join under the membership rules, including plan requirements, exclusive groups, existing memberships and tax-inclusive pricing. [Benefits in quotes](/docs/guides/memberships/reference#benefits-in-quotes), [Applied effects and teasers](/docs/guides/capacity-and-pricing/pricing-and-entitlements#applied-effects-and-teasers) * **Added** · Memberships — a membership benefit can waive the booking fee on assigned items, while the platform fee still comes from your proceeds; if that fee would meet or exceed the discounted price, the waiver steps aside. [Benefits in quotes](/docs/guides/memberships/reference#benefits-in-quotes) * **Added** · Memberships — set a first charge date up to 730 days ahead for a paid membership; the member saves a card now and is charged on that date. [Charge first on a later date](/docs/guides/memberships/reference#charge-first-on-a-later-date) * **Added** · Memberships — join a paid plan with a card already saved on your connected Stripe account, so the member does not need to enter it again. [Moving existing members](/docs/guides/memberships#moving-existing-members), [Pay with a card already saved](/docs/guides/memberships/reference#pay-with-a-card-already-saved) * **Added** · Memberships — move an active paid membership's next charge to a future date or charge a full period now; a past-due membership can also collect its overdue invoice after a card update. [Move or make the next charge](/docs/guides/memberships/reference#move-or-make-the-next-charge), [A card update collects what is overdue](/docs/guides/memberships/reference#a-card-update-collects-what-is-overdue) * **Added** · Memberships — change a paid plan's price for new joins and existing members; existing members move to the new price from their next renewal, with no charge or proration at the switch. [Changing the price](/docs/guides/memberships#changing-the-price), [Change the price](/docs/guides/memberships/reference#change-the-price) * **Fixed** · Memberships — the reported date when a repriced membership price first applies follows the charge Stripe made. [Changing the price](/docs/guides/memberships#changing-the-price), [Change the price](/docs/guides/memberships/reference#change-the-price) ### 26 October * **Added** · Memberships — tax-inclusive paid memberships, when Lissen enables membership tax for the organizer; paid joins then need the buyer's location, and membership charges report the included tax. [Tax](/docs/guides/memberships/reference#tax) * **Added** · Waitlists — waitlist priority for members: when a ticket is freed, an eligible member with priority for that item is offered it before other waiting entries; membership is checked when the ticket is offered. [Putting members first on a waitlist](/docs/guides/memberships#putting-members-first-on-a-waitlist), [Member priority](/docs/guides/waitlist#member-priority) * **Fixed** · Memberships — guest invitations and guest allowance requests accept membership ids returned by the membership API. [Guest invitations](/docs/guides/memberships/reference#guest-invitations) ### 25 October * **Changed** · Checkout — the selected saved card's masked number, expiry and security code appear in the card fields; buyers can switch to another card by pressing a displayed value or focusing a card field. [Buyers who already have Lissen](/docs/guides/checkout/drop-in#buyers-who-already-have-lissen), [What the buyer sees](/docs/guides/checkout/hosted-checkout#what-the-buyer-sees) ### 14 October * **Added** · Checkout — checkout sessions record when payment starts, when a bank asks for 3-D Secure and each card decline in psp\_refs and the activity feed. A decline leaves the session open for another card, and a late payment failure does not take back a paid order. [Payment milestones](/docs/guides/checkout/sessions#payment-milestones), [When the money bounces](/docs/guides/orders#when-the-money-bounces) ### 7 October * **Added** · Ticket types — read how many tickets of each type were issued in one request, and list one event's ticket types with `event_id`. [How many of each item were issued](/docs/guides/capacity-and-pricing/availability#how-many-of-each-item-were-issued) * **Changed** · Waitlists — converted entries retain the issuing `checkout_session_id` for paid and free approvals; their `checkout_url` and `invitation_expires_at` are null. Reads, lists and conversion activities agree. [Linking a converted entry to its order](/docs/guides/waitlist#linking-a-converted-entry-to-its-order) * **Fixed** · Documentation — the documentation home links to the plain-text exports and OpenAPI contract now open correctly. [Using coding agents](/docs/#using-coding-agents) ### 5 October * **Fixed** · Notifications — the dashboard's Notifications page lists the Event cancelled email, so it can be mapped to a template. [Message types](/docs/guides/notifications/customer-io#the-seven-message-types) ### 4 October * **Changed** · Waitlists — a waitlist entry needs only an email address; the name is optional. [Join an item](/docs/guides/waitlist#join-an-item) * **Fixed** · Memberships — paid membership invoices from Stripe are processed correctly again. [States and webhooks](/docs/guides/memberships/reference#states-and-webhooks) ### 3 October * **Added** · Checkout offers — create a checkout session with a one-off offer, such as an affiliate or partner price, in one call. The best eligible price wins against member pricing, offers do not stack with member pricing, and the checkout shows what the offer took off. [Offers from your backend](/docs/guides/checkout/sessions#offers-from-your-backend), [A checkout offer competes with membership](/docs/guides/capacity-and-pricing/pricing-and-entitlements#a-checkout-offer-competes-with-membership) * **Added** · Ticket types — opening triggers: a ticket type can open when another sells out, closes, or either, alongside its own sale start and end. [Opening one ticket type when another runs out or closes](/docs/guides/config/items-and-quotas#opening-one-ticket-type-when-another-runs-out-or-closes) * **Added** · Invitations — invitation allocations and shared pools: give an artist, or anyone else, an invitation budget for an event; comps that name an allocation draw from it, and usage is visible in the API and the dashboard. [Invitation allocations and pools](/docs/guides/invitations) * **Added** · Memberships — member guest invitations: a guest benefit with an allowance per event or per period, enforced by the engine. [Letting members bring a guest](/docs/guides/memberships#letting-members-bring-a-guest), [Guest invitations](/docs/guides/memberships/reference#guest-invitations) * **Added** · Team — event editors: owners give team members access to all events or to selected events, plus any event they create, and can change or revoke it. Each event has an attendee list. Stripe and payment settings stay owner-only. [Event editors](/docs/guides/dashboard#event-editors), [Who is coming](/docs/guides/config/events#who-is-coming) * **Added** · Events — event cancellation: a policy set in advance for each event decides what cancelling does — stop sales, close open checkouts, refund paid tickets, refuse entry at the door, notify attendees. Cancel from the dashboard or the API, follow the progress, and retry any failed step. [Cancelling an event](/docs/guides/config/events#cancelling-an-event), [in the dashboard](/docs/guides/dashboard#cancelling-an-event), [Refunds for a cancelled event](/docs/guides/refunds#refunds-for-a-cancelled-event), [At the door](/docs/guides/check-in#when-the-event-is-cancelled) * **Added** · Dashboard — a setup checklist on the organizer's Profile page. [The setup checklist](/docs/guides/dashboard#the-setup-checklist) * **Added** · Dashboard — Apple Pay and Google Pay registration for embed origins, with statuses and a retry on the Embedding page. [Where your checkout may be embedded](/docs/guides/checkout/buyer-plane#where-your-checkout-may-be-embedded) * **Added** · Dashboard — view the card statement descriptor on the Payments page; ask Lissen to change it. [Card statement descriptor](/docs/guides/dashboard#card-statement-descriptor) * **Added** · Dashboard — a Notifications page to choose which emails are sent and which Customer.io template each one uses. [The wiring map](/docs/guides/notifications/customer-io#the-wiring-map) * **Added** · Memberships — register external entitlement providers through the API or the Memberships page. [Registering an external provider](/docs/guides/capacity-and-pricing/pricing-and-entitlements#registering-an-external-provider) ### 2 October * **Added** · Memberships — pause and resume a paid membership, and undo a scheduled cancellation. [Pause and resume](/docs/guides/memberships/reference#pause-and-resume), [Cancel at period end](/docs/guides/memberships/reference#cancel-at-period-end) * **Added** · Memberships — members update their payment card through a hosted session. [Update the payment method](/docs/guides/memberships/reference#update-the-payment-method) * **Added** · Memberships — refund a membership payment without cancelling the membership. [Refunding a membership payment](/docs/guides/refunds#refunding-a-membership-payment) * **Added** · Memberships — a benefit grace period: members keep their benefits for a set time after a failed renewal. [Benefit grace period](/docs/guides/memberships/reference#benefit-grace-period) * **Added** · Memberships — close a plan to new members without affecting existing ones, and optionally cap the number of members. [Close enrollment or cap members](/docs/guides/memberships/reference#close-enrollment-or-cap-members) * **Added** · Memberships — earned memberships: a free membership granted automatically after a set number of visits in a rolling window, kept for good or only while the member keeps attending. [Earning a plan by attending](/docs/guides/memberships#earning-a-plan-by-attending), [Earned memberships](/docs/guides/memberships/reference#earned-memberships) * **Added** · Memberships — a plan can require an active membership of another plan before someone joins it. [Require a membership to join](/docs/guides/memberships/reference#require-a-membership-to-join) * **Added** · Memberships — exclusive groups of alternative plans: joining an alternative is refused while the customer has an ongoing membership in the group. [Alternative plans in an exclusive group](/docs/guides/memberships/reference#alternative-plans-in-an-exclusive-group) * **Added** · Check-in — an admitted check-in counts towards the ticket holder's attendance, once per customer per event. [Attendance](/docs/guides/check-in#attendance) ### 1 October * **Added** · Ticket types — approval-only ticket types: buyers request a place and the organizer approves or rejects each request. An approved free ticket is issued at once; an approved paid ticket gets a payment link. [Approval-gated items](/docs/guides/waitlist#approval-gated-items) * **Added** · Ticket types — a maximum number per order for each ticket type. [Items](/docs/guides/config/items-and-quotas#items) * **Improved** · Checkout — a free order finishes as soon as its tickets are issued, without waiting through payment-processing steps. [Free tickets and zero-total checkout](/docs/guides/checkout/zero-total) ## September 2026 ### 29 September * **Improved** · Checkout — checkout can confirm an order directly after payment, ahead of Stripe's webhook, and saved-card payments are confirmed directly. [Finalize the payment](/docs/guides/checkout/buyer-plane#finalize-the-payment) ### 28 September * **Improved** · Checkout — faster loading: the drop-in checkout can start loading before the session exists, so it is ready sooner. [Load it before the session exists](/docs/guides/checkout/drop-in#load-it-before-the-session-exists-optional) ### 26 September * **Fixed** · Checkout — when a bank's 3-D Secure check does not return to checkout, the checkout checks the payment status directly. [What the buyer sees](/docs/guides/checkout/hosted-checkout#what-the-buyer-sees) ### 24 September * **Added** · Checkout — event checkout limits: a limit on tickets per order, and an optional cap on how many tickets one customer can buy for an event. [Event checkout limits](/docs/guides/checkout/sessions#event-checkout-limits), [Checkout limits](/docs/guides/config/events#checkout-limits) * **Added** · Refunds — partial, money-only refunds that keep the ticket valid. [Money-only refunds](/docs/guides/refunds#money-only-refunds) * **Added** · Customers — update a customer's contact details; the engine also syncs the linked Stripe billing contact and reports the sync status. [Updating a customer's contact details](/docs/guides/orders#updating-a-customers-contact-details) * **Fixed** · Dashboard — order pages open again, so refunds and cancellations can be reached from them. [Refunding an order](/docs/guides/dashboard#refunding-an-order) ### 23 September * **Added** · Orders — every ticket has an assigned holder, tracked separately from the buyer. [Buyer and holder](/docs/guides/orders#buyer-and-holder) * **Added** · Orders — immediate ticket transfers that keep the same QR code. A ticket cannot be transferred after check-in; organizers can correct a holder, and every ticket keeps its holder history. [Transferring a ticket](/docs/guides/orders#transferring-a-ticket) * **Added** · Orders — issue complimentary tickets directly, with an optional capacity override; comps still count against capacity. [Complimentary tickets](/docs/guides/orders#complimentary-tickets) * **Added** · Memberships — free memberships alongside paid ones, with no Stripe billing or renewals. [Free plans](/docs/guides/memberships#free-plans-halfmoon-friends) * **Added** · Memberships — reusable membership benefits, such as member discounts, assigned per event and ticket type. [Benefits chosen per event](/docs/guides/memberships#benefits-chosen-per-event), [Membership benefits](/docs/guides/memberships/reference#membership-benefits) * **Fixed** · Dashboard — the ticket editor preserves every capacity a ticket type counts against; capacity mappings stay read-only while tickets are sold or held. [Finding your way around](/docs/guides/dashboard#finding-your-way-around), [Items and quotas](/docs/guides/config/items-and-quotas) * **Fixed** · Memberships — a join never replaces a membership Stripe has already activated, preventing a second subscription from that retry. [Join and confirm](/docs/guides/memberships/reference#join-and-confirm) * **Changed** · Documentation — the guides are reconciled with the current platform. [Guides](/docs/guides) ### 14 September * **Added** · Orders — order confirmation emails can show a QR code for each ticket, served and signed by the platform; positions carry `qr_image_url`. [The order](/docs/guides/orders#the-order), [Writing the templates](/docs/guides/notifications/customer-io#writing-the-templates) * **Fixed** · Checkout — fixes from the first live sale for wallet buttons, saved-card payments and the hosted and embedded layout. [Payment buttons](/docs/guides/checkout/drop-in#what-does-not-theme), [Saved cards](/docs/guides/checkout/drop-in#buyers-who-already-have-lissen), [Hosted checkout](/docs/guides/checkout/hosted-checkout#what-the-buyer-sees) ### 12 September * **Added** · Checkout — free tickets: zero-total orders complete without a payment step. [Free tickets and zero-total checkout](/docs/guides/checkout/zero-total) ### 11 September * **Changed** · Checkout — a one-page checkout: guests and Lissen buyers pay the same way, with Apple Pay and Google Pay on the page. [What the buyer sees](/docs/guides/checkout/hosted-checkout#what-the-buyer-sees) ### 10 September * **Added** · Checkout — the drop-in checkout: mount the checkout in your own pages and theme it. [Drop-in checkout](/docs/guides/checkout/drop-in) * **Added** · Checkout — Pay with Lissen: buyers save a card once and use it wherever the checkout runs; their bank may still ask them to confirm the payment. [Pay with Lissen](/docs/guides/checkout/buyer-plane#pay-with-lissen), [Buyers who already have Lissen](/docs/guides/checkout/drop-in#buyers-who-already-have-lissen) ### 8 September * **Added** · Documentation — plain-text exports of the documentation for coding agents. [Using coding agents](/docs/#using-coding-agents) ### 6 September * **Added** · Stripe Connect — attach an existing Stripe account from the dashboard. [Attaching an account you already have](/docs/guides/connect/onboarding#attaching-an-account-you-already-have) ### 5 September * **Added** · Refunds — refunds, disputes and a ledger of every money movement. [Refunds, disputes and the ledger](/docs/guides/refunds) ### 4 September * **Added** · Checkout — the hosted checkout page. [Hosted checkout](/docs/guides/checkout/hosted-checkout) * **Added** · Check-in — door passes, live scans, and an offline manifest that syncs. [Check-in & door passes](/docs/guides/check-in) * **Added** · Memberships — paid memberships billed as subscriptions on the organizer's Stripe account, with member pricing. [Memberships](/docs/guides/memberships) * **Added** · Waitlists — waitlists per ticket type, where an invitation holds tickets for the person invited. [Waitlists](/docs/guides/waitlist) * **Added** · Dashboard — connect a Stripe account from the Payments page. [Hosted onboarding](/docs/guides/connect/onboarding#hosted-onboarding) * **Improved** · Capacity — availability for several quotas in one call. [Several quotas at once](/docs/guides/capacity-and-pricing/availability#several-quotas-at-once) * **Added** · Documentation — the memberships guide, an end-to-end walkthrough. [Memberships](/docs/guides/memberships) ### 3 September * **Added** · Platform — one address for everything: tickets.lissen.com serves the API, dashboard, documentation and checkout. [API](/docs/getting-started), [Dashboard](/docs/guides/dashboard#signing-in), [Documentation](/docs), [Hosted checkout](/docs/guides/checkout/hosted-checkout#send-a-buyer-to-the-page) * **Added** · Dashboard — organizer owners sign in and manage their own organizer, team and API keys. [Signing in](/docs/guides/dashboard#signing-in) * **Added** · Dashboard — events at the centre, with ticket types, capacity, promo codes, branding, payments, fees, team, API keys and an activity feed. [Your dashboard and team](/docs/guides/dashboard) * **Added** · Orders — tickets are issued as soon as payment succeeds; an order is refused cleanly if capacity is gone or the money bounces. [Orders, positions and customers](/docs/guides/orders) * **Added** · Webhooks — signed webhook delivery to your endpoints. [Webhooks](/docs/guides/webhooks), [Verifying signatures](/docs/guides/activities/webhook-signatures) ### 2 September * **Added** · Checkout — checkout sessions, the cart and the buyer API. [Checkout sessions](/docs/guides/checkout/sessions), [The buyer plane](/docs/guides/checkout/buyer-plane) * **Added** · Documentation — this documentation site, with guides. [Guides](/docs/guides) ### 1 September * **Added** · Partner API — REST with an OpenAPI contract, API keys, idempotency, pagination and a generated TypeScript client. [Getting started](/docs/getting-started), [API reference](/docs/reference) * **Added** · Activities — every change is recorded on an activity stream you can read and filter. [The activity stream](/docs/guides/activities/stream) * **Added** · Configuration — organizers, events, ticket types, quotas, fee schedules, discount codes and branding. [Configuration](/docs/guides/config) * **Added** · Capacity — holds protect checkout capacity, with live availability and automatic release of expired holds. [Availability](/docs/guides/capacity-and-pricing/availability) * **Added** · Pricing — quotes, member pricing and discount codes. [Pricing & entitlements](/docs/guides/capacity-and-pricing/pricing-and-entitlements), [Discount codes](/docs/guides/config/discount-codes) * **Added** · Stripe Connect — onboarding, with every charge made directly on the organizer's own Stripe account. [Onboarding](/docs/guides/connect/onboarding) * **Added** · Notifications — connect Customer.io, and buyer emails are sent through the organizer's own templates. [Connecting Customer.io](/docs/guides/notifications/customer-io) ## August 2026 ### 31 August * **Added** · Organizers — each organizer's events, customers and orders are kept separate. [You are an organizer](/docs/getting-started#you-are-an-organizer) ### 28 August * **Added** · Platform — the platform design, covering tenancy and API keys, capacity and holds, pricing, money and refunds, the partner API, activities and webhooks, notifications, hosted checkout and check-in. [How it fits together](/docs/guides/how-it-fits-together) --- # Getting started URL: /docs/getting-started What the engine is, how you authenticate, and the conventions that hold across every endpoint. The Lissen ticketing engine is a multi-tenant API for **ticketing and membership commerce**. You configure what you are selling, the engine holds the capacity, prices the cart, takes the money on your own Stripe account, and records every fact that follows. Read this page once. Everything in it is true of every endpoint, so the guides that follow never repeat it. If you want the shape of the whole thing before the details, read [How it fits together](/docs/guides/how-it-fits-together) first: what stays in your systems, what lives here, and one sale end to end. ## You are an organizer An **organizer** is a tenant. Your events, items, quotas, discount codes, customers and orders all belong to exactly one organizer, and nothing crosses between two of them. You will be given an organizer id at onboarding: ``` org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7 ``` Every id in the engine has this shape — a short prefix naming the kind, then a UUID. The same string appears in the API, in your logs, in an activity payload and in a support thread, so you can paste one straight from an email into a search box. | Prefix | What it is | | --------------- | ------------------------------------------------ | | `org_` | organizer (you) | | `evt_` | event — the door-and-clock record of an occasion | | `itm_` | item — a priced offer | | `quo_` | quota — a pool of capacity | | `fsc_` | fee schedule | | `dsc_` | discount code | | `cs_` | checkout session | | `hld_` | hold | | `cus_` | customer | | `ord_` / `pos_` | order / position | | `act_` | activity | ### Test and live are two organizers, not two environments There is one API, one hostname, one set of endpoints. What decides whether a purchase moves real money is the **organizer**: `test` is fixed on it at the moment it is created and can never change. A sandbox is therefore a *test organizer twin* of your live one — its own events, its own quotas, its own Stripe account in test mode. You develop against the test organizer with a test key and go live by switching two values: the organizer id and the key. ```bash curl https://tickets.lissen.com/api/v1/organizer \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7", "name": "Acme Events", "slug": "acme-events", "test": true, "status": "active", "psp_account_ref": "acct_1QxAcmeTestAccount" } ``` `GET /v1/organizer` is the cheapest possible smoke test: if it answers, your key, your header and your mode all agree. ## Your API key Keys come from the [dashboard](/docs/guides/dashboard): an owner of your organizer signs in and mints one, or Lissen mints one and hands it over. Either way you receive: * the **secret**, shown exactly once at the moment it is minted. We store only a hash of it, so a lost key is replaced, never recovered; * the **organizer id(s)** the key is granted on. A key is a principal with grants, which is why the organizer header below is mandatory rather than inferred: the same key can legitimately be granted on more than one organizer, and a request that did not say which one it meant would be ambiguous the day a second grant is added. Send it as a bearer token: ```bash -H "Authorization: Bearer tk_test_..." ``` A key is a bearer credential: anyone holding it can sell, refund and read on your behalf. Keep it server-side. Never ship one to a browser or a mobile app — for the buyer's browser there is a separate, far weaker credential scoped to a single checkout session. Several keys can be active at once, which is how you rotate without downtime: an owner mints the new key in the dashboard, you deploy it, then the owner revokes the old one there. Lissen can do the same on request. ## The `Ticketing-Organizer` header **Every `/v1` request must name its tenant.** ```bash -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` There is no default, including for a key granted on exactly one organizer. Omitting it is a `400` that names exactly what to send: ```json { "error": { "type": "invalid_request_error", "code": "missing_organizer", "message": "Ticketing-Organizer is required", "param": "Ticketing-Organizer", "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3" } } ``` If you have seen Stripe's `Stripe-Account` header, this is the same idea for the same reason. ## Errors Every non-2xx response has one shape: ```json { "error": { "type": "invalid_request_error", "code": "insufficient_capacity", "message": "Not enough capacity for the requested items", "param": "line_items", "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3" } } ``` * **`type`** is one of five broad categories: `invalid_request_error`, `authentication_error`, `idempotency_error`, `rate_limit_error`, `api_error`. Branch on it when you only need to know "my fault, your fault, or retry". * **`code`** is the stable, documented value you branch on for real. Codes are **added, never removed or repurposed** — so `switch` on the ones you handle and let the rest fall through to a generic message. * **`param`** appears on validation failures and names the offending field. * **`request_id`** identifies this exact request in our logs. It also rides every response — success or failure — as the `Request-Id` header. Log it; it is the first thing we will ask for. ### The code registry | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | invalid_request | 400 | invalid_request_error | The request body or query failed validation. `param` names the field. | Fix the named field and send the request again. | | missing_organizer | 400 | invalid_request_error | No `Ticketing-Organizer` header was sent. | Send `Ticketing-Organizer: org_…` on every `/v1` request. There is no default, not even for a key granted on exactly one organizer. | | invalid_organizer | 400 | invalid_request_error | The header was present but is not a well-formed organizer id. It is checked for shape before anything else happens, so this never means the organizer is missing or forbidden — those are `not_found` and `organizer_not_granted`. | Check the id you copied from your onboarding email; it is `org_` followed by a UUID. | | missing_authorization | 401 | authentication_error | No `Authorization: Bearer …` header was sent. | Send your API key as a bearer token. | | invalid_api_key | 401 | authentication_error | The bearer token is not a live API key. A checkout-session client secret presented to a keyed route also lands here — deliberately, so the two credential kinds can never be confused for one another. | Check the key, and check you are not sending a buyer client secret to a partner-plane route. | | organizer_not_granted | 403 | authentication_error | The key is valid but holds no grant on the organizer named in the header. | Use a key granted on that organizer, or ask Lissen to add the grant. | | api_key_not_authorized | 403 | authentication_error | The key is the wrong kind or scope for this plane — a door pass on a partner route, for example. | Use a `kind: api`, `scope: full` key for the partner plane. | | api_key_mode_mismatch | 403 | authentication_error | A test key was presented for a live organizer, or the reverse. Mode is a property of both the key and the organizer, and they must agree. | Use the key that belongs to that organizer's mode. | | missing_idempotency_key | 400 | invalid_request_error | This operation requires `Idempotency-Key` and none was sent. | Send a unique key (a UUID is ideal) on every durable creation — every POST that mints a resource, not only the ones that consume capacity or move money. | | idempotency_key_reused | 409 | idempotency_error | This key was already used with a different request body. Fingerprints cover method, path, sorted query pairs and the exact request bytes. | Use a fresh key for a genuinely different request, or resend the original bytes to replay the original response. | | idempotency_key_in_flight | 409 | idempotency_error | An identical request under the same key is still executing. This is the only concurrency case that 409s. | Wait and retry; the first attempt will finish or release the key. | | buyer_plane_unavailable | 404 | invalid_request_error | A buyer-plane route was reached in a deployment where that route is disabled. | Use the enabled buyer-plane deployment for this operation. | | door_pass_unavailable | 404 | invalid_request_error | A door-pass route was reached in a deployment where that route is disabled. | Use the enabled door-pass deployment for this operation. | | invalid_pagination | 400 | invalid_request_error | `starting_after` and `ending_before` were sent together, or a cursor is unusable. | Send at most one cursor. | | invalid_sale_window | 400 | invalid_request_error | An item's `sale_starts_at` is not before its `sale_ends_at`. | Order the window correctly, or clear one end of it. | | invalid_event_window | 400 | invalid_request_error | An event's `starts_at` is not before its `ends_at`. | Fix the times. Both are RFC 3339 UTC. | | invalid_reference | 400 | invalid_request_error | The request referenced an id that does not exist under this organizer — an `event_id`, a `quota_id`, an `item_id`, a `plan_id` (when creating a membership benefit), or a customer named by `id` or `external_ref` in a transfer. | Check the id, and check the `Ticketing-Organizer` header names the tenant that owns it. | | code_already_exists | 400 | invalid_request_error | A discount code with this name already exists for the organizer. Uniqueness is case-insensitive: `SUMMER` and `summer` are the same code. | Pick another code, or update the existing one. | | capacity_locked | 409 | invalid_request_error | Another request held the capacity lock for the quotas this one touches, or the lock on the same purchaser's allowance for an event with a per-customer cap, and the wait timed out. This is contention, not a refusal — nobody has taken the tickets. | Retry with a short backoff. A contended purchase deliberately fails fast rather than parking a connection. | | insufficient_capacity | 409 (waitlist) · 422 (checkout) | invalid_request_error | There is genuinely not enough room. The decision was recomputed inside the lock immediately before it was returned. | Read availability, offer fewer units, or send the buyer to a waitlist. For a comp, `detail.shortfalls` names each short quota; set `capacity_override` only if the organizer means to issue past capacity. | | invalid_footprint | 400 | invalid_request_error | The requested items could not be resolved to any quota. An empty capacity footprint is refused rather than treated as unlimited. | Check the item ids in the request. | | quota_below_consumption | 400 | invalid_request_error | A quota resize would have put its size below what is already issued plus what live checkouts are holding. | Read the quota's availability and resize to at least `issued + in_baskets`. | | quota_unlimited_immutable | 400 | invalid_request_error | An unlimited quota (`size: null`) cannot be given a finite size. Unlimited is terminal. | Create a new finite quota and rebind the item to it, if the item has no live capacity yet. | | item_quotas_locked | 400 | invalid_request_error | An item's `quota_ids` cannot change once live capacity depends on the item. | Mint a new item on the quotas you want and close the old item's sale window. | | not_found | 404 | invalid_request_error | No such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden. | Check the id and the organizer header. | | internal_error | 500 | api_error | Something failed on our side. | Retry. If it persists, send us the `request_id` from the response — it identifies the exact request in our logs. | | currency_mismatch | 400 | invalid_request_error | A cart, a discount code or a fee schedule mixed currencies. Carts are single-currency and the engine performs no FX. | Keep every line, code and schedule in one currency. | | item_not_sellable | 422 | invalid_request_error | The item exists but cannot be sold right now — inactive, outside its sale window, gated with no applied unlock, or approval-gated outside an approved invitation. A comp ignores the sale window, gating and approval and is refused only for an inactive item or an item with no event. | Quote the cart first: the line's `blocked_reason` tells you which of those it is. | | fee_schedule_not_found | 422 | invalid_request_error | No active fee schedule matches this position's currency. Pricing fails loud rather than assuming a zero fee. | Lissen sets fee schedules; partners cannot create one. Contact Lissen to set a schedule for the organizer in that currency, then quote again to confirm before selling. | | fee_schedule_ambiguous | 422 | invalid_request_error | More than one active schedule matched at the same scope. | Contact Lissen: only Lissen can deactivate the extra schedule. Quote again afterwards to confirm the sale prices. | | connect_account_not_onboardable | 422 | invalid_request_error | Hosted onboarding cannot be started for this organizer in its current state. | Talk to us — this usually means the account is already attached. | | connect_account_already_linked | 422 | invalid_request_error | That Stripe account is already attached to another organizer. | One account belongs to exactly one organizer. Use a different account. | | connect_state_invalid | 400 | invalid_request_error | The OAuth `state` did not verify. It is bound to the organizer, its mode, the redirect URI, the initiating key and the linkage as it stood when the URL was minted, so any attach anywhere invalidates every outstanding state. | Start the authorization again to mint a fresh URL. | | connect_oauth_failed | 400 | invalid_request_error | Stripe refused the authorization code exchange. | Start the authorization again. | | connect_oauth_not_available | 422 | invalid_request_error | OAuth attach is switched off for test organizers in this engine, so a sandbox tenant is given an account created inside our own sandbox instead. | Use hosted onboarding for a test organizer while OAuth attach is off. | | connect_oauth_state_consumed | 409 | invalid_request_error | That authorization has already been completed. A state is spent exactly once — including when the second attempt names the account the first one linked. | Nothing: the account is attached. Read `/v1/organizer` to confirm. | | connect_provider_unavailable | 503 | api_error | Stripe was unreachable or rate-limited us. | Retry with backoff. | | staff_identity_invalid | 401 | authentication_error | The request carried a staff sign-in assertion instead of an API key, and it did not verify. Partner integrations never send one. | Authenticate with your API key (`Authorization: Bearer tk_…`). If you are Lissen staff, sign in again through the staff admin. | | staff_identity_not_permitted | 403 | authentication_error | This operation does not accept a staff or dashboard sign-in. Today that is check-in scanning, which runs under the organizer's API key or a door pass, and the operations where you attest a customer's identity — an ordinary ticket transfer and a position claim — which run under the organizer's API key. Connect onboarding, OAuth attach and holder corrections do accept an organizer owner or Lissen staff. | Run it with the organizer's API key (or a door pass, for scanning). To move a ticket without the holder's authority, make a holder correction with a reason (`POST /v1/positions/{id}/holder_correction`) from your own system; the dashboard does not offer one yet. | | fee_exceeds_charge | 422 | invalid_request_error | An absorbed fee would have swallowed the whole post-discount charge. The invariant is checked against what is actually charged, so a discount that halves a line can trip a flat fee that was fine at list price. | Lissen owns the schedule, so contact Lissen to adjust its flat component or mode. Until then, quote the cart without the discount or at a higher price and confirm the quote succeeds. | | checkout_session_not_open | 409 | invalid_request_error | The session is no longer open — completed, expired, refused, or its hold is no longer live. | Read the session to see which. An expired session cannot be revived; create a new one. | | checkout_session_locked | 409 | invalid_request_error | Payment has started on this session, so the cart and its quote are contractual and can no longer be changed. | Do not retry the update. Poll the session until it reaches a terminal state. | | checkout_session_conflict | 409 | invalid_request_error | Two updates of the same session raced, or the session moved while its payment was being prepared. Loud and retryable, rather than a silent partial adjustment. | Re-read the session, decide the cart you want from what you now see, and send the update again. | | code_not_reservable | 422 | invalid_request_error | A presented discount code could not be reserved even after the cart was re-priced against what the reservation saw — its last use went to someone else. | Re-quote the cart; the code will come back under `rejected_codes` with a reason you can show the buyer. | | payment_intent_unavailable | 422 | invalid_request_error | The session has no usable payment intent yet. Creation commits the cart, hold and reservations first and creates the intent immediately afterwards, so a create response can legitimately carry empty `psp_refs`. | Retry the payment-credentials endpoint; that is the call that prepares the intent. Retrieving the session does not prepare or recover payment. | | invalid_client_secret | 401 | authentication_error | The bearer is missing, malformed, wrong, or is used outside a closed session’s permitted operations/window. Outcome retrieval (including /finalize, which then only reads) and an already-completed zero-total /complete retry remain available until one hour after session expiry. Every authentication failure is this one answer with no distinguishing detail, so the endpoint cannot be used to probe which sessions exist. A VALID secret used with another session's id is different: that is a non-enumerating 404, identical to the answer for a session that never existed. | The buyer's session is over. Send them back to start a new checkout. If you are getting a 404 instead, check that the id in the path is the session the secret was issued for. | | identity_not_assigned | 403 | authentication_error | You signed in successfully, but this email is not assigned to any organizer and is not Lissen staff. | Ask the person who invited you (or Lissen) to add your email to the organizer's team (as an owner or event editor), then sign in again. | | buyer_identity_required | 422 | invalid_request_error | The session names no buyer email, so there is nobody to send the order to. Payment credentials are withheld until the session's `customer.email` is set — on the partner plane at create or update, or on the buyer plane's update. A comp is refused the same way when its recipient resolves to a customer with no email. | Set `customer.email` (and `customer.name` if you have it) on the session, then request the credentials again. For a comp named by `recipient.external_ref`, send `recipient.email` with it; a recipient named by `recipient.id` alone cannot carry an email, so name them by `recipient.email` instead. | | invalid_webhook_url | 400 | invalid_request_error | The webhook URL is not a valid HTTPS URL. | Use a publicly reachable HTTPS endpoint. | | invalid_webhook_enabled_type | 400 | invalid_request_error | An enabled activity type is not a supported exact type or wildcard. | Use an activity type, a resource wildcard such as `order.*`, or `*`. | | webhook_endpoint_not_found | 404 | invalid_request_error | No webhook endpoint with that id belongs to this organizer. | Check the endpoint id and organizer header. | | webhook_endpoint_rotation_failed | 500 | api_error | The signing secret could not be stored securely. | Retry shortly. If this continues, contact support. | | membership_already_exists | 409 | invalid_request_error | This customer already has an `active` or `past_due` membership on the selected plan. An unpaid `incomplete` join is resumed with fresh payment credentials instead, and an expired attempt is replaced, so neither answers this error. It is also returned while the membership still reads `incomplete` if Stripe has already activated its subscription and the webhook has not arrived yet, and for an `incomplete` membership whose subscription Stripe holds as `unpaid` or `paused`. | Read the existing membership. If it still reads `incomplete` because Stripe has just activated it, wait for its status to update (or for `membership.activated`) rather than cancelling it. If its subscription is `unpaid` or `paused` at Stripe, it will not activate by itself: cancel it first. To join again, cancel it or wait for it to reach `canceled`. | | membership_already_canceled | 409 | invalid_request_error | This membership has already reached its canceled state. | Nothing to cancel. Joining again, free or paid, creates a new membership after the canceled record. | | membership_state_conflict | 409 | invalid_request_error | The membership's current status does not allow this operation, so nothing changed. `detail.operation` names the operation and `detail.status` the status that blocked it. Pause needs an `active` membership with no cancellation scheduled; resume needs a `paused` one; undoing a cancellation needs an `active` or `past_due` membership with a cancellation scheduled and a subscription the provider has not ended; a `paused` membership cannot be canceled; setting the next charge needs an `active` membership with no cancellation scheduled, or a `past_due` one with `at: now` (a date cannot be set while a payment is overdue). An ended membership is never revived. | Read the membership and act on its current `status`. Resume a paused membership before canceling it or setting its next charge, undo a scheduled cancellation before pausing or setting the next charge, pay a `past_due` membership's overdue invoice with `at: now` before moving its date, and join again (a new membership) after a membership has ended. | | membership_no_billing | 422 | invalid_request_error | A free membership has no paid period, so it has nothing to pause, resume, charge or reverse a cancellation on. Nothing changed. Canceling a free membership ends it immediately. | Do not offer pause, resume, next charge or undo-cancellation for a membership whose plan has `price_minor` 0. | | membership_pause_unsupported | 422 | invalid_request_error | The payment provider cannot natively pause this subscription: it was not created with flexible billing, it does not collect automatically, it is driven by a schedule, or it is not active at the provider. The engine never migrates an existing subscription to make it eligible. Nothing changed. `detail.provider_code` carries the provider's own code when it refused the pause. | Do not retry. Keep the membership active, or cancel it at period end. Contact Lissen support if a subscription you expect to be pausable is refused. | | membership_resume_payment_failed | 422 | invalid_request_error | The provider refused the restart payment, for example because the customer has no usable saved payment method. The membership stays `paused`, no benefits return and no `membership.resumed` is recorded. | Have the customer add or fix their payment method (a paused membership can open the [hosted payment-method update](/guides/memberships/reference#update-the-payment-method)), then call resume again with a new `Idempotency-Key`. | | door_pass_expired | 401 | authentication_error | The door pass has passed its expiry time. | Use a newly minted pass for this event. | | door_pass_organizer_mismatch | 403 | authentication_error | The door pass is not granted to the organizer named by the request. | Use a pass granted to that organizer. | | already_checked_in | 409 | invalid_request_error | This admission already has an active check-in. A transfer of an admitted position is refused with the same code: ordinary transfers stop at check-in. | At the door, ask the organizer to confirm the duplicate. For a transfer, an organizer can still correct the holder with a holder correction. | | position_revoked | 422 | invalid_request_error | The admission has been revoked. A transfer or holder correction of a revoked position is refused with the same code; changing its holder cannot revive it. | Do not admit the holder; ask the organizer about a replacement. | | code_not_found | 422 | invalid_request_error | The admission code is not known to this organizer. | Rescan the ticket or use the manual fallback. | | wrong_event | 403 | invalid_request_error | The admission belongs to an event outside this door pass's event set. | Send the holder to the correct event entrance. | | checkin_not_admitted | 409 | invalid_request_error | Only an admitted check-in can be voided. | Read the check-in and void the admitted record, if one exists. | | checkin_not_found | 404 | invalid_request_error | No check-in with that id belongs to this organizer. | Refresh the check-in list and use the current id. | | invalid_door_pass_expiry | 422 | invalid_request_error | The door-pass expiry is not in the future. | Choose a future expiry, or omit it to use the event default. | | waitlist_closed | 409 | invalid_request_error | The item's derived availability is not sold out, so its waitlist is closed. | Offer the item for sale, or retry after the remaining availability is gone. | | waitlist_entry_exists | 409 | invalid_request_error | This email already has a waiting or invited entry for this item. | Use the existing entry, or wait for it to lapse before joining again. | | waitlist_entry_not_waiting | 409 | invalid_request_error | The entry is no longer waiting and cannot be promoted, rejected or removed. | Retrieve the entry and follow its current status instead. | | invitation_window_closed | 409 | invalid_request_error | There is no positive invitation window before the event cutoff. | Do not send an invitation for this event; leave the capacity public. | | invitation_session_immutable | 409 | invalid_request_error | An invitation checkout cannot change its item or quantity. | Keep the invited item and quantity; update only the buyer's contact details. | | order_not_refundable | 409 | invalid_request_error | The order is not in a state where the selected refund can start. | Read the order, then retry only while it is paid or refund_pending. | | position_not_refundable | 409 | invalid_request_error | At least one selected position is already revoked, belongs to another order, or has a money-only refund that is still processing. | Select live positions from the order that have not already been refunded; after a money-only refund, wait until it completes or fails before refunding and revoking the ticket. | | refund_positions_mismatch | 400 | invalid_request_error | A selected position is not part of the order or refund being handled. | Choose positions from the named order, or assign only the positions covered by the external refund. | | identity_token_rejected | 401 | invalid_request_error | The Lissen identity action token was not accepted. The reason is in the message: it was malformed or expired, addressed to another service, minted for another action, bound to a different checkout session, carried an unverified address, or had already been spent. Nothing on the session changed. | Ask the identity component for a fresh token for THIS session and try again. A token is single-use and lives five minutes. | | reverify_required | 403 | invalid_request_error | The attestation behind this session is older than ninety days, which is the horizon after which a saved card must not pay unattended. | Have the buyer verify their address with Lissen again, attest the session with the fresh token, and repeat the payment. | | payment_method_not_owned | 403 | invalid_request_error | The named payment method is not this buyer's. The same answer is given whether it belongs to somebody else or to nobody the engine knows. | Use a card from the buyer's own saved list, or enter a new one through the wallet setup call. | | live_payments_not_configured | 503 | api_error | Live payment credentials are unavailable; checkout fails before reserving capacity or contacting the payment provider. | Contact the platform operator to complete live payment setup, then retry. | | refund_payment_mode_mismatch | 409 | invalid_request_error | The payment belongs to a different test or live mode. No positions were revoked. | Refund the payment through its original environment; a live payment cannot be refunded from a test environment. | | payment_required | 422 | invalid_request_error | The binding checkout quote is non-zero and cannot complete without payment. | Use the payment flow, or update the cart and its quote before trying zero-total completion again. | | payment_declined | 422 | invalid_request_error | The engine charged the card and the card refused it: on a pay call that asked for engine confirmation, or on a membership join that named a saved card. `message` is the card's reason, written for the buyer; `detail.decline_code` is the card network's code when there is one. Nothing started: a checkout session is still open, and a join created nothing. | Show the message where the buyer pays and let them choose another card or enter a new one. Do not retry the same card unchanged. | | quantity_limit_exceeded | 422 | invalid_request_error | The line asks for more units than the item's max_per_order allows. | Lower the quantity to the item's limit, which is in the error detail. | | waitlist_item_not_open | 409 | invalid_request_error | The approval-gated item is switched off or outside its sale window, so it is not taking requests. | Show the item as closed, or retry inside its sale window. | | not_position_holder | 403 | invalid_request_error | The acting customer in a transfer does not hold the position now. Having bought it, having held it before, or having a copy of its QR code does not count. Nothing changed. | Read the position's `holder_customer_id` and let that customer transfer it. To fix a mistaken holder, the organizer uses a holder correction instead. | | holder_unchanged | 422 | invalid_request_error | The destination already holds this position, so there is nothing to change. | Check the destination; no request is needed if it is already the holder. | | item_not_in_event | 400 | invalid_request_error | A membership benefit assignment named an item that is not one of this event's items: it belongs to another event or to no event. Nothing changed. | Select only items whose `event_id` is this event, or assign the benefit to the item's own event. | | invalid_order_limits | 400 | invalid_request_error | An event's `min_tickets_per_order` is greater than its `max_tickets_per_order` or `max_tickets_per_customer`, so no checkout could satisfy both. `param` names the field to change. | Lower the minimum, raise the maximum, or clear one of them with `null`. The check uses the event's stored values for any field the request leaves out. | | order_quantity_below_minimum | 422 | invalid_request_error | The checkout has fewer of one event's tickets than the event's `min_tickets_per_order`, counted across all of that event's items in the checkout. `detail.event_id` names the event, `detail.limit` the minimum and `detail.quantity` this checkout's count. Nothing changed; a refused update leaves the existing cart as it was. | Add tickets for that event until the checkout reaches `detail.limit`. The event's `min_tickets_per_order` is on the Event and on the buyer plane's `line_items[].event`, so a checkout can bound its quantity controls first. | | order_quantity_above_maximum | 422 | invalid_request_error | The checkout has more of one event's tickets than the event's `max_tickets_per_order`, counted across all of that event's items in the checkout. `detail.event_id` names the event, `detail.limit` the maximum and `detail.quantity` this checkout's count. Nothing changed; a refused update leaves the existing cart as it was. | Reduce the event's tickets to at most `detail.limit` in this checkout. Splitting them across checkouts does not help when the event also caps tickets per customer. | | customer_ticket_limit_exceeded | 422 | invalid_request_error | The purchaser (the checkout's customer, who becomes the order customer) would hold more of one event's tickets than its `max_tickets_per_customer`. Their live tickets from earlier orders and the tickets in their other open checkouts count; tickets they transferred away still count. `detail.remaining` is how many more they may buy. At buyer completion nothing is issued; in paid settlement the payment is refunded in full and the session closes as `payment_refused`. | Offer at most `detail.remaining` tickets for that event, or none when it is zero. Allowance comes back only when the purchaser's other open checkouts expire or are released, or when their tickets are revoked. Completing another checkout does not: its held tickets become purchased tickets, which keep counting. A transfer or a money-only refund does not give allowance back either. | | refund_amount_exceeds_refundable | 409 | invalid_request_error | A `money_only` refund asked for more than the order or the named positions can still return, or a membership payment refund asked for more than the charge can still return. Completed and processing refunds already count against that balance (an order also counts failed-but-not-retried refunds). Nothing was refunded. | Read the order's or the membership charge's `amount_refundable_minor`, then request that amount or less, or name more positions. | | membership_charge_not_refundable | 409 | invalid_request_error | The membership charge carries no payment reference the engine can refund. This happens for a charge recorded before membership refunds were supported, or one that was not paid by card. Nothing was refunded. | Refund it in the Stripe Dashboard if it must be returned: the engine reconciles the refund into the membership's payment history. | | customer_email_conflict | 409 | invalid_request_error | Another customer of this organizer already has the email you sent. Nothing changed: the engine never merges two customers or moves their orders, memberships or tickets. | Keep the customer's current email, or resolve the duplicate on your side first. Two customers with one address are two records until you decide otherwise. | | membership_prerequisite_not_met | 422 | invalid_request_error | The plan being joined requires another plan (`required_plan_id` on the plan), and this customer does not hold an `active` membership of it. Only `active` counts: an `incomplete`, `past_due` or `canceled` membership of the required plan does not, nor does having none, nor does a customer who does not exist yet. Nothing was created: no Stripe subscription or customer, no membership, no customer record. Paid and free plans are refused alike. `detail.required_plan_id` and `detail.required_plan_name` name the plan to hold. | Do not offer the join until the customer holds an active membership of `detail.required_plan_id` (list `GET /v1/memberships?customer_id=…&plan_id=…&status=active` to check ahead). Earning that membership only makes them eligible: they still have to choose to join, and nothing is charged or enrolled automatically. | | membership_not_billable | 422 | invalid_request_error | The membership has no Stripe-billed subscription whose payment method could be updated: it belongs to a free plan, or it is still `incomplete` and awaiting its first payment. No session was created and nothing changed. | A free membership has no payment method; do not offer the update. For an `incomplete` membership, finish the join with the payment credentials it returned (or re-join to resume it), then offer the update once the membership is `active`. | | payment_method_update_unavailable | 422 | invalid_request_error | The organizer's connected Stripe account cannot host the hosted payment-method update: Stripe refused to open the customer portal for it (the portal is unavailable to the account, or the member's Stripe customer no longer exists there). Nothing changed and no session was created. | Check the organizer's Stripe account can use the customer portal in this mode, then retry. Offer the member another way to reach the organizer meanwhile; retrying the same request unchanged will fail the same way until the account is fixed. | | credit_unchanged | 422 | invalid_request_error | The customer is already credited with this admission, so there is nothing to correct. | Check the check-in's `credited_customer_id`; no request is needed if it is already the right customer. | | membership_group_conflict | 409 | invalid_request_error | The plan being joined is in an exclusive group (`exclusive_group` on the plan) and this customer already holds an ongoing membership of another plan in the same group. Ongoing means any membership that is not `canceled`: `incomplete` (first payment pending), `active` (also when set to cancel at period end, until it actually ends), `past_due` and `paused` all count. Nothing was created: no Stripe subscription or charge, no membership, no customer record, and the existing membership was not changed. `detail.membership_id`, `detail.plan_id`, `detail.plan_name`, `detail.status` and `detail.group` name the membership in the way. Joining the same plan twice is still `membership_already_exists`. | Do not offer the alternative while the customer holds the existing membership; tell them which plan they are on (`detail.plan_name`). The engine never switches plans for you: to move them, end the existing membership through the normal cancel flow and let them join the other plan once it is `canceled` (a membership set to cancel at period end still blocks until it ends). Retrying the same request unchanged keeps failing the same way. | | membership_enrollment_closed | 409 | invalid_request_error | The plan's owner has closed it to new signups (`enrollment_open` is false). Nothing was created: no Stripe subscription or customer, no membership, no customer record. Paid and free plans are refused alike. Existing members are unaffected: their price, renewals and benefits continue. This is not `active`: a plan can be closed to new members while staying active for the ones it has. `detail.plan_id` names the plan. | Do not offer the join: read `enrollment.status` on the plan (`GET /v1/membership_plans/{id}`) and show the offer as closed. An owner reopens it with `enrollment_open: true`. An unfinished join (first payment still pending) that was started before the plan closed can still be resumed. | | membership_enrollment_full | 409 | invalid_request_error | The plan has a `member_cap` and every place is taken, or held by another join whose first payment is still pending. Nothing was created: no Stripe subscription or customer, no membership, no customer record. A taken place is never given back when a member leaves, so a filled founding cohort stays full until an owner raises or clears the cap. `detail.plan_id`, `detail.member_cap` and `detail.places_left` (0) describe it. | Show the offer as full (`enrollment.status` is `full` on the plan). A place held by an unpaid join frees itself if that payment is abandoned, so the plan can open again within a day; poll the plan rather than retrying the join blindly. An owner who wants more members raises `member_cap` or sets it to null. | | membership_plan_earned_only | 422 | invalid_request_error | The plan has an attendance rule, so it is earned by attending events and cannot be joined. Nothing was created. `detail.plan_id` names the plan. | Do not offer a join. Show the customer's progress with `GET /v1/membership_plans/{id}/qualification`; the engine grants the membership when they qualify. | | attendance_rule_not_configured | 422 | invalid_request_error | The plan has no attendance rule, so there is no qualification to read and no event can be selected for it. | Set `attendance_rule` on the free plan first (`POST /v1/membership_plans/{id}`), or use the plan the rule is configured on. | | attendance_scope_not_selected | 422 | invalid_request_error | The plan's attendance rule counts every event (`scope` `all_events`), so selecting events for it has no effect. Nothing changed. | Change the rule's `scope` to `selected_events` before choosing which events count, or leave the events alone: every event already counts. | | checkout_offer_not_applicable | 422 | invalid_request_error | The `offer` on a checkout creation does not fit the cart: it covers none of the checkout's items, it is an `amount` or `price_override` offer priced in a different currency, or the organizer has switched discount pricing off so the engine could not apply it. Nothing was created: no session, no hold. An offer that applies but is outbid by a better membership price is not this error; it is created, and reported in `superseded_effect_ids`. | Create the checkout without an `offer` to sell at the catalog and membership price, or correct the offer's scope or currency and retry with a new Idempotency-Key. | | member_role_not_permitted | 403 | authentication_error | You are signed in to the dashboard as an event editor, and this operation is not part of that role. Editors create and edit events and ticket types, manage their capacity and see attendees, for the events an owner gave them; everything else (orders, customers, refunds, payments, keys, webhooks, team) is for organizer owners. | Ask an organizer owner to do it, or to change your role. Integrations are unaffected: an organizer API key keeps its own authority. | | entitlement_provider_not_found | 404 | invalid_request_error | No external entitlement provider with that id belongs to this organizer. In-engine providers (discount codes, memberships) are not addressable here. | List `GET /v1/entitlement_providers` for the ids you have registered, and check the organizer header. | | entitlement_provider_conflict | 409 | invalid_request_error | An active external provider is already registered for that `quote_url`, so a second one would be called for the same carts. Nothing changed. | Update the existing provider, or switch it off first (`PATCH` with `status` `disabled`) before registering or enabling another for the same URL. | | invalid_entitlement_provider | 400 | invalid_request_error | A provider callback is not an absolute https URL. `param` names the field, `quote_url` or `commit_url`. Nothing was registered. | Give the provider a publicly reachable https URL for each callback. | | invitation_allowance_exceeded | 422 | invalid_request_error | A comp that names an `allocation_id` would pass the allocation's limit, or the limit of the shared pool it joined; or a guest invitation (`POST /v1/guest_invitations`) would pass the inviting member's guest allowance. Nothing was issued and nothing was consumed. `detail.shortfalls` names each short budget (`budget` is `pool`, `allocation` or `member_guest`) with its limit, what was used and what remains. | Issue fewer tickets, or raise the allocation's or pool's limit with `PATCH /v1/invitation_allocations/{id}` or `PATCH /v1/invitation_pools/{id}`. For a member's allowance, show the member what is left (`remaining_units`); a benefit's units can be raised with `PATCH /v1/membership_benefits/{id}`, and a per-period allowance starts afresh when `bucket.ends_at` passes. Setting `capacity_override` does not help: it skips only event capacity. Retry with a new Idempotency-Key once there is room. | | membership_not_eligible | 422 | invalid_request_error | The membership named by a guest invitation gives no member benefits now: it is paused, canceled, still incomplete or past due beyond its benefit grace, or its plan is inactive. The rule is the one every member benefit follows. `detail.status` is the membership's status. Nothing was issued. | Do not offer the invitation until the membership is active again (resume it, or wait for the failed payment to be settled), then retry with a new Idempotency-Key. | | guest_benefit_not_applicable | 422 | invalid_request_error | The benefit named by a guest invitation is not a `guest_invitation` benefit of the member's plan, or no assignment covers the item: the benefit is not assigned to the item's event, or is assigned to other ticket types of it only. Nothing was issued. | Send the plan's own guest invitation benefit and an item its assignment covers. List `GET /v1/events/{id}/membership_benefits` to see what an event offers, and assign the benefit with `PUT /v1/events/{id}/membership_benefits/{benefit_id}`. | | cancellation_policy_not_configured | 404 | invalid_request_error | The event has no cancellation policy: its organizer has not configured what cancelling it does (stop new sales, close pending checkouts, refund paid tickets, disable admission, notify attendees). There is no default, so nothing happens and an event with no policy cannot be cancelled. | Save the policy with `PUT /v1/events/{id}/cancellation_policy`, deciding all five consequences explicitly, then retry. | | organizer_admin_required | 403 | authentication_error | The operation changes money- or admission-affecting policy, or cancels an event, and needs the organizer's administrator authority. The credential is valid but does not carry it. Nothing changed. | Use the organizer's own API key or an owner's sign-in. A credential that may only edit events cannot configure the cancellation policy or cancel an event. | | admission_disabled | 422 | invalid_request_error | The event was cancelled under a policy that disables admission, so no ticket to it is accepted at the door. The scan is recorded as rejected; the ticket itself is not revoked and no money moved. A delayed (offline) scan taken before the cancellation is still honoured when it syncs. | Do not admit the holder. Door staff can tell them the event was cancelled; the organizer decides about refunds. | | cancellation_policy_required | 422 | invalid_request_error | The event has no cancellation policy, so cancelling it was refused and nothing changed. There is no default: an organizer decides what cancelling does before it can happen. | Save the policy with `PUT /v1/events/{id}/cancellation_policy`, then cancel again. | | event_already_cancelled | 409 | invalid_request_error | The event was already cancelled. A cancellation is recorded once and is not reversed by this API; its `detail.cancellation_id` names the one that exists. Nothing changed. | Read it with `GET /v1/events/{id}/cancellation` to see its policy snapshot and progress. Do not retry the cancel. | | cancellation_not_retryable | 409 | invalid_request_error | The cancellation has no failed action to retry: it is still in progress, or it already completed. Nothing changed. | Read `GET /v1/events/{id}/cancellation`. While it is `in_progress` the background executor keeps working; retry only when its status is `needs_attention`. | | tax_location_required | 400 | invalid_request_error | The organizer charges tax on memberships, and the paid join said nowhere the buyer is. Nothing was created in Stripe. | Send the buyer's `customer.address.country` (a two-letter code), or the `customer.ip_address` they joined from, and join again. | | tax_location_invalid | 400 | invalid_request_error | Stripe Tax could not place the buyer from the address or IP address the join gave. No subscription was created. | Ask the buyer for their country (and postal code where their country has one) and join again with `customer.address`. | | membership_plan_not_tax_inclusive | 422 | invalid_request_error | The organizer charges tax on memberships, and the plan was created before that: its Stripe price does not include tax, so Stripe Tax would charge more than the plan's price. Nothing was created in Stripe. | Create a new plan with the same price (it includes tax) and offer that one instead. Changing the plan's price does not help: the new price keeps the tax treatment of the plan's current one. | | first_charge_at_free_plan | 400 | invalid_request_error | The join gave `first_charge_at` for a free plan, which charges nothing. Nothing was created. | Join the free plan without `first_charge_at`: it is active at once. | | first_charge_at_out_of_range | 400 | invalid_request_error | The paid join's `first_charge_at` is not in the future, or is more than 730 days away, the furthest Stripe allows. Nothing was created in Stripe. | Send a date between now and 730 days from now and join again. To charge at once, leave `first_charge_at` out. | | next_charge_at_out_of_range | 400 | invalid_request_error | The next charge was moved to a date that is not in the future, or is more than 730 days away, the furthest Stripe allows. Nothing changed. | Send a date between now and 730 days from now with a new `Idempotency-Key`, or `"at": "now"` to charge at once. | | saved_payment_method_free_plan | 400 | invalid_request_error | The join named `saved_payment_method` for a free plan, which charges nothing. Nothing was created. | Join the free plan without `saved_payment_method`: it is active at once. | | stripe_customer_not_found | 400 | invalid_request_error | The `saved_payment_method.stripe_customer_id` the join named does not exist on the organizer's connected Stripe account, or was deleted there. Nothing was created. | Check the Customer id on the organizer's own Stripe account, or join without `saved_payment_method` so the member enters a card. | | payment_method_not_attached | 400 | invalid_request_error | The `saved_payment_method.stripe_payment_method_id` the join named does not exist, or is not attached to the Stripe customer it named. The engine never attaches a card itself. Nothing was created. | Name a payment method already attached to that Customer, or join without `saved_payment_method` so the member enters a card. | | stripe_customer_linked | 409 | invalid_request_error | The Stripe customer the join named already belongs to another customer: through that customer's membership, their Pay with Lissen wallet, or the engine's own tags on it. `detail.customer_id` names them; a Customer tagged for another organizer is refused without naming anyone. Emails are never compared. Nothing was created. | Join the customer `detail.customer_id` names instead, if it is the same person, or leave `saved_payment_method` out so the member enters a card. | | membership_plan_free | 422 | invalid_request_error | The plan is free (`price_minor` 0): it has no price to change and no billing to move, so nothing changed. A free plan cannot become paid either. | Create a paid plan for the paid offer. Only a paid plan's price can be changed, and it stays above 0. | | provisioner_required | 403 | authentication_error | Creating organizers and setting where an organizer's payments are charged are Lissen's operations: they need an API key Lissen has made a provisioner (setting collection also accepts Lissen staff). Nothing changed. | Ask Lissen. An organizer's own key cannot do this, by design: collecting on Lissen's platform account makes Lissen the merchant. | | slug_already_exists | 409 | invalid_request_error | Another organizer already has that slug. A slug your key already created answers 200 with that organizer instead. | Choose another slug. | | saved_payment_method_unavailable | 422 | invalid_request_error | The join named `saved_payment_method`, and Lissen collects the organizer's memberships on its own Stripe account, which cannot charge a card saved on the organizer's connected account. Nothing was created. | Join without `saved_payment_method`: the member enters a card through `payment` (or `setup`), confirmed with Stripe.js started without a connected account. | | notification_claim_not_held | 409 | invalid_request_error | The `claim_id` you settled is not a claim your own sender holds on that activity's message: it was already settled or given back, it was recorded `ambiguous` after the claim window, or it is the engine's. Nothing changed. | Read `GET /v1/activities/{id}/notifications` for where the message stands, and never send it again on that claim. A retried settlement whose first answer was lost lands here too: the state shows what it recorded. | | invitation_usage_fully_returned | 409 | invalid_request_error | Every unit of the invitation usage (`POST /v1/invitation_usages/{id}/returns`) has already been given back, so there is nothing left to return. Nothing changed. `detail` has the usage's `units` and `returned_units`. | Nothing to do: the budgets already have those units back. A retried return whose first answer was lost lands here when you retry it with a new Idempotency-Key; retry with the same key to read the first answer. | | invitation_return_exceeds_remaining | 409 | invalid_request_error | A return asked for more `units` than the invitation usage has left to give back: what it took less what was already returned. Nothing was returned. `detail.remaining_units` is what is left. | Ask for `detail.remaining_units` or fewer, or omit `units` to give back everything that is left. | ## Idempotency Network calls fail after the server has already acted. `Idempotency-Key` is how you retry without creating the same thing twice. ```bash curl -X POST https://tickets.lissen.com/api/v1/events \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 7c1f0a3e-4d29-4f81-9b6b-1e2a5c8d0f44" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Winter Social", "starts_at": "2026-11-14T19:30:00Z", "ends_at": "2026-11-14T23:00:00Z", "timezone": "Europe/London", "venue_name": "The Old Foundry" }' ``` **Required on every create that the API marks as requiring it**, not only the ones that move money. Not every `POST` takes a key: door passes, check-ins, quotes, the Connect URLs and notification claims do not. Where a key is required, omitting it is a `400` `missing_idempotency_key` before anything happens. The API reference shows the header on each operation; the list is: | Operation | `Idempotency-Key` | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `POST /v1/events`, `POST /v1/items`, `POST /v1/quotas`, `POST /v1/discount_codes` | **required** | | `POST /v1/checkout_sessions`, `POST /v1/comps`, `POST /v1/guest_invitations` | **required** | | `POST /v1/membership_plans`, `POST /v1/memberships`, `POST /v1/membership_benefits` | **required** | | `POST /v1/memberships/{id}/pause`, `POST /v1/memberships/{id}/resume`, `POST /v1/memberships/{id}/undo_cancellation`, `POST /v1/memberships/{id}/next_charge`, `POST /v1/membership_plans/{id}/price` | **required** | | `POST /v1/positions/{id}/transfer`, `POST /v1/positions/{id}/holder_correction`, `POST /v1/position_claims` | **required** | | `POST /v1/checkins/{id}/credit_correction` | **required** | | `POST /v1/waitlist_entries`, `POST /v1/waitlist_entries/{id}/promote` | **required** | | `POST /v1/refunds` | **required** | | `POST /v1/invitation_pools`, `POST /v1/invitation_allocations`, `POST /v1/invitation_usages/{id}/returns` | **required** | | `POST /v1/webhook_endpoints`, `POST /v1/entitlement_providers` | **required** | | `PATCH /v1/events/{id}`, `PATCH /v1/items/{id}`, `PATCH /v1/quotas/{id}`, `PATCH /v1/discount_codes/{id}` | optional, still worth sending | | `PATCH /v1/branding`, `PATCH /v1/notification_provider`, `PATCH /v1/customers/{id}` | optional | | `PATCH /v1/checkout_sessions/{id}`, `POST /v1/checkout_sessions/{id}/expire` | optional | | `POST /v1/membership_plans/{id}`, `POST /v1/memberships/{id}/cancel`, `PATCH /v1/membership_benefits/{id}` | optional | | `POST /v1/events/{id}/cancel`, `POST /v1/events/{id}/cancellation/retry`, `PUT /v1/events/{id}/cancellation_policy`, `PUT /v1/events/{id}/membership_benefits/{benefit_id}`, `DELETE /v1/events/{id}/membership_benefits/{benefit_id}`, `PUT /v1/events/{id}/qualifying_plans/{plan_id}`, `DELETE /v1/events/{id}/qualifying_plans/{plan_id}` | optional | | `PATCH /v1/invitation_pools/{id}`, `PATCH /v1/invitation_allocations/{id}` | optional | | `POST /v1/waitlist_entries/{id}/reject`, `POST /v1/waitlist_entries/{id}/remove` | optional | | `PATCH /v1/webhook_endpoints/{id}`, `DELETE /v1/webhook_endpoints/{id}`, `POST /v1/webhook_endpoints/{id}/rotate`, `PATCH /v1/entitlement_providers/{id}` | optional | | `POST /v1/quotes` | not accepted: a quote mints nothing, so there is nothing to make idempotent | | `POST /v1/door_passes` | optional | | `POST /v1/door_passes/{id}/revoke`, `POST /v1/checkins`, `POST /v1/checkins/sync`, `POST /v1/checkins/{id}/void` | not accepted | | `PATCH /v1/organizer`, `POST /v1/memberships/{id}/payment_method_update_sessions` | not accepted | | `POST /v1/organizers`, `PATCH /v1/organizer/collection` | not accepted: a retried create with the same slug returns the organizer it made, and the collection write sets the values you name | | `POST /v1/connect/onboarding`, `POST /v1/connect/oauth/authorization` | not accepted: both return a single-use URL, so replaying a stored response would hand you a dead link | | `POST /v1/activities/{id}/notifications/claim`, `POST /v1/activities/{id}/notifications/settle` | not accepted: a replayed claim could hand you a claim since given back; the claim itself is what keeps a send single ([sending a message yourself](/docs/guides/notifications/customer-io#sending-a-message-yourself)) | | Every buyer-plane operation | not accepted: the buyer's own credential drives its one session | Where an operation does not declare the header, the engine does not read it. Send a fresh UUID per logical operation, and reuse it for every retry of that operation. ### What happens on a repeat | Situation | Answer | | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | Same key, same body, first request succeeded | The original response, **verbatim**, with `Idempotent-Replayed: true`. | | Same key, same body, first request failed with a `400`, `401`, `403`, `404` or `422` **raised while doing the work** | That same failure, verbatim. A request that was semantically wrong stays wrong. | | Same key, same body, first request failed transiently (`429`, `500`, `503`) | The work runs again. A transient failure is exactly what a retry is for. | | Same key, **different** body | `409` `idempotency_key_reused`. | | Same key, same body, first request still running | `409` `idempotency_key_in_flight`. This is the only concurrency case that 409s. | Three details worth knowing before you build a retry loop: * **A replay returns the original response verbatim while the resource is live** — including anything that response delivered only once, such as a checkout session's `client_secret`. Stored responses are encrypted at rest, and are purged once the resource they describe reaches a terminal state; after that the same key answers `409`. For a checkout session that has completed, expired or been refused, a replay therefore answers `409` and never starts a new purchase: read the session instead, and only create a new one (with a new key) if the buyer really wants to buy again. So a retry that lost its answer to a dropped connection can genuinely recover it, rather than being told the operation succeeded and the credential is gone. * **Not every 4xx is stored.** Authentication, the organizer header and request validation are all checked *before* the key is claimed, so those failures never consume a key and never replay — fix the request and send it again with the same key. Only a failure raised while performing the operation is recorded for replay. * **The fingerprint is method + path + sorted query parameters + the exact request bytes.** Reordering query parameters is fine. Reordering JSON keys is *not*: `{"a":1,"b":2}` and `{"b":2,"a":1}` are different bodies. Serialize once and retry the same buffer. A replay does no work and emits no activity, so a consumer of your feed never sees a duplicate. Idempotency keys are scoped to your organizer and are retained for at least 24 hours. ## Pagination Lists are keyset-paginated on the object id. There are no page numbers. ```bash curl "https://tickets.lissen.com/api/v1/events?limit=50" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "data": [ { "id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "Acme Winter Social" }, { "id": "evt_0199c4e4-8d33-7a02-9e17-5b2a1f9c4d81", "name": "Acme Autumn Session" } ], "has_more": true } ``` * `limit` — 20 by default, 100 maximum. * `starting_after=` — the next page (older). `ending_before=` — the previous page (newer). Send at most one; both together is a `400`. * The order is reverse-chronological, and ids are time-ordered, so **the id is the cursor**. Store the last id you processed in your own database and you can resume from it later without holding one of our tokens. That property is the whole reason for this design: it is what makes a reconciliation sweep of the activity stream resumable from your own replica. ## Wire conventions Five rules, everywhere, with no exceptions: 1. **`snake_case`** field names, on requests and responses alike. 2. **Money is an integer in minor units**, always alongside an ISO-4217 currency. `{"price_minor": 2500, "currency": "GBP"}` is £25.00. No floats ever appear in a total. 3. **Timestamps are RFC 3339 UTC strings**: `2026-11-14T19:30:00Z`. Event times additionally carry the venue's IANA `timezone` as a separate field, because "doors at 8pm" is a fact about the venue, not about UTC. 4. **`metadata` is yours.** Config and transactional resources carry an opaque `metadata` object. Put your own foreign keys in it; the engine stores and echoes it — in responses and in every activity payload — and never reads it. 5. **Be a tolerant reader.** `/v1` is additive forever: we add fields and enum values, and we never remove or repurpose one. Ignore fields you do not recognise, and do not crash on an enum value you have not seen. A breaking change would take a new version prefix, which we intend never to ship. ## Rate limits There is no published rate limit today. The error taxonomy reserves the `rate_limit_error` type and `429`, so one can be introduced later without breaking a client that already handles them. Treat `429` and `503` as retryable, with exponential backoff and jitter of your own — the engine does not currently send `Retry-After`, so do not wait for one. Note that `capacity_locked` is a *contention* answer, not a refusal: nobody took the tickets, the request just could not get the lock in time. Retry it. ## Generating a client The contract is published as OpenAPI 3.1, generated from the same definitions the server validates against. Rather than hand-writing types, generate them. ```bash curl -o ticketing-openapi.json https://tickets.lissen.com/docs/openapi.json npx openapi-typescript ticketing-openapi.json -o src/ticketing.d.ts ``` Then wrap `fetch` once, so the two headers and your error handling live in one place: ```ts import type { paths } from "./ticketing"; type Organizer = `org_${string}`; export function createTicketingClient(opts: { apiKey: string; organizer: Organizer; baseUrl?: string; }) { const baseUrl = opts.baseUrl ?? "https://tickets.lissen.com/api"; return async function request( path: string, init: RequestInit & { idempotencyKey?: string } = {}, ): Promise { const response = await fetch(`${baseUrl}${path}`, { ...init, headers: { Authorization: `Bearer ${opts.apiKey}`, // Never inferred, never defaulted — one header, every request. "Ticketing-Organizer": opts.organizer, "Content-Type": "application/json", ...(init.idempotencyKey ? { "Idempotency-Key": init.idempotencyKey } : {}), ...init.headers, }, }); if (!response.ok) { const body = (await response.json()) as { error: { code: string; message: string; request_id: string }; }; // Log request_id: it is what identifies this call in our logs. throw new Error( `${body.error.code}: ${body.error.message} (request ${body.error.request_id})`, ); } return (await response.json()) as T; }; } // `paths` gives you the response type of every operation: type Event = paths["/v1/events/{id}"]["get"]["responses"][200]["content"]["application/json"]; ``` Any OpenAPI generator works — this is one spelling, not a requirement. There is no official SDK you must use. ## Next --- # From key to first quote URL: /docs/getting-started/quickstart Eight requests that take you from an API key to a priced cart, with every response you should expect on the way By the end of this page you will have created an event, a pool of capacity, a priced offer and a discount code, read the fee that rides on them — and you will have asked the engine what a two-ticket cart costs and read back exactly which effects moved the number. Nothing here sells anything. A quote is a **preview**: it holds no capacity, reserves no discount use, moves no money and leaves no trace. That makes it the safest possible thing to run against a live organizer while you are still finding your feet. Every id below is an example: substitute the ones your own responses return. Each step says which earlier response its id comes from — not always the step immediately before, because later steps reuse ids created earlier. Two headers ride every request: your key and the organizer it acts on. If either is missing you will get a `401` or a `400` that names what to send — [Getting started](/docs/getting-started) has the detail. Every **create** below also carries an `Idempotency-Key`. It is required on every create in the configuration API, not just the ones that move money: omitting it is a `400` `missing_idempotency_key`. Send a fresh UUID per logical operation and reuse it for each retry of that operation. ## Check your key The cheapest possible smoke test. If this answers, your key, your header and your mode all agree. ```bash curl https://tickets.lissen.com/api/v1/organizer \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7", "name": "Acme Events", "slug": "acme-events", "test": true, "status": "active", "psp_account_ref": "acct_1QxAcmeTestAccount" } ``` `test: true` means this organizer is a sandbox twin: same API, same endpoints, no real money. `psp_account_ref` is the Stripe account the money would land on; `null` until you connect one, which nothing on this page needs. ## Create the event An event is the engine's **door-and-clock record** — a time, a place and a door. Not the concert: the lineup, the artwork and the description stay in your own catalog and join by id. ```bash curl -X POST https://tickets.lissen.com/api/v1/events \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 7c1f0a3e-4d29-4f81-9b6b-1e2a5c8d0f44" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Winter Social", "starts_at": "2026-11-14T19:30:00Z", "ends_at": "2026-11-15T02:00:00Z", "timezone": "Europe/London", "venue_name": "The Old Dock", "venue_address": "12 Wharf Road, London N1 7GS" }' ``` ```json { "id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "Acme Winter Social", "starts_at": "2026-11-14T19:30:00.000Z", "ends_at": "2026-11-15T02:00:00.000Z", "timezone": "Europe/London", "venue_name": "The Old Dock", "venue_address": "12 Wharf Road, London N1 7GS", "metadata": {} } ``` Send RFC3339 timestamps with an offset; responses normalize to UTC with milliseconds. The IANA `timezone` rides alongside them because "doors at 7:30pm" is a fact about the venue, not about UTC — see [Events](/docs/guides/config/events). ## Create a quota A **quota** is a named pool of sellable capacity. Items draw on quotas; a quota can back several items at once, which is how "300 people in the room" survives being sold as four different tiers. ```bash curl -X POST https://tickets.lissen.com/api/v1/quotas \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 4b2e9d10-8a67-4c03-b7d1-52f0e6c9a381" \ -H "Content-Type: application/json" \ -d '{ "name": "Room capacity", "size": 250 }' ``` ```json { "id": "quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33", "name": "Room capacity", "size": 250, "metadata": {} } ``` `size: null` instead of a number declares **unlimited** capacity, which is the right answer for genuinely uncapped event admission. Choose deliberately: unlimited is terminal — a quota that has been declared unlimited can never be given a finite size afterwards. ## Create the item An **item** is the offer, not the thing: a named, priced, quota-backed thing you sell. It must name at least one quota, and an item that names an event is an admission item, which is what this example sells. Items without an event (merchandise, for example) are also supported. ```bash curl -X POST https://tickets.lissen.com/api/v1/items \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 1f6c0b58-3d94-4e12-8a77-9c15b4e0d2a6" \ -H "Content-Type: application/json" \ -d '{ "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "General admission", "price_minor": 2500, "currency": "GBP", "quota_ids": ["quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33"] }' ``` ```json { "id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "General admission", "price_minor": 2500, "currency": "GBP", "gated": false, "active": true, "sort_order": 0, "sale_starts_at": null, "sale_ends_at": null, "opens_after_item_id": null, "opens_when": null, "sale_state": "on_sale", "sale_opens_at": null, "sale_opened_by": null, "quota_ids": ["quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33"], "metadata": {} } ``` `2500` + `GBP` is £25.00. Money is always an integer in minor units next to an ISO-4217 currency; no float ever appears in a total. The quota binding you just made is mutable **only until live capacity depends on this item**. Once a buyer holds one of these in a checkout, or one has been issued, `quota_ids` freezes — see [Items and quotas](/docs/guides/config/items-and-quotas). ## Read the fee schedule The fee schedule is how the platform fee on each position is computed. It is part of your agreement with Lissen, so **Lissen sets it** when your organizer is created and you read it — nothing to create here, but worth a look before you price anything. In v1 it lives at **organizer scope**: one active schedule per currency, applying to everything you sell in that currency. ```bash curl https://tickets.lissen.com/api/v1/fee_schedules \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "object": "list", "data": [ { "id": "fsc_0199c4e7-4d32-7b66-ac13-5e9f2a7b0c44", "event_id": null, "item_id": null, "currency": "GBP", "percent_bps": 500, "flat_minor": 150, "mode": "passed_on", "active": true, "metadata": {} } ], "has_more": false } ``` `percent_bps` is basis points: `500` is 5%. `mode` decides who pays it — `passed_on` adds it to what the buyer is charged, `absorbed` takes it out of your proceeds and shows the buyer nothing. Pricing fails loud when no schedule matches. If the list is empty for a currency you sell in, a quote in that currency answers `422` `fee_schedule_not_found` rather than quietly charging no fee: a missing schedule never means free. Talk to Lissen before you go further. ## Read availability Availability is always **derived** — quota size, minus positions already issued, minus what live checkouts are holding — and never stored. The id in the path is the quota from step 3 — the create, not the step before. ```bash curl https://tickets.lissen.com/api/v1/quotas/quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33/availability \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "quota_id": "quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33", "size": 250, "issued": 0, "in_baskets": 0, "available": 250, "state": "available" } ``` `state` is the value to branch on. `in_baskets` — none left, but some are in live checkouts — is deliberately a different answer from `gone`, so you can render "someone may release these" rather than "sold out". On an unlimited quota, `size` and `available` are both `null` and `state` is always `available`. ## Create a discount code A code is bearer evidence: presenting it is the authentication. This one takes 20% off, and its **restriction set** confines it to the event you just created. ```bash curl -X POST https://tickets.lissen.com/api/v1/discount_codes \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 6d0f2a91-7c35-4b60-8e19-3a4c7f2b9d05" \ -H "Content-Type: application/json" \ -d '{ "code": "WINTER20", "effect_type": "percent", "percent_bps": 2000, "event_ids": ["evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22"], "max_uses": 100 }' ``` ```json { "id": "dsc_0199c4e8-5e43-7c77-bd24-6f0a3b8c1d55", "code": "WINTER20", "effect_type": "percent", "percent_bps": 2000, "amount_minor": null, "amount_currency": null, "stackable": false, "valid_from": null, "valid_until": null, "max_uses": 100, "max_uses_per_customer": null, "active": true, "item_ids": [], "event_ids": ["evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22"], "metadata": {} } ``` An **empty** restriction set (both arrays empty) means every position in the cart. Naming an event covers every item that points at it, including items you create later. ## Quote the cart `POST /v1/quotes` runs the same pricing engine a real checkout runs, in preview mode. It takes no `Idempotency-Key`, because it changes nothing there is anything to replay. ```bash curl -X POST https://tickets.lissen.com/api/v1/quotes \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2 } ], "codes": ["WINTER20"] }' ``` ```json { "mode": "preview", "created": "2026-10-02T11:04:18.226Z", "currency": "GBP", "subject": { "kind": "anonymous", "customer_id": null, "external_ref": null }, "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "description": "General admission", "quantity": 2, "unit_list_price_minor": 2500, "unit_price_minor": 2000, "list_subtotal_minor": 5000, "discount_minor": 1000, "subtotal_minor": 4000, "booking_fee_minor": 500, "platform_fee_minor": 500, "effect_ids": ["dsc_0199c4e8-5e43-7c77-bd24-6f0a3b8c1d55"], "sellable": true, "blocked_reason": null } ], "applied_effects": [ { "id": "dsc_0199c4e8-5e43-7c77-bd24-6f0a3b8c1d55", "provider_kind": "discount_codes", "provider_id": null, "type": "percent_off", "state": "applied", "source": { "kind": "discount_code", "label": "WINTER20", "ref": "dsc_0199c4e8-5e43-7c77-bd24-6f0a3b8c1d55" }, "requires": null, "description": "20% off with code WINTER20", "stackable": false, "consumable": true, "redemption_ref": null, "percent_bps": 2000, "amount_minor": null, "currency": null, "price_override_minor": null, "applies_to_item_ids": [], "applies_to_event_ids": ["evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22"], "unlocks_item_ids": [] } ], "unapplied_effects": [], "superseded_effect_ids": [], "rejected_codes": [], "totals": { "list_subtotal_minor": 5000, "discount_minor": 1000, "subtotal_minor": 4000, "booking_fee_minor": 500, "platform_fee_minor": 500, "total_minor": 4500 }, "degraded": false, "degraded_providers": [] } ``` Read it back in the order the engine computed it: * **The list price** is `unit_list_price_minor` — £25.00, straight off the item. * **The code applied.** 20% of 2500 is 500, so `unit_price_minor` is 2000 and the line's `discount_minor` is 1000 across two tickets. The code's id appears in the line's `effect_ids`: that array is the provenance of the charge, so you can always say *why* a buyer paid what they paid. * **The fee rode on the discounted price**, not the list price: 5% of 2000 is 100, plus the 150 flat, is 250 per ticket — `platform_fee_minor` 500 for the pair. Because the schedule is `passed_on`, the same 500 also appears as `booking_fee_minor`, the buyer-visible half. * **The total** is `subtotal_minor + booking_fee_minor` = 4500. £45.00. Three fields are worth wiring into your UI from day one: * `applied_effects` — what fired, each carrying `source` provenance and human display copy you can render without knowing the domain. * `unapplied_effects` — the teasers: effects this cart *would* get, carrying `requires`. This is how "join to unlock the presale" renders, and it works for anonymous buyers. * `rejected_codes` — a code that was presented and refused, with a reason (`not_found`, `expired`, `not_applicable`, `max_uses_reached` and the rest), so you can tell the buyer which of their codes did nothing. ## Optional: check the activity stream Every create above appended a fact, in order: `event.created`, `quota.created`, `item.created`, `discount_code.created` — and before any of them, the `fee_schedule.created` Lissen wrote when it set your fee. Each carries the full resource snapshot — the same object the API returned — so a consumer of the feed never has to call back to find out what changed. The quote appended nothing. A preview is one of the engine's deliberate silences. A ninth request, which nothing above depends on — it is here so you can see the trail for yourself: ```bash curl "https://tickets.lissen.com/api/v1/activities?limit=5" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ## Where to go next --- # Activities URL: /docs/guides/activities Everything that happens in the engine, recorded — and the two patterns you build against it An **activity** is a record of one thing that happened. Every state change in the engine writes one, in the same transaction as the change itself, so a happening without an activity is impossible. That is what makes the stream usable as more than a log. It is the audit trail, the reconciliation source for your own database, and the activity envelope delivered to a configured webhook endpoint. Three properties hold across all of it, and they are worth knowing before you write a consumer: * **At-least-once, no ordering promise.** Deduplicate on the activity's `act_` id. Payloads carry full snapshots, which makes ordering mostly moot. * **The vocabulary is closed and additive.** New types arrive without a new API version. Tolerate a `type` you have never seen rather than failing on it. * **Retention is indefinite.** Nothing is swept out from under you, and there is no window inside which you have to have consumed something. --- # The reconciliation sweep URL: /docs/guides/activities/reconciliation-sweep The normative pattern for keeping your own copy of the feed complete — a cursor, a watermark, and an idempotent apply If you keep your own copy of what the engine records — a replica, a warehouse table, a job queue — this page is the contract you build against. It is short, and it is normative: a consumer that follows it converges on the complete feed, and a consumer that skips part of it will lose activities in a way that is very hard to notice. Every pass makes **two reads**: 1. Advance an **id cursor** to pick up everything new. 2. Separately re-read an overlap window anchored to a **time watermark** you persist, with no cursor on it at all. Then deduplicate the union by `act_` id and apply it idempotently. The second read is not a belt-and-braces nicety. Without it an id cursor silently misses activities forever — see below. ## Why an id cursor alone is not enough Activity ids are time-ordered, which is what makes them usable as a cursor at all. The id is minted before commit. `created` is stamped with database `clock_timestamp()` when the activity is appended, and the row becomes readable only when the transaction commits. Two pieces of work do not necessarily commit in the order they started. So this can happen: ``` 14:07:41 work A begins → act_…c11, created 14:07:41 14:07:41 work B begins → act_…c12, created 14:07:41 14:07:42 work B commits → act_…c12 is now readable 14:07:42 your pass reads, applies act_…c12, stores it as its cursor 14:07:43 work A commits → act_…c11 is now readable ``` Your cursor is at `…c12`. Every future read asks for activities *after* `…c12`. `…c11` is lower, so it is never returned again. It is not delayed; it is gone from your consumer's point of view, and nothing in any response tells you. The window is small — the length of one write — but on a busy on-sale you are making thousands of them, and the activity you lose is as likely to be a sale as anything else. The fix is to re-read a slice of recent time with no cursor on it, because a late-committing activity *is* returned by a time filter once it lands. ## First run — no cursor yet A consumer with nothing stored has two jobs: start following the feed forward, and backfill what is already there. Do them in that order, because history is retained indefinitely and does not run away from you, while new activity does. **Read the newest page** with no cursor at all. Note the time before you send it — that is your first watermark. ```bash curl "https://tickets.lissen.com/api/v1/activities?limit=100" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` **Store `data[0].id` as your forward cursor** before you do anything else. Every list comes back newest-first, so that is the newest activity in existence for you, and it is where normal passes will resume from. **Page backward through history** with `starting_after` set to the *oldest* id in the page you just read — the last element — repeating until `has_more` is false. This walks away from the present, so it cannot race the forward cursor you already stored. **Begin normal passes** from the stored forward cursor and watermark. From here on, every pass is the two reads below. Persist bootstrap as incomplete. Atomically apply the initial page and store `data[0].id` as the forward cursor, then durably apply each `starting_after` page while persisting a separate backfill cursor. Mark bootstrap complete only when `has_more` is false. If the first page is empty, store the watermark with a null forward cursor. ## Pass 1 — advance the id cursor Read forward from the last id you applied, using `ending_before`. ```bash curl "https://tickets.lissen.com/api/v1/activities?limit=100&ending_before=act_0199c4e6-3a5b-7c88-9d02-6e4a1f7b3c50" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` `ending_before` returns the activities immediately *after* that id — the oldest ones you have not seen. Every page is newest-first, so the newest item in a page is `data[0]`, and that is what you pass as the next `ending_before`. Keep going while `has_more` is true. Store the cursor only after you have durably applied the page. A cursor that moves ahead of your writes is a gap you cannot detect. ## Pass 2 — the watermark overlap Ask a second question that mentions no cursor at all, anchored to a timestamp you persist: ```bash curl "https://tickets.lissen.com/api/v1/activities?limit=100&created%5Bgte%5D=2026-11-02T13:00:00Z" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` **Never anchor this read to your last-applied id.** Sending `created[gte]` together with `starting_after` or `ending_before` is a legal query, and it is the one thing that defeats the whole pattern: the id filter excludes exactly the late-committing activities you are re-reading time to find. ### The watermark rule A **fixed rolling window** — "always re-read the last 24 hours" — is not enough, and the failure is quiet. If a pass fails, or your consumer is down, or two passes simply fall far enough apart, an activity whose `created` slid out of the window while it was still uncommitted is never re-read by any later pass. It is below the cursor and before the window: gone from both reads at once. So anchor the window to a watermark rather than to now: **Note the time at which this overlap pass starts.** Call it `T`. **Query from your stored watermark minus a margin** — `created[gte] = watermark − margin`. The margin covers the gap between an activity being stamped and becoming readable, plus the clock difference between you and us. **Page through the whole window** from the top, walking backwards with `starting_after` set to the oldest id in the page you just read, until `has_more` is false. That cursor is scoped to this one read; it is never your consumer's position. **Advance the watermark to `T` only when the entire overlap is durably applied.** A pass that failed halfway leaves the watermark where it was, so the next pass covers the same ground again. This is the property a fixed window does not have. ### Choosing the margin Choose a margin greater than the maximum time from activity append to commit visibility, plus worst-case clock skew. The values below are operating recommendations, not completeness guarantees; if that bound is exceeded, a late commit can still be missed. The margin costs bandwidth and nothing else, so err generously: | Pass cadence | A sensible margin | | ------------------------------ | ----------------- | | Continuous (every few seconds) | 1 hour | | Hourly | 6 hours | | Nightly | 48 hours | These are recommendations, not engine limits. History is retained indefinitely, so an over-generous margin is never wrong — it only reads rows you will recognise and skip. ## Redacted activities An activity whose snapshot the engine could not serve in full arrives as an envelope with `data.object` reduced to its `id` and `data.redacted: true`. **Do not apply one, and do not mark it complete.** **Persist it as pending** — the id, the type, the `created`, and the fact that the payload is missing. **Advance your cursor past it anyway.** It is a real activity and blocking on it would stall everything behind it. **Re-fetch that one activity by id** on a later pass, until it comes back without the marker. Then apply it and clear the pending flag. ```bash curl https://tickets.lissen.com/api/v1/activities/{id} \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Completing a resource from a redacted payload writes a row whose fields you never saw, and it looks exactly like a row you did see. A pending marker is recoverable; a wrong row is not. ## Deduplicate and apply Union the two passes, deduplicate on `id`, and apply each activity **exactly once** — or apply it repeatedly with no additional effect, which is easier to guarantee and just as good. ```js const seen = new Set(); for (const activity of [...fromCursor, ...fromOverlap]) { if (seen.has(activity.id)) continue; seen.add(activity.id); if (activity.data.redacted) { await markPending(activity); // never apply a redacted snapshot continue; } await apply(activity); // must be idempotent on activity.id } ``` Two properties make idempotent application straightforward: * **`data.object` is a full snapshot**, not a patch. Applying the same activity twice writes the same row twice — the second write changes nothing. * **`act_` ids are unique and stable.** Record the ids you have applied (a primary key on your side is enough) and a repeat is a no-op by construction. Because there is no ordering promise, prefer the snapshot with the later `created` when two activities touch one resource. Do not resolve them by arrival order. ## Putting it together Read your stored forward cursor and watermark. If you have neither, run the first-run procedure above. Note the time `T`, then page forward with `ending_before` until `has_more` is false, applying as you go and advancing the cursor behind your writes. Read the overlap from `watermark − margin` with no consumer cursor, paging within it until `has_more` is false. Skip ids you have already applied, mark redacted ones pending, apply the rest, then advance the watermark to `T`. That is the whole pattern. It is the recovery rail for the current outbound webhook delivery: if an endpoint is disabled after repeated failures, fix it, re-enable it, and run one sweep to close the gap. A replica built from deliveries and a replica built from sweeps are the same replica by construction. See [verifying signatures](/docs/guides/activities/webhook-signatures) and [webhooks and the outbound feed](/docs/guides/webhooks). ## Gotchas * **Do not use `created` as your cursor.** It is not unique, and paging on a timestamp will either skip or duplicate activities at a page boundary. The id is the cursor; `created[gte]` is only ever the overlap filter. * **Do not combine `created[gte]` with your consumer's cursor.** It is the one combination that hides the failure this page exists to prevent. * **Do not anchor the overlap to "now minus a window".** Anchor it to the watermark, and move the watermark only on success. * **Advance the cursor after applying, never before.** * **Do not deduplicate on `request_id`.** One request legitimately produces several activities, and some activities have none at all. * **Tolerate unknown types.** A type you do not recognise must not stop a pass — store it, or skip it, but keep the cursor moving. * **Do not assume a sweep is only for outages.** It is the normal way to be certain, and the reason the ids are shaped the way they are. --- # The activity stream URL: /docs/guides/activities/stream The envelope every happening arrives in, the registry of types, and how to filter and page through them Every state change in the engine writes an activity, in the same transaction as the change. Create an event, adjust a cart, let a hold run out — each one leaves a record, whether or not anybody was listening. ```bash curl "https://tickets.lissen.com/api/v1/activities?limit=50" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` You see exactly your own organizer's activities and nothing else — not other tenants', and not the engine's own global records. ## The envelope Here is one, with `data.object` cut down to a few fields so the envelope around it stays readable — a real snapshot carries everything the resource's own endpoint returns: ```json { "id": "act_0199c4e6-3a5b-7c88-9d02-6e4a1f7b3c50", "type": "checkout_session.updated", "created": "2026-11-02T14:07:43Z", "organizer_id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7", "actor": { "kind": "api_key", "id": "key_0199c4e2-2b41-7f09-8a3d-7c1b4e6a9f22" }, "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3", "livemode": false, "data": { "object": { "id": "cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33", "status": "open", "total_minor": 3120, "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 3, "unit_list_price_minor": 1000 } ] }, "previous_attributes": { "total_minor": 2080, "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2, "unit_list_price_minor": 1000 } ] } } } ``` | Field | What it is | | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | `act_` plus a time-ordered UUID. **This is your deduplication key.** | | `type` | A dotted, past-tense fact — `.`. | | `created` | When the activity was recorded, RFC 3339 UTC. | | `organizer_id` | Always yours on an activity you can read. | | `actor` | Who did it — `{"kind": …, "id": …}`. Kinds are `api_key`, `door_pass`, `member` (an owner signed in to the dashboard, by email), `staff`, `system` and `psp_webhook`. | | `request_id` | The API request that caused it, or `null` when nothing you called did — a session timing out on its own has no request behind it. When present it is the same value as that response's `Request-Id` header, which is how you tie a line in your logs to a fact in the feed. | | `livemode` | `false` for a test organizer, `true` for a live one. | | `data.object` | The resource's full wire representation **as of the happening** — the same shape the resource's own endpoint returns. | | `data.previous_attributes` | On `*.updated` types only. A shallow diff of the values that changed, with `null` for a key that did not exist before. | Two things follow from full snapshots. You rarely need to call back to fetch the resource — the activity already carries it. And ordering matters less than you would expect: the newest snapshot you have is the truth, whatever order two activities arrived in. ### A missing snapshot is still an envelope If the engine cannot serve a stored snapshot in full, you get the envelope with `data.object` reduced to its `id` and a `data.redacted: true` marker. Never raw unvalidated JSON, and never a `500`. This happens when the snapshot stored for that activity does not pass the current schema for its type, for example a snapshot of a type this API version does not know, or one written before a field became required. The engine withholds it rather than send you something it cannot vouch for. Redaction is about the stored copy only: it does not mean the resource was erased, and it does not mean a ticket, order or membership was lost. Read the resource itself for its current state: fetch it by the id left in `data.object` and reconcile from that. A snapshot that failed the schema stays redacted, so do not wait for re-fetching the activity to change it. ```json { "id": "act_0199c4e7-1d02-7a63-8b91-2f5c7e0a4d18", "type": "position.created", "created": "2026-11-02T14:09:02Z", "organizer_id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7", "actor": { "kind": "api_key", "id": "key_0199c4e2-2b41-7f09-8a3d-7c1b4e6a9f22" }, "request_id": null, "livemode": false, "data": { "object": { "id": "pos_0199c4e7-0a12-7e55-9c30-4b81d2f6a903" }, "redacted": true } } ``` **Never apply a redacted activity as if it were the fact.** The envelope is true; the snapshot is missing. Record it as pending, move your cursor past it, and re-fetch that one activity by id until it comes back without the marker. Completing it from a redacted payload writes a resource whose fields you never actually saw. [The reconciliation sweep](/docs/guides/activities/reconciliation-sweep) has the handling in full. ## Retrieve one `GET /v1/activities/{id}` ```bash curl https://tickets.lissen.com/api/v1/activities/{id} \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` An activity you cannot see is a `404` `not_found`, the same answer as one that does not exist. ## The type registry The vocabulary is **closed and additive**: names are added, never removed and never repurposed, and a semantic change uses a new name rather than a new meaning for an old one. The [type registry](/docs/guides/activities/types) lists the current activity types and their feed scope. [**The type registry**](/docs/guides/activities/types) lists every current type, what fact it records, and whether it is delivered to your feed. **Tolerate a type you do not recognise.** The additive registry can gain a type without a new API version. Branch on the types you handle and ignore the rest; do not throw on the default case. ## Filtering `GET /v1/activities` | Parameter | Matches | | -------------- | -------------------------------------------------------------------------------------------------------------------- | | `type` | An exact type (`order.paid`), a resource wildcard (`order.*`), or `*` for everything. | | `resource` | The id of the resource in `data.object` — one object's whole history. | | `actor` | The actor id in the envelope. | | `created[gte]` | An inclusive lower bound on `created`. See [the reconciliation sweep](/docs/guides/activities/reconciliation-sweep). | Wildcards are prefix-only and always at the resource boundary: `order.*` is valid, `*` is valid, `order.pa*` is not. An unrecognised filter is a `400` rather than a silent empty page. ```bash curl "https://tickets.lissen.com/api/v1/activities?type=checkout_session.*&limit=100" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Everything that ever happened to one cart, newest first — as every list is: ```bash curl "https://tickets.lissen.com/api/v1/activities?resource=cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Everything one buyer's browser did in their checkout — the actor id for a buyer is `checkout_session:` followed by the session id: ```bash curl "https://tickets.lissen.com/api/v1/activities?actor=checkout_session:cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ## Paging The same keyset pagination as every other list: `limit` (20 by default, 100 maximum), `starting_after` for the next page, `ending_before` for the previous one. The order is reverse-chronological and the ids are time-ordered, so **the id is the cursor** — store the last one you processed and resume from it later without holding a token of ours. ```bash curl "https://tickets.lissen.com/api/v1/activities?limit=100&starting_after=act_0199c4e6-3a5b-7c88-9d02-6e4a1f7b3c50" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "data": [{ "id": "act_0199c4e6-3a4f-71c2-8e07-9b3d5a2f6c11", "type": "hold.created" }], "has_more": true } ``` **An id cursor alone is not a complete consumer.** Ids are minted before their transaction commits, so an activity can commit *after* one with a higher id has already been read past — and a cursor that only moves forward will never see it. The fix is one extra read per pass, and it is the whole subject of [the reconciliation sweep](/docs/guides/activities/reconciliation-sweep). Read that page before you ship a consumer. ## Errors Reads fail the way every other read does: `404` `not_found` for an activity you cannot see, `400` `invalid_pagination` for sending both `starting_after` and `ending_before`, `400` `invalid_request` for a filter the engine cannot parse. ## What emits Everything that changes state, and nothing that does not: * **Reads emit nothing**, with one exception. Polling a session, listing events and previewing a quote all leave the feed alone. Fetching a session's [payment credentials](/docs/guides/checkout/buyer-plane) is a `GET` that changes state — it can prepare or re-sync a payment — so it can write a `checkout_session.updated`. * **Refused writes emit nothing**, because they changed nothing. A cart growth that did not fit leaves no trace. * **An idempotent replay emits nothing.** It does no work; your retry loop cannot produce a duplicate here. ## Gotchas * **Deduplicate on `act_` id.** Delivery is at-least-once by design. * **Do not treat id order as commit order.** See the callout above. * **Do not branch on `data.object` being complete.** Check `data.redacted`. * **`previous_attributes` is a shallow diff.** A nested change reports the whole top-level value that contained it, not a path into it. * **`request_id` is your correlation key**, not `id` — one request can produce several activities, and they will share it. --- # The type registry URL: /docs/guides/activities/types Every activity type the engine can emit, what fact each one records, and whether it is available today The activity vocabulary is **closed and additive**. Names are added, never removed and never repurposed — a change of meaning uses a new name. Payloads grow the same way: fields are added, never removed. This registry is generated from the current engine activity enum. Every row is available on the current API surface; the table also records whether the fact belongs in your organizer feed or is engine-global. **A new type will arrive without a new API version.** Branch on the types you handle and ignore the rest; do not throw on the default case. A consumer that rejects an unfamiliar `type` will break on an ordinary Tuesday deploy. How to read the table: * **Type** — the value of the envelope's `type` field. A `*` marks an observational activity, where the record itself is the whole happening and there is no other state change behind it. * **The fact it records** — a happening, in the past tense, never a state. States live inside `data.object`. * **Status** — every row in this current registry is `Supported`. * **Scope** — will it ever reach you? `Your feed` means yes. `Engine-global` activities belong to the engine rather than to an organizer and are never delivered to a partner. ## Config plane What you set up before anything is on sale. | Type | Area | The fact it records | Status | Scope | | --- | --- | --- | --- | --- | | event.created | Config plane | An event record was created. | Supported | Your feed | | event.updated | Config plane | An event changed. `previous_attributes` carries the shallow prior values. | Supported | Your feed | | item.created | Config plane | An item — an offer for sale — was created. | Supported | Your feed | | item.updated | Config plane | An item changed. | Supported | Your feed | | quota.created | Config plane | A pool of sellable capacity was created. | Supported | Your feed | | quota.updated | Config plane | A quota changed — most often a resize, which is refused if it would fall below what is already consumed. | Supported | Your feed | | discount_code.created | Config plane | A discount code was created. | Supported | Your feed | | discount_code.updated | Config plane | A discount code changed. | Supported | Your feed | | fee_schedule.created | Config plane | A fee schedule was created. | Supported | Your feed | | fee_schedule.updated | Config plane | A fee schedule changed. | Supported | Your feed | | branding.updated | Config plane | The organizer's branding tokens changed. | Supported | Your feed | | notification_provider.created | Config plane | A sending provider was connected for the first time. Credentials never appear in the snapshot — the object has no field for them. | Supported | Your feed | | notification_provider.updated | Config plane | The provider connection changed — new credentials, or a change to the per-message wiring map. | Supported | Your feed | | invitation_allocation.created | Config plane | An invitation allocation was created for an event: a ticket-unit maximum, optionally drawing on a shared pool, that direct comps can be issued against. The engine knows no actor behind it. | Supported | Your feed | | invitation_allocation.updated | Config plane | An allocation's limit, label, external reference or metadata changed. Its event and pool are fixed. Tickets already issued keep counting. | Supported | Your feed | | invitation_pool.created | Config plane | A shared invitation pool was created for an event: an additional ticket-unit limit that the allocations joined to it draw on together. | Supported | Your feed | | invitation_pool.updated | Config plane | A pool's limit, label, external reference or metadata changed. Its event is fixed. Tickets already issued keep counting. | Supported | Your feed | | event_cancellation_policy.created | Config plane | An organizer configured what cancelling an event does for the first time: whether it stops new sales, closes pending checkouts, refunds paid tickets, disables admission and notifies attendees. Nothing is cancelled by this; the policy is applied only if the event is later cancelled. | Supported | Your feed | | event_cancellation_policy.updated | Config plane | An event's cancellation policy changed. A cancellation that has already started keeps the policy it began with. | Supported | Your feed | | event_cancellation.started | Config plane | An event was cancelled. The object records the reason, who cancelled it, the cancellation policy as it was at that moment (a snapshot that later policy edits never change) and each of the five actions with its status. The actions the policy switched on run after this fact is recorded; their progress follows in later activities. This is an internal record and is published whether or not the policy notifies attendees. | Supported | Your feed | | event_cancellation.completed | Config plane | Every action of an event's cancellation has finished: each switched-on action completed and the rest were skipped. The object is the final progress snapshot. | Supported | Your feed | | event_cancellation.action_completed | Config plane | One action of an event's cancellation (closing pending checkouts, refunding paid tickets or requesting attendee notices) finished. The object is the cancellation's progress snapshot, so the finished action reads `completed` there. Stopping sales and disabling admission take effect when the cancellation is recorded and have no separate completion. | Supported | Your feed | | event_cancellation.action_failed | Config plane | One action of an event's cancellation stopped because something it depends on refused it, for example a provider refund that failed. The object is the progress snapshot with the action's `last_error` code. The cancellation needs attention and the action can be retried; a retry resumes where it stopped and never repeats a refund or a notice already made. | Supported | Your feed | | event_cancellation.retried | Config plane | Someone asked for the failed actions of an event's cancellation to be retried. The failed actions are pending again and the object is the progress snapshot. A retry resumes where the failure left off: orders already refunded and noticed are not refunded or noticed again, and a refund the provider refused is replaced by a new one. | Supported | Your feed | | event_cancellation_notice.requested | Config plane | An event's cancellation asks that one order's buyer be told. Published once per order, only when the cancelled event's policy switched on Notify attendees. The object names the order, the event, the buyer's contact as the order recorded it, whether paid tickets are being refunded (and how much so far) and whether admission is disabled. It never carries the organizer's cancellation reason. If a notification provider is connected and `event_cancelled` is wired, the engine sends the message from it; either way your own integration can act on it from the feed. | Supported | Your feed | | invitation_return.created | Config plane | You gave back units of an invitation usage (`POST /v1/invitation_usages/{id}/returns`): the allocation and its pool, or the member's guest allowance in the usage's bucket, can issue that many more. The order and its tickets are unchanged. The engine never records one by itself. | Supported | Your feed | ## Buyer journey The path from an open cart to a ticket in somebody's hand. | Type | Area | The fact it records | Status | Scope | | --- | --- | --- | --- | --- | | checkout_session.created | Buyer journey | A checkout session opened: capacity held, binding quote taken, and consumables reserved. Payment is prepared immediately afterwards, not as part of this fact — so this snapshot can legitimately carry empty `psp_refs`. | Supported | Your feed | | checkout_session.updated | Buyer journey | A session changed — its cart or quote, its payment references and status, or its payment lock. Every payment-side write emits it too, not only the cart verb. A refused growth writes nothing, so it emits nothing. | Supported | Your feed | | checkout_session.completed | Buyer journey | The session's positions were issued; completion does not imply payment settlement. Check the order payment_state. | Supported | Your feed | | checkout_session.expired | Buyer journey | A session ended without completing; its hold and reservations were released. | Supported | Your feed | | checkout_session.payment_refused | Buyer journey | Money arrived for capacity that was no longer there, so the sale was refused and refunded. | Supported | Your feed | | hold.created | Buyer journey | Capacity was claimed for a buyer. | Supported | Your feed | | hold.updated | Buyer journey | A hold's footprint or expiry changed. | Supported | Your feed | | hold.lapsed | Buyer journey | A hold expired and its capacity returned to the pool. The engine writes this when it releases the capacity, which is what makes the release a fact you can act on rather than a deadline you have to infer. | Supported | Your feed | | order.created | Buyer journey | An order was recorded and its tickets issued. This is the ticket-delivery moment, not the settlement moment. | Supported | Your feed | | order.paid | Buyer journey | The money for an order settled. | Supported | Your feed | | order.payment_failed | Buyer journey | A payment that had been accepted optimistically later failed. | Supported | Your feed | | position.created | Buyer journey | One purchased unit was issued. Admission positions carry an admission code — treat this payload as secret-bearing. | Supported | Your feed | | position.revoked | Buyer journey | A position was invalidated and its capacity freed, with the reason that triggered it. | Supported | Your feed | | customer.created | Buyer journey | A buyer dossier was minted at purchase. | Supported | Your feed | | customer.updated | Buyer journey | A buyer dossier's contact details changed (a contact update, a later purchase or a claim), or its billing-contact sync settled. | Supported | Your feed | | waitlist_entry.created | Buyer journey | Someone joined an item's waitlist. | Supported | Your feed | | waitlist_entry.promoted | Buyer journey | A waitlist entry was promoted: capacity is held for that person until the invitation window closes. On an approval-gated item whose total is zero the order is issued in the same request and no checkout link is carried. | Supported | Your feed | | waitlist_entry.lapsed | Buyer journey | A waitlist entry's invitation or waiting place expired or was removed. | Supported | Your feed | | waitlist_entry.converted | Buyer journey | A promoted waitlist entry completed its invitation checkout. | Supported | Your feed | | waitlist_entry.rejected | Buyer journey | The organiser turned down a waiting entry. | Supported | Your feed | | position.holder_changed | Buyer journey | A position moved to another holder: by a transfer, an organizer's holder correction, or a verified recipient's claim of what was sent to their address. The object is the position, with its unchanged admission code, plus `holder_change` naming the previous and new holder and the kind — so you can send the recipient the same ticket. Treat it as secret-bearing. | Supported | Your feed | | checkout_session.payment_started | Buyer journey | The buyer began paying: the engine confirmed a saved card, the bank asked for 3-D Secure, a card was declined, or the money moved. Written once per session, with `psp_refs.payment_started_at`. Fetching payment credentials is not a start. | Supported | Your feed | | checkout_session.payment_action_required | Buyer journey | The buyer's bank asked for 3-D Secure. Written the first time only, with `psp_refs.payment_action_required_at`; the session stays open and its status does not change. | Supported | Your feed | | checkout_session.payment_declined | Buyer journey | A card was declined on an open session. One per decline, numbered in `psp_refs.payment_declines`; the session stays open for another card, so this is not an ending. | Supported | Your feed | `checkout_session.created`, `.updated` and `.expired` are live now, as is every `hold.*` type — see [checkout sessions](/docs/guides/checkout/sessions) for exactly which call emits which. `checkout_session.completed` is written when the engine issues a session's positions after observing payment in `succeeded` or `processing`. It does not mean that a processing payment has settled. See [orders and issuance](/docs/guides/orders) for the resulting order and position records. `checkout_session.payment_refused`, the `order.*`, `position.*` and `customer.*` types are part of the same current surface. `waitlist_entry.*` is documented in [the waitlist](/docs/guides/waitlist). `checkout_session.payment_started`, `.payment_action_required` and `.payment_declined` record a session's payment attempts rather than its outcome: the buyer began paying, the bank asked for 3-D Secure, a card was declined. None of them ends the session or changes its `status`; the session's `psp_refs` carries the same facts, so you can read them from any snapshot. See [payment milestones](/docs/guides/checkout/sessions#payment-milestones). **Treat `position.*` payloads as secret-bearing.** An admission position carries the code its QR encodes — the thing the door actually reads. Do not log the raw payload or put it anywhere you would not put a ticket. ## Money | Type | Area | The fact it records | Status | Scope | | --- | --- | --- | --- | --- | | refund.created | Money | A refund was started, of ticket positions or of a membership payment (`membership_charge_id` set, `order_id` null). | Supported | Your feed | | refund.completed | Money | A refund cleared. Engine refunds and reconciled Dashboard refunds both land here. | Supported | Your feed | | refund.failed | Money | A refund could not be completed by the payment provider. | Supported | Your feed | | ledger_entry.appended | Money | A money movement was journalled. Written only from confirmed payment-provider events, never from the request path. | Supported | Your feed | | dispute.created | Money | A charge was disputed. Positions are revoked immediately, with no human in the loop. | Supported | Your feed | | dispute.won | Money | A dispute was won. The money reverses; the ticket does not come back. | Supported | Your feed | | dispute.lost | Money | A dispute was lost. | Supported | Your feed | | refund_exception.created | Money | A partial refund taken outside the engine arrived with no position mapping, so it is queued for a human to assign. | Supported | Your feed | | refund_exception.resolved | Money | Someone assigned the positions a partial external refund covers. | Supported | Your feed | | price_effect.committed | Money | A consumable price effect was spent at issuance — the moment a code's use actually goes. | Supported | Your feed | | price_effect.refused | Money | A consumable effect refused at issuance and its reservation was released. | Supported | Your feed | | discount_code.redeemed | Money | A discount code's use was consumed by a completed order. | Supported | Your feed | | refund.superseded | Money | A failed refund attempt was superseded by a later refund. | Supported | Your feed | `price_effect.*` and `discount_code.redeemed` record what a price effect actually did once a sale was made; see [orders and issuance](/docs/guides/orders). `refund.*`, `dispute.*`, `refund_exception.*` and `ledger_entry.appended` are emitted by [refunds and disputes](/docs/guides/refunds). ## Memberships Membership plans and the memberships your customers hold. | Type | Area | The fact it records | Status | Scope | | --- | --- | --- | --- | --- | | membership_plan.created | Memberships | A membership plan was created: a recurring plan on the organizer's connected account, or a free plan with no billing. | Supported | Your feed | | membership_plan.updated | Memberships | A membership plan's offer, active state, join prerequisite (`required_plan_id`), exclusive group (`exclusive_group`), benefit grace (`grace_days`), enrollment setting (`enrollment_open`, `member_cap`) or attendance rule (`attendance_rule`) changed. | Supported | Your feed | | membership.created | Memberships | A customer joined a membership plan, or earned a free one through its attendance rule. A paid membership is incomplete until the payment provider confirms its first payment; a free one is already active. `data.object.source` is `earned` for a membership granted by an attendance rule, whose actor is `system` with the id `attendance_rule:`. | Supported | Your feed | | membership.updated | Memberships | A subscription's provider-backed state or cancellation-at-period-end flag changed, including a scheduled cancellation being undone. A failed ordinary renewal is recorded here: the object carries `grace_started_at` and `grace_ends_at` when the plan's benefit grace period opened. Nothing is recorded when a grace window lapses. | Supported | Your feed | | membership.activated | Memberships | The membership became active: the first subscription invoice was paid, the card of a join charged first on a later date (`first_charge_at`) was saved, a join with a card already saved (`saved_payment_method`) was paid or charged first on a later date, or a free plan was joined. `data.object.next_charge_at` is when it is next charged. | Supported | Your feed | | membership.renewed | Memberships | A later subscription-cycle invoice was paid and the membership period advanced. The first charge of a join charged first on a later date is one. | Supported | Your feed | | membership.canceled | Memberships | The membership ended: the subscription ended, a free membership was canceled (immediately), a join charged first on a later date whose card was not saved within about a day lapsed (the actor is `system`, `unsaved_join_lapse`) or had its card saved only once its capped plan was full (`system`, `enrollment_full`), or an earned membership under the `maintain` retention mode ended because the customer stopped qualifying (the actor is `system`, `attendance_rule:`). | Supported | Your feed | | membership.paused | Memberships | A paid membership was paused: the subscription stopped billing, unused paid time was credited toward the next invoice, and the membership's benefits stopped at once. `current_period_end` is the pause time. | Supported | Your feed | | membership.resumed | Memberships | A paused membership became active again because the payment provider reported its restart payment collected (an invoice fully covered by credit counts). A new billing period started; `current_period_end` is its end. Never recorded for a restart whose payment failed or is still unpaid. | Supported | Your feed | | membership_benefit.created | Memberships | A plan gained a reusable benefit: a percentage off or a gated-item unlock. It applies nowhere until an event assigns it. | Supported | Your feed | | membership_benefit.updated | Memberships | A benefit's name, percentage or metadata changed. Later quotes at every event it is assigned to use the new values. | Supported | Your feed | | membership_benefit_assignment.created | Memberships | A benefit was assigned to an event, for all of its items or for selected ones. | Supported | Your feed | | membership_benefit_assignment.updated | Memberships | A benefit's assignment to an event changed scope or items. | Supported | Your feed | | membership_benefit_assignment.removed | Memberships | A benefit was removed from an event and gives nothing there any more. | Supported | Your feed | | membership_qualifying_event.created | Memberships | An event now counts toward a membership plan's attendance rule ("counts toward this membership"). The object names the plan and the event. Customers who attended the event are evaluated in the same step, so `membership.created` or `membership.canceled` for earned memberships may follow. | Supported | Your feed | | membership_qualifying_event.removed | Memberships | An event stopped counting toward a membership plan's attendance rule. Earned memberships under the `maintain` retention mode that no longer qualify end in the same step. | Supported | Your feed | See [memberships](/docs/guides/memberships) for which step emits which, and [plans, states and effects](/docs/guides/memberships/reference) for the states they report. ## Tenancy Your organizer, your keys, your connected account, and the door passes issued against your events. | Type | Area | The fact it records | Status | Scope | | --- | --- | --- | --- | --- | | organizer.created | Tenancy | Your organizer was minted. | Supported | Your feed | | organizer.updated | Tenancy | Your organizer changed. `slug` and `test` are fixed at mint and never appear here. | Supported | Your feed | | organizer.payment_account_attached | Tenancy | A Stripe account was linked to your organizer, by either onboarding entrance. Linking is not the end of onboarding: the account may not take charges yet. | Supported | Your feed | | organizer.payment_account_deauthorized | Tenancy | Your Stripe account was disconnected and the organizer is frozen. New sales stop; reconciliation of past sales continues. | Supported | Your feed | | api_key.minted | Tenancy | A key was minted with a grant on your organizer. The snapshot names only your organizer, never the other tenants a key may span, and never a hash, secret or displayable prefix. | Supported | Your feed | | api_key.revoked | Tenancy | A key was retired. Revocations are engine-global facts and are therefore never in a tenant feed — listed here for completeness. | Supported | Engine-global | | api_key.grant_added | Tenancy | A key gained a grant on your organizer. | Supported | Your feed | | api_key.grant_removed | Tenancy | A key lost its grant on your organizer. | Supported | Your feed | | door_pass.created | Tenancy | A scanner credential was minted for an event set. | Supported | Your feed | | door_pass.enrolled | Tenancy | A device claimed a door pass. | Supported | Your feed | | door_pass.revoked | Tenancy | A door pass was revoked; the device stops working immediately. | Supported | Your feed | | door_pass.manifest_downloaded * | Tenancy | A door downloaded an offline manifest. Observational: the row is the fact. | Supported | Your feed | | entitlement_provider.registered | Tenancy | A source of price effects was registered on your organizer. Registration is your consent to spend your own proceeds. | Supported | Your feed | | entitlement_provider.deregistered | Tenancy | A price-effect provider was switched off for your organizer. | Supported | Your feed | | organizer_member.added | Tenancy | A person was given access to your organizer's dashboard, by email: as an owner, or as an event editor with access to all events or to selected ones. | Supported | Your feed | | organizer_member.removed | Tenancy | A person lost access to your organizer's dashboard. | Supported | Your feed | | organizer_member.updated | Tenancy | A person's role, event scope or selected events changed. The previous image is on `before`; the change applies from their next request. | Supported | Your feed | | entitlement_provider.updated | Tenancy | An external price-effect provider's callback URLs, signing secret or metadata changed. The secret itself is never in the snapshot, only whether one is set; `endpoint_url` is the provider's `quote_url`. | Supported | Your feed | | organizer.collection_changed | Tenancy | Lissen changed which Stripe account charges your new ticket or membership payments (`ticket_collection`, `membership_collection`: your connected account or Lissen's platform account), or whether your memberships charge tax (`membership_tax`). Payments already taken keep the account that charged them. | Supported | Your feed | | api_key.updated | Tenancy | Lissen marked a key as a provisioner, which may create organizers, or took the mark away. An engine-global fact, never in a tenant feed — listed here for completeness. | Supported | Engine-global | | organizer.payment_account_ready | Tenancy | Stripe says your linked account can take charges, usually once its onboarding is finished. Recorded once per linked account, from Stripe's account update; a later update of the same account records nothing. | Supported | Your feed | These are delivered to you like other tenant activities. An activity about your own API keys is your activity — a record of your own operations that withheld a category of itself would not be much of a record. ## Door The scans themselves, both the ones that let somebody in and the ones that did not. | Type | Area | The fact it records | Status | Scope | | --- | --- | --- | --- | --- | | checkin.created | Door | A position crossed the door. | Supported | Your feed | | checkin.rejected * | Door | A scan was refused — wrong event, already used, revoked. Observational: the door's history keeps what actually happened, not only what was allowed. | Supported | Your feed | | checkin.voided | Door | An admitted check-in was voided as a correction. | Supported | Your feed | | checkin.credit_changed | Door | An organizer corrected which customer an admitted check-in credits with attendance, or a verified recipient's claim carried the credit to them. The object names the check-in and the change: previous and new customer, kind (`correction` or `claim`) and the stated reason. The scan itself is unchanged. | Supported | Your feed | | attendance.recorded | Door | A customer's visit to an event was added: the first admitted check-in crediting them there (a scan, an earlier offline scan taking over, or a credit correction or claim moving the credit to them). Later admissions for the same customer and event add nothing. The object is the visit (`customer_id`, `event_id`, `first_admitted_at`), the check-in that caused it and the `cause`. Membership evaluation reads attendance from this and from `GET /v1/attendances`. | Supported | Your feed | | attendance.removed | Door | A customer's visit to an event was taken away: the last admitted check-in supporting it was voided, superseded by an earlier scan that credits someone else, or had its credit moved. Another admission still crediting the customer keeps the visit and publishes nothing. A later holder correction never removes a visit. | Supported | Your feed | These are delivered as the door records scans and manifest downloads. ## Feed | Type | Area | The fact it records | Status | Scope | | --- | --- | --- | --- | --- | | webhook_endpoint.created | Feed | You registered an endpoint to receive activities. | Supported | Your feed | | webhook_endpoint.updated | Feed | An endpoint changed — its URL, its type filter, its status, or a secret rotation. | Supported | Your feed | | webhook_endpoint.deleted | Feed | An endpoint was removed. The only `.deleted` in the whole registry, because it is the only resource with a real delete. | Supported | Your feed | The lifecycle of your own webhook endpoints is documented in [the outbound feed](/docs/guides/webhooks). ## Filtering by type Every type here is a valid `type` filter on `GET /v1/activities`, as is a resource wildcard and a bare `*`: ```bash curl "https://tickets.lissen.com/api/v1/activities?type=hold.*&limit=100" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Wildcards are prefix-only and sit at the resource boundary: `hold.*` is valid, `hold.la*` is not. See [the activity stream](/docs/guides/activities/stream) for the rest of the filters and for paging. --- # Verifying signatures URL: /docs/guides/activities/webhook-signatures The signature scheme on webhook deliveries and how to verify it correctly Every delivery carries a `Ticketing-Signature` header, signed with the secret shown once when you create the endpoint: ``` Ticketing-Signature: t=1793885263,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd ``` * `t` is the Unix timestamp, in seconds, at which the delivery was signed. * `v1` is a hex HMAC-SHA256 over the string `` `${t}.${rawBody}` `` — the timestamp, a literal full stop, then the raw request body — keyed with your endpoint's signing secret. This mirrors Stripe's verification pattern, deliberately. If you have verified a Stripe webhook before, the shape will be familiar, and libraries that already handle that format need little adapting — which is worth more to you than anything a bespoke scheme could offer. ## Verifying **Read the raw body as bytes**, before any JSON parsing, and keep the bytes — not a decoded string — exactly as received. **Parse the header** into `t` and every `v1` value it carries. There can be more than one — see rotation below. **Reject a stale or improbable timestamp.** Refuse the delivery if `t` is more than five minutes away from your own clock, in **either** direction. Old protects you from a replay; far-future protects you from a clock you cannot trust. **Recompute** `HMAC-SHA256(secret, "{t}.{rawBody}")` and compare it against each `v1` value with a **constant-time** comparison. Accept if any one matches. ```js import { createHmac, timingSafeEqual } from "node:crypto"; /** `rawBody` is a Buffer of the bytes as received — never a decoded string. */ export function verify(rawBody, header, secret, toleranceSeconds = 300) { const parts = header.split(",").map((part) => part.trim()); const timestampPart = parts.find((part) => part.startsWith("t=")); const timestamp = Number(timestampPart?.slice(2)); if (!Number.isFinite(timestamp)) return false; const skew = Math.abs(Math.floor(Date.now() / 1000) - timestamp); if (skew > toleranceSeconds) return false; // Built from bytes: the timestamp, a literal ".", then the body verbatim. // Interpolating the body into a template string would decode it first. const expected = createHmac("sha256", secret) .update(String(timestamp), "utf8") .update(".", "utf8") .update(rawBody) .digest(); // Every v1 in the header — during a rotation overlap there are two. return parts .filter((part) => part.startsWith("v1=")) .some((part) => { const encoded = part.slice(3); // Buffer accepts malformed/truncated hex. Reject it before the // length-sensitive constant-time primitive sees attacker input. if (!/^[0-9a-f]{64}$/iu.test(encoded)) return false; const candidate = Buffer.from(encoded, "hex"); return ( candidate.length === expected.length && timingSafeEqual(candidate, expected) ); }); } ``` Get those bytes from your framework's raw-body facility. In Express that is `express.raw({ type: "application/json" })`, which hands you a Buffer. In a Fetch-style handler it is `Buffer.from(await request.arrayBuffer())` — not `await request.text()`, which decodes the bytes and takes you straight back to the problem below. **Sign over the bytes you received, never over a re-serialized object.** `JSON.stringify(JSON.parse(body))` is not the same string: key order, unicode escaping and number formatting all move. A verifier built on a parsed body works in development and fails on the first payload that happens to serialize differently — which is the worst possible failure mode, because it looks like an attack. ## Rotation Rotating an endpoint's secret mints a new one while the old secret **keeps signing for 24 hours**. During that overlap a delivery carries more than one `v1` value: ``` Ticketing-Signature: t=1793885263,v1=5257a869…,v1=b9f10c33… ``` Accept the delivery if **any** `v1` matches a secret you hold. That is what makes rotation zero-downtime: deploy the new secret whenever you like inside the window, and no delivery fails while you do. Write your verifier to loop over `v1` values from the start, even before you have ever rotated. A verifier that reads only the first one passes every test you can write today and fails the first time you rotate. ## Payloads are secret-bearing The body is the activity envelope, byte-for-byte identical to what `GET /v1/activities/{id}` returns for the same activity. That identity is deliberate: it is what makes a replica built from deliveries and one built from [a sweep](/docs/guides/activities/reconciliation-sweep) the same replica. It also means the body can carry an **admission code** — the secret a ticket's QR encodes and the only thing the door reads. * **Never log the raw body.** Not at debug level, not "temporarily". Log the activity `id`, `type` and `created`, which is enough to trace anything. * **Terminate TLS at your own endpoint**, and do not forward deliveries onward through anything that logs bodies. * **Treat your signing secret like an API key.** It is shown once at creation and rotated, never recovered. ## Responding * **Any 2xx is success.** Respond within about ten seconds. * **Answer first, work second.** Verify the signature, enqueue the activity, return 2xx. Doing the work inline is how a slow database turns into a retry storm. * **Deduplicate on the `act_` id.** Delivery is at-least-once, there is no ordering promise, and a retry of something you already applied is normal rather than exceptional. * **A non-2xx is retried** on a backoff with jitter — roughly a minute, five minutes, thirty minutes, two hours, six hours, then every twelve — and given up on after three days. An endpoint that fails *every* delivery for three consecutive days is disabled. Recovery is to fix it, re-enable it through the API, and close the gap with [a sweep](/docs/guides/activities/reconciliation-sweep) — there is no per-activity redelivery button, because the pull rail already is one and it cannot itself be missed. ## Gotchas * **Verify before you parse.** A body you have parsed is a body you can no longer verify. * **Compare in constant time.** A byte-by-byte early return leaks the signature one byte at a time. * **Do not skip the timestamp check.** Without it a captured delivery can be replayed forever, signature and all. * **Do not assume one `v1`.** * **Do not assume order.** Two deliveries about one resource can arrive either way round; prefer the snapshot with the later `created`. * **Do not treat a signature failure as a bug in the sender.** It is either a raw-body problem, a stale secret, or something you genuinely want to reject. --- # Availability URL: /docs/guides/capacity-and-pricing/availability What the three availability states mean, what a hold is, and what to render for each Capacity lives in a **quota**: a pool of units that one or more items draw on. An item always draws on at least one quota, and several items can share one — which is how a single 300-person room sells as early-bird, standard and guest list without three separate ceilings. Availability is **calculated at request time**, and rechecked again during checkout before capacity is committed: ``` available = size − issued − in_baskets ``` Because it is worked out from what actually exists rather than kept as a running total, the engine can tell "nobody can have one" apart from "somebody is buying the last one right now". ## The read `GET /v1/quotas/{id}/availability` ```bash curl https://tickets.lissen.com/api/v1/quotas/quo_0199c4e6-1a2b-7c30-9d11-4e5f6a7b8c90/availability \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "quota_id": "quo_0199c4e6-1a2b-7c30-9d11-4e5f6a7b8c90", "size": 300, "issued": 274, "in_baskets": 4, "available": 22, "state": "available" } ``` | Field | What it counts | | ------------ | ----------------------------------------------------------------------------------------------------------------- | | `size` | The pool's ceiling. `null` means unlimited. | | `issued` | Live positions whose item draws on this quota. A position consumes one unit of **every** quota its item draws on. | | `in_baskets` | Units claimed by live holds — capacity sitting in somebody's checkout right now. | | `available` | `size − issued − in_baskets`, never below zero. `null` when the quota is unlimited. | | `state` | `available`, `in_baskets` or `gone`. | `issued` can exceed `size`: a [comp](/docs/guides/orders#complimentary-tickets) issued with the capacity override counts as issued without raising the size. `available` then stays at zero until issued positions plus live holds fall below the size again. A syntactically wrong quota id is `invalid_request` before any lookup happens. Only a well-formed id that names nothing under your organizer is `not_found`. ## Several quotas at once A listing page usually needs every quota an event's items draw on. Ask for them in one request instead of one per quota: `GET /v1/availability` ```bash curl "https://tickets.lissen.com/api/v1/availability?quota_ids=quo_0199c4e6-1a2b-7c30-9d11-4e5f6a7b8c90,quo_0199c4e6-2b3c-7d41-8e22-5f6a7b8c9d01" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` The response is `{ "data": [ … ] }` with one entry per quota that exists under your organizer, in the same shape as the single read. Up to 100 ids per request; an id that names nothing is left out rather than reported, and a malformed id fails the whole request with `invalid_request` before any lookup. ## How many of each item were issued A quota's `issued` counts every item that draws on it, so a shared quota cannot say how many early-bird tickets went and how many standard. Ask for the count per item instead of paging through the event's positions: `GET /v1/item_issuance` ```bash curl "https://tickets.lissen.com/api/v1/item_issuance?item_ids=itm_0199c4e7-3c4d-7e52-9f33-6a7b8c9d0e12,itm_0199c4e7-4d5e-7f63-8a44-7b8c9d0e1f23" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` The response is `{ "data": [ { "item_id": "itm_…", "issued": 42 }, … ] }`: the live positions of each item, which is what a sales figure counts. A revoked position is not counted, and an item with none reports `0`. The limits are those of the batch read above: up to 100 ids, unknown ids left out, a malformed id refused. Items outside an event editor's event scope are also omitted. To page through only one event's items, list items with `GET /v1/items?event_id=evt_…`. ## The three states The state is the field to branch on. The numbers are for your own dashboards; the state is what a buyer's screen should be a function of. **`available`** — there is room. Either `available` is above zero, or the quota is unlimited. Sell. **`in_baskets`** — `available` is zero **and** at least one live hold exists on this quota. Nothing is left to sell, but nothing is finally gone either: the units are inside checkouts that can still expire. Every one of those holds has a deadline, so this state can resolve itself without anyone doing anything. **`gone`** — `available` is zero and there are no live holds. Every unit has been issued. `in_baskets` is deliberately **not purchasable**. A hold is an exclusive claim for the buyer who made it, so offering those units to a second buyer would be selling the same seat twice and refunding one of them later. The honest answer is "not right now, check back in a few minutes" — and unlike "sold out", it is true. ### What brings capacity back Capacity returns when a hold is released or lapses, a position is revoked, or quota size increases. Completion moves units from `in_baskets` to `issued` and does not increase `available`. * **A hold released or lapsed** — the session was expired, or its deadline passed. The units go back to the pool. * **A position revoked** — a refund, a payment bounce or a dispute frees the unit it consumed. See [orders & issuance](/docs/guides/orders) and [refunds & disputes](/docs/guides/refunds). * **You resizing the quota.** Raising `size` adds room immediately. That is the only lever you hold directly. ## What a hold is A **hold** is capacity claimed for one buyer while they pay. It is created by the checkout session that owns it — you never create one directly, and there is no holds endpoint — and it ends when the session completes, when the session is expired, or when its own deadline passes. The session's `expires_at` is the hold's clock. Read it there rather than computing one: see [Checkout](/docs/guides/checkout/sessions) for how a session's lifetime works, including the fact that updating a cart does **not** buy the buyer more time. The standard checkout hold runs for **ten minutes** today. That is an engine-wide setting Lissen owns rather than a per-request one, and it is not the only value in play — an invitation hold from a waitlist promotion is deliberately much longer. Do not hard-code either; read `expires_at`. Two properties are worth knowing before you build a countdown: * **Liveness is the hold's status, not the clock.** Passing `expires_at` does not by itself free anything: a background pass expires the session (releasing its hold) or lapses a session-less hold, and the units return then. There is no contractual maximum on how long that takes. The engine will undersell briefly rather than risk overselling by one, so a buyer can see `in_baskets` for capacity whose deadline has already gone. * **A release is a written fact, not an inference.** When the units come back the engine records an activity, and which one depends on the hold. A hold that belongs to a checkout session is released when its session expires, and that release is `hold.updated` (the session's own `checkout_session.expired` comes with it). A hold with no session, such as an invitation hold, lapses on its own and emits `hold.lapsed`. If you are mirroring availability into your own store, those activities, not a timer you ran yourself, are the events to act on. ## Unlimited quotas A quota with `size: null` is deliberately unlimited: `available` is `null` and `state` is always `available`, however many positions exist. ```json { "quota_id": "quo_0199c4e6-1a2b-7c30-9d11-4e5f6a7b8c90", "size": null, "issued": 1841, "in_baskets": 2, "available": null, "state": "available" } ``` **Unlimited is terminal.** A quota that has been made unlimited can never be given a finite size again — the attempt is refused with `quota_unlimited_immutable`. Widening a finite quota to unlimited is allowed; narrowing back is not, because live checkouts have already been decided against a pool with no ceiling. If you need a cap on something currently unlimited, create a finite quota and point a new item at it. Render `available: null` as "available", never as `0` — a naive `available > 0` check reads unlimited as sold out. ## What to render | State | A reasonable UI | | --------------------------------------------- | ---------------------------------------------------------------------------- | | `available`, `available` above your threshold | The normal buy button. | | `available`, a handful left | "Only 6 left" — it is a true number at the instant you read it. | | `in_baskets` | "Currently in other people's baskets — check back shortly." Offer a refresh. | | `gone` | "Sold out." | Two rules that will save you a support thread: 1. **Availability is a display value, not a reservation.** The binding decision is recalculated during checkout, at the moment capacity is claimed. A quota that read `available` can still refuse when you open the session. Handle that; do not treat it as a bug. 2. **A quota's availability is not an item's sellability.** An item can be inactive, outside its sale window, or gated behind an entitlement while its quota has plenty of room. Quote the cart to learn which — the line comes back with `sellable: false` and a `blocked_reason`. See [Pricing & entitlements](/docs/guides/capacity-and-pricing/pricing-and-entitlements). ## What emits on the activity stream Reading availability emits **nothing**. It is a read; it changes no state. The facts that move a number in this response do emit: * `quota.created`, `quota.updated` — the pool itself, most often a resize. * `hold.created` — units moved into `in_baskets`. * `hold.updated` — the hold's capacity footprint changed, its deadline was re-armed, or it was released or converted into positions. * `hold.lapsed` — a hold's deadline passed and its units returned to the pool. Issuance moves units from `in_baskets` to `issued`; those activities arrive with [orders & issuance](/docs/guides/orders). ## Stable error codes Reading availability can fail with the usual authentication and tenancy codes, plus `invalid_request` for a malformed quota id and `not_found` for a well-formed one that names nothing here. A quota belonging to another organizer reads as absent rather than forbidden, which is the correct answer. The two codes you meet when you **act** on what you read are not the same answer as each other: * `capacity_locked` — the request could not get the capacity lock in time. Retry with a short backoff. Do not conclude anything about availability from it: the retry may well succeed, and it may equally come back `insufficient_capacity` once it gets in. * `insufficient_capacity` — there is genuinely not enough room, decided inside the lock immediately before it was returned. Do not blind-retry the same request; re-read availability and offer fewer units, or a different item. Resizing a quota has its own small family: | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | quota_below_consumption | 400 | invalid_request_error | A quota resize would have put its size below what is already issued plus what live checkouts are holding. | Read the quota's availability and resize to at least `issued + in_baskets`. | | quota_unlimited_immutable | 400 | invalid_request_error | An unlimited quota (`size: null`) cannot be given a finite size. Unlimited is terminal. | Create a new finite quota and rebind the item to it, if the item has no live capacity yet. | The whole registry is on [Getting started](/docs/getting-started). ## Gotchas * **Two items sharing a quota share a ceiling.** Selling out the guest list can take standard entry with it if both draw on the same pool. Model that deliberately. * **`available: 0` with `state: "gone"` is not the same thing** as `available: 0` with `state: "in_baskets"`. Branch on `state`. * **Do not poll this endpoint per buyer per second.** It is cheap but it is still a round trip per quota. Poll on a sensible interval for a listing page, and read the activity stream if you need to react to a change quickly. * **An item's quota binding freezes once live capacity depends on it** (`item_quotas_locked`). Get the binding right before you sell, or create a new item and close the old one's sale window. To open a second tier when the first runs out, link it with [`opens_after_item_id`](/docs/guides/config/items-and-quotas#opening-one-ticket-type-when-another-runs-out-or-closes); "runs out" there is issued units reaching a quota's size, not `in_baskets`. --- # Capacity & pricing URL: /docs/guides/capacity-and-pricing What availability means, and how the engine arrives at a price Two questions a buyer's screen has to answer, and the engine answers both from first principles every time rather than from a cached number. **Can they have it?** Capacity lives in quotas, and availability is calculated at request time, then rechecked during checkout before capacity is committed. That is what lets the engine distinguish "somebody is buying the last one right now" from "there are none". **What does it cost?** Price starts from the list price, applies eligible entitlements in stacking order, and floors at zero. You can preview that price as often as you like without holding capacity or spending a code. --- # Pricing & entitlements URL: /docs/guides/capacity-and-pricing/pricing-and-entitlements How a cart is priced — price effects, the stacking order, fees, and the non-binding quote preview The engine never invents a price. It takes the cart's list prices, asks every source of entitlement you have switched on what it wants to do about them, and then applies the answers in one fixed order. An answer is a **price effect**. There are five kinds: | Type | What it does | | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `percent_off` | Takes a percentage off the position's current price. | | `amount_off` | Takes a fixed amount off, per ticket. | | `price_override` | Replaces the price outright. An override to `0` makes the ticket free at checkout; to give tickets without a checkout, issue a [comp](/docs/guides/orders#complimentary-tickets). | | `fee_waiver` | Removes the buyer's booking fee on that position. | | `unlock` | Moves no money. It is what makes a gated item purchasable. | **Two vocabularies, deliberately.** When you *configure* a discount code you write `percent` and `amount`. When that code turns up as an effect in a quote, its `type` reads `percent_off` and `amount_off`. The other three — `price_override`, `fee_waiver`, `unlock` — spell the same both ways. Map between them rather than assuming a typo. ## Applied effects and teasers Every effect carries its provenance, and which field it carries tells you whether it counted. * An **applied** effect (`state: "applied"`, in `applied_effects`) carries `source` — where the discount came from, in words you can show a buyer. * A **teaser** (`state: "unapplied"`, in `unapplied_effects`) carries `requires` instead — what this buyer would have to be for it to apply. This is the "join for 20% off" upsell, and it is deliberately shown to anonymous buyers too. A membership teaser names only a plan this buyer's join would be accepted on; see [benefits in quotes](/docs/guides/memberships/reference#benefits-in-quotes). ```json { "id": "dsc_0199c4e9-4a71-7b02-9f18-2c6d8b3a5e41", "provider_kind": "discount_codes", "provider_id": null, "type": "percent_off", "state": "applied", "source": { "kind": "discount_code", "label": "WINTER10", "ref": "dsc_0199c4e9-4a71-7b02-9f18-2c6d8b3a5e41" }, "requires": null, "description": "10% off", "stackable": false, "consumable": true, "redemption_ref": null, "percent_bps": 1000, "amount_minor": null, "currency": null, "price_override_minor": null, "applies_to_item_ids": ["itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10"], "applies_to_event_ids": [], "unlocks_item_ids": [] } ``` Every field above is always present; the nullable ones are `null` rather than absent. `redemption_ref` is `null` on a preview — nothing has been reserved. Two flags decide how an effect behaves in the stack: * **`stackable`** — an effect that opted in always applies, in addition to everything else. Discounts that did not opt in compete for a single slot. * **`consumable`** — the effect spends something finite when the sale completes. Every discount code is consumable, because a code's uses are what make "first 100 buyers" and per-customer limits real. Teasers are part of the contract today, but the source that produces them — membership — is evaluated for organizers with active plans. See [Memberships](/docs/guides/memberships#4-ana-opens-a-show-page). ## The stacking order Effects apply **per position**, in this order, and the order is not negotiable: **Price overrides resolve first, lowest wins.** An override to zero makes the ticket free. An override that would *raise* the price never applies. Every override that did not set the price is superseded, including a "winner" that changed nothing. **Percentage and amount discounts: one best non-stackable, plus every stackable one.** Percents apply before amounts, largest first inside each group. This competition is **only** between `percent_off` and `amount_off` effects — overrides, fee waivers and unlocks are resolved in their own phases and never take part in it. **Consumables apply last, on the remainder.** A discount code discounts what is left after member benefits have already shrunk the price, never the list price. **Floor at zero, then resolve fees per position.** No total ever goes negative, and every intermediate value is an integer number of minor units. Fee waivers are decided here, against the fee that was actually resolved. ### A checkout offer competes with membership A [checkout offer](/docs/guides/checkout/sessions#offers-from-your-backend) is a price your backend attached to one session. Against membership pricing it is an **alternative**, not another layer: for each position the engine prices the line both ways — the offer without the membership effects, and the membership effects without the offer — and the lower final price wins. The loser is superseded, so the member percentage is never applied again to an offer price. | List | Member (20%) | Offer | Charged | Superseded | | ------ | ------------ | ------------ | ------- | ----------------------------------------------- | | £20.00 | £16.00 | £15.00 fixed | £15.00 | the membership effect | | £20.00 | £16.00 | £17.00 fixed | £16.00 | the offer | | £20.00 | £16.00 | 25% off | £15.00 | the membership effect | | £20.00 | £16.00 | £16.00 fixed | £16.00 | the membership effect (a tie goes to the offer) | It is decided per position, so an offer scoped to one item wins there and the member price still applies to the others. An unlock a membership grants does not take part in this choice: the gated item stays purchasable whichever price won. Ordinary codes join both alternatives, so they stack beside the winning price by the usual rules, and a code that only helped the losing price is superseded and never spent. This rule applies only between an offer and membership; two membership benefits, or a code and a benefit, still resolve as described above. ### Best-of is evaluated on the remainder, not the list price The single non-stackable discount slot is not won by whichever effect looks biggest on its own. The engine simulates each candidate **with the stackable effects already applied** and keeps the one that produces the lowest final price. That distinction is worth money. On a £25.00 ticket with a stackable 20% discount from a provider effect, a 25%-off code and a £6.00-off code: * Ranked against the £25.00 list price, 25% (625) beats £6.00 (600) and the buyer pays **1500**. * Ranked against the £20.00 remainder, 25% is worth 500 and £6.00 is worth 600, so the buyer pays **1400**. The engine charges 1400. Ties keep the first candidate by id, so the result is the same however the answers happened to arrive. ### Everything is per position `amount_off` applies to every position it covers. £5.00 off on a line of three tickets discounts £15.00, not £5.00. **There is no once-per-cart discount, in any effect type.** Every effect is applied per position and multiplied by quantity — a percent, an amount, an override and a waiver all behave this way. If you need a fixed sum off an order as a whole, that is not something this version expresses; model it as a per-ticket amount you have divided yourself. ### What a fee waiver actually waives `fee_waiver` removes the **buyer's booking fee** and nothing else. The platform fee still exists — it simply stops being added to the charge and falls to your proceeds instead, exactly like a schedule in `absorbed` mode. `booking_fee_minor` goes to zero; `platform_fee_minor` does not move. Consequently a waiver on a cart whose fee schedule is already `absorbed` waives nothing the buyer was paying, so it is superseded rather than silently "applied". A position can only use one waiver; extras are superseded. A non-consumable waiver (a membership's [`fee_waiver` benefit](/docs/guides/memberships/reference#benefits-in-quotes)) is used before a consumable one (a discount code), so a member who also enters a fee-waiver code keeps the code unspent; among equals the lowest effect id is used. The waived fee has to fit in what is charged. Where the platform fee would meet or exceed the position's post-discount price, a code's waiver refuses the quote with `fee_exceeds_charge`, while a membership's waiver steps aside on that position: the buyer pays the ordinary booking fee and the waiver is superseded unless it waived another line. ### A zero-priced position carries no fee at all Price a ticket to zero and it is free — no booking fee, no platform fee. A flat booking fee on a free position would charge a buyer for something you gave them. ### Applied means effective **or** superseded, never neither Every applied effect either appears in a line's `effect_ids` or in the quote's `superseded_effect_ids`. Anything that priced nothing — an outbid discount, a second fee waiver, an override that never lowered anything — is superseded. This is what stops a code being spent for a discount it did not give: **a superseded consumable is never reserved and never committed.** An effect that won on one line and lost on another is *not* superseded — winning anywhere is enough to keep it live. ## The worked table The table below shows exact integer minor-unit results. Unless stated, the position is 1 × £25.00 (`2500`) under a `passed_on` fee schedule of **5% + 50p**. A "member" row is an in-engine [membership](/docs/guides/memberships/reference) percentage, which is never stackable: a plan's own percentage, which covers every position, or a [membership benefit](/docs/guides/memberships#benefits-chosen-per-event), which covers only the positions its event assignments name. Both compete for the same single slot, so a position gets the best one membership discount and never a sum. A "stackable provider" row is an effect from an entitlement provider that opted into stacking; a membership percentage never takes that slot. | Effects on the position | list | discount | subtotal | booking fee | platform fee | **total** | | ------------------------------------------------------------------------------------------------------- | ---- | -------- | -------- | ----------- | ------------ | --------- | | none (2 × £25.00) | 5000 | 0 | 5000 | 350 | 350 | **5350** | | member 20% | 2500 | 500 | 2000 | 150 | 150 | **2150** | | code 10% (a consumable) | 2500 | 250 | 2250 | 163 | 163 | **2413** | | member 20% × code 10%, neither stackable — best single wins, the code is superseded | 2500 | 500 | 2000 | 150 | 150 | **2150** | | member 5% × code 20%, neither stackable — the code wins | 2500 | 500 | 2000 | 150 | 150 | **2150** | | member 10% × member 20%, two plans' benefits on one position — the better one, never 30% | 2500 | 500 | 2000 | 150 | 150 | **2150** | | stackable provider 20% + code 10% — the consumable applies last, on the remainder | 2500 | 700 | 1800 | 140 | 140 | **1940** | | two stackable percents, 20% + 10% — largest first, compounding | 2500 | 700 | 1800 | 140 | 140 | **1940** | | two `amount_off` codes, £5.00 and £3.00, neither stackable — the bigger wins | 2500 | 500 | 2000 | 150 | 150 | **2150** | | £5.00 off × **3 tickets** — per ticket | 7500 | 1500 | 6000 | 450 | 450 | **6450** | | £30.00 off a £25.00 ticket — floors at zero, and a free position carries no fee | 2500 | 2500 | 0 | 0 | 0 | **0** | | free — `price_override` to zero | 2500 | 2500 | 0 | 0 | 0 | **0** | | two overrides, £20.00 and £15.00 — lowest wins | 2500 | 1000 | 1500 | 125 | 125 | **1625** | | override to £20.00, then member 20% — the percent applies to the overridden base | 2500 | 900 | 1600 | 130 | 130 | **1730** | | fee waiver alone — the buyer pays no booking fee; the platform fee is absorbed | 2500 | 0 | 2500 | 0 | 175 | **2500** | | member 20% + member fee waiver — the waiver rides the discounted position | 2500 | 500 | 2000 | 0 | 150 | **2000** | | member fee waiver × fee-waiver code — the member's waiver is used, the code is superseded and not spent | 2500 | 0 | 2500 | 0 | 175 | **2500** | | member fee waiver on a £0.50 ticket — the 53 fee cannot be absorbed from 50, so the waiver steps aside | 50 | 0 | 50 | 53 | 53 | **103** | | stackable provider 20% + (25% off **vs** £6.00 off) — best-of on the remainder | 2500 | 1100 | 1400 | 120 | 120 | **1520** | | 33% off a £9.99 ticket — half-up rounding | 999 | 330 | 669 | 83 | 83 | **752** | | gated £40.00 tier: unlock + stackable provider 20% + code 10% | 4000 | 1120 | 2880 | 194 | 194 | **3074** | | no effects, `absorbed` fee schedule — no buyer-visible booking fee to begin with | 2500 | 0 | 2500 | 0 | 175 | **2500** | `total_minor` is `subtotal_minor + booking_fee_minor`. `platform_fee_minor` is what Lissen takes; it is in the response so you can reconcile, and it is only *added* to the charge when the schedule is `passed_on`. Percentages round **half-up** on integer minor units, so 33% of 999 is 330. No float ever touches a total. ## Consumables: reserve, then commit or refuse A consumable effect is spent in two moves, not one. 1. **At checkout.** When the session is created, the engine reserves the consumable against the hold. This is what makes "first 100 buyers" hold: the 101st buyer cannot reserve it. 2. **At issuance.** The reservation is re-checked — still active, still inside its window by the engine's own clock, still worth what was quoted, same buyer — and only then committed. A refusal releases the reservation and records the fact; nothing is left half-spent. **A code whose last use went to someone else does not break the checkout.** The engine re-prices the cart without it and the buyer gets a working session with that code in `rejected_codes` — an honest "this code is used up" rather than a failed purchase. Only a code that still cannot be reserved after that re-price fails the create outright, with `code_not_reservable`. ## Previewing a quote `POST /v1/quotes` ```bash curl -X POST https://tickets.lissen.com/api/v1/quotes \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2 } ], "codes": ["WINTER10"], "customer": { "external_ref": "member-8814" } }' ``` ```json { "mode": "preview", "created": "2026-11-14T18:02:11Z", "currency": "GBP", "subject": { "kind": "authenticated", "customer_id": null, "external_ref": "member-8814" }, "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "description": "Standard entry", "quantity": 2, "unit_list_price_minor": 2500, "unit_price_minor": 2250, "list_subtotal_minor": 5000, "discount_minor": 500, "subtotal_minor": 4500, "booking_fee_minor": 326, "platform_fee_minor": 326, "effect_ids": ["dsc_0199c4e9-4a71-7b02-9f18-2c6d8b3a5e41"], "sellable": true, "blocked_reason": null } ], "applied_effects": [ { "id": "dsc_0199c4e9-4a71-7b02-9f18-2c6d8b3a5e41", "provider_kind": "discount_codes", "provider_id": null, "type": "percent_off", "state": "applied", "source": { "kind": "discount_code", "label": "WINTER10", "ref": "dsc_0199c4e9-4a71-7b02-9f18-2c6d8b3a5e41" }, "requires": null, "description": "10% off", "stackable": false, "consumable": true, "redemption_ref": null, "percent_bps": 1000, "amount_minor": null, "currency": null, "price_override_minor": null, "applies_to_item_ids": ["itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10"], "applies_to_event_ids": [], "unlocks_item_ids": [] } ], "unapplied_effects": [], "superseded_effect_ids": [], "rejected_codes": [], "totals": { "list_subtotal_minor": 5000, "discount_minor": 500, "subtotal_minor": 4500, "booking_fee_minor": 326, "platform_fee_minor": 326, "total_minor": 4826 }, "degraded": false, "degraded_providers": [] } ``` Note `customer_id: null` alongside `kind: "authenticated"`. That is not a contradiction: the buyer is authenticated by your key on the strength of the reference you supplied, and the engine simply has no customer record for them yet — records are created at purchase. Their first ever cart still prices correctly. ### Preview means preview `mode: "preview"` is a promise about what did **not** happen: * **No capacity is held.** A preview creates no hold, so nothing moves into `in_baskets` and nothing expires later. * **Nothing is reserved.** No code use is spent, no limit is consumed. * **No activity is emitted.** A preview is invisible on your feed, by design — a listing page that quotes on every render must not flood a reconciliation sweep. * **It takes no `Idempotency-Key`.** There is nothing to make idempotent. **A preview can drift, and it is never what the buyer is held to.** Between the preview and the checkout, prices can change, a code can run out, a member benefit can start or stop applying, and availability can move. The quote that matters is the one taken when the checkout session is created and re-taken whenever its cart is updated. **That quote becomes contractual only once payment starts** — after which neither the cart nor its price can change. Show a preview as an estimate, and re-read the session's own quote before you show a buyer what they are about to pay. See [Checkout](/docs/guides/checkout/sessions). ### Identity: a reference, or anonymous The `customer` object names who is asking, and your API key is what attests it. **Supply exactly one of `id` or `external_ref`** — sending both, or an empty object, is a `400`. * `{"id": "cus_…"}` — an existing customer of yours. An unknown id is `invalid_reference`. * `{"external_ref": "member-8814"}` — your own identifier, as shown above. * Omit `customer` entirely and the subject is `{"kind": "anonymous"}`. Anonymous carts still quote, and still see teasers. **Email is never a credential.** There is deliberately no email field on a quote request. Anyone can type an address; entitlements that cost you money are granted against what your key attests, not against what a buyer claims. A presented code is different: it is bearer evidence, so it goes in `codes`. ### Request limits * `line_items`: 1 to 50 entries. **Each `item_id` may appear at most once** — a repeat is a `400`. Use `quantity` instead. * `quantity`: 1 to 100 per line. * `codes`: up to 10. ### `rejected_codes` A code you sent that did not become an effect is never silently dropped. It comes back with a reason you can show a buyer. Only codes you actually presented can appear here. | `reason` | What to tell them | | ---------------------------- | ---------------------------------------------------------------------------------------- | | `not_found` | "We don't recognise that code." Codes are matched case-insensitively. | | `inactive` | The code exists but has been switched off. | | `not_yet_valid` | Its window has not opened yet. | | `expired` | Its window has closed. | | `not_applicable` | It covers none of the items in this cart — or it is an unlock naming nothing gated here. | | `currency_mismatch` | The code is priced in a different currency. The engine performs no conversion. | | `max_uses_reached` | Every use is gone. | | `per_customer_limit_reached` | This buyer has used it as often as they may. | A rejected code is a normal `200`. ### `degraded` Entitlement sources fail **open**. A source that errors or times out contributes nothing, and the quote still returns with `degraded: true` and the offending kinds in `degraded_providers`. A buyer is never blocked from purchasing because a benefit lookup was slow — they may simply not see that benefit on this render. Treat `degraded: true` as "do not cache this quote, and do not conclude the buyer has no benefits". Committing money, by contrast, fails **closed**: a consumable with no way to commit is refused at issuance rather than given away. ## What emits on the activity stream **A preview emits nothing.** Neither does a rejected code, or a degraded source — those are internal diagnostics, not facts about your business. The pricing facts that do emit: * `discount_code.created`, `discount_code.updated` — configuring a code, today. * `checkout_session.created` and `checkout_session.updated` carry the binding quote in their snapshot. * `price_effect.committed`, `price_effect.refused` and `discount_code.redeemed` record the moment a consumable is actually spent or given back. They arrive with [orders & issuance](/docs/guides/orders). ## Stable error codes | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | invalid_request | 400 | invalid_request_error | The request body or query failed validation. `param` names the field. | Fix the named field and send the request again. | | invalid_reference | 400 | invalid_request_error | The request referenced an id that does not exist under this organizer — an `event_id`, a `quota_id`, an `item_id`, a `plan_id` (when creating a membership benefit), or a customer named by `id` or `external_ref` in a transfer. | Check the id, and check the `Ticketing-Organizer` header names the tenant that owns it. | | currency_mismatch | 400 | invalid_request_error | A cart, a discount code or a fee schedule mixed currencies. Carts are single-currency and the engine performs no FX. | Keep every line, code and schedule in one currency. | | item_not_sellable | 422 | invalid_request_error | The item exists but cannot be sold right now — inactive, outside its sale window, gated with no applied unlock, or approval-gated outside an approved invitation. A comp ignores the sale window, gating and approval and is refused only for an inactive item or an item with no event. | Quote the cart first: the line's `blocked_reason` tells you which of those it is. | | fee_schedule_not_found | 422 | invalid_request_error | No active fee schedule matches this position's currency. Pricing fails loud rather than assuming a zero fee. | Lissen sets fee schedules; partners cannot create one. Contact Lissen to set a schedule for the organizer in that currency, then quote again to confirm before selling. | | fee_schedule_ambiguous | 422 | invalid_request_error | More than one active schedule matched at the same scope. | Contact Lissen: only Lissen can deactivate the extra schedule. Quote again afterwards to confirm the sale prices. | | fee_exceeds_charge | 422 | invalid_request_error | An absorbed fee would have swallowed the whole post-discount charge. The invariant is checked against what is actually charged, so a discount that halves a line can trip a flat fee that was fine at list price. | Lissen owns the schedule, so contact Lissen to adjust its flat component or mode. Until then, quote the cart without the discount or at a higher price and confirm the quote succeeds. | | code_not_reservable | 422 | invalid_request_error | A presented discount code could not be reserved even after the cart was re-priced against what the reservation saw — its last use went to someone else. | Re-quote the cart; the code will come back under `rejected_codes` with a reason you can show the buyer. | `item_not_sellable` is the one to design around: quote first, and the line's `blocked_reason` tells you which of `gated`, `inactive`, `sale_not_started` or `sale_ended` it is. `code_not_reservable` is raised at checkout, not here. ## Gotchas * **Read `unit_price_minor`, not `unit_list_price_minor`.** The list price is there so you can strike it through; the charged price is the other one. * **`total_minor` already includes the booking fee and excludes the platform fee.** Adding `platform_fee_minor` to `total_minor` double-counts on a `passed_on` schedule. * **A quote with `sellable: false` lines still returns `200`.** It priced the cart correctly; it is telling you one line cannot be bought. Check the flag before you render a buy button. * **Do not treat a preview as a price you have promised.** Re-read the session quote before the buyer commits. * **Do not re-derive the price yourself.** The stacking order has corners — best-of on the remainder, waivers on absorbed schedules, comps carrying no fee — and a client that recomputes will disagree with the charge sooner or later. Quote, then render what came back. ## Registering an external provider An organizer registers an external provider with `POST /v1/entitlement_providers`: a `quote_url`, an optional `commit_url` for effects that are used up when an order is issued, and a `signing_secret` of at least 32 characters. Registering is your consent to let that service reduce your own proceeds. The secret is write-only: it is stored encrypted and never returned, and reads show `signing_secret_configured` instead. Replace it, edit the URLs, or switch the provider off and on with `PATCH /v1/entitlement_providers/{id}`; `GET /v1/entitlement_providers` lists the external providers you have registered (your own discount codes and memberships are not listed). Only one active provider may use a given `quote_url`. Registration records the callback details and emits `entitlement_provider.registered`, `entitlement_provider.updated` or `entitlement_provider.deregistered`. The dashboard's Memberships page has the same section. ### The quote call At every quote and checkout of a cart, the engine calls each of your active providers with a `POST` to its `quote_url`: ```json { "provider_id": "ep_…", "organizer_id": "org_…", "mode": "checkout_quote", "currency": "GBP", "subject": { "kind": "authenticated", "customer_id": "cus_…", "external_ref": "member-8814" }, "line_items": [ { "item_id": "itm_…", "event_id": "evt_…", "description": "General admission", "quantity": 2, "unit_list_price_minor": 2000, "currency": "GBP", "gated": false } ], "presented_codes": [], "now": "2026-11-07T12:00:00.000Z" } ``` The request carries a `Ticketing-Signature` header made with the provider's signing secret, in the same scheme as [webhook signatures](/docs/guides/activities/webhook-signatures): verify the raw bytes before you parse them. Answer `200` with the price effects you give, each naming your `provider_id` and only items and events of the cart: ```json { "effects": [ { "id": "vip-10", "provider_kind": "external", "provider_id": "ep_…", "type": "percent_off", "state": "applied", "percent_bps": 1000, "…": "…" } ] } ``` Give an effect that comes from the buyer's membership the provenance kind `membership` (`"source": { "kind": "membership", … }`): a checkout's own offer is then an alternative to it, the lower price winning, as it is to your own memberships, instead of applying on top of it. A checkout asks you once when it is created or its cart changes, before it reserves the tickets. The engine waits about 1.5 seconds. Any other status, a late answer, or an answer that names another provider, another cart's items or a consumable effect is discarded whole, and the cart is priced without you: the quote lists `external` among its degraded providers. Consumable effects need commit callbacks, which the engine does not make yet. --- # Check-in & door passes URL: /docs/guides/check-in Scan admissions live, keep the door moving offline, and reconcile the result later. The door pass is a bearer credential for a scanner. It is scoped to one organizer and one or more events, expires automatically, and can be revoked. Creation returns the token from `POST /v1/door_passes`; show it as text or a QR code and store it only on the scanner. Create one with an organizer API key (the organizer header is required for keyed callers): ```http POST /v1/door_passes Ticketing-Organizer: org_… Content-Type: application/json {"name":"Front door","event_ids":["evt_…"],"expires_at":null} ``` All event ids must belong to the organizer. With no expiry, the pass expires six hours after the latest event end (or 30 hours after an event with no end). `POST /v1/door_passes/{id}/revoke` stops a pass on its next request. The first authenticated request by a pass sets its enrollment time and emits the enrollment activity; there is no separate enrollment call. For a door opening that your client may retry, send an `Idempotency-Key` on `POST /v1/door_passes`. Matching retries return the same pass and token; a changed request or another caller with that key conflicts. Retries can replay for one hour. Without a key, each call creates an independent pass. The engine stores the authenticator hash and seals the replay body using its existing encryption key, pruning expired encrypted responses on later keyed writes. ## Live scans Send the pass as `Authorization: Bearer dp_test_…` or `dp_live_…`: ```http POST /v1/checkins Content-Type: application/json {"client_scan_id":"device-42-0001","code":"ADMISSION-CODE","scanned_at":"2026-09-04T18:30:00Z","manual":false} ``` An admitted response is a `checkin` object with the event, position, buyer name, order id, client scan id, client timestamp, receipt timestamp, and `outcome: "admitted"`. `client_scan_id` is idempotent per pass: retrying the same scan returns the original result. Rejected scans are recorded as well. Check-in endpoints reject `Idempotency-Key` with a 400 because `client_scan_id` is the check-in replay key. The stable rejection codes are `already_checked_in`, `position_revoked`, `admission_disabled`, `code_not_found`, and `wrong_event`. Each response includes a `detail` object: the duplicate includes the prior check-in and door, a revoked admission includes its revocation time and reason, and a wrong-event response names the position's event. `checkin_not_admitted` applies when a void request targets anything other than an admitted check-in. A revoked or expired pass is an authentication failure; a pass presented to an event it does not cover is `wrong_event`. The duplicate detail is stable across retries and contains `prior_checkin_id`, `scanned_at`, `door_pass_id`, and `door_pass_name`. `code_not_found` has an empty detail object; `position_revoked` has `revoked_at` and `revocation_reason`; `admission_disabled` has `event_id` and `admission_disabled_at`; `wrong_event` has `event_id`. The organizer's keyed API can use `GET /v1/checkins` (with event, outcome, door pass, and position filters) and `GET /v1/checkins/{id}` for post-show reporting. Door passes cannot read that reporting surface. ## When the event is cancelled An event whose cancellation policy disables admission admits nobody from the moment it was cancelled: a live scan of any of its tickets is rejected with `admission_disabled`, and its manifest comes back empty. The tickets are not revoked and no money moves; refunding is a separate switch of the policy. A scanner learns of the cancellation on its next live scan or manifest refresh. One that is offline keeps its last manifest and cannot be told, so its scans are judged by when they were taken when they sync: a scan taken before the cancellation is still recorded as admitted, and one taken after it is recorded as rejected and reported in the sync response as `revoked_since_manifest`. ## Who the scan admits A scan proves that a live admission code was presented, not who presented it. The code belongs to the position, and a [transfer](/docs/guides/orders#transferring-a-ticket) keeps it: when a ticket moves to another holder, its QR does not change, so a copy the buyer kept or forwarded still scans, once. The manifest and the check-in's `position.buyer_name` name the order's buyer, not the current holder; the customer the admission credits is `credited_customer_id` (see [Attendance](#attendance)). Once a position is admitted, ordinary transfers of it stop; an organizer can still correct its holder, and that correction leaves the check-in and its attendance credit untouched. ## Attendance An admitted check-in credits one customer with attendance: the holder of the position when the scan happened. It is recorded on the check-in as `credited_customer_id` and is evidence, not a live join: moving the ticket or correcting its holder afterwards does not change who the admission credited. * A live scan credits the holder at the moment of the scan. * An offline scan credits the holder at its own `scanned_at`, read from the position's [holder history](/docs/guides/orders#transferring-a-ticket), not the holder when the scanner synced. The engine cannot know about a transfer it has not been told of, so a scan is only credited from what the history says. When an earlier scan takes over an admission, the credit follows the earlier scan. * Rejected, superseded and voided scans credit nobody going forward; a superseded or voided check-in keeps the credit it had as evidence but supports nothing. * Alex buys two tickets and passes one to Sam before the door: Alex's admitted ticket credits Alex, Sam's credits Sam. If Alex scans Sam's retained QR, Sam is still credited as the assigned holder. The scan does not prove who stood at the door; correct the credit if you know better. * An email-only recipient is a customer like any other and is credited without accepting anything. When a verified recipient later [claims](/docs/guides/orders#transferring-a-ticket) what was sent to their address, an admission credited to the anonymous customer moves to them (a `claim` credit change). A **visit** is one customer's attendance at one event, derived from the event's admitted, non-voided check-ins that credit the customer. It counts once however many tickets or scans support it: voiding one of two admissions keeps it, voiding the last removes it. Buying a ticket is not attendance, and neither is the reverse: attendance is a fact of admission. Refunding and revoking a ticket after it was admitted, or losing a dispute over it, does not remove the visit; only the causes listed below do. `GET /v1/attendances` reads visits: `customer_id` for the events a customer attended, `event_id` for the customers credited with an event, or both. Each visit has `customer_id`, `event_id`, `first_admitted_at` and the supporting `checkin_ids`. Page by passing the last visit's `event_id` (listing a customer's events) or `customer_id` (listing an event's attendees) as `starting_after`. `GET /v1/checkins` also filters by `credited_customer_id`. The feed publishes each change as `attendance.recorded` or `attendance.removed` (with the `cause`: `admitted`, `voided`, `superseded`, `credit_corrected` or `holder_claimed`), so a consumer such as a membership evaluation can react to the change instead of polling. To change who an admission credits, an organizer (API key, owner or Lissen staff) calls `POST /v1/checkins/{id}/credit_correction` with a customer (`id`, `external_ref` or `email`) and a reason, and an `Idempotency-Key`. Only the credit moves: the scan, door and outcome are unchanged. The previous and new customer, the actor and the reason are kept in an append-only history and published as `checkin.credit_changed`, followed by `attendance.removed` and `attendance.recorded` for the visits that moved. Only an admitted check-in can be corrected (`checkin_not_admitted`), and crediting the customer it already credits is `credit_unchanged`. Attendance for scans admitted before this feature was backfilled from the holder history at the scan's time. ## Manifest mode `GET /v1/events/{event_id}/manifest` returns the live positions for an event. Each entry contains a lower-case SHA-256 `code_hash`, `position_id`, `description`, `checked_in_at`, `buyer_name`, masked email, and `order_id`. The manifest is a snapshot: it is allowed to age so the door still works when the network disappears. Respect `refresh_after` and refresh when connected. At enrollment, download it before opening the door. When connected, re-poll after the `refresh_after` hint and show the manifest age to the operator once that hint has passed. Staleness is a warning, not a hard refusal: the pass's expiry and revocation remain the hard device bounds. The response includes an `ETag`, calculated from the canonical content `{event_id, entries}` (not its timestamps). Send `If-None-Match` on the next request; `304` means the cached manifest is still current. A manifest download appears in the activity feed without exposing its entries. ## Offline sync Queue scans locally and send at most 500 in their original order: ```json {"scans":[{"client_scan_id":"device-42-0001","code_hash":"…","scanned_at":"2026-09-04T18:30:00Z","manual":true}]} ``` The request is validated as a whole before processing. A malformed scan makes the whole request return 400 with no result array; valid scans before it are not recorded. Once the request shape is valid, the server processes each scan independently and returns one result for each. Possible outcomes are `recorded`, `already_recorded`, `superseded`, `revoked_since_manifest`, `unknown_code`, and `wrong_event`, with a `checkin_id` when the server recorded a row. When two offline devices saw the same position, the earliest `scanned_at` wins. A later scan is `superseded`; if an older scan arrives later it becomes the admission and supersedes the previous winner. A hash-only scan must be marked `manual` so an operator has confirmed the manifest entry. ## Voids and the door guarantee `POST /v1/checkins/{checkin_id}/void` corrects an admitted record. It does not model exit or re-entry. Once voided, the position may be scanned again. The door always works: use live lookup when connected, use the manifest without a signal, then sync the recorded scans when connectivity returns. For the complete request and response shapes, use the generated client and the published OpenAPI document. Keep the token private: it is a credential, not a ticket identifier. --- # The buyer plane URL: /docs/guides/checkout/buyer-plane The session-scoped client secret, the calls it authorizes, and how a browser pays with it Your API key can sell and read on behalf of your whole organizer. It must never reach a browser. So a checkout session mints a second credential — a **client secret** — scoped to that one session, expiring with it, and deliberately the weakest credential the engine issues. That credential is what makes a headless checkout possible: your own frontend renders the cart and the payment form, talking to a small buyer-safe subset of the API, while your server keeps the key. ## The credential `client_secret` is returned by `POST /v1/checkout_sessions`, and by nothing else: not a retrieve, not a list, not an activity payload — there is no field for it to occupy on any of those. Retrying that create with the same `Idempotency-Key` is the one exception, and it is deliberate: a replay returns the identical response, this field included, so a create whose answer you lost to a timeout is recoverable by the retry you were going to make anyway. **A closed session stops authorizing changes.** Once a session reaches a terminal state that same `Idempotency-Key` answers `409` `checkout_session_not_open` instead of a credential that would no longer authorize changes. An existing secret may still retrieve the outcome (or finalize, which then reads it), or retry zero-total completion, until one hour after session expiry. There is no other way to recover a client secret — create a new session. It looks like this — the session id, then the secret: ``` cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33_secret_9Qb1n… ``` Send it as a bearer token, exactly like an API key: ```bash -H "Authorization: Bearer cs_0199c4e6-..._secret_9Qb1n..." ``` ### What is different about it * **No organizer header.** A buyer's browser holds nothing that names a tenant, so the engine derives the organizer from the session itself. Sending `Ticketing-Organizer` is unnecessary here. * **No `Idempotency-Key`.** The buyer plane refuses the header with a `400` rather than ignoring it — a cart edit is not a duplicate purchase, and retry semantics belong to the keyed plane. * **One session, and only one.** Pointing a valid secret at a different session id returns the same `404` as a session that does not exist. The surface cannot be used to discover what else you have. * **Closing ends write authority.** A closed session permits outcome retrieval — the retrieve, and a finalize call, which then only reads — until one hour after its expiry. In that same window a completed session also accepts a retried zero-total `/complete` (which reads the same order) and an `/identity` attestation (a buyer who paid first and verified after; the sale itself does not move). Other writes and payment credentials return `401 invalid_client_secret`. * **Every authentication failure is one answer.** Missing, malformed, wrong, used outside a closed session’s permitted read/retry window, or an API key presented by mistake: all `401` `invalid_client_secret`, with no `param` and nothing to distinguish them. A *valid* secret aimed at a session it does not own is the `404` above, not a `401` — neither answer tells the caller anything it did not already know. The reverse also holds: a client secret presented to a keyed endpoint is `401 invalid_api_key`. The two planes never authenticate on each other's terms. ## Retrieve the session `GET /v1/buyer/checkout_sessions/{id}` ```bash curl https://tickets.lissen.com/api/v1/buyer/checkout_sessions/{id} \ -H "Authorization: Bearer cs_0199c4e6-..._secret_9Qb1n..." ``` ```json { "id": "cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33", "status": "open", "currency": "GBP", "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2, "unit_list_price_minor": 1000 } ], "quote": { "mode": "checkout_quote", "totals": { "total_minor": 2080 } }, "total_minor": 2080, "booking_fee_minor": 280, "platform_fee_minor": 280, "payment_method_types": ["card", "bacs_debit"], "return_url": "https://acme-events.com/orders/thanks", "expires_at": "2026-11-02T14:15:11Z" } ``` This is a **different shape**, not a filtered copy of the partner one. Your `metadata`, the payment references, the hold id and the session's own credential are absent because the buyer projection has no fields for them — so a field added to the partner wire tomorrow cannot leak here by omission. It carries `expires_at`, which is what a countdown on your page should render, and the full quote, which is what your order summary should render. Both are the same values your server sees. ## Update the cart `PATCH /v1/buyer/checkout_sessions/{id}` ```bash curl -X PATCH https://tickets.lissen.com/api/v1/buyer/checkout_sessions/{id} \ -H "Authorization: Bearer cs_0199c4e6-..._secret_9Qb1n..." \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 3 } ] }' ``` This is the **same universal update** the keyed plane runs — same locks, same re-quote, same keep-or-refuse growth, same errors. See [checkout sessions](/docs/guides/checkout/sessions) for what it does; none of that changes because a buyer asked for it. Three fields: `line_items`, `codes` and `customer` — the last holding only `email` and `name`. A buyer can change the cart, present a discount code and say who they are. A buyer can never touch your `metadata`, your `return_url` or the customer identity you set. ## Refresh the quote `POST /v1/buyer/checkout_sessions/{id}/quote` ```bash curl -X POST https://tickets.lissen.com/api/v1/buyer/checkout_sessions/{id}/quote \ -H "Authorization: Bearer cs_0199c4e6-..._secret_9Qb1n..." ``` The universal update with no cart change: it re-prices the cart exactly as it stands and replaces the stored quote with the result. Use it when the price can have moved without the cart moving — a code that just expired, a membership benefit that just became applicable, a door drawing near enough to withdraw a slow payment method. The refreshed quote is the one the payment is synced to. It returns the same buyer session shape as a retrieve. ## Fetch payment credentials `GET /v1/buyer/checkout_sessions/{id}/payment_credentials` ```bash curl https://tickets.lissen.com/api/v1/buyer/checkout_sessions/{id}/payment_credentials \ -H "Authorization: Bearer cs_0199c4e6-..._secret_9Qb1n..." ``` ```json { "payment_intent_client_secret": "pi_3QxAcme...._secret_...", "connected_account_id": "acct_1QxAcmeTestAccount", "publishable_key": "pk_test_...", "payment_method_types": ["card", "bacs_debit"] } ``` The session must carry the buyer's email first — from your create, or from the buyer's own update — or this answers `422 buyer_identity_required`. The confirmation and the tickets go to that address, so no money is taken without it. Fetch this **immediately before confirming**, not when the page loads. Every call re-syncs the payment's amount to the session's current quote, which is what guarantees a buyer cannot confirm a total that has since been superseded. It also prepares the payment if the session does not have one yet. Despite being a `GET`, this call **changes state** — it is the one read on either plane that does. It can prepare a payment, it re-syncs an existing one, and it can therefore write `checkout_session.updated` to your activity feed. Treat it as the action it is, and do not put it on a polling loop. * `payment_intent_client_secret` confirms the payment in the browser. * `connected_account_id` is your Stripe account. Charges run **directly** on it, so Stripe.js must be initialised with it or the secret will not resolve. It is `null` when your ticket payments are collected on the Lissen platform account (a setting only Lissen makes): initialise Stripe.js without a connected account. * `publishable_key` is the platform key for this organizer's mode — the one credential here that is meant to be public. * `payment_method_types` is exactly what the payment form will offer. It can fail in four ways worth handling separately: | Status | Code | What to do | | ------ | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | | `422` | `connect_account_not_onboardable` | The organizer's Stripe account cannot take payments yet. Nothing the buyer can fix — this is a setup problem on your side. | | `503` | `connect_provider_unavailable` | Stripe was unreachable. Retry with backoff. | | `422` | `payment_intent_unavailable` | No usable payment came back. **Call this endpoint again** — it is the recovery path, and retrieving the session is not. | | `409` | `checkout_session_not_open` | The session is over. Send the buyer back to start again. | ## Finalize the payment `POST /v1/buyer/checkout_sessions/{id}/finalize` ```bash curl -X POST https://tickets.lissen.com/api/v1/buyer/checkout_sessions/{id}/finalize \ -H "Authorization: Bearer cs_0199c4e6-..._secret_9Qb1n..." ``` Call this the moment Stripe.js tells you the payment went through — the confirmation resolved with the payment `succeeded` or `processing`. The engine asks Stripe about the session's payment itself and, if the money has moved, completes the session there and then: the order and the tickets exist when it answers, rather than when Stripe's webhook reaches the engine a few seconds later. It takes no body, and nothing about the request is trusted — the status is only ever Stripe's own answer to the engine — so it is safe to call on any signal and to repeat. It answers the buyer session, exactly as a retrieve does: | Answer | What it means | | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `completed`, with `order_id` | The tickets are issued. Show your success screen. | | `payment_processing` | The money moved but the session cannot complete on this call; the webhook finishes it, which can still be `payment_refused` with an automatic refund. Keep polling. | | `open` or `payment_pending` | Stripe does not yet report the payment as started. Keep polling. | | `expired`, `payment_refused` | The session is over, as a retrieve would say. | A completed session answers at once, without asking Stripe. Finalize never refunds anything and is never the only path: without it, the webhook settles the session all the same and your poll sees it a little later. ## Paying, with the Payment Element The engine deliberately does not use Stripe's own hosted checkout page. What it prepares is a payment you render with Stripe's **Payment Element** inside your own page, so the cart, the copy and the layout stay yours. **Create the session server-side** with your API key, and pass the `client_secret` to the browser. **Render your cart** from the buyer retrieve, and let the buyer edit it through the buyer update. Show `expires_at` as a countdown. **Fetch payment credentials** when the buyer commits to paying, and load Stripe.js against the connected account: ```js const stripe = await loadStripe( credentials.publishable_key, credentials.connected_account_id ? { stripeAccount: credentials.connected_account_id } : undefined, ); const elements = stripe.elements({ clientSecret: credentials.payment_intent_client_secret, }); elements.create("payment").mount("#payment-element"); ``` **Confirm**, then call [finalize](#finalize-the-payment) once Stripe.js reports the payment `succeeded` or `processing`, and poll the buyer retrieve until `status` is `completed`, `expired` or `payment_refused`. Keep polling through `payment_pending` and `payment_processing` — those are stages of a payment resolving, not answers. The engine sets the payment method types itself, so the Element renders exactly the set the session offers and nothing else. On `completed` the buyer session carries `order_id`: the tickets exist, and the confirmation is on its way to `buyer_email`. Your success screen summarises — event, what was bought, what was paid — and says the tickets are in the email; see [orders and positions](/docs/guides/orders). On `payment_refused` the capacity was gone by the time the money arrived, or the event's [checkout limits](/docs/guides/checkout/sessions#event-checkout-limits) no longer allowed the purchase: nothing was issued and the refund is already automatic. Say so plainly and send the buyer back to the event. Once payment starts, the cart is frozen: the buyer update and the quote refresh both begin refusing with `checkout_session_locked`, and the session reads `payment_pending`, then `payment_processing`. That is the expected end of a buyer's editing session, not an error to retry. If you would rather not build this at all, use the Lissen-served, organizer-branded [hosted checkout](/docs/guides/checkout/hosted-checkout). It is a plain client of these same endpoints. ## Pay with Lissen Four further buyer-plane operations exist and are **not part of a headless integration**. They belong to Lissen's own drop-in checkout component, which is the only thing that calls them: `POST /v1/buyer/checkout_sessions/{id}/identity` `DELETE /v1/buyer/checkout_sessions/{id}/identity` `POST /v1/buyer/checkout_sessions/{id}/enrolment` `POST /v1/buyer/checkout_sessions/{id}/wallet/setup` `POST /v1/buyer/checkout_sessions/{id}/wallet/pay` They are how the component takes every payment — a saved card, a new card, Apple Pay or Google Pay — whether or not the buyer is a Lissen buyer: a card is entered on a platform SetupIntent, copied onto your connected account and charged there, so the charge stays direct and your fee schedule, ledger and settlement are unchanged. The identity side — recognition, the one-time code, the consent to save a card — is Lissen's, and the engine only ever sees a five-minute, single-use token bound to one checkout session. Attesting a buyer sets the session's subject, so a member price or an entitlement keyed to that person applies from that moment, and withdrawing the attestation (the buyer takes the chip off, or signs out) returns the subject to anonymous in the same way, so a stale sign-in never decides whose wallet a card lands in. A buyer nobody has attested pays as a guest; if they asked to be remembered, the code comes on the success screen, the card they typed joins their wallet then, and the customer dossier is claimed for them (`customer.updated`). An Apple Pay or Google Pay method is charged the same way but is not promised as a saved, reusable card. The component confirms the payment either in the browser with Stripe.js or, by sending `confirm: "server"` to the pay call, by having the engine confirm it — the bank's 3-D Secure page is still drawn in the browser when it asks, and a declined card is answered as `payment_declined` in the card's own words. The wallet setup answer names your connected account (`connected_account_id`), so the component can make the Radar session that confirmation carries before the buyer presses Pay. Nothing here changes a headless integration: the payment-credentials route and the Payment Element above are unaffected, and the buyer session carries one extra field — `attested_buyer`, which is `null` until somebody is attested. If you want Pay with Lissen on your own page, mount the component rather than calling these; they are documented because they are in the contract, not because they are an integration surface. Ask us before building against them. ## Where your checkout may be embedded `PATCH /v1/organizer` The component is framed by your site, so your organizer holds the list of origins allowed to frame it. Set it in your admin under **Selling → Embedding**, or send it here. Exact `https` origins — scheme, host and, if you use one, port. No path, no trailing slash, no wildcard, and at most twenty: ```bash curl -X PATCH https://tickets.lissen.com/api/v1/organizer \ -H "Authorization: Bearer tk_live_..." \ -H "Ticketing-Organizer: org_..." \ -H "Content-Type: application/json" \ -d '{ "embed_origins": ["https://acme-events.com", "https://shop.acme-events.com"] }' ``` The list is replaced wholesale, so send the whole set you want each time. Empty — the default — means the component cannot be framed anywhere. Saving the list also attempts to register its domains with Stripe for Apple Pay and Google Pay. The **Embedding** page shows each wallet's status for each origin and the hosted checkout. Registration can fail without undoing the saved origins: use **Register and check** to retry, or **Check again** to refresh the status. A saved origin alone does not mean its wallet buttons are ready. `GET /v1/public/organizers/{slug}/embed` The component's own page reads that list back before it can decide who may frame it, which is before any session exists — so this one operation takes no credential at all. It answers the same list, caches for a minute, and discloses nothing an embedding browser would not learn from the page's own `frame-ancestors` header. ## Payment-method gating `payment_method_types` is derived on every read, never stored, and three filters decide it in order. **1. Currency.** A bank debit is a national rail, and each settles exactly one currency: | Cart currency | Delayed method offered | | ------------- | ---------------------- | | `GBP` | `bacs_debit` | | `EUR` | `sepa_debit` | | `USD` | `us_bank_account` | **2. Your account's capabilities.** Only methods your connected account has actually been enabled for survive. If the engine cannot read your capabilities, it offers cards only — an unknown answer is not permission, and a method your account cannot accept renders a form the buyer cannot complete. The engine remembers your capabilities for up to five minutes, so a method Stripe has just enabled can take that long to appear. **3. The clock.** Delayed-notification methods can take around four business days to clear, so they are offered only when the cart's earliest door is beyond the clearing window — seven days today, an engine-wide setting. Cards are always offered. The third rule is why the set narrows on its own. A session opened three weeks before the show can offer BACS; the same cart re-quoted the day before the show cannot, and the payment is updated to match. That is the point: it closes the attend-on-Friday, payment-bounces-on-Monday hole. ## Errors | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | invalid_client_secret | 401 | authentication_error | The bearer is missing, malformed, wrong, or is used outside a closed session’s permitted operations/window. Outcome retrieval (including /finalize, which then only reads) and an already-completed zero-total /complete retry remain available until one hour after session expiry. Every authentication failure is this one answer with no distinguishing detail, so the endpoint cannot be used to probe which sessions exist. A VALID secret used with another session's id is different: that is a non-enumerating 404, identical to the answer for a session that never existed. | The buyer's session is over. Send them back to start a new checkout. If you are getting a 404 instead, check that the id in the path is the session the secret was issued for. | | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | payment_intent_unavailable | 422 | invalid_request_error | The session has no usable payment intent yet. Creation commits the cart, hold and reservations first and creates the intent immediately afterwards, so a create response can legitimately carry empty `psp_refs`. | Retry the payment-credentials endpoint; that is the call that prepares the intent. Retrieving the session does not prepare or recover payment. | The Pay with Lissen operations add their own, all of which mean "ask the component to start again" rather than anything you can retry blindly: | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | identity_token_rejected | 401 | invalid_request_error | The Lissen identity action token was not accepted. The reason is in the message: it was malformed or expired, addressed to another service, minted for another action, bound to a different checkout session, carried an unverified address, or had already been spent. Nothing on the session changed. | Ask the identity component for a fresh token for THIS session and try again. A token is single-use and lives five minutes. | | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | reverify_required | 403 | invalid_request_error | The attestation behind this session is older than ninety days, which is the horizon after which a saved card must not pay unattended. | Have the buyer verify their address with Lissen again, attest the session with the fresh token, and repeat the payment. | | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | payment_method_not_owned | 403 | invalid_request_error | The named payment method is not this buyer's. The same answer is given whether it belongs to somebody else or to nobody the engine knows. | Use a card from the buyer's own saved list, or enter a new one through the wallet setup call. | | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | payment_declined | 422 | invalid_request_error | The engine charged the card and the card refused it: on a pay call that asked for engine confirmation, or on a membership join that named a saved card. `message` is the card's reason, written for the buyer; `detail.decline_code` is the card network's code when there is one. Nothing started: a checkout session is still open, and a join created nothing. | Show the message where the buyer pays and let them choose another card or enter a new one. Do not retry the same card unchanged. | Everything else you will see here is the same code the keyed plane returns for the same situation — `insufficient_capacity` (`422`) on a growth that does not fit, `checkout_session_locked` (`409`) once payment has started, `checkout_session_conflict` (`409`) when two updates race, `capacity_locked` (`409`) under contention. Handle them the same way, and remember they are being rendered to a person: `insufficient_capacity` means the cart is unchanged and you should say so. ## What emits Buyer actions emit exactly the activities the keyed equivalents do — `checkout_session.updated`, and `hold.updated` when the footprint moved. The difference is the actor: a buyer is not an API key, so the activity records the engine acting for a named session rather than a principal that does not exist. ```json { "kind": "system", "id": "checkout_session:cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33" } ``` Filtering the feed on that actor id gives you every change a given buyer made. It also names the session's issuance when a finalize call completed it (`order.created`, `position.created`, `checkout_session.completed`); when the Stripe webhook completed it, those carry the `psp_webhook` actor instead. The order and its activities are the same either way, and emitted once. Retrieving a session emits nothing, so a browser polling one does not fill your feed. Fetching payment credentials is the exception noted above: it can write a `checkout_session.updated`, because it can change the payment. Finalize emits only when it changes the session — the issuance above, or a `checkout_session.updated` marking a payment in flight — and a repeat emits nothing. ## Gotchas * **Never ship an API key to a browser.** This credential exists so you do not have to. * **Capture `client_secret` from the create response**, or be prepared to replay the create with the same key. There is no other endpoint that will give it to you. * **Fetch payment credentials late.** Fetching at page load and confirming ten minutes later is how a buyer confirms a stale total — the engine re-syncs on that call precisely so you do not have to think about it. * **Initialise Stripe.js with `connected_account_id`.** Charges are direct; without it the payment secret will not resolve. When it is `null`, the payment is on the platform account and Stripe.js takes no account. * **Do not send `Ticketing-Organizer` or `Idempotency-Key`.** The first is pointless, the second is a `400`. * **A `404` here means "not your session"** — it is the same answer as "no such session", on purpose. For free admission, use [zero-total completion](/docs/guides/checkout/zero-total) instead of payment credentials. ### Test and live saved cards The wallet stores a separate platform Customer for each Lissen user and Stripe mode. Setup, pay, saved-card lookup and guest-card binding use the checkout organizer's mode. A card saved with a test organizer is available only in test mode. On the first live purchase the buyer enters a card once; with card-reuse consent, that card can be reused with live organizers. Test cards and saved payment methods are never transferred to the live Customer. --- # Drop-in checkout URL: /docs/guides/checkout/drop-in Embed Lissen's checkout component in your own page with one script and one mount The drop-in checkout is the same component the hosted page is, mounted inside your page instead of served as ours. You keep your catalogue, your cart page and your design; the component takes the payment. Everything inside it is ours: the cart summary, the contact step, Pay with Lissen, the card fields, the confirmation and the wait for the tickets to be issued. You write two lines and listen for what happens. ## Mount it Create a checkout session on your server, then hand the browser the session's client secret and your organizer slug: ```html
``` `mount` returns an instance with `on(event, handler)`, `update({ appearance })` and `destroy()`. `on` returns a function that removes that handler. | Option | Required | Meaning | | ------------ | -------- | ----------------------------------------- | | `session` | yes | The checkout session's client secret | | `organizer` | yes | The organizer slug the session belongs to | | `appearance` | no | Your own look; see below | | `locale` | no | A BCP-47 tag for copy and formatting | The component mounts an iframe on Lissen's origin. The client secret travels in that frame's URL fragment, so it is not part of the initial iframe request and never appears in a referrer or in any message. The component reads it inside the frame and presents it to the buyer API as a bearer credential — to Lissen's origin and to nowhere else. Nothing you subscribe to carries it either. ### Load it before the session exists (optional) Mounting waits for the session: the frame only starts loading once your server has answered. If your page knows the checkout is coming — the buyer has opened your ticket picker — it can make the frame first, and hand it the session when there is one: ```js const preloaded = window.LissenCheckout.preload("#checkout", { organizer: "your-organizer-slug", }); // Later, once your server has created the session: const checkout = preloaded.start({ session: clientSecret }); checkout.on("paid", ({ order_id }) => { /* … */ }); ``` `preload` takes what describes the checkout — `organizer`, `appearance`, `locale` and, in host mode, `identity` and `contact` — and shows nothing until it is started. `start` takes what belongs to the session — `session` and, in host mode, `attestation` and `checkoutToken` — and returns the same instance `mount` does; the client secret still travels only in the frame's URL fragment. A preloaded checkout starts once — a new session is a new checkout — and `preloaded.destroy()` removes one you no longer need. Make it where it will be shown: moving an iframe in the page reloads it. It may be out of sight until then. Nothing requires it: `mount` remains the whole integration. ### Register the origins that may embed you The component refuses to be framed by a page it does not expect. Add every origin your checkout appears on — including staging and preview hosts — to your organizer's embed origins: in your admin under **Selling → Embedding**, or with `PATCH /v1/organizer`. Until an origin is registered the frame stays blank and the browser reports a framing refusal in its console. An origin is a scheme, a host and a port: `https://events.example.com`, not `https://events.example.com/tickets`. This call replaces the whole set and takes no `Idempotency-Key` (one is refused with `invalid_request`): repeating it is safe without one. ## Events | Event | Payload | When | | --------- | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ready` | — | The component is mounted and listening | | `session` | `{ expires_at }` | The cart is loaded; the hold ends at this RFC 3339 instant, for a countdown of your own | | `contact` | `{ email }` | The buyer's address has been captured | | `paying` | — | The buyer pressed pay; the component is confirming, then issuing. A `failed` that follows means it is back on the form | | `focus` | `{ top, bottom }` | A field took focus, at these CSS pixels from the top of the component. Scroll it clear of the keyboard if your page is the scroll container; Safari does this itself, Chrome on iOS does not | | `paid` | `{ order_id, payment_intent_id, status }` | The order exists and payment is settled, including zero-total completion | | `failed` | `{ message, code }` | A payment or a step did not go through | | `expired` | — | The cart's hold ended | | `closed` | — | The instance was destroyed | `failed` is informational. The component already shows the buyer what happened and offers them the retry, so you do not need to render the message; use it for your own logging. Wait for `paid` before treating the purchase as done. The order confirmation and admission details are delivered by your notification configuration, as they are for every other checkout. ## Appearance The organizer's stored branding is the default: mount the component with no appearance at all and it already looks like your checkout. Anything you pass overrides it, part by part. ```js window.LissenCheckout.mount("#checkout", { session: clientSecret, organizer: "your-organizer-slug", appearance: { colors: { background: "#081218", surface: "#1a2b30", text: "#ddd5c0", muted: "#8fa0a2", accent: "#e3765d", onAccent: "#081218", danger: "#c83b35", border: "#234247", }, fontFamily: "Josefin Sans, system-ui, sans-serif", radius: 20, spacing: 8, buttons: { primary: { fontWeight: 700, padding: "14px 22px" } }, input: { border: "#3e6e74", placeholder: "#8fa0a2" }, stripe: { theme: "night" }, }, }); ``` ### Reference Every value is a plain CSS value. A number is read as pixels. | Key | Applies to | | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `colors.background` | The component's backdrop | | `colors.surface` | Panels and fields on that backdrop | | `colors.text` | Body text | | `colors.muted` | Secondary text and hints | | `colors.accent` | Primary actions and focus | | `colors.onAccent` | Text on the accent; derived for contrast when unset | | `colors.danger` | Errors | | `colors.border` | Rules and field borders | | `fontFamily` | The whole component, and the card fields | | `fontSize` | Base size; everything else is relative | | `radius`, `radiusSmall`, `radiusLarge` | Corners; the two variants derive from `radius` | | `spacing` | One step of the spacing scale; every gap is a multiple | | `borderWidth`, `borderStyle` | Rules and field borders | | `shadows.card`, `shadows.focus` | Raised surfaces and focus rings | | `buttons.primary`, `buttons.secondary` | `background`, `text`, `border`, `radius`, `padding`, `fontWeight`, `shadow` | | `input` | `background`, `text`, `placeholder`, `border`, `radius`, `padding`, `focusBorder`, `focusShadow` | | `parts.cart`, `parts.contact`, `parts.payment`, `parts.terminal` | `background`, `text`, `border`, `radius`, `padding`, `gap`, `shadow` for one part only | | `stripe.theme`, `stripe.labels` | The card fields' base theme and label placement | | `stripe.background` | An opaque hex colour Stripe is told sits under the card fields. Stripe's colour variables refuse translucent values, so give this when `colors.surface` or `input.background` is one; the translucent value still paints the fields | Change it live without remounting: ```js checkout.update({ appearance: { colors: { accent: "#7c3aed" } } }); ``` A value that is not a single CSS value is ignored rather than applied — a declaration cannot be smuggled through a colour. ### What does not theme Very little. The chip that shows a buyer Lissen recognised wears the Lissen app icon's colours, and the Lissen mark is the Lissen mark; those are how a buyer recognises their own wallet at every organizer. The rest of the identity pieces — the email field, the six-slot code, the saved cards, the "Pay with Lissen" button, the "Remember me with Lissen" tick — are drawn from your appearance like everything else on the page. Apple Pay and Google Pay are drawn by Stripe in their own brands' dress, as their guidelines require, at the standard control height and your input radius. The logo-only wallet buttons share a row when both are available; a single available wallet fills the width. Each wallet has its own column, without an overflow menu. The Pay with Lissen button remains on its own full-width row above them; Link in Bio gives it the same radius as the card fields. ## Buyers who already have Lissen A buyer whose browser Lissen recognises skips the contact form: the component shows their saved card and one button. A buyer who types an address Lissen already knows is offered a code and then their saved card. A buyer who is neither pays exactly as before, and may ask to be remembered for next time. With the saved card selected, the card fields show its masked number, expiry and a masked security code. No new card details are needed to pay. Pressing one of those values or focusing a card field switches to entering another card; the saved-card chip lets the buyer select their saved card again. None of this is yours to build or to configure. It happens inside the component, on every organizer, and a buyer can always decline it and pay as a guest. ## The hosted page [Hosted checkout](/docs/guides/checkout/hosted-checkout) is the same component rendered full-page with the organizer's header around it. Use it when you would rather link a buyer away than embed anything; use the drop-in when the purchase should finish on your own page. There is one cart renderer either way. For complete control of the interface, the [buyer plane](/docs/guides/checkout/buyer-plane) remains available with the same session credential — but you then own contact and payment yourself, and Pay with Lissen is not something you can integrate: the wallet belongs to this component. For [zero-total checkout](/docs/guides/checkout/zero-total), the shared component shows Get tickets without payment fields. Its `paid` event has an empty `payment_intent_id` because no payment was needed. --- # Hosted checkout URL: /docs/guides/checkout/hosted-checkout Send buyers to an organizer-branded payment page backed by the buyer plane Hosted checkout is a Lissen-served payment page for a checkout session. It keeps the organizer's event page simple while the buyer sees the event summary, cart, payment fields and final delivery message in one place. ## Send a buyer to the page Create a checkout session on your server, then redirect or link the buyer to the response's `url`: ```ts const created = await ticketing.createCheckoutSession({ body: { line_items: [{ item_id: "itm_...", quantity: 2 }], return_url: "https://events.example.com/", }, idempotencyKey: "checkout-creation-...", }); // The URL includes the session credential in its fragment. return Response.redirect(created.url, 303); ``` The fragment is read in the browser and removed from the address bar before the page retrieves the session. Do not copy the URL into server logs or replace it with `hosted_url`: `hosted_url` is the public page address without the buyer credential. The page is available at `https://tickets.lissen.com/checkout/{slug}`. The organizer slug is selected by the session; it is not a request parameter you should let a buyer edit. ## What the buyer sees The page retrieves the session through the buyer plane and shows the event and venue beside each line, the quantity, the live quote and the expiry countdown. If the buyer changes a quantity, the whole cart is sent through the universal buyer update and the quote is refreshed by the engine. There is no Stripe-side cart. If the cart is outside the event's [ticket limits](/docs/guides/checkout/sessions#event-checkout-limits), the page says so in plain words and keeps **Pay** and **Get tickets** disabled until the cart fits. For a non-zero quote, the buyer supplies an email and an optional name. The page fetches payment credentials only after the email is saved, then mounts the card fields in place. The page confirms the payment without navigating to a third-party checkout and polls the session until it is completed. If the bank asks for a 3-D Secure check, the checkout reads the payment status directly even when the bank's page does not return. If it cannot confirm the outcome within five minutes, it asks the buyer to reopen checkout and check before trying to pay again. For this payment state, a buyer Lissen recognises is offered their saved card in the card fields, and a buyer who types an address Lissen already knows is offered a code and then their saved card. The fields read back the selected card's details; see [saved-card entry in the drop-in](/docs/guides/checkout/drop-in#buyers-who-already-have-lissen) for how a buyer switches to another card. A buyer who wants neither pays as a guest, exactly as before. For a zero-total quote, the page shows **Get tickets** after collecting the buyer email. It calls the buyer completion route without payment credentials, card fields, saved-card payment buttons, express wallets or wallet setup. The engine issues the order and tickets without a PaymentIntent. See [zero-total checkout](/docs/guides/checkout/zero-total) for retries and eligibility. The terminal states are explicit: * **Success:** the page shows the purchased items and says that tickets are in the buyer's email. If `return_url` was supplied, it offers a link back to the organizer. * **Expired:** the hold ended before payment completed; the buyer can return to the event page and start a new session. * **Payment refused:** capacity was gone when payment arrived, or the order went past the event's ticket limits while the buyer paid. Nothing is issued; the payment is refunded in full automatically. * **Still processing:** if the engine has not resolved the session after the polling window, the page tells the buyer to watch their email rather than claiming a success or failure it cannot prove. The page does not display a QR code or provide an order-history page. Email delivery is the ticket delivery surface. ## Theming Hosted checkout reads the organizer's branding record. The seven curated tokens are applied to the page and the card fields together: | Token | Hosted checkout use | | ------------------ | ------------------------------------------------ | | `logo_url` | Organizer mark in the page header | | `brand_color` | Primary action and card-field primary colour | | `accent_color` | Secondary text | | `background_color` | Page background and card-field background | | `text_color` | Page and card-field text | | `font_key` | `inter`, `system` or `manrope` for both surfaces | | `corner_radius` | Page controls and card-field radius | Unset tokens use neutral page defaults. The stored branding is all the hosted page reads: it is a link you send a buyer, so there is nowhere to pass anything else from. When you want the full appearance object — colours, fonts, radius, spacing, borders, shadows, button variants, input styles and per-part overrides — embed the [drop-in checkout](/docs/guides/checkout/drop-in) in your own page and pass it at mount. Per-event overrides and custom domains are not part of either. Pay with Lissen takes the same tokens on both surfaces; only the chip of a recognised buyer and the Lissen mark keep Lissen's own colours. ## The same component, embedded Hosted checkout is the full-page instance of the drop-in component. If the purchase should finish on your own page rather than ours, mount that component instead — same cart, same quote, same payment ordering, same terminal states, with your page around it. See [drop-in checkout](/docs/guides/checkout/drop-in). ## Return URL and delivery `return_url` is optional and is offered as a link after a successful completion or any terminal checkout state. It accepts HTTPS URLs or the registered `lsn://checkout-return` app callback; other schemes and callback suffixes are rejected on session creation and update. The component reads the session field for both hosted and embedded checkout. Payment confirmation stays on the hosted page. The engine's notification configuration sends the order confirmation and admission details to the buyer email saved on the session. For a custom experience, use the [buyer plane](/docs/guides/checkout/buyer-plane) with the same session credential. It has the same cart authority, quote and payment ordering as hosted checkout. --- # Checkout URL: /docs/guides/checkout How a cart becomes a payment — sessions, the universal update, and the credential the buyer's browser holds A **checkout session** is a cart with capacity behind it. Creating a session atomically creates the cart, holds capacity, takes its binding quote, reserves consumables and mints the buyer credential. After that transaction commits, the engine prepares payment for a non-zero quote on the connected Stripe account; the session remains valid if payment preparation is deferred. The guides cover it. The first is what your server does; the second is what your buyer's browser is allowed to do. Two rules run through both, and they explain most of what follows. **The engine is the sole cart authority.** Stripe holds at most one chargeable payment whose amount this cart drives. There is no Stripe-side cart to keep in step, no quantity stepper on their side, and nothing to reconcile between the two. When the cart changes, you tell the engine and it moves the money. **The quote is binding.** The price the engine returns is the price that will be charged — it is not a display estimate that gets recomputed at payment time. That is why capacity and discount codes are reserved the moment a session opens, and why a session stops moving as soon as payment starts. For a binding total of zero, use [zero-total checkout](/docs/guides/checkout/zero-total): the buyer gets tickets without entering payment details. --- # Checkout sessions URL: /docs/guides/checkout/sessions Open a cart that holds capacity, change it with one call, and hand it to a buyer to pay A checkout session is the transactional heart of the engine. Creating one does four things in a single transaction — either all four happen or none do: 1. **Holds the capacity.** Every quota your line items draw on is locked, and the units are taken out of circulation for the life of the session. 2. **Takes the binding quote.** Prices, discounts, membership effects and your fee schedule are resolved once, and the result is what the buyer will pay. 3. **Reserves the consumables the quote spends.** A "first 100 buyers" code is reserved at this moment, not at payment — which is what stops a hundred open carts from all thinking they got it. 4. **Mints the buyer's credential** — a bearer scoped to this one session. Once that has committed, a non-zero quote prepares payment on your connected Stripe account. That step sits **outside** the transaction, so a session is valid whether or not it succeeded — see `psp_refs` below. Everything on this page is done with your API key and the `Ticketing-Organizer` header. Your buyer's browser gets a [much weaker credential](/docs/guides/checkout/buyer-plane) and a much smaller surface. ## Create a session `POST /v1/checkout_sessions` `Idempotency-Key` is **required** here, and the request is refused without one. A duplicate create consumes capacity — two calls, two holds, two carts — so there is no safe default the engine could pick for you. ```bash curl -X POST https://tickets.lissen.com/api/v1/checkout_sessions \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 7c1f0a3e-4d29-4f81-9b6b-1e2a5c8d0f44" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2 } ], "codes": ["SUMMER10"], "return_url": "https://acme-events.com/orders/thanks", "metadata": { "basket_ref": "b_8891" } }' ``` | Field | Notes | | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `line_items` | Required. 1–50 lines, each `item_id` plus a `quantity` of 1–100. An item with a `max_per_order` caps its line lower: asking for more is refused with `quantity_limit_exceeded`, and the limit is in the error detail. An approval-gated item (`requires_approval`) is refused with `item_not_sellable`; it is sold through its [waitlist](/docs/guides/waitlist). | | `codes` | Up to 10 codes the buyer presented. A code that does not apply is not an error — it comes back under `quote.rejected_codes` with a reason. | | `offer` | Optional. A price your own backend decided for **this checkout only** — an affiliate or invitation offer — applied without the buyer typing anything. See [offers from your backend](#offers-from-your-backend). | | `customer` | Who is buying. `id` or `external_ref` is your own identifier for the buyer and makes the cart *authenticated* for entitlements; `email` (with an optional `name` and `phone`) is the buyer's contact, which mints or refreshes their customer record and is where the order confirmation goes. `phone` is optional and nullable, kept as typed (digits, spaces, `()`, `-` and a leading `+`, 7–25 characters with at least five digits), never verified, and copied to the order as `buyer_phone`. Give at least the email before payment; omit the whole field for an anonymous cart you will identify later. | | `return_url` | Where the buyer goes after paying. Nullable. | | `metadata` | Yours. Stored, echoed, never read by the engine. | The `201` carries the whole session, the buyer's credential, and the hosted URL: ```json { "id": "cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33", "status": "open", "created": "2026-11-02T14:05:11Z", "customer_id": null, "currency": "GBP", "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2, "unit_list_price_minor": 1000 } ], "quote": { "mode": "checkout_quote", "currency": "GBP", "totals": { "list_subtotal_minor": 2000, "discount_minor": 200, "subtotal_minor": 1800, "booking_fee_minor": 280, "platform_fee_minor": 280, "total_minor": 2080 }, "rejected_codes": [], "degraded": false }, "total_minor": 2080, "booking_fee_minor": 280, "platform_fee_minor": 280, "payment_method_types": ["card", "bacs_debit"], "hold_id": "hld_0199c4e6-3a58-7b12-8c40-1d9e5f3a7b28", "hosted_url": "https://tickets.lissen.com/checkout/acme-events", "return_url": "https://acme-events.com/orders/thanks", "psp_refs": {}, "locked_at": null, "expires_at": "2026-11-02T14:15:11Z", "completed_at": null, "metadata": { "basket_ref": "b_8891" }, "client_secret": "cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33_secret_9Qb1n…", "url": "https://tickets.lissen.com/checkout/acme-events#cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33_secret_9Qb1n…" } ``` The quote is trimmed above; in full it also carries `subject`, per-line `line_items`, `applied_effects`, `unapplied_effects`, `superseded_effect_ids` and `degraded_providers`. Its shape is the same one `POST /v1/quotes` returns, so a preview you rendered on your event page and the binding quote on the session are read by the same code. ### Two fields you get on a create and nowhere else * **`client_secret`** is the [buyer's credential](/docs/guides/checkout/buyer-plane) for this session. It is returned by this call and by no other: not a retrieve, not a list, and never an activity payload. * **`url`** is the same hosted page as `hosted_url`, with the client secret in the URL **fragment**. A fragment never reaches a server log or a `Referer` header, which is why it is the only place the secret rides in a URL. Retrying this request with the same `Idempotency-Key` returns the **identical response body**, both of those fields included, marked with an `Idempotent-Replayed: true` header. (The headers are the only difference: that marker, and a fresh `Request-Id` naming the retry rather than the original.) A replay does no work — no second cart, no second payment, and nothing on the activity feed. A retry that lost its answer to a timeout is therefore a complete answer, not a half one. That holds for as long as the session is open. Once the session reaches a terminal state the same key answers `409` `checkout_session_not_open`: the session is over, and its credential can no longer be recovered from anywhere. Create a new one. ### `psp_refs` can be empty on a create A create response carries `"psp_refs": {}`. The cart, the hold and the reservations are already durable at that point; the payment is prepared immediately afterwards, and the references appear on the session once it is. Retrieve the session a moment later and they are usually there. If that preparation did not succeed, nothing has gone wrong with the session either — the capacity is held and the quote is binding regardless. Fetching [payment credentials](/docs/guides/checkout/buyer-plane) prepares the payment if it has not been prepared yet, so the buyer's own next step is also the recovery path. **At most one payment ever exists for a session**, however many times you retry the create or fetch credentials. ### One cart, one currency Every item in a cart must share a currency. The engine performs no FX, so a mixed cart is refused with `currency_mismatch` before anything is held. ### Offers from your backend An affiliate link or an invitation often carries a price only you know: you decided it, and it should apply to one buyer's checkout without a code to share or leak. Send it as `offer` when you create the session. One call creates the checkout and prices it; there is no separate discount to create first. ```bash curl -X POST https://tickets.lissen.com/api/v1/checkout_sessions \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 2b8e4c10-93d7-4a5e-8f31-6c0a9d7e1b52" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 1 } ], "customer": { "external_ref": "user_8812", "email": "ana@example.com" }, "offer": { "effect_type": "price_override", "amount_minor": 1500, "amount_currency": "GBP", "label": "Invitation from Sam", "reference": "aff_sam_42" } }' ``` The offer uses the effect vocabulary of a [discount code](/docs/guides/config/discount-codes): | Field | Notes | | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `effect_type` | `percent` (`percent_bps` off each ticket), `amount` (`amount_minor` off each ticket) or `price_override` (each ticket sold at `amount_minor`; zero is free entry). | | `amount_minor`, `amount_currency` | For `amount` and `price_override`. The currency must be the cart's. | | `item_ids`, `event_ids` | Optional scope, with a code's union semantics; both empty means every line. | | `label` | What the buyer sees on the effect line. | | `reference` | Your own handle for the offer, such as an affiliate or invitation id. | The engine validates and prices it with the same quote that prices everything else, so fees, rounding, the binding quote and a zero total behave exactly as they do for a code. You never send a total: you send the offer, and the engine computes what is payable. The quote's `applied_effects` carries it with `source.kind` `checkout_offer`, your `label` and your `reference` as `source.ref`, which is what you reconcile on, and the creation activity carries the same quote. Catalog prices do not change; the offer exists on this session and nowhere else. * **Best price wins against membership.** For a member, the lower of the offer price and the member price applies — never both. With a list price of £20, a member price of £16 and an offer price of £15, the buyer pays £15, not £12; with an offer at £17 they pay £16 and the offer is reported in `superseded_effect_ids`. See [how the offer and membership compete](/docs/guides/capacity-and-pricing/pricing-and-entitlements#a-checkout-offer-competes-with-membership). * **An ordinary code still works beside it**, under the usual [stacking rules](/docs/guides/capacity-and-pricing/pricing-and-entitlements#the-stacking-order). The offer is kept across cart edits, so removing a ticket does not lose it. * **Only your API key can attach one.** The buyer's credential cannot set, replace or remove an offer, and neither can a later update from you: it is fixed when the session is created. * **Retries are safe.** The same `Idempotency-Key` with the same body replays the one session. The same key with a different offer is `idempotency_key_reused`. * **An offer that cannot apply is refused, not ignored.** One that covers none of the cart's items, or is priced in another currency, returns `422` `checkout_offer_not_applicable` and creates nothing. Create the session without an `offer` to fall back to the catalog and membership price. Deciding who gets an offer, generating the link and calculating any commission are yours; the engine only prices the checkout you describe. ## The universal update `PATCH /v1/checkout_sessions/{id}` Quantity changes, added lines, removed lines, a newly presented discount code and a plain re-price are **all this one call**. There is no add-line endpoint and no remove-line endpoint. ```bash curl -X PATCH https://tickets.lissen.com/api/v1/checkout_sessions/{id} \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 3 } ] }' ``` `line_items` states **the whole new cart, never a delta**. Send the three lines you want, not the one you are adding. Send at least one line — an empty cart is not a valid update, and the way to end a session is to expire it. `codes`, `customer`, `return_url` and `metadata` may each be sent on their own or together; at least one field is required. Anything you omit is left as it was — including the codes, which are re-priced against the new cart every time. `customer.email` is the one field the buyer can also set from their side, on the [buyer plane](/docs/guides/checkout/buyer-plane). Payment credentials are refused with `buyer_identity_required` until the session has one: an order needs somewhere to go. One update, one transaction: the hold is adjusted, the quote is re-run, the reservations are re-taken, and the payment amount is amended in place. The session's id and its Stripe identity never change. `Idempotency-Key` is optional here. A repeated cart edit is not a duplicate purchase, so the engine does not insist — but send one if you want replay semantics. ### Growth is keep-or-refuse; shrink frees This is the property to design your UI around. * **Shrinking always works.** The difference is returned to the pool in the same commit, and someone else can buy it immediately. * **Growing is atomic keep-or-refuse.** The engine re-decides the *whole* new footprint under the capacity lock. If it does not fit, the update is refused with `insufficient_capacity` and **your existing hold stands untouched**. A buyer who asks for one ticket too many keeps the ones they already had. The engine never releases your hold in order to try for a bigger one. If it did, a buyer nudging 2 up to 6 on a nearly sold-out show would lose their two seats to whoever was waiting on the lock. Because a refused growth writes nothing, it also **emits nothing** — you will not see a `checkout_session.updated` for an attempt that changed no state. ### Re-pricing without changing the cart Prices move for reasons other than the cart: a code expires, a membership becomes applicable, the door gets close enough to withdraw a slow payment method. Sending the current `line_items` back to this endpoint re-runs the quote against them. Buyers do this constantly, so the buyer plane has a dedicated [refresh-quote call](/docs/guides/checkout/buyer-plane) for exactly this — the same update, with no cart change. ## Event checkout limits An event can set a per-order minimum and maximum and a per-customer cap (`min_tickets_per_order`, `max_tickets_per_order`, `max_tickets_per_customer`; see [checkout limits](/docs/guides/config/events#checkout-limits)). The engine enforces them on the session, whichever client started it, so bounding your quantity controls is a courtesy to the buyer rather than the enforcement. Each line's `event` on the [buyer plane](/docs/guides/checkout/buyer-plane) carries all three as they apply to that checkout, `null` where none applies: a waitlist invitation, which is exempt from the minimum, shows no minimum. The engine checks every cart an update submits, so a buyer whose cart is several tickets outside changed limits needs the corrected cart sent in one update, not one ticket at a time. ### What counts * **A checkout's count** for an event is the sum of the quantities of its lines whose item belongs to that event. The limits apply across the event's items together, not to each item: under a maximum of four, two standard and two VIP tickets is four. An item with no event, and another event's items, never count; a cart that mixes events is checked per event. * **A purchaser's count** is per customer, the checkout session's customer, who becomes the order's customer: their live tickets for the event from earlier orders, plus the tickets in their other open checkouts that still hold capacity. With a cap of five, a customer who bought two may buy at most three more, in one checkout or several. * **What gives allowance back:** a checkout that expires, is expired, or whose hold lapses; and a ticket that is revoked, as a position refund, a dispute or a failed payment revokes it. Completing a checkout does not: its held tickets become purchased tickets, which go on counting. * **What does not:** transferring a ticket to someone else, because the cap is about who bought, not who holds; and a money-only refund that leaves the ticket live. A comp's tickets count toward its recipient's cap like any other order's, although the comp itself is never refused. The customer is the organizer's customer record. A guest checking out by email is one customer per email address; the cap does not claim to identify one person across addresses. ### When it is checked | Moment | Per-order minimum and maximum | Per-customer cap | | ------------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------------ | | Create | Always | When the session names a customer | | Update that changes the lines | Yes | Yes, when the session has a customer | | Update that sets or changes the customer, including the buyer's email and an identity attestation | No | Yes | | Refresh or any update that changes neither | No | No | | Completion, free or paid | Yes | Yes | A refused create or update changes nothing, like a refused capacity growth: the existing cart stands. One purchaser's checkouts for one event are decided one at a time, so two concurrent checkouts cannot both fit a cap only one of them fits. **Completion re-checks against the event's current limits.** Limits can tighten, and a customer can buy elsewhere or receive a comp, while a checkout is open. A free completion is then refused and nothing is issued; the buyer can change the cart and complete again. A paid completion cannot be refused without taking the money back, so the payment is refunded in full, fee included, and the session closes as `payment_refused`, as it does when the capacity is gone. The engine records the refusal on the still-open session, as `psp_refs.refused_reason` with a `checkout_session.updated`, before it asks for the refund; from then on the session is refused whatever happens next, even if allowance or capacity comes back before the refund lands. A [waitlist invitation](/docs/guides/waitlist) holds exactly one ticket, fixed by the promotion, so it is exempt from the per-order minimum. The maximum and the cap still apply: promotion refuses an invitee already at the cap before it reserves the ticket, and the cap is checked again when the buyer names themselves and at completion. ### Refusals Each checkout-session refusal is `422` with `param: "line_items"` and a `detail` naming the event and the limit, so a client can offer a quantity that fits. A waitlist promotion refused at the cap carries the same code and `detail` with `param: "id"`: ```json { "error": { "type": "invalid_request_error", "code": "customer_ticket_limit_exceeded", "message": "This event allows at most 5 tickets per customer; this customer can buy 3 more", "param": "line_items", "detail": { "event_id": "evt_…", "limit": 5, "quantity": 4, "remaining": 3 } } } ``` `detail.quantity` is this checkout's count for the event; `detail.remaining` (the cap only) is how many more the customer may buy, never negative. The `message` is written so the hosted checkout can show it to the buyer as it is; build your own wording from `detail` if you need the event's name in it. | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | order_quantity_below_minimum | 422 | invalid_request_error | The checkout has fewer of one event's tickets than the event's `min_tickets_per_order`, counted across all of that event's items in the checkout. `detail.event_id` names the event, `detail.limit` the minimum and `detail.quantity` this checkout's count. Nothing changed; a refused update leaves the existing cart as it was. | Add tickets for that event until the checkout reaches `detail.limit`. The event's `min_tickets_per_order` is on the Event and on the buyer plane's `line_items[].event`, so a checkout can bound its quantity controls first. | | order_quantity_above_maximum | 422 | invalid_request_error | The checkout has more of one event's tickets than the event's `max_tickets_per_order`, counted across all of that event's items in the checkout. `detail.event_id` names the event, `detail.limit` the maximum and `detail.quantity` this checkout's count. Nothing changed; a refused update leaves the existing cart as it was. | Reduce the event's tickets to at most `detail.limit` in this checkout. Splitting them across checkouts does not help when the event also caps tickets per customer. | | customer_ticket_limit_exceeded | 422 | invalid_request_error | The purchaser (the checkout's customer, who becomes the order customer) would hold more of one event's tickets than its `max_tickets_per_customer`. Their live tickets from earlier orders and the tickets in their other open checkouts count; tickets they transferred away still count. `detail.remaining` is how many more they may buy. At buyer completion nothing is issued; in paid settlement the payment is refunded in full and the session closes as `payment_refused`. | Offer at most `detail.remaining` tickets for that event, or none when it is zero. Allowance comes back only when the purchaser's other open checkouts expire or are released, or when their tickets are revoked. Completing another checkout does not: its held tickets become purchased tickets, which keep counting. A transfer or a money-only refund does not give allowance back either. | A paid session refused at settlement records the same code as `psp_refs.refused_reason`, and the refund carries it as `lissen_refusal` in its Stripe metadata. ## Expire a session `POST /v1/checkout_sessions/{id}/expire` ```bash curl -X POST https://tickets.lissen.com/api/v1/checkout_sessions/{id}/expire \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Releases the hold now rather than at its expiry, releases the discount-code reservations it held, and cancels the payment. It is **idempotent**: a session that is already expired or completed is returned unchanged. Call it when a buyer abandons a basket — the capacity goes back on sale immediately instead of sitting out the rest of the clock. **A payment in flight beats an expiry.** If the engine finds money already moving, expiry releases *nothing* — the hold stays live, the reservations stay reserved, and the session reads `payment_processing`. Freeing capacity underneath a buyer who has paid is how somebody ends up with no ticket. You do not have to call this to avoid overselling. A session that nobody expires lapses on its own when its hold does, and the capacity returns then. ## Read sessions `GET /v1/checkout_sessions/{id}` returns one session. `GET /v1/checkout_sessions` lists them, keyset-paginated in reverse-chronological order like every other list. ```bash curl "https://tickets.lissen.com/api/v1/checkout_sessions?status=open&limit=50" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` The `status` filter takes `open`, `completed`, `expired` or `payment_refused`. It filters on the stored status, so `payment_pending` and `payment_processing` are **not** filter values — they are readings of an open session, and both are returned by `status=open`. ## States ``` open ──▶ payment_pending ──▶ payment_processing ──┬──▶ completed │ └──▶ payment_refused ├──▶ expired ``` | Status | What it means | | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `open` | The cart is live and editable. Capacity is held; the quote is binding. | | `payment_pending` | The buyer has started paying. **The cart is frozen from here** — the quote is contractual, and every write is refused. | | `payment_processing` | The engine has seen the money actually move. This is the state that outranks expiry. | | `completed` | Payment succeeded and the tickets have been issued — see [orders and positions](/docs/guides/orders). | | `expired` | Ended without completing. The hold and the reservations were released. Terminal — a session cannot be revived. | | `payment_refused` | Money arrived for capacity that was gone, or for a checkout the event's [checkout limits](#event-checkout-limits) refused at completion, so the sale was refused and refunded in full. | The lock is decided on **Stripe's answer**, not on a flag the engine set hopefully: before every write the engine asks whether payment has started, and records the fact if it has. `locked_at` on the session is that record. ### How long a session lives `expires_at` is the session's clock and it is exactly the hold's clock — the session cannot outlive the capacity behind it. It is ten minutes from creation today, an engine-wide setting rather than a per-request one. Read `expires_at` rather than assuming the number. An update does not extend it. A buyer who spends twelve minutes deciding loses the hold, whatever they clicked in the meantime. ## What happens at payment The buyer confirms the payment in their browser with the credentials the [buyer plane](/docs/guides/checkout/buyer-plane) hands them. The session then moves to `payment_pending` and on to `payment_processing`, and the cart stops moving. The engine learns the payment was accepted from whichever comes first: the buyer's page calling [finalize](/docs/guides/checkout/buyer-plane#finalize-the-payment) as soon as Stripe.js confirms it, or Stripe's own event. Either way it asks Stripe itself and completes the session once. **Issuance is optimistic.** The engine issues the moment a payment is accepted, without waiting for the money to settle: a buyer paying by a slow method holds a valid ticket rather than sitting in limbo, and a payment that later fails revokes it and returns the capacity. What is issued, and what happens when the capacity is gone by the time the money arrives, is in [orders and positions](/docs/guides/orders). The completed and payment-refused outcomes are recorded on the activity feed; successful completion also creates the order, positions and admission codes described in [orders and positions](/docs/guides/orders). ### Payment milestones A session also records the buyer's payment **attempts**, in its `psp_refs`, each with its own activity in the same write: | Key | What it says | Activity | | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | | `payment_started_at` | When the buyer began paying: the engine confirmed a saved card, the bank asked for 3-D Secure, a card was declined, or the money moved, whichever the engine saw first. Set once. | `checkout_session.payment_started` | | `payment_action_required_at` | When the bank first asked for 3-D Secure. Later requests change nothing. | `checkout_session.payment_action_required` | | `payment_decline_count` | How many declines the session has seen. | — | | `payment_declines` | The declines, newest 20 kept: `{ sequence, code, at }`. `sequence` counts from 1; `code` is the card's decline reason, such as `insufficient_funds`, or `null`. | One `checkout_session.payment_declined` per entry | What to rely on: * **Times are the engine's clock**, RFC 3339, taken when the engine accepted the fact. They are not Stripe's event times, and `sequence` is the order the engine accepted the declines in, not the order Stripe created them. * **A decline does not end the session.** It stays `open` for another card; the session ends as before, as `completed`, `expired` or `payment_refused`. None of these keys changes `status` or `locked_at`. * **The count is never cut**; the list keeps the newest 20. A redelivered Stripe event is counted once while it remains among the newest 20 accepted declines; an older event replayed after that window can be counted again. * **A late signal is dropped.** A 3-D Secure request or a decline that arrives after the engine saw the money move, after a refusal was decided, or for a payment the session no longer uses is not recorded. * **Fetching payment credentials is not a start.** A buyer who opens the payment form and leaves has no `payment_started_at`. * **A decline the engine's own confirmation answers** with `422 payment_declined` is counted once, from Stripe's notification, like any other. ### Polling a session to its end Poll `GET /v1/checkout_sessions/{id}` until `status` is one of `completed`, `expired` or `payment_refused`. Keep polling **through** `payment_pending` and `payment_processing` — both are intermediate readings of a session that is still resolving, not answers. Neither is a reason to retry a write, and neither is terminal. ## The hosted page Every read of a session carries `hosted_url` — the reserved address of the checkout page for this session, without the secret: ``` https://tickets.lissen.com/checkout/acme-events ``` The slug is your organizer's, fixed at onboarding. Only the create response's `url` carries the credential, in the fragment. That split is deliberate: `hosted_url` is published into the activity stream and into each subsequent webhook delivery, and one field carrying the secret would scatter a live credential through your logs. The page is [hosted checkout](/docs/guides/checkout/hosted-checkout). The shape above is stable, so you can either send the returned `url` to your buyer or build a headless client against the buyer plane. ## Errors | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | checkout_session_not_open | 409 | invalid_request_error | The session is no longer open — completed, expired, refused, or its hold is no longer live. | Read the session to see which. An expired session cannot be revived; create a new one. | | checkout_session_locked | 409 | invalid_request_error | Payment has started on this session, so the cart and its quote are contractual and can no longer be changed. | Do not retry the update. Poll the session until it reaches a terminal state. | | checkout_session_conflict | 409 | invalid_request_error | Two updates of the same session raced, or the session moved while its payment was being prepared. Loud and retryable, rather than a silent partial adjustment. | Re-read the session, decide the cart you want from what you now see, and send the update again. | Beyond those, the ones you will meet on a busy on-sale: * **`insufficient_capacity`** (`422`) — there is genuinely not enough room, decided inside the lock. On an update, nothing was changed. * **`capacity_locked`** (`409`) — *contention*, not a refusal. Another transaction held the lock and the wait timed out; nobody took the tickets. Retry with a short backoff. * **`currency_mismatch`** (`400`) — the cart mixed currencies. * **`item_not_sellable`** (`422`) — the item is inactive, outside its sale window, or gated with no unlock applied. Quote the cart to see which. * **`order_quantity_below_minimum`**, **`order_quantity_above_maximum`** and **`customer_ticket_limit_exceeded`** (`422`) — an event's [checkout limits](#event-checkout-limits). `detail` says which event, which limit and, for the cap, how many more the customer may buy. * **`checkout_offer_not_applicable`** (`422`) — on create only: the `offer` covers no line in the cart or is priced in another currency. Nothing was created. * **`code_not_reservable`** (`422`) — rare. A presented code that runs out mid-cart is normally not an error at all: the cart is re-priced without it and the code comes back under `quote.rejected_codes` with a reason you can show the buyer. This code is the residue — a code that still could not be reserved even after that re-price. The full registry is on the [errors reference](/docs/getting-started). ## What emits | You call | The feed records | | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Create | `checkout_session.created` and `hold.created` | | Update that changed the cart | `checkout_session.updated`, plus `hold.updated` when the capacity footprint moved | | Update that only re-priced | `checkout_session.updated` — no hold activity, because no capacity moved | | Update that was refused | nothing at all | | Expire | `checkout_session.expired` and `hold.updated` | | A session timing out on its own | `checkout_session.expired` and `hold.updated` — the same pair an explicit expire writes | | The buyer beginning to pay, the bank asking for 3-D Secure, a card declined | `checkout_session.updated`, then `checkout_session.payment_started`, `.payment_action_required` or `.payment_declined` for each [payment milestone](#payment-milestones) the write added | | A payment completing | `order.created`, one `position.created` per unit, then `checkout_session.completed` — all in the completion transaction, with `checkout_session.payment_started` before the completion when nothing earlier recorded the start. See [orders and positions](/docs/guides/orders) | `hold.lapsed` is not part of a checkout's life. A checkout hold is released when its session ends, so by the time the clock catches up there is nothing left to lapse; the type exists for holds that belong to no session, like a [waitlist invitation](/docs/guides/waitlist). An idempotent replay does no work, so it emits nothing either — a feed consumer never sees a duplicate from your retry loop. See [the activity stream](/docs/guides/activities/stream). ## Gotchas * **`line_items` is the whole cart.** The most common integration bug is sending the delta. * **A retry replays everything, until it does not.** The same key returns the identical create response while the session is open, and `409` `checkout_session_not_open` once it has closed. * **`psp_refs` can be empty on create.** Do not treat it as a failure, and do not gate the buyer on it — fetching payment credentials prepares the payment if it is not there. * **Limits count the event, not the item.** Splitting tickets across items, lines or checkouts does not get past a maximum or a cap, and a transfer never gives a purchaser allowance back. * **A refused growth leaves the old cart in place.** Re-read the session before telling the buyer what they have. * **`payment_pending` means stop editing.** Poll through it to `completed`, `expired` or `payment_refused`; do not retry the update. * **The buyer can change the cart too.** If you hand a client secret to a browser, that browser can update line items. Your server's view of the cart is a cache — the session is the truth. A zero-total quote uses [payment-free completion](/docs/guides/checkout/zero-total). --- # Free tickets and zero-total checkout URL: /docs/guides/checkout/zero-total Issue tickets from a zero-total quote without asking for payment details A checkout whose binding quote totals zero needs no payment. This includes a free item and a discount that reduces a paid item to zero. To give tickets to someone without a checkout at all — a guest list, a prize — issue [complimentary tickets](/docs/guides/orders#complimentary-tickets) from your backend instead. Fee schedules still apply at quote time: the organizer needs a schedule in the item's currency, which Lissen sets. If a quote answers `fee_schedule_not_found`, contact Lissen. ## Hosted and embedded checkout Both entrances show the cart, email, Lissen sign-in and **Get tickets**. There are no card fields or express wallets. A guest may select **Remember me with Lissen** to remember their email; the verification code comes after tickets are issued and does not save a card. The checkout reports success as soon as the order is issued; it has no payment-processing steps to wait through. ## Complete through the buyer plane Supply the buyer email with the session's normal update, then call: `POST /v1/buyer/checkout_sessions/{id}/complete` Authenticate with `Authorization: Bearer `. There is no request body. The response is the buyer session with `status: completed` and `order_id`. The same call returns the same order on retry until one hour after the session's expiry. Other writes remain unavailable after completion. The engine converts held capacity and commits consumables through its usual issuance transaction. The order is `paid`, positions are issued and the normal activities are delivered. No PaymentIntent or ledger movement is created. | Result | Meaning | | ------------------------------- | ----------------------------------------------------------------------------- | | `422 buyer_identity_required` | Provide the buyer email before completing. | | `422 payment_required` | The binding total is non-zero; use payment checkout. | | `422 code_not_reservable` | A consumable refused; refresh the quote before retrying. No order was issued. | | `409 checkout_session_not_open` | The session or its capacity hold is no longer open. Create a new checkout. | A paid cart discounted to zero cancels its unstarted payment before committing the new quote. A payment already in progress prevents that change. If the cart becomes payable again, the engine prepares a replacement for the canceled payment. ### Example Your page holds the session's `client_secret`, the buyer credential that checkout session creation returned. Supply the email, then complete: ```bash curl -X PATCH https://tickets.lissen.com/api/v1/buyer/checkout_sessions/cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33 \ -H "Authorization: Bearer $CLIENT_SECRET" \ -H "Content-Type: application/json" \ -d '{ "customer": { "email": "ana@example.com" } }' curl -X POST https://tickets.lissen.com/api/v1/buyer/checkout_sessions/cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33/complete \ -H "Authorization: Bearer $CLIENT_SECRET" ``` The completion answers `200` with the buyer session (abridged): ```json { "id": "cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33", "status": "completed", "currency": "GBP", "total_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "buyer_email": "ana@example.com", "order_id": "ord_0199c4e6-4c21-7a55-9b02-4d8e1f6a9b55" } ``` Read the tickets from your server with your API key: `GET /v1/positions` filtered by that `order_id`. ## Listen for completion The drop-in emits the existing `paid` event with the order id, `status: succeeded`, and an empty `payment_intent_id`. Your activity feed receives `order.created` with `total_minor: 0` and the usual position facts. Handle these orders through the same fulfillment path as paid admission. --- # Branding URL: /docs/guides/config/branding Stored branding tokens for hosted checkout — one singleton, seven tokens, no CSS Branding is a **single record per organizer** holding a handful of design tokens: a logo, four colours, a font and a corner radius. There is no create and no delete — every organizer has one from the moment it exists, with every token `null` — so the only verb is a patch. Seven tokens is the whole surface, and that is a decision rather than a starting point. Arbitrary CSS is permanently out: it makes every markup change a breaking change, and it is an injection surface on a page where people type card numbers. A partner who outgrows the tokens renders their own checkout against the [checkout API](/docs/guides/checkout/sessions); there is no middle mode. ## The shape on the wire `GET /v1/branding` ```bash curl https://tickets.lissen.com/api/v1/branding \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "id": "brd_0199c4e9-6f54-7d88-8e35-7a1b4c9d2e66", "logo_url": "https://cdn.acme-events.com/logo.svg", "brand_color": "#1F6FEB", "accent_color": "#F2C744", "background_color": "#FFFFFF", "text_color": "#111111", "font_key": "inter", "corner_radius": 12, "metadata": {} } ``` | Token | Accepted values | | ------------------ | --------------------------------------------------------------------------------------------------------------------------- | | `logo_url` | An absolute **`https`** URL, or `null`. An `http` URL is rejected. The engine hosts no uploads: point at your own CDN. | | `brand_color` | `#RRGGBB`, `#RGB` or `rgb(r, g, b)`, or `null`. | | `accent_color` | Same. | | `background_color` | Same. | | `text_color` | Same. | | `font_key` | One of `inter`, `system`, `manrope`, or `null`. An allowlist, not a font name — arbitrary webfonts are not accepted. | | `corner_radius` | An integer from `0` to `48` inclusive, or `null`. `0` gives square corners. | | `metadata` | Yours, opaque, echoed on the wire and in the activity payload. | Colours are validated on the way in: `#1F6FEB`, `#fff` and `rgb(31, 111, 235)` are all accepted, and each `rgb()` component must be in `0–255`. Anything else — a named colour, an `rgba()`, a gradient, an eight-digit hex — is a `400`. `null` on any token means "unset": you are not asserting a value, so the surface rendering it is free to use its own default. ## Updating it `PATCH /v1/branding` is the only write. There is no id in the path — the record is a singleton, and the organizer header already says which one. ```bash curl -X PATCH https://tickets.lissen.com/api/v1/branding \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "brand_color": "#1F6FEB", "font_key": "inter", "corner_radius": 12 }' ``` The patch is partial and needs at least one field. Tokens you do not mention keep their current values; to clear one, send it explicitly as `null`: ```bash curl -X PATCH https://tickets.lissen.com/api/v1/branding \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "accent_color": null }' ``` The response is always the complete stored token set. `Idempotency-Key` is optional on this update, as it is on every update. Two patches sent at the same moment are serialized rather than interleaved, so concurrent writers cannot produce a half-applied token set. ## Where the tokens are used The hosted checkout reads this resource and applies the tokens to its page chrome and Stripe payment fields as one set rather than one per surface. See the [hosted checkout guide](/docs/guides/checkout/hosted-checkout). So there are two honest answers depending on what you are building: * **Building your own checkout** against the [checkout API](/docs/guides/checkout/sessions): read these tokens and apply them yourself. This resource is simply where your theme lives, one fetch away from any surface that needs it. * **Using hosted checkout**: setting these tokens changes the next hosted checkout session that reads the organizer's branding. Per-event themes do not exist. One organizer, one look. ## Errors this resource returns There are no branding-specific error codes. What you will see: * **`invalid_request`** (`400`) with `param` naming the token, for an `http` logo URL, a colour the validator does not accept, a `font_key` outside the allowlist, a `corner_radius` outside `0–48`, or a patch with no fields at all. * **`not_found`** (`404`) is not something you should meet here: the record exists from the moment your organizer does. A key that has no grant on the organizer in the header fails earlier, as a `403`. The full list is the [error registry](/docs/getting-started#the-code-registry). ## What emits on the activity stream * **`branding.updated`** — on every accepted patch, carrying the complete token set plus `previous_attributes` for the tokens that actually moved. There is no `branding.created`: the record exists from the start, so the first patch is an update from an all-`null` image, and its `previous_attributes` shows each token moving from `null`. The [full type registry](/docs/guides/activities/types) lists every type the engine emits. ## Gotchas * **`logo_url` must be `https`.** No `http`, and no uploading a file to us. * **`font_key` is an allowlist**, not a font family string. Three values today; the set grows additively. * **Colours are hex or `rgb()` only.** No `rgba()`, no named colours, no gradients. * **A patch with an empty body is a `400`.** Send at least one token. * **`null` clears, omission preserves.** They are different requests. * **`metadata` is replaced wholesale**, like every other resource — send the whole object each time. * **There is no per-event or per-item theme**, and no custom CSS. Those are not gaps waiting to be filled; rendering your own checkout is the escape hatch. --- # Discount codes URL: /docs/guides/config/discount-codes Five effect types, restriction sets, validity windows and usage limits — and what happens to a code between the cart and the ticket A discount code is **bearer evidence**: presenting it is the authentication. Anyone who types it correctly gets what it grants, which is why the interesting configuration is not who may use it but *what it does*, *what it covers* and *how many times it works*. What a code does to a cart arrives on a quote as an **effect**, in `applied_effects`: a small object carrying what it did, display copy you can render, and the id of the code it came from. Build your cart UI against that shape rather than against codes themselves and it keeps working as more things become able to change a price. ## The shape on the wire ```json { "id": "dsc_0199c4e8-5e43-7c77-bd24-6f0a3b8c1d55", "code": "WINTER20", "effect_type": "percent", "percent_bps": 2000, "amount_minor": null, "amount_currency": null, "stackable": false, "valid_from": null, "valid_until": null, "max_uses": 100, "max_uses_per_customer": 1, "active": true, "item_ids": [], "event_ids": ["evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22"], "metadata": {} } ``` ## The five effect types | `effect_type` | What it does | Fields it requires | | ---------------- | ---------------------------------------------------------------- | --------------------------------- | | `percent` | Takes a percentage off each covered position. | `percent_bps` in `(0, 10000]` | | `amount` | Takes a fixed amount off **each covered ticket**. | `amount_minor`, `amount_currency` | | `price_override` | Sets each covered position to a fixed price. Zero is free entry. | `amount_minor`, `amount_currency` | | `fee_waiver` | Waives the buyer-visible booking fee. | none | | `unlock` | Makes a gated item purchasable. | none | The fields are mutually exclusive and the engine enforces it: a `percent` code carrying an amount is rejected, an `unlock` carrying either is rejected, and `price_override` reuses the amount fields — the amount *is* the price the position becomes. **`amount` is per ticket, not per cart.** A `500` off code on a line of three tickets takes 1500 off that line. If you mean "£5 off the order", a code cannot express it today. Two more rules worth knowing before you pick a type: * **A discount can never make a line negative.** A percentage is capped at the price and a fixed amount is capped at the remainder; the floor is zero. * **`price_override` only applies when it lowers the price.** An override above the current price is reported as superseded and charges nothing extra. Where several overrides cover a line, the lowest wins. ### `fee_waiver` waives the booking fee only It removes what the *buyer* pays in fees, not the platform fee itself: the fee still exists and falls to your proceeds. It therefore does nothing at all against an `absorbed` fee schedule, or on a position whose fee is already zero. One waiver is all a position can use — see [fee schedules](/docs/guides/config/fee-schedules). ### `unlock` opens a gated item An `unlock` code names no price. An unlock code makes a gated line sellable in quotes and checkout sessions. That is how a members-only tier can be offered with an explicit unlock when the buyer has no matching membership effect. A code that unlocks nothing in the cart — because no covered line is gated — is rejected as `not_applicable` rather than applied silently. ## Restriction sets `item_ids` and `event_ids` are the code's coverage, and they work as a union: * **Both empty** — every position in the cart. This is the default. * **Otherwise** — a position is covered if its item is in `item_ids`, **or** its event is in `event_ids`. Naming an event covers every item that points at it, including items you create afterwards. That makes "20% off everything at the winter social" a single code that does not need revisiting when you add a tier. Both arrays reject duplicate ids, and every id must exist under your organizer or the write answers `400` `invalid_reference`. On a patch, an array you send **replaces** the existing one wholesale; an array you omit is left alone. A code that covers no line in the cart is rejected as `not_applicable` — it is not an error, just a code that did nothing here. ## Validity, limits and uniqueness | Field | Behaviour | | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `valid_from` | Nullable. Before it, the code is rejected `not_yet_valid`. Inclusive: the code works at exactly this instant. | | `valid_until` | Nullable. At and after it, the code is rejected `expired`. Must be strictly after `valid_from`. | | `active` | Default `true`. `false` rejects the code as `inactive`. This is the off switch; there is no delete. | | `max_uses` | Positive integer or `null` for unlimited. Counts redemptions across all buyers: one checkout that uses the code is one use, however many tickets it discounts. It does not cap ticket quantity. | | `max_uses_per_customer` | Positive integer or `null`. Counts that identified customer's redemptions, not tickets. | | `stackable` | Default `false`. See [stacking](#stacking). | Send RFC3339 timestamps with an offset; responses normalize to UTC with milliseconds. Windows are compared as instants against the engine's clock, not against the venue's timezone — "midnight on the 31st" is whatever instant that is where your buyers are, so write the offset you mean. ### Codes are unique per organizer, case-insensitively `SUMMER`, `summer` and `Summer` are the same code. Creating a second one answers: ```json { "error": { "type": "invalid_request_error", "code": "code_already_exists", "message": "A discount code with this value already exists", "param": "code", "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3" } } ``` Matching is case-insensitive too, and codes are trimmed of surrounding whitespace before they are looked up — so a buyer who pastes `winter20` gets the code you created as `WINTER20`. Presenting the same code twice in one request counts once. Store the code the way you want it displayed; the engine echoes back the spelling you created, and echoes a *rejection* back in the spelling the buyer typed. ### Stacking By default the engine applies the **single best discount** per position: among the non-stackable effects covering a line, only the one that produces the lowest final price applies, and the rest are reported in `superseded_effect_ids`. "Best" is decided by simulating each candidate and comparing the final prices, so it always lands on the answer that favours the buyer. A stackable percent or amount discount opts out of that competition: it always applies, in addition to whichever exclusive discount won. Price overrides, fee waivers and unlocks are not part of this comparison — each has its own rule, described above. Stacked percentages apply **one after another, each to what is left**, not added together. Two stackable 10% codes on a `2500` ticket take 250, then 225 off the remaining 2250, leaving `2025` — 19% off in total, not 20%. A superseded code is worth knowing about for a reason beyond display: a code that priced nothing is **never spent**. Its usage count does not move. ### A price for one checkout is not a code If your own backend decides a price for one buyer — an affiliate or invitation offer — do not create a code for it. Send it as an `offer` when you [create the checkout](/docs/guides/checkout/sessions#offers-from-your-backend): it takes the same effect types, is priced by the same engine, and cannot be presented to or replayed into any other cart. ## Create one `POST /v1/discount_codes` ```bash curl -X POST https://tickets.lissen.com/api/v1/discount_codes \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 6d0f2a91-7c35-4b60-8e19-3a4c7f2b9d05" \ -H "Content-Type: application/json" \ -d '{ "code": "WINTER20", "effect_type": "percent", "percent_bps": 2000, "event_ids": ["evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22"], "valid_until": "2026-11-14T00:00:00Z", "max_uses": 100, "max_uses_per_customer": 1 }' ``` A fixed-price members' tier, restricted to one item: ```bash curl -X POST https://tickets.lissen.com/api/v1/discount_codes \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 0b7e5c34-92a1-4f76-8d03-1a5b6c8e2f49" \ -H "Content-Type: application/json" \ -d '{ "code": "MEMBERS", "effect_type": "price_override", "amount_minor": 1500, "amount_currency": "GBP", "item_ids": ["itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10"] }' ``` Update with `PATCH /v1/discount_codes/{id}`; the merged result is validated, so a patch that leaves the code in an incoherent state — adding `percent_bps` to an `amount` code, say — is a `400` naming the offending field. ## Presenting a code Codes go into a cart as strings, up to ten per request: ```bash curl -X POST https://tickets.lissen.com/api/v1/quotes \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2 } ], "codes": ["WINTER20", "NOPE"], "customer": { "external_ref": "your-user-8817" } }' ``` A code that does not work is **not an error**. It comes back in `rejected_codes`, spelled as the buyer typed it, with a reason: ```json { "rejected_codes": [{ "code": "NOPE", "reason": "not_found" }] } ``` | Reason | What to tell the buyer | | ---------------------------- | ---------------------------------------- | | `not_found` | No such code. | | `inactive` | The code has been switched off. | | `not_yet_valid` | It does not start until later. | | `expired` | Its window has closed. | | `not_applicable` | It does not cover anything in this cart. | | `currency_mismatch` | It is priced in another currency. | | `max_uses_reached` | It has been fully used. | | `per_customer_limit_reached` | This customer has already used it. | An unknown `external_ref` is authenticated but has `customer_id: null`. Per-customer limits cannot be evaluated until a customer row already exists for that ref. Checkout-session creation does not create that row, so do not assume a later cart will count; `max_uses` still applies. ## How a use is spent Every code effect is **consumable**: it spends something finite, so the engine tracks it in three stages. **Quoted.** A preview checks the counts so an exhausted code shows as rejected rather than silently doing nothing — but it reserves nothing and spends nothing. Quote as often as you like. **Reserved at checkout.** When a real checkout claims capacity, the code's use is reserved alongside it. That reservation is what stops a "first 100" code from going to 130 people who all had the checkout page open at once. **Committed at issuance.** At issuance, commit rechecks that the redemption exists and remains reserved, the code is active and within its validity window, identity and the quoted effect still match, and usage limits still admit it. Reserved and committed uses count toward the limits, so another purchase cannot take this checkout's reserved slot. A checkout that is abandoned or lapses releases its reservation, and the use returns to the pool. [Checkout](/docs/guides/checkout/sessions) covers the sessions this happens inside. ## Errors this resource returns | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | code_already_exists | 400 | invalid_request_error | A discount code with this name already exists for the organizer. Uniqueness is case-insensitive: `SUMMER` and `summer` are the same code. | Pick another code, or update the existing one. | | invalid_reference | 400 | invalid_request_error | The request referenced an id that does not exist under this organizer — an `event_id`, a `quota_id`, an `item_id`, a `plan_id` (when creating a membership benefit), or a customer named by `id` or `external_ref` in a transfer. | Check the id, and check the `Ticketing-Organizer` header names the tenant that owns it. | | invalid_request | 400 | invalid_request_error | The request body or query failed validation. `param` names the field. | Fix the named field and send the request again. | | not_found | 404 | invalid_request_error | No such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden. | Check the id and the organizer header. | `invalid_request` covers a field combination the effect type forbids, a `percent_bps` outside `(0, 10000]`, a `valid_until` not after `valid_from`, or a duplicate id in a restriction set, with `param` naming it. The full list is the [error registry](/docs/getting-started#the-code-registry). Separately, a code that priced a cart can still fail to be reserved when a checkout session claims it — its last use having gone to someone else. That is `code_not_reservable`, and it belongs to [checkout](/docs/guides/checkout/sessions) rather than to configuring the code. Note what is **not** an error: a code that is unknown, expired, exhausted or inapplicable. Those are `rejected_codes` on a successful quote, because a buyer typing a bad code is not a broken request. ## What emits on the activity stream * **`discount_code.created`** — on the create, with the full snapshot including both restriction arrays. * **`discount_code.updated`** — on every accepted patch, with `previous_attributes`. Switching a code off is an update, so `active` flips in the diff. Redemptions have their own vocabulary in the stream, so you can watch a code being spent rather than inferring it from orders. The [full type registry](/docs/guides/activities/types) lists every current type and its feed scope. ## Gotchas * **`amount` is per ticket.** Per-cart amounts do not exist. * **A code cannot be deleted.** `active: false` is the off switch, and the code string stays taken — you cannot recreate it under the same name. * **Uniqueness is case-insensitive.** `VIP` blocks `vip`. * **Best-of-one is the default.** Two 10% codes give you 10% off, not 20%: the better one wins and the other is superseded. Marking both `stackable` gives 19%, because the second applies to what the first left. * **A superseded code is not spent.** Losing the comparison costs the buyer nothing and costs the code nothing. * **`price_override` upward does nothing.** It is an override, not a price change; the lower of the override and the current price wins. * **Money codes must match the cart's currency.** A `GBP` amount code in a `EUR` cart is rejected, not converted — there is no FX. * **Per-customer limits need a customer row that already exists.** An unknown `external_ref` quotes as authenticated with `customer_id: null`, and checkout-session creation does not create the row, so only `max_uses` can bite for that buyer. * **Ten codes per request, 64 characters each.** Beyond that the request is refused rather than truncated. --- # Events URL: /docs/guides/config/events The door-and-clock record of an occasion — what it holds, what it deliberately does not, and how you stop selling one An event is a **time and a place with a door**. It is not the concert. That distinction is the whole design. The engine records commerce: it holds an event because admission is shared across several offers — three tiers, one door — and the manifest, the door and the clock all need that shared anchor on our side of the wall. Everything that makes someone *want* to come (lineup, artwork, description, normalized venue identity, the pretty photo) stays in your catalog and joins by id. We store what our own surfaces render — a receipt, a checkout page, a door scan, an invitation — and nothing else. If you are looking for the sale window, it is on the item, not the event. ## The shape on the wire ```json { "id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "Acme Winter Social", "starts_at": "2026-11-14T19:30:00.000Z", "ends_at": "2026-11-15T02:00:00.000Z", "timezone": "Europe/London", "venue_name": "The Old Dock", "venue_address": "12 Wharf Road, London N1 7GS", "metadata": {}, "min_tickets_per_order": null, "max_tickets_per_order": 6, "max_tickets_per_customer": 10 } ``` | Field | Notes | | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | Required, free text. Displayed on receipts and at the door. | | `starts_at` | Required. Send RFC3339 timestamps with an offset; responses normalize to UTC with milliseconds. | | `ends_at` | Optional. When set it must be strictly after `starts_at`; omit it, or send `null`, for an event with no fixed end. Responses carry `null` in that case. | | `timezone` | Required IANA zone — `Europe/London`, `America/New_York`. Anything the platform cannot resolve as a zone is rejected. | | `venue_name` | Required, free text. | | `venue_address` | Optional, free text, nullable. One string: there is no structured address, and no venue object to reuse. | | `metadata` | Yours. Opaque key-values the engine stores, echoes on the wire and in every activity payload, and never reads. Put your own event id in here. | | `min_tickets_per_order` | Optional whole number of tickets, at least `1`, or `null` for no minimum. See [checkout limits](#checkout-limits). | | `max_tickets_per_order` | Optional whole number of tickets, at least `1`, or `null` for no maximum. | | `max_tickets_per_customer` | Optional whole number of tickets, at least `1`, or `null` for no cap. Counted per purchaser across all their orders for the event. | There is no `status`, no `currency` and no display attributes, and that is not an oversight — see [gotchas](#gotchas). ### Two clocks, on purpose Send RFC3339 timestamps with an offset; responses normalize to UTC with milliseconds. The venue's IANA zone rides alongside them as a separate field: "doors at 7:30pm" is a fact about the venue, not about UTC, and keeping both lets you render local time correctly even across a daylight-saving boundary, which a fixed offset cannot do. Changing `timezone` does not move `starts_at`. They are independent fields: one is the instant, the other is how to render it. ## Checkout limits An event can limit how many tickets a buyer takes. All three limits count **tickets**: the sum of the quantities of a checkout's lines whose item belongs to this event. They apply across the event's items together, not to each item, and an item with no event or another event's item does not count. * **`min_tickets_per_order`** and **`max_tickets_per_order`** bound the event's tickets in one checkout. A small event can ask for exactly two by setting both to `2`. * **`max_tickets_per_customer`** is a cumulative cap on one purchaser, the checkout session's customer, across every order and open checkout they have for the event. With a cap of five, a customer who bought two can buy at most three more. Transferring a ticket to someone else does not return the allowance: the cap is about who bought, not who holds. Each is `null` or absent for no limit, and responses always carry all three, with `null` where none is set. Events created before these fields existed have no limits. On a patch, send a number to set a limit, `null` to clear it, or leave the field out to keep it. When both are set, `min_tickets_per_order` must not exceed `max_tickets_per_order` or `max_tickets_per_customer`: no checkout could satisfy both. The engine refuses that with `400` `invalid_order_limits`, `param` naming the field to change, and checks it against the merged result of a patch, like the event window. The engine enforces the limits at checkout, whichever client starts the session, so hiding a quantity control is not the enforcement: when a session is created, when its lines or its customer change, and again at completion. See [event checkout limits](/docs/guides/checkout/sessions#event-checkout-limits) for what counts, when it is checked and the refusals. Direct comps are exempt. The buyer-plane session carries the limits on each line's `event`: the hosted checkout shows them in plain words and keeps payment disabled until the cart fits, and your own quantity controls can use them to bound a selection before the engine refuses. ## Create one `POST /v1/events` ```bash curl -X POST https://tickets.lissen.com/api/v1/events \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 7c1f0a3e-4d29-4f81-9b6b-1e2a5c8d0f44" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Winter Social", "starts_at": "2026-11-14T19:30:00Z", "ends_at": "2026-11-15T02:00:00Z", "timezone": "Europe/London", "venue_name": "The Old Dock", "venue_address": "12 Wharf Road, London N1 7GS", "metadata": { "your_event_id": "winter-social-2026" }, "max_tickets_per_order": 6, "max_tickets_per_customer": 10 }' ``` `Idempotency-Key` is **required** on this create, as it is on every create in the configuration API. Omitting it is a `400` `missing_idempotency_key`. Send a fresh UUID per logical event and reuse it for every retry of that one. ## Read them `GET /v1/events` is keyset-paginated, reverse-chronological, and takes no filters — no date range, no name search. The id is the cursor, so a client that stores the last id it saw can resume from it later. ```bash curl "https://tickets.lissen.com/api/v1/events?limit=50" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Retrieving one is `GET /v1/events/{id}`, with the id from the create. ## Who is coming `GET /v1/events/{id}/attendees` lists the holders of the event's live tickets, newest ticket first, paged by `starting_after` set to the last `position_id`: ```bash curl "https://tickets.lissen.com/api/v1/events/evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22/attendees?limit=50" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "data": [ { "object": "attendee", "position_id": "pos_0199c4f0-7a21-7c10-9d12-4e8b1f2a3c55", "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "item_id": "itm_0199c4e7-1d3c-7b21-8c60-5a9e2f4b7d10", "item_name": "General admission", "holder": { "customer_id": "cus_0199c4ee-5c44-7a90-b1d3-2f6e8a0c9b71", "name": "Sam Holder", "email": "sam@example.com" }, "checked_in": false } ], "has_more": false } ``` It is deliberately narrow. The holder is who holds the ticket now, which is not always who bought it; `checked_in` is true when an admitted, non-voided scan exists. There is no admission code, price, order, buyer or payment state, so the list cannot be walked to a customer's other orders. A revoked ticket is not an attendee. This is the attendee view an [event editor](/docs/guides/dashboard#event-editors) has in the dashboard: an event outside their access answers `not_found`. ## Update one `PATCH /v1/events/{id}` is a partial update: send only the fields you are changing, and at least one of them. Every field is mutable — including the times and the timezone. The id in the path below is the event created above; substitute your own. ```bash curl -X PATCH https://tickets.lissen.com/api/v1/events/evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22 \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "starts_at": "2026-11-14T20:00:00Z", "venue_name": "The New Dock" }' ``` Two things to know about the merge: * **The rule is checked against the merged result, not your patch.** Moving `starts_at` past the existing `ends_at` fails with `invalid_event_window` even though your patch never mentioned `ends_at`. * **`metadata` is replaced wholesale, not merged.** Send the whole object every time you change one key of it. `Idempotency-Key` is optional here, and still worth sending. ### What the stream sees The update appends `event.updated` carrying the **full new snapshot** plus `previous_attributes` — the shallow set of fields that actually changed, with their prior values: ```json { "id": "act_0199c4eb-8b76-7f00-a057-9c3d6e1f4a88", "type": "event.updated", "created": "2026-10-02T11:31:07.482Z", "organizer_id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7", "actor": { "kind": "api_key", "id": "key_0199c4e1-0a93-7b22-9c58-2f7d1b6e3a04" }, "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3", "livemode": false, "data": { "object": { "id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "Acme Winter Social", "starts_at": "2026-11-14T20:00:00.000Z", "ends_at": "2026-11-15T02:00:00.000Z", "timezone": "Europe/London", "venue_name": "The New Dock", "venue_address": "12 Wharf Road, London N1 7GS", "metadata": {}, "min_tickets_per_order": null, "max_tickets_per_order": 6, "max_tickets_per_customer": 10 }, "previous_attributes": { "starts_at": "2026-11-14T19:30:00.000Z", "venue_name": "The Old Dock" } } } ``` A field you patched to the value it already held is **not** in `previous_attributes` — the diff is computed from the before and after images, not from the keys you sent. A key that did not exist before records `null`, so "this attribute was added" survives serialization. ## Cancelling an event Cancelling is a **recorded fact with a policy behind it**, not a flag and not a delete. The organizer decides in advance what cancelling does; cancelling then applies exactly that, with no choices at the time. There is still no delete and no event status field: orders, tickets, refunds and check-ins are all kept, and the event simply has a cancellation attached. ### 1. Configure the policy `PUT /v1/events/{id}/cancellation_policy` saves five independent switches, all required, none defaulted: | Switch | When the event is cancelled | | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `stop_new_sales` | New checkouts for the event are refused (`item_not_sellable`, quote `blocked_reason: event_cancelled`). Off: sales continue. | | `close_pending_checkouts` | Open checkouts are expired the normal way, their payment intents cancelled. A checkout whose payment has started is left to finish. Off: they keep their ordinary lifecycle. | | `refund_paid_tickets` | Every paid ticket's money is returned as a **money-only refund**, so the ticket stays usable unless admission is also disabled. Off: no refund is issued automatically. | | `disable_admission` | Doors refuse the event's tickets and its manifest is empty. Nothing is revoked and no money moves. Off: admission is unaffected. | | `notify_attendees` | One `event_cancellation_notice.requested` activity per order, which the notification sink can send as the `event_cancelled` message. Off: no attendee notice is requested. | Refund and admission are independent, so all four combinations work: refund and keep tickets valid, disable entry without returning money, both, or neither. Saving the policy cancels nothing, and an event with no policy cannot be cancelled (`cancellation_policy_required`). `GET` reads it back, answering `cancellation_policy_not_configured` until one exists. ### 2. Cancel `POST /v1/events/{id}/cancel` takes only a `reason` (your own record, never sent to attendees) and `confirm: true`. It **accepts nothing else**: a body that names a refund, admission or any other effect is refused with `invalid_request`, because those were decided in the policy. The engine snapshots the policy as it is now and answers `202` with the cancellation. Stopping sales and disabling admission take effect at once; closing checkouts, refunds and notices run in the background. A second cancel answers `event_already_cancelled`. Editing the policy afterwards never changes a cancellation that has started: it keeps the snapshot it began with, through every retry. ### 3. Follow it `GET /v1/events/{id}/cancellation` returns the reason, who cancelled, the snapshot and each action's `status` (`pending`, `completed`, `failed` or `skipped`), how many orders or checkouts it has found and finished, and a `last_error` code on failure. The cancellation is `in_progress` while any action is pending, `needs_attention` when one failed and none is pending, and `completed` otherwise. Each step also appears on the activity stream as `event_cancellation.started`, `.action_completed`, `.action_failed`, `.retried` and `.completed`, whether or not the policy notifies attendees. `POST /v1/events/{id}/cancellation/retry` hands failed actions back. A retry resumes where the failure left off: an order already refunded or noticed is not refunded or noticed again, and a refund the provider refused is replaced by a new one. Without a retry, a failed action is left alone. ### Who a cancellation covers A cancellation covers the purchases that existed when it was recorded: orders whose checkout started at or before the cancellation, and checkouts open then. Refunds and notices wait for those checkouts to become orders or expire, so a payment that lands a moment after cancelling is still covered. A purchase made afterwards, which only happens if the organizer deliberately left sales on, is not refunded, closed or noticed by the policy; its tickets still follow the admission rule, which belongs to the event. Configuring the policy and cancelling both need the organizer's administrator authority (its own API key, an owner, or Lissen staff). A credential that may only edit events answers `organizer_admin_required`. ### What scanners see With `disable_admission`, a live scan is rejected with `admission_disabled` and the manifest comes back empty. A scanner that is offline keeps its last manifest and cannot be told. When its scans sync they are judged by when they were taken: before the cancellation they are recorded as admitted, after it they are rejected and reported as `revoked_since_manifest`. See [check-in](/docs/guides/check-in#when-the-event-is-cancelled). ### Stopping sales without cancelling If you only want to stop selling, without refunds or notices, use the item: * **Close the sale window.** Set `sale_ends_at` on each item to a time in the past. The window is engine-enforced: the item stops being sellable at the boundary. * **Or deactivate the item.** `active: false` takes it out of sale immediately, without touching the window you configured. * **Or close the pool**, if the quota is finite. Shrink its `size` down to exactly what is already consumed: that sells no more without invalidating anything already sold, and the engine refuses a reduction below that figure. An **unlimited quota cannot be closed this way** — giving it a finite size is refused with `quota_unlimited_immutable` — so for an item on an unlimited pool, use `active: false` or `sale_ends_at`. Shrinking a quota to what is consumed also counts as running out for any item that [opens when this one runs out](/docs/guides/config/items-and-quotas#opening-one-ticket-type-when-another-runs-out-or-closes). Refunding what has already been sold outside a cancellation is a separate act — see [refunds and disputes](/docs/guides/refunds#refunds-for-a-cancelled-event). Be deliberate about renaming or re-timing an event that has already sold. A purchased position snapshots only its **item** description and its prices; the event's name, times and venue are read live, so changing them changes what every surface shows for orders that were placed before the change. ## Errors this resource returns | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | invalid_event_window | 400 | invalid_request_error | An event's `starts_at` is not before its `ends_at`. | Fix the times. Both are RFC 3339 UTC. | | invalid_order_limits | 400 | invalid_request_error | An event's `min_tickets_per_order` is greater than its `max_tickets_per_order` or `max_tickets_per_customer`, so no checkout could satisfy both. `param` names the field to change. | Lower the minimum, raise the maximum, or clear one of them with `null`. The check uses the event's stored values for any field the request leaves out. | | invalid_request | 400 | invalid_request_error | The request body or query failed validation. `param` names the field. | Fix the named field and send the request again. | | not_found | 404 | invalid_request_error | No such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden. | Check the id and the organizer header. | | cancellation_policy_not_configured | 404 | invalid_request_error | The event has no cancellation policy: its organizer has not configured what cancelling it does (stop new sales, close pending checkouts, refund paid tickets, disable admission, notify attendees). There is no default, so nothing happens and an event with no policy cannot be cancelled. | Save the policy with `PUT /v1/events/{id}/cancellation_policy`, deciding all five consequences explicitly, then retry. | | cancellation_policy_required | 422 | invalid_request_error | The event has no cancellation policy, so cancelling it was refused and nothing changed. There is no default: an organizer decides what cancelling does before it can happen. | Save the policy with `PUT /v1/events/{id}/cancellation_policy`, then cancel again. | | event_already_cancelled | 409 | invalid_request_error | The event was already cancelled. A cancellation is recorded once and is not reversed by this API; its `detail.cancellation_id` names the one that exists. Nothing changed. | Read it with `GET /v1/events/{id}/cancellation` to see its policy snapshot and progress. Do not retry the cancel. | | cancellation_not_retryable | 409 | invalid_request_error | The cancellation has no failed action to retry: it is still in progress, or it already completed. Nothing changed. | Read `GET /v1/events/{id}/cancellation`. While it is `in_progress` the background executor keeps working; retry only when its status is `needs_attention`. | | organizer_admin_required | 403 | authentication_error | The operation changes money- or admission-affecting policy, or cancels an event, and needs the organizer's administrator authority. The credential is valid but does not carry it. Nothing changed. | Use the organizer's own API key or an owner's sign-in. A credential that may only edit events cannot configure the cancellation policy or cancel an event. | A malformed `timezone` lands under `invalid_request`, with `param` naming it. An id that belongs to another tenant reads as `not_found` — absent, never forbidden. The full list is the [error registry](/docs/getting-started#the-code-registry). ## What emits on the activity stream Two types carry the complete event snapshot in `data.object`: * **`event.created`** — appended by the create, inside the same transaction that wrote the row. If you got a `201`, the activity exists. * **`event.updated`** — appended by every accepted patch, with `previous_attributes` alongside the snapshot. Cancellation policy changes are `event_cancellation_policy.created` and `.updated`; a cancellation and its progress are the `event_cancellation.*` types described above. Because the snapshot is complete, a consumer of the feed never needs to call back to find out what an event looks like now. The [full type registry](/docs/guides/activities/types) lists every type the engine emits. An idempotent **replay** emits nothing. Retrying a create with the same key returns the stored response and appends no second activity, so a feed consumer never sees a duplicate. ## Gotchas * **The event has no sale window.** `starts_at` is when the doors open, not when tickets go on sale. Sale windows are `sale_starts_at` / `sale_ends_at` on the item. * **The event has no currency.** Currency is an item attribute, so one event can hold items priced in different currencies. A single cart is single-currency; mixing them answers `currency_mismatch`. * **The event has no price and no capacity.** Both live on items and quotas. An event with no items sells nothing and is not an error. * **An event cannot be deleted.** Nothing removes it, and nothing should: it is the anchor an old order's positions point at. * **`venue_address` is one free-text string.** There is no structured address, no geocoding, and no reusable venue object. If you need those, keep them in your own catalog and join on `metadata`. * **`ends_at` must be strictly after `starts_at`**, on the create and on the merged result of any patch. Equal timestamps are refused. * **Order limits count this event's tickets only.** A cart that mixes events is checked per event; merchandise with no event never counts. * **Times are not validated against the present.** You can create an event entirely in the past; that is legitimate for backfilling records. --- # Fee schedules URL: /docs/guides/config/fee-schedules How the platform fee on each position is computed, who pays it, and why a missing schedule fails loudly instead of quietly charging nothing A fee schedule says what the platform takes on each thing you sell, and whether the buyer sees it. It is a percentage in basis points, plus a flat amount, plus a mode. It is also the one configuration resource **you read but do not write**. The fee is part of your agreement with Lissen, so Lissen sets the schedule when your organizer is created and changes it when the agreement does; the API exposes `GET /v1/fee_schedules` and `GET /v1/fee_schedules/{id}` and nothing else, and your dashboard shows the same schedule on the Profile page. Every position the engine prices resolves a schedule. There is no default and no fallback: **if nothing matches, pricing fails**. That is a deliberate choice, and the most important sentence on this page — a forgotten fee configuration should stop a sale, not silently give the sale away. ## The shape on the wire ```json { "id": "fsc_0199c4e7-4d32-7b66-ac13-5e9f2a7b0c44", "event_id": null, "item_id": null, "currency": "GBP", "percent_bps": 500, "flat_minor": 150, "mode": "passed_on", "active": true, "metadata": {} } ``` | Field | Notes | | ---------------------- | -------------------------------------------------------------------------------------------------------------------- | | `event_id` / `item_id` | The scope this schedule points at. In v1 both are always `null` — see [organizer scope only](#organizer-scope-only). | | `currency` | An ISO-4217 code. A schedule only ever applies within its own currency. | | `percent_bps` | Non-negative integer basis points. `500` is 5%, `250` is 2.5%, `0` is none. | | `flat_minor` | Non-negative integer minor units, added per position. | | `mode` | `passed_on` or `absorbed`. | | `active` | Only active schedules are ever resolved. A schedule is never deleted, only deactivated. | | `metadata` | Opaque, echoed everywhere. | Note which way the arrow points: **the schedule names its scope; items and events never name a schedule**. Nothing on an item has to be updated when the fee changes. ## Precedence: item beats event beats organizer Resolution happens **per position**, inside the cart's currency, and the most specific scope wins: 1. a schedule whose `item_id` is this position's item; 2. otherwise a schedule whose `event_id` is this position's event, with no `item_id`; 3. otherwise the organizer-wide schedule — both `event_id` and `item_id` `null`. In v1, every line in a single-currency cart resolves the same organizer-wide schedule. The resolver's item→event→organizer precedence is reserved for narrower scopes that do not exist today. The per-line `platform_fee_minor` in a quote is still the exact attribution for that line. ### Organizer scope only **v1 has organizer scope only.** Every schedule you will read has `event_id` and `item_id` both `null`; the engine refuses to create a narrower one. The precedence order above is nonetheless the one the engine resolves with, so it is worth understanding even while every schedule sits at the broadest scope. ## One active schedule per scope and currency Two active schedules at the same scope in the same currency would have no defined precedence between them, so the engine never allows the second. Inactive schedules are unconstrained; when Lissen changes your fee you may see the old schedule flip to `active: false` and a new one appear, or the existing one change in place. Either way, `GET /v1/fee_schedules` filtered to `active: true` is the truth. Resolution reads the configuration at the moment a request prices a cart, so a change applies to **subsequent quote requests**. A quote you already have in hand is a snapshot of the answer at the moment it was returned; ask again if you need the current one. Currency is part of the uniqueness rule, so selling in `GBP` and `EUR` means two active organizer-scope schedules — one per currency. A cart in a currency with no schedule fails; tell Lissen about every currency you sell in. ## Passed on, or absorbed The **platform fee** is what the platform takes. The **booking fee** is the part of it the buyer is charged. `mode` decides whether they are the same number. | `mode` | Buyer pays | Your proceeds | In the quote | | ----------- | ----------- | -------------- | ------------------------------------------------------------------------- | | `passed_on` | price + fee | the full price | `booking_fee_minor` equals `platform_fee_minor` | | `absorbed` | price only | price − fee | `booking_fee_minor` is `0`; `platform_fee_minor` still carries the amount | Both modes compute the same fee. The difference is only who it comes out of, which is why `platform_fee_minor` is always present on a quote line: it is the attribution, not the charge. ### How the number is computed Per position, in this order: 1. Start from the position's **final unit price** — after discounts, not the list price. 2. Take `percent_bps` of it, rounded half-up to the nearest minor unit. 3. Add `flat_minor`. 4. Multiply by the line's quantity. A worked line: list price 2500, a 20% code applied, a `500` bps + `150` flat `passed_on` schedule, quantity 2. | Step | Value | | --------------------------------------------- | ---------------- | | Unit list price | `2500` | | Unit price after the code | `2000` | | 5% of `2000` | `100` | | Plus the flat `150` | `250` per ticket | | `platform_fee_minor` (×2) | `500` | | `booking_fee_minor` (`passed_on`) | `500` | | `total_minor` (`subtotal` 4000 + booking fee) | `4500` | Because the percentage rides the **discounted** price, a discount reduces your fee as well as the buyer's price. That is intentional: the fee is a share of what actually changed hands. ### Zero-priced positions carry no fee A position whose final price is zero — a free item, or one a `price_override` took to zero — carries **no fee at all**, including the flat part. A comped ticket does not quietly cost the buyer £1.50 in booking fees, and it does not cost you a platform fee either. ### A waived fee is not a discount A `fee_waiver` discount code, or a membership's `fee_waiver` benefit, removes the **buyer-visible booking fee only**, and only where there is one to remove: it does nothing on an `absorbed` schedule, and nothing on a position whose fee is already zero. The platform fee still exists — it simply falls to your proceeds, exactly as if the schedule had been `absorbed` for that position. One waiver is all a position can use: a membership's is used before a code's, and extras are reported as superseded. Where the absorbed platform fee would meet or exceed the position's charge, a code's waiver refuses the quote with `fee_exceeds_charge` and a membership's steps aside, leaving the booking fee in place. See [discount codes](/docs/guides/config/discount-codes) and [membership benefits](/docs/guides/memberships/reference#benefits-in-quotes). ## Resolution fails loud If no active schedule matches a position's currency, pricing stops: ```json { "error": { "type": "invalid_request_error", "code": "fee_schedule_not_found", "message": "No active fee schedule is configured for GBP", "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3" } } ``` This is a `422`, and it arrives from `POST /v1/quotes` as readily as from a checkout — which makes a quote the cheapest way to prove your configuration is complete before a buyer ever meets it. A genuinely fee-free arrangement is an explicit schedule of `percent_bps: 0`, `flat_minor: 0`, which Lissen writes like any other. Silence is never read as zero. ## Errors you will meet ### When you read a schedule | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | not_found | 404 | invalid_request_error | No such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden. | Check the id and the organizer header. | A schedule id that is not yours, or does not exist, is a `404` — the API does not distinguish the two. ### When a cart is priced These two arrive from `POST /v1/quotes` and from a checkout, not from this resource — they are how a gap in your configuration surfaces: | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | fee_schedule_not_found | 422 | invalid_request_error | No active fee schedule matches this position's currency. Pricing fails loud rather than assuming a zero fee. | Lissen sets fee schedules; partners cannot create one. Contact Lissen to set a schedule for the organizer in that currency, then quote again to confirm before selling. | | fee_schedule_ambiguous | 422 | invalid_request_error | More than one active schedule matched at the same scope. | Contact Lissen: only Lissen can deactivate the extra schedule. Quote again afterwards to confirm the sale prices. | The full list is the [error registry](/docs/getting-started#the-code-registry). ## What emits on the activity stream * **`fee_schedule.created`** — when Lissen creates one, carrying the full schedule. The actor is `staff`. * **`fee_schedule.updated`** — on every change, with `previous_attributes` naming what moved. Deactivating a schedule is an update, not a delete, so a feed consumer sees `active` flip from `true` to `false`. These are the facts to watch if your integration caches the fee: nothing else announces that it changed. Nothing is emitted when a schedule is *resolved* during pricing. Fee attribution rides on the quote and on what a purchase records, not on its own activity. The [full type registry](/docs/guides/activities/types) lists every type. ## Gotchas * **No schedule means no sale.** Quote a cart in every currency you sell in before you go live; an empty answer is a conversation with Lissen, not a bug. * **You cannot write one.** There is no `POST` or `PATCH` on this resource. The fee is an agreement, and the API reflects it rather than sets it. * **A schedule is never deleted, only deactivated.** Filter on `active`. * **The percentage applies after discounts.** A 100%-off code leaves a zero-priced position, which carries no fee at all. * **`absorbed` still reports `platform_fee_minor`.** Do not read it as something the buyer is being charged; read `booking_fee_minor` for that. * **Basis points, not percent.** `5` is 0.05%, not 5%. 5% is `500`. * **Uniqueness is per currency.** Two active `GBP` organizer schedules conflict; a `GBP` and a `EUR` one do not. --- # Configuration URL: /docs/guides/config Events, items and quotas, fee schedules, discount codes, and branding — everything you set up before you sell anything Configuration is where you describe what you are selling. Five collection resources — **events**, **items**, **quotas**, **fee schedules** and **discount codes** — plus **branding**, which is a singleton: one record per organizer, with no list and no create. They compose in one direction: an item is the offer, it points at an event for admission, it draws on one or more quotas for capacity, a fee schedule decides what the platform takes on it, and a discount code can change what a buyer pays for it. All six are keyed, tenant-scoped and audited — each create and each accepted update appends a full snapshot to your activity stream. The five collections are keyset-paginated on the object id; branding, having no list, is not. If you have not made anything yet, the [quickstart](/docs/getting-started/quickstart) walks the whole chain in eight requests. --- # Items and quotas URL: /docs/guides/config/items-and-quotas The offer and the pool of capacity behind it — currency, sale windows, gating, and the rules that freeze once you have sold something An **item** is the offer, not the thing. A named, priced, quota-backed thing you sell: "General admission", "Early bird", "VIP". The thing itself — the occasion, its lineup, its artwork — lives in your catalog. Selling the same thing again is reopening the offer's window or minting a second offer. **An item is usually admission to an event, but it does not have to be.** Leave `event_id` out for merchandise — a T-shirt, a programme — and it sells through the same checkout, draws from a quota like any other item, and simply carries no date. Everything else about it is identical. A **quota** is a named pool of sellable capacity. Items draw on quotas, an item may draw on several, and one quota may back several items. That last property is the load-bearing one: it is how "300 people fit in the room" survives being sold as four tiers at four prices. The two are separate because capacity is a fact about the room and price is a fact about the offer, and they change on different clocks. ## Items ```json { "id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "General admission", "price_minor": 2500, "currency": "GBP", "gated": false, "active": true, "sort_order": 0, "sale_starts_at": null, "sale_ends_at": null, "opens_after_item_id": null, "opens_when": null, "sale_state": "on_sale", "sale_opens_at": null, "sale_opened_by": null, "quota_ids": ["quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33"], "requires_approval": false, "max_per_order": null, "metadata": {} } ``` | Field | Notes | | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `event_id` | Optional. The event this item belongs to. Omit it, or send `null`, for merchandise — something sold through the same checkout that is not tied to a date. | | `name` | Required. Snapshotted onto each purchased position, so a receipt keeps the name it was sold under. | | `price_minor` | Required, integer minor units, may be `0`. | | `currency` | Required, **on the item** — not on the event. Three uppercase letters; send a valid ISO-4217 code. | | `gated` | Optional, default `false`. A gated item is unpurchasable without an unlock — see [member-gated items](#member-gated-items). | | `active` | Optional, default `true`. `false` takes it out of sale at once. | | `sort_order` | Optional, default `0`. Yours to use for display ordering; the engine only stores it. | | `sale_starts_at` / `sale_ends_at` | Optional, nullable. Send RFC3339 timestamps with an offset; responses normalize to UTC with milliseconds. `null` at either end means unbounded on that side. | | `opens_after_item_id` / `opens_when` | Optional, nullable, **set together or both `null`**. This item also opens when another item of the same event runs out or closes — see [opening one ticket type when another runs out](#opening-one-ticket-type-when-another-runs-out-or-closes). | | `sale_state`, `sale_opens_at`, `sale_opened_by` | **Read-only, derived.** Whether the item can be sold right now, when its sale opened or will, and what opened it. Send none of them; they are what a surface should read instead of comparing the dates with the clock. | | `quota_ids` | Required, **at least one**. The pools this item draws on. | | `requires_approval` | Optional, default `false`. An approval-gated item is requested through its waitlist and sold only when you approve the request — see [approval-gated items](/docs/guides/waitlist#approval-gated-items). | | `max_per_order` | Optional, nullable, 1–100. The most units of this item one checkout session may hold; more answers `quantity_limit_exceeded`. `null` leaves only the line ceiling of 100. | | `metadata` | Yours, opaque, echoed everywhere and never read by us. | ### Currency lives here Currency is an item attribute, so one event can carry items priced in different currencies. What is single-currency is the **cart**: every line in one quote, one checkout and one order must share a currency, and mixing them answers `currency_mismatch`. The engine performs no FX, ever. ### Sale windows are enforced by the engine `sale_starts_at` and `sale_ends_at` are not decoration for your UI: the engine evaluates them. Outside the window an item is not sellable, and a quote marks the line: ```json { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "unit_price_minor": 2500, "sellable": false, "blocked_reason": "sale_not_started" } ``` Whether the sale is open is one evaluation inside the engine — the schedule, an [opening trigger](#opening-one-ticket-type-when-another-runs-out-or-closes), the end date and `active` — and the item's read-only `sale_state` (`inactive`, `not_started`, `on_sale` or `ended`) is its answer. Read that, rather than comparing `sale_starts_at` with your own clock: a trigger can open an item before its start date. `blocked_reason` is one of `sale_not_started`, `sale_ended`, `inactive`, `gated`, `approval_required` or `event_cancelled` (the item's event was cancelled under a policy that stops new sales). A preview quote **prices a blocked line anyway** — that is exactly how you render "on sale Friday, £25" or "members only, £20" — and only refuses it when a real checkout tries to buy it. The boundaries are precise: an item is sellable from `sale_starts_at` inclusive, and stops at `sale_ends_at` exclusive. The sale is evaluated when a cart is priced, and again when a checkout session is created or updated — a line that is outside its window makes that request fail with `item_not_sellable` rather than quietly selling. See [checkout](/docs/guides/checkout/sessions) for what a session does with it. ### Opening one ticket type when another runs out or closes A sale window answers "when does this open?" with a date. A launch often wants a different answer: **General Sale opens when Early Bird sells out, or when it closes, whichever you choose** — and on Friday at the latest. That is a setting on the item that opens, not a rule for the whole organizer: | Field | Notes | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `opens_after_item_id` | Another item of the **same organizer and event**. Never the item itself, and never a loop (A opens after B, B after A, or any longer ring). | | `opens_when` | `runs_out`: the other item's **issued** units have reached the size of a quota it draws on. Units in live baskets do not count, so a full checkout does not open anything. `closes`: the other item's `sale_ends_at` has passed. `either`: whichever happens first. | The item that opens owns the link; the other item does not know it has a follower. Set both, or send both as `null` to remove the link. ```bash # 100 Early Bird tickets, closing Friday week... curl -X POST https://tickets.lissen.com/api/v1/items \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 5a1d2c34-8e1b-4f6a-9b7c-0d3e4f5a6b71" \ -H "Content-Type: application/json" \ -d '{ "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "Early Bird", "price_minor": 1200, "currency": "GBP", "sale_ends_at": "2026-10-16T18:00:00Z", "quota_ids": ["quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33"] }' # ...and General Sale, on its own quota, opening when they are gone or closed. curl -X POST https://tickets.lissen.com/api/v1/items \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 8b3e4d56-0a2c-4c7d-8e9f-1a2b3c4d5e6f" \ -H "Content-Type: application/json" \ -d '{ "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "General Sale", "price_minor": 1800, "currency": "GBP", "opens_after_item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "opens_when": "either", "quota_ids": ["quo_0199c4ec-9c87-7a11-b168-0d4e7f2a5b99"] }' ``` Until one of those happens the General Sale item reads `sale_state: "not_started"` (with `sale_opens_at: null` while it waits on a sell-out alone, or the other item's end date when `closes` can name one). When it opens, `sale_state` becomes `on_sale`, `sale_opened_by` is `"trigger"`, and an `item.updated` activity is published for it. **What combines with what** * **A start date and a trigger.** Either can open the item first. General Sale starts Friday, but Early Bird sells out on Tuesday: General Sale opens on Tuesday. `sale_opened_by` says which it was. * **A link and no start date** waits for the trigger. **A start date and no link** is an ordinary scheduled sale. **Neither** is on sale from the moment it exists, as before. * **The item's own `sale_ends_at` is a hard stop.** A trigger opens a sale; it never brings back one that has ended (`sale_state: "ended"`, `blocked_reason: "sale_ended"`). * **`active: false` still wins**, and the item's own quotas still apply: an opened item can be sold out. A trigger moves no inventory between ticket types and creates none; size each item's quota as you always did. * **Closed means the sale's end date has passed.** An item that is deactivated, or has not started yet, has not closed. * **It latches.** Once a trigger has opened an item it stays open. A refund that gives Early Bird units back, a basket that lapses, or an extended Early Bird end date does not close General Sale again. Changing `opens_after_item_id` or `opens_when` starts the trigger afresh. * **Checkouts already in progress are untouched.** A binding quote and a checkout holding units keep working; the trigger decides what can be newly quoted, held or requested on a waitlist. * **Early Bird stays visible as sold out.** Nothing is hidden or reallocated: its availability reads `gone`, and showing the row sold out beside the now-open General Sale is your page's choice. A link to an unknown item or another organizer's answers `400` `invalid_reference`. One to an item of another event, to the item itself, or that would close a loop answers `400` `invalid_request` with `param: "opens_after_item_id"`. Moving an item to another event while other items open after it is refused the same way. The tier editors in the Lissen admin and the ticketing admin offer this as **Also opens when**: pick "Sells out", "Closes" or "Sells out or closes", then the other ticket type. The earlier editor setting that opened a tier when another's sale ended (a "following" tier) is the `closes` trigger; existing ones were converted when this shipped and open at the same moment as before. ### Member-gated items `gated: true` marks an item as unpurchasable **unless something grants an unlock naming it**. The gate is the mechanism; who opens it is a separate question: * A discount code with `effect_type: "unlock"` opens it. An unlock code makes a gated line sellable in quotes and checkout sessions. * **Memberships** can grant the same unlock without a code, and gated items become "members see a cheaper tier" with no code to distribute. Nothing about the item changes — see [memberships](/docs/guides/memberships#4-ana-opens-a-show-page). An anonymous buyer quoting a gated item gets the line back **priced**, with `sellable: false` and `blocked_reason: "gated"`. That is enough to render "£20, members only" against a real number rather than hiding the tier. The quote shape also carries an `unapplied_effects` array — the "you would get this if…" teasers. Discount codes never populate it: a code either applies or is rejected. Membership plans use it for generic "join for a benefit" teasers, so write your renderer to tolerate entries even when an organizer has no active membership plans. ### Create an item `POST /v1/items` ```bash curl -X POST https://tickets.lissen.com/api/v1/items \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 1f6c0b58-3d94-4e12-8a77-9c15b4e0d2a6" \ -H "Content-Type: application/json" \ -d '{ "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "name": "Early bird", "price_minor": 1800, "currency": "GBP", "sale_ends_at": "2026-10-31T23:59:59Z", "sort_order": 1, "quota_ids": [ "quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33", "quo_0199c4ec-9c87-7a11-b168-0d4e7f2a5b99" ] }' ``` Two quotas on one item means the sale draws on **both**: a purchase takes one unit out of each, and the item is sellable only while *every* quota it names has room. That is how "50 early birds, and no more than 250 people in the room in total" is expressed — a small early-bird pool plus the shared room pool. An `event_id` or a `quota_id` that does not exist under your organizer answers `400` `invalid_reference`. ### Update an item `PATCH /v1/items/{id}` is partial, needs at least one field, and validates the **merged** result — patching `sale_starts_at` past the existing `sale_ends_at` fails even though your patch never mentioned the latter. The id in the path below is the item shown above; substitute your own. ```bash curl -X PATCH https://tickets.lissen.com/api/v1/items/itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10 \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "active": false }' ``` Price, name, currency, windows, `gated`, `active` and `metadata` all stay mutable for the life of the item. Changing a price never rewrites history: each purchased position snapshots the price and description it was sold at. `quota_ids` is the one field that can freeze. Read on. ## Quotas ```json { "id": "quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33", "name": "Room capacity", "size": 250, "metadata": {} } ``` A quota has a name, a size and your metadata. It has no event: quotas are organizer-scoped, and their association with an event is *derived* through the items that draw on them. That is deliberate — a quota that can be shared across two events (a two-night pass, a festival wristband) would be impossible to model otherwise. ### `size: null` means unlimited `null` is not "unset" or "unknown". It is a **declaration** that this pool has no ceiling, and the engine treats it as one: a sale against an all-unlimited footprint takes no capacity lock at all, because there is nothing to contend over. That is why the declaration is **terminal**. Giving an unlimited quota a finite size afterwards is refused with `quota_unlimited_immutable`: ```json { "error": { "type": "invalid_request_error", "code": "quota_unlimited_immutable", "message": "An unlimited quota cannot be given a finite size; create a new quota instead", "param": "size", "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3" } } ``` Widening the other way — a finite quota to `null` — is always allowed, even when the quota is completely consumed. Loosening a ceiling can never oversell anything. Pick `null` deliberately, for genuinely uncapped event admission. For a room, name the number even if the number is large. ### Availability is derived, never stored `GET /v1/quotas/{id}/availability` The id in the path is the quota you are reading; substitute your own. ```bash curl https://tickets.lissen.com/api/v1/quotas/quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33/availability \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "quota_id": "quo_0199c4e6-3c21-7a55-9b02-4d8e1f6a9b33", "size": 250, "issued": 214, "in_baskets": 36, "available": 0, "state": "in_baskets" } ``` * `issued` — live positions drawing on this pool. * `in_baskets` — units claimed by live checkouts. * `available` — `size − issued − in_baskets`, floored at zero, and `null` when the quota is unlimited. * `state` — the value to branch on: `available`, `in_baskets` or `gone`. `in_baskets` is deliberately a different state from `gone`: "none left, but some are in live checkouts" is a true and useful thing to render, because those baskets may lapse. On an unlimited quota, `size` and `available` are both `null` and the state is always `available`. This read is a **display value**. It takes no lock, and the number can move between the read and your next request — the binding decision is recomputed inside the purchase itself. Never gate your own sale on it; render it. ### Resizing `PATCH /v1/quotas/{id}` changes the name, the size or the metadata. A size change is a capacity operation and is evaluated under the same lock a sale takes, so it cannot race a purchase. Three rules apply: * **An unlimited quota can never be given a finite size** — that is `quota_unlimited_immutable`, and it holds no matter how little has been sold. To stop selling on an unlimited pool, close the item instead: `active: false`, or a `sale_ends_at` in the past. * **A reduction below what is already consumed is refused** — `quota_below_consumption`, whose message tells you the figures: ```json { "error": { "type": "invalid_request_error", "code": "quota_below_consumption", "message": "size cannot be reduced below the 250 already consumed (214 issued, 36 in live checkouts)", "param": "size", "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3" } } ``` Note that consumption counts live checkouts, not just issued tickets: a pool whose baskets are full refuses a reduction that issued tickets alone would have allowed. Retry once those baskets lapse. * **Shrinking to exactly the consumed figure is allowed.** That is the supported way to close a pool: it sells no more and invalidates nothing already sold. A resize can also answer `capacity_locked` when it collides with a purchase touching the same pool. If it does, this resize was not applied and the size was not written. Retry with a short backoff. ### Rebinding an item's quotas An item's `quota_ids` are the mapping every capacity derivation reads. Rebinding them would move live positions and live holds between pools, so: **`quota_ids` freezes the moment live capacity depends on the item.** After that, a patch that changes them answers `item_quotas_locked`, naming what it found: ```json { "error": { "type": "invalid_request_error", "code": "item_quotas_locked", "message": "quota_ids cannot change once capacity depends on this item (214 issued positions, 3 live checkouts, 3 live holds on its current quotas)", "param": "quota_ids", "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3" } } ``` Three things follow, and the third surprises people: 1. **Before anything is sold, rebinding is free.** Get the mapping right while the item is still cold. 2. **Resubmitting the same set is always accepted**, frozen or not. A patch that sends `quota_ids` unchanged alongside a price change is not a rebinding, and order does not matter. 3. **A live checkout on a *shared* quota can freeze an item that nobody is buying.** If two items draw on one pool, a basket holding units of that pool makes both items' mappings immutable for as long as it lives. The engine cannot always attribute a hold to the item that caused it, and it would rather refuse a config edit you could retry than move committed capacity between pools. When a mapping is genuinely wrong after sales have started, the way forward is to **mint a new item on the quotas you want and close the old item's sale window**. The old item keeps its history intact; the new one sells. Empty is never legal: `quota_ids: []` is refused on the create and on a patch, because an item with no pool has no defined capacity at all. ## Errors these resources return ### Quota errors | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | quota_unlimited_immutable | 400 | invalid_request_error | An unlimited quota (`size: null`) cannot be given a finite size. Unlimited is terminal. | Create a new finite quota and rebind the item to it, if the item has no live capacity yet. | | quota_below_consumption | 400 | invalid_request_error | A quota resize would have put its size below what is already issued plus what live checkouts are holding. | Read the quota's availability and resize to at least `issued + in_baskets`. | | capacity_locked | 409 | invalid_request_error | Another request held the capacity lock for the quotas this one touches, or the lock on the same purchaser's allowance for an event with a per-customer cap, and the wait timed out. This is contention, not a refusal — nobody has taken the tickets. | Retry with a short backoff. A contended purchase deliberately fails fast rather than parking a connection. | | invalid_request | 400 | invalid_request_error | The request body or query failed validation. `param` names the field. | Fix the named field and send the request again. | | not_found | 404 | invalid_request_error | No such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden. | Check the id and the organizer header. | ### Item errors | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | item_quotas_locked | 400 | invalid_request_error | An item's `quota_ids` cannot change once live capacity depends on the item. | Mint a new item on the quotas you want and close the old item's sale window. | | invalid_sale_window | 400 | invalid_request_error | An item's `sale_starts_at` is not before its `sale_ends_at`. | Order the window correctly, or clear one end of it. | | invalid_reference | 400 | invalid_request_error | The request referenced an id that does not exist under this organizer — an `event_id`, a `quota_id`, an `item_id`, a `plan_id` (when creating a membership benefit), or a customer named by `id` or `external_ref` in a transfer. | Check the id, and check the `Ticketing-Organizer` header names the tenant that owns it. | | invalid_request | 400 | invalid_request_error | The request body or query failed validation. `param` names the field. | Fix the named field and send the request again. | | not_found | 404 | invalid_request_error | No such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden. | Check the id and the organizer header. | An id that belongs to another tenant reads as `not_found` — absent, never forbidden. The full list is the [error registry](/docs/getting-started#the-code-registry). An item that is inactive, outside its sale window or gated is refused with `item_not_sellable` when a checkout session is created or updated — never when you configure it, and never on a preview quote, which prices the line and marks it `sellable: false`. See [checkout](/docs/guides/checkout/sessions). ## What emits on the activity stream Four types, each carrying the complete resource snapshot: * **`item.created`** / **`item.updated`** — the item snapshot, including its `quota_ids` array, so a feed consumer can maintain the mapping without reading it back. * **`quota.created`** / **`quota.updated`** — the quota snapshot. A resize is the common `quota.updated`, and `previous_attributes` carries the old size. Note what is *not* there: there is no activity for availability changing. Availability is derived, not stored, so there is nothing to record — the facts that move it (a purchase, a hold, a lapse) each emit their own activity. The [full type registry](/docs/guides/activities/types) lists every type. ## Gotchas * **Every item needs at least one quota.** There is no "uncapped by omission" — if you mean uncapped, create a quota with `size: null` and bind it. * **Unlimited is terminal.** Widening to `null` is free; coming back from it is not possible on that quota. * **A shared quota shares its freeze.** A live basket on a pool locks the `quota_ids` of every item that draws on it, not just the one being bought. * **`in_baskets` is based on units in holds whose status is `live`, not the wall clock.** A basket whose time is up still blocks its units until the engine has actually released it. The engine undersells rather than oversells, deliberately. * **Availability is a display value.** It takes no lock; do not treat it as a reservation. * **Currency is on the item.** An event with items in two currencies is legal; a cart mixing them is not. * **`sort_order` means nothing to the engine.** It is stored and echoed for your UI to sort by. * **A patch of `quota_ids` with the same ids in a different order is not a rebinding.** The set is compared, not the array. --- # Stripe Connect URL: /docs/guides/connect Attaching the Stripe account your money lands on Every charge the engine creates is a direct charge on **your** Stripe account. You are the merchant of record: the money, the refunds and the disputes all live on your balance, and Lissen's cut arrives as an application fee on each charge. So before you can sell anything, your organizer needs an account attached to it — either one we create and Stripe onboards you into, or one you already own. ## Live payment readiness An organizer's test/live mode is fixed. Live organizers use live Stripe accounts and credentials; test cards and test-mode payment objects cannot pay a live organizer. Test organizers use sandbox onboarding. If live payment setup is missing, checkout returns HTTP 503 with code `live_payments_not_configured`. Contact the platform operator to complete setup before retrying. The engine does not fall back to test payments or reserve capacity for that refused checkout. --- # Onboarding URL: /docs/guides/connect/onboarding Attaching the Stripe account your money lands on, by hosted onboarding or by attaching one you already have Before you can sell anything, your organizer needs a Stripe account attached to it. This page is how that happens, and what it means afterwards. ## You are the merchant of record Every charge the engine creates is a **direct charge on your own Stripe account**. That is not an implementation detail — it decides who the buyer's bank statement names and whose problem a chargeback is: * Charges, refunds and disputes live on **your** balance. * Your account pays its own processing and dispute fees. * Stripe's checkout carries **your** branding and statement descriptor. * You get full Stripe Dashboard access to the account, and Stripe collects the verification requirements from you directly. * Lissen's cut arrives as an **application fee** on each charge, resolved from your fee schedules. Lissen never becomes the merchant, and never holds your money on the way through. The trade-off is that you are the party Stripe underwrites and verifies — which is exactly why onboarding cannot be skipped. The responsibilities bundle above is fixed engine-wide at the moment the account is created and cannot be varied per organizer. A deal with different economics is a fee schedule, not a different Stripe configuration. ## Two entrances, one destination There are exactly two ways to end up attached, and they both write the same thing: your organizer's `psp_account_ref`. | | Hosted onboarding | Attach your existing account | | ----------------------- | ------------------------------------------------------------- | --------------------------------------------------------------- | | Use it when | You have no Stripe account, or want a clean one for ticketing | You already sell on Stripe and want the money in the same place | | Entry point | `POST /v1/connect/onboarding` | `POST /v1/connect/oauth/authorization` | | Who creates the account | We do, then Stripe onboards you | You already did | | Test organizers | **Yes** — this is the sandbox path | **Yes**, with a Stripe test-mode account (see below) | Two restrictions apply before you pick: * **One Stripe account belongs to exactly one organizer.** Attaching an account another tenant already owns is refused with `connect_account_already_linked`, and it will stay refused: money attributable to two tenants is worse than money not yet attributable at all. * **An account already controlled by another platform cannot be attached.** Stripe will not hand it over, and there is no way around that from our side. If your existing account is under another platform's control, hosted onboarding is your only route — that is not a preference, it is the mandatory fallback. ## Hosted onboarding One call creates the account if the organizer has none, and returns a fresh single-use Stripe onboarding link to send your finance contact to. ```bash curl -X POST https://tickets.lissen.com/api/v1/connect/onboarding \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "return_url": "https://acme.example/settings/payouts?done=1", "refresh_url": "https://acme.example/settings/payouts", "email": "finance@acme.example" }' ``` ```json { "url": "https://connect.stripe.com/setup/c/acct_1QxAcmeTestAccount/…", "expires_at": "2026-11-14T18:32:00Z", "psp_account_ref": "acct_1QxAcmeTestAccount" } ``` * **`url`** is single-use and short-lived. Redirect the human to it; do not store it, email it, or hand it out twice. * **`expires_at`** is when that link dies, not when onboarding must be finished. * **`psp_account_ref`** is the account now linked to your organizer. It is stable; the link is not. * All three body fields are optional. Omit `return_url` / `refresh_url` and Stripe returns the human to a plain Lissen landing page that says "you can close this window". **The first call does two things; later calls do one.** On the first call, if your organizer has no account, one is created and linked, and `organizer.payment_account_attached` is emitted. Once an account is linked, calling again simply reuses it and creates a fresh link — no second account, no second activity. Calling again is safe and is the intended way to get a new link when one expires. Duplicate suppression before the first link is handled by a Stripe-side idempotency key that lasts 24 hours. Two calls a second apart cannot create two accounts; two calls more than 24 hours apart, both landing before either linked, theoretically could. In practice the first one links, and every call after that reuses the linked account. ### Linked is not the same as ready to sell Three different states, and `/v1/organizer` only tells you about the first: | State | How you know | | ------------------------------------------------------------ | ------------------------------------------------------------------------- | | **Linked** — an account exists and belongs to this organizer | `psp_account_ref` is set on `GET /v1/organizer`, and `status` is `active` | | **Onboarding complete** — the human finished Stripe's forms | Stripe's Dashboard for that account | | **Ready to sell** — Stripe has enabled charges | Stripe's Dashboard for that account | `/v1/organizer` is the authority on linkage and on whether the organizer is frozen. It is **not** a readiness check: an account can be linked for days before Stripe has finished verifying it. ```bash curl https://tickets.lissen.com/api/v1/organizer \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ## Attaching an account you already have **A test organizer attaches a Stripe test-mode account.** The authorized account's mode must match the organizer's: a live account offered to a test organizer, or a test account to a live one, fails at the callback with `400` `connect_oauth_failed` and is released. The engine can switch OAuth attach off for test organizers; while it is off, the attempt answers `422` `connect_oauth_not_available` and hosted onboarding is the sandbox path. An account you already have usually takes charges already. The engine reads it at the callback and records it as ready (`organizer.payment_account_ready`) together with the attach, without waiting for Stripe's next `account.updated`. If Stripe cannot be asked, nothing is attached, the authorization is released, and the callback answers `503` `connect_provider_unavailable`: connect again. ### 1. Get an authorization URL ```bash curl -X POST https://tickets.lissen.com/api/v1/connect/oauth/authorization \ -H "Authorization: Bearer tk_live_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "return_url": "https://acme.example/settings/payouts", "email": "finance@acme.example" }' ``` ```json { "url": "https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_…&scope=read_write&state=…", "expires_at": "2026-11-14T19:02:00Z" } ``` `expires_at` is the expiry of the signed `state` inside the URL: one hour. After that, request a new one. Authorization URLs minted before this release stop working at the callback because the signed state TTL is one hour; start the flow again to receive a new URL. Dashboard users can start the same flow from the Payments page: an organizer owner or a Lissen staff member can choose **Attach an existing Stripe account** and the engine sends them to Stripe. The signed state records that principal, and the callback checks that the API key is still granted, the owner is still listed, or the staff email is still in the staff-domain policy before it accepts the account. ### 2. The callback ``` your app Stripe the engine | | | | redirect to url ----> | | | | human approves | | | --- GET /connect/oauth/callback?code=…&state=… | | | | | checks the state, exchanges the code | | with Stripe, then links the account | | | | <---------------------- redirect to your return_url?connect=attached ---- ``` The engine hosts that callback itself, at `/connect/oauth/callback`. You never call it, and you must not try to: its authority is the signed `state`, and it carries no API key. Before any Stripe grant is accepted, the engine checks — in this order — that the state verifies, that it was issued for this deployment and this exact callback URL, that the organizer it names still exists and matches its mode, that the principal which started the flow is still authorized, and that the organizer's linkage is still exactly what it was when the URL was issued. Only then is the code exchanged with Stripe. The exchange happens **before** the account is written to your organizer, which is why a failure after it needs cleaning up — see below. ### 3. Where the human lands **Only two outcomes redirect to your `return_url`.** Everything else stops at the callback and renders an error response there. Do not build a UI that assumes the buyer always comes back to you. | Outcome | What the human sees | | -------------------------------------------------------------------------- | ------------------------------------------------------- | | Attached | Redirect to `…/payouts?connect=attached` | | Declined on Stripe's consent screen | Redirect to `…/payouts?connect=declined` | | State missing, altered, expired, or for another deployment | `400` `connect_state_invalid`, at the callback | | The API key that started the flow lost its grant | `403` `organizer_not_granted`, at the callback | | The owner was removed or the staff domain policy changed | `400` `connect_state_invalid`, at the callback | | An attach already landed for this organizer | `409` `connect_oauth_state_consumed`, at the callback | | Stripe returned no code, or Stripe deterministically rejected the exchange | `400` `connect_oauth_failed`, at the callback | | The authorized account's mode does not match the organizer | `400` `connect_oauth_failed`, at the callback | | The account belongs to another organizer | `422` `connect_account_already_linked`, at the callback | | Stripe was unavailable, rate-limited, or the exchange outcome was unknown | `503` `connect_provider_unavailable`, at the callback | A failure caused by our own platform credentials rather than by you or by Stripe returns `500` `internal_error`. That one is ours to fix — send us the `request_id`. Without a `return_url`, a success or a decline gets a plain Lissen page telling the human they can close the window. Either way, treat `?connect=attached` as a hint to refresh, not as proof: read `/v1/organizer` and check `psp_account_ref`. ### Things that are deliberately strict * **A completed attach kills every outstanding authorization URL.** The signed state carries a snapshot of your organizer's linkage as it stood when the URL was issued, so the moment any attach lands, every other in-flight URL for that organizer stops working. Replaying a completed authorization answers `409` `connect_oauth_state_consumed` — even when the second attempt names the same account the first one attached. Note the precise shape: it is a *completed attach* that invalidates a state, not merely using it. A decline, or a failure before the attach, leaves the state usable until it expires on its own. * **Mode must agree.** A live Stripe account can only attach to a live organizer, and a test account to a test organizer. * **A failure after the exchange triggers a cleanup we cannot guarantee.** If something goes wrong once Stripe has already granted access, the engine tries to hand that access straight back. If *that* call also fails, you may be left seeing Lissen connected in your Stripe settings while the engine has no record of it. It is logged on our side, but if you see that state, tell us — it needs a human. The one deliberate exception is a replay naming the account already attached to your organizer: that is rejected without any cleanup, because handing it back would sever a link that is legitimately working. ## After you are attached **Your fee is resolved per position, from your organizer's fee schedule** in the position's currency, and lands on the charge as Stripe's application fee. Lissen sets that schedule at organizer scope as part of your agreement; you read it but cannot write it, and there is no item or event scope today. Two rules override the schedule: a zero-priced position is free of both fees, and there is no zero-fee fallback for a missing schedule. Before you sell in a new currency, ask Lissen to set a schedule for it and quote a cart to confirm. See [Fee schedules](/docs/guides/config/fee-schedules). **A disconnection freezes you.** If the account is disconnected from Lissen — from your Stripe Dashboard, or by us — Stripe notifies the engine, and once that notification is processed the engine records `organizer.payment_account_deauthorized` and sets your organizer's `status` to `frozen`. New sales stop at that point. This is not punishment: a disconnected account cannot take money, so continuing to sell against it would be selling something we cannot charge for. The linkage reference is deliberately **kept** when you are frozen: charges that already happened still need reconciling, and refunds and disputes on them still have to land somewhere. Reattaching is a conversation with us, not a `PATCH`. ## What is not your concern * **Webhook plumbing.** You do not register anything with Stripe, you do not verify a signature, and you do not need an endpoint. The engine runs its own Connect endpoint and does the reconciliation. * **Which Stripe API version we are on**, or how the account object is shaped. Everything you need is on `/v1/organizer`. * **Refunding the application fee.** We execute the application-fee refund on your behalf when a refund is created through Lissen — only the application that created a charge can refund its fee. See [refunds and disputes](/docs/guides/refunds). ## What emits on the activity stream * `organizer.payment_account_attached` — an account was linked to your organizer. Emitted by **either** entrance, including the first hosted onboarding call that creates the account. A later onboarding call that only creates a fresh link emits nothing, because nothing changed. A linked account may not take charges yet: its onboarding may be unfinished. * `organizer.payment_account_ready` — Stripe says your linked account can take charges, usually once its onboarding is finished. Emitted once per linked account, from Stripe's account update; wait for it before relying on the account to charge. * `organizer.payment_account_deauthorized` — the account was disconnected and the organizer is now frozen. ## Stable error codes | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | connect_account_not_onboardable | 422 | invalid_request_error | Hosted onboarding cannot be started for this organizer in its current state. | Talk to us — this usually means the account is already attached. | | connect_account_already_linked | 422 | invalid_request_error | That Stripe account is already attached to another organizer. | One account belongs to exactly one organizer. Use a different account. | | connect_oauth_not_available | 422 | invalid_request_error | OAuth attach is switched off for test organizers in this engine, so a sandbox tenant is given an account created inside our own sandbox instead. | Use hosted onboarding for a test organizer while OAuth attach is off. | | connect_state_invalid | 400 | invalid_request_error | The OAuth `state` did not verify. It is bound to the organizer, its mode, the redirect URI, the initiating key and the linkage as it stood when the URL was minted, so any attach anywhere invalidates every outstanding state. | Start the authorization again to mint a fresh URL. | | connect_oauth_failed | 400 | invalid_request_error | Stripe refused the authorization code exchange. | Start the authorization again. | | connect_oauth_state_consumed | 409 | invalid_request_error | That authorization has already been completed. A state is spent exactly once — including when the second attempt names the account the first one linked. | Nothing: the account is attached. Read `/v1/organizer` to confirm. | | connect_provider_unavailable | 503 | api_error | Stripe was unreachable or rate-limited us. | Retry with backoff. | | organizer_not_granted | 403 | authentication_error | The key is valid but holds no grant on the organizer named in the header. | Use a key granted on that organizer, or ask Lissen to add the grant. | `connect_provider_unavailable` is the one to build a retry around — it means Stripe was unreachable or rate-limited us, not that anything about your account is wrong. The rest are deterministic: retrying them unchanged produces the same answer. ## Gotchas * **Do not cache an onboarding `url`.** It is single-use. Call the endpoint again for a fresh one; that is free and creates no second account. * **Do not treat `psp_account_ref` as "ready to sell".** See the three states above. * **`?connect=attached` is a UI hint, not an authority.** Confirm with `/v1/organizer`, and handle the case where the human never comes back at all. * **A test organizer attaches a test-mode account only.** A live account is refused at the callback. * **These two Connect POSTs deliberately take no `Idempotency-Key`.** Durable resource-creation POSTs elsewhere in the API require one; the quote preview also does not take one. Do not generalise in either direction from these three exceptions. --- # Your dashboard and team URL: /docs/guides/dashboard Who can sign in to your organizer's dashboard, how they get access, and what they can do there without writing code Everything in this documentation can be done by code, with your API key. Most of it can also be done by a person, in the dashboard at `https://tickets.lissen.com/admin`. The dashboard is a client of the same API you use — there is nothing it can do that the API cannot — so a change made there shows up in your integration exactly as if you had made it yourself, and lands in the [activity stream](/docs/guides/activities/stream) attributed to the person who made it. ## Signing in The dashboard sits behind a sign-in page. Two ways in: * **Google** — click *Sign in with Google* and use the Google account that matches your email. Any Google account works, including a Google Workspace domain that is not Lissen's. * **One-time code** — type your email, receive a six-digit code, paste it. Nothing to install and no password to remember. Either way, what matters is the **email address**. Access is granted to an address, not to a login method, so you can use whichever you prefer as long as it proves the same address. ## Who can sign in Signing in proves who you are. It does not, by itself, let you into anything. After sign-in the engine decides what you are: * an **owner** of one or more organizers — you were added to their team; * an **event editor** of one or more organizers — added to their team with a narrower role (see [Event editors](#event-editors)). You can be an owner of one organizer and an editor of another; * Lissen **staff** — every organizer, for support; * **nobody** — a real person with a verified email that no organizer lists. The third case is not an error. You see one page, *Talk to your admin*, with the email you signed in as, and nothing else responds. Ask the person who invited you, or Lissen, to add that exact address to the team. There is no "request access" button: access is given, never requested. ## Adding your team Lissen adds the first owner when your organizer is created. From then on the team is yours: any owner adds people on the **Team** page, by email address, as an owner or as an event editor, changes their access later, and removes them. The one thing an owner cannot do is remove themselves or change their own role — the page would vanish under them — so the last owner standing is always able to hand over. Every change is recorded in your activity stream as `organizer_member.added`, `organizer_member.updated` (with the previous access on `before`) and `organizer_member.removed`, so you can see who has access from your own systems. A change applies the next time the person loads a page; there is no session to expire. If a new owner's email domain is one Lissen has not seen before, tell us: the sign-in door admits domains, and the Team page admits addresses. Both have to agree before the person gets in. There are two roles on the Team page. A door-staff member scanning tickets at the entrance is neither: they do not sign in here, they use a door pass, which is a device credential, not a person. ## Event editors An **event editor** is for the people who run your events but should not hold your money or your keys. Give the role to a promoter's team and they can create and edit events and ticket types, manage the capacity those ticket types count against, and see who is coming, and nothing else. When you add an editor you choose which events they manage: * **All events** — every event of the organizer, including events created later. * **Selected events** — only the events you tick. Events outside the selection do not appear in their lists, and asking for one by id answers `not_found`. Either way, an editor automatically gets access to every event they create. You can switch an editor between the two later on the Team page; the ticked events are kept while the scope is *All events*, so switching back restores them. | | Owner | Event editor | Door pass | | ------------------------------------------------------------ | ----- | -------------------- | --------- | | Create and edit events and ticket types | yes | yes, in their events | no | | See attendees of an event | yes | yes, in their events | scan only | | Orders, customers and their history | yes | no | no | | Refunds, comps, transfers, holder corrections | yes | no | no | | Promo codes, branding, memberships, waitlist | yes | no | no | | Payments (Stripe), API keys, webhooks, notification settings | yes | no | no | | Team, door passes | yes | no | no | | Scan and sync check-ins | no | no | yes | Capacity needs one rule. A capacity is a pool that ticket types count against, and one pool can serve several events. An editor with *Selected events* works only with pools whose every ticket type belongs to their events (and with pools nothing uses yet): a pool that also serves an event they cannot reach is hidden from them, since resizing it would change that event's sales. They create a ticket type for one of their events on such a pool, and it is refused if it names an event or pool outside their access. The role is enforced by the engine, not just the dashboard. The dashboard calls the same API as your integration, signed in as the person, so a direct API call with an editor's sign-in is held to the same limits: an operation outside the role answers `403` with `member_role_not_permitted`, and a resource outside their events reads as absent. An editor cannot mint or read an API key to get around this. Your integration's own API keys are unaffected and keep the authority described in [Authentication](/docs/getting-started). The editor's dashboard shows only **Events**, **Items** and **Capacity**. An event's page lists its tickets, capacity and **Attendees**: the holder's name and email, the ticket and whether they have been scanned in, from `GET /v1/events/{id}/attendees`. ## What an owner can do Everything about the organizer's own catalogue and setup: events, what you sell and its capacity, promo codes, branding, notification providers, and Stripe onboarding. Owners can also **mint API keys** for their organizer, see the keys that exist, and revoke them. The secret of a new key is shown once, at mint, exactly as when Lissen mints one for you. Creating organizers, the **fee schedule** and changing the **card statement descriptor** are Lissen's alone. The fee is part of your agreement with Lissen, so it is shown on your **Profile** page as information rather than as something to edit. If it needs to change, talk to us. When Lissen staff open your organizer they see exactly the pages you see, nothing more. What Lissen does *to* an organizer — create it, set its fee, add its first owner — happens on a separate platform page that owners never see. ## Finding your way around The sidebar is the organizer. Pick the organizer top-left if you own more than one; the badge next to its name says whether it is a **test** or **live** organizer, the same distinction as your keys. ![The events page: upcoming events with when, where, tickets, price from and how many are left](/docs/dashboard/events.png) **Events** is where most days start. Each event page is one list of everything on sale for it, with the capacity it counts against above it. ![An event page: capacity above, then everything on sale, then the promo codes that apply](/docs/dashboard/event.png) The dashboard uses plain words for the resources this documentation names by their API name. They are the same objects: | In the dashboard | In the API | | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | an event | `event` | | something on sale — a ticket, a T-shirt | `item` | | a capacity, and what an item **counts against** | `quota`, and the item's `quota_ids` | | a promo code | `discount_code` | | the fee on your Profile | `fee_schedule` | | Team | `organizer_members` (visible to you only through the activity stream), with each editor's selected events in `organizer_member_events` | | an event's attendees (editors) | `attendee`, under `/v1/events/{id}/attendees` | A capacity is a limit, not a place: a room, an allocation, a guest list, a box of T-shirts. Everything on sale counts against at least one capacity, and it can count against several: an early bird ticket can count against a 25-ticket early bird capacity and the shared room, while general admission counts against the room only. For no limit, give the capacity no size; it shows as unlimited. Capacities belong to the organizer, not to one event, so the item editor lists the event's own capacities (the ones its items count against) first and the rest under **Other capacities**. Something new for an event starts on the capacities all the event's items share; when there are none, it starts on a new capacity, never on another event's. A new capacity takes the name and size you give it; left unnamed, it is called after the item, as in *General admission capacity*. Once tickets for an item are sold or held in baskets, what it counts against is fixed and the item editor shows it read-only. When an event has a single capacity the dashboard shows the number and hides the name, because there is nothing to tell apart. The other pages do what they say. **Items** and **Capacity** list everything across all events, including merchandise with no event. **Promo codes**, **Branding** and **Payments** are the organizer's own settings. **Door** shows the scanners enrolled for an event and lets you revoke one. **Team**, **API keys** and **Activity** are described above and below. ## Card statement descriptor On **Payments**, an owner can see what appears on a buyer's card statement for a payment on the organizer's connected Stripe account. The descriptor is held by Stripe. If none is set, Stripe falls back to the account's business name. Ask Lissen to change it; owners cannot edit it in the dashboard. ## The setup checklist The top of your **Profile** page lists what is left before the organizer is set up, for the organizer you are looking at. Test and live are separate organizers with their own Stripe account, keys and webhooks, so each has its own checklist. Each row links to the page where you finish it and says who takes the next step: you, or Lissen staff. A row is **Confirmed** only when the engine or Stripe has reported it, and the checklist keeps apart things that are easy to run together: * A **minted key** is not a working integration. It shows a key exists. * A **linked Stripe account** is not the same as an account that can **take payment**. The checklist reads that from Stripe and, while onboarding is unfinished, shows what Stripe still needs. * An **enabled webhook endpoint** is not a **delivery**. The delivery row turns Confirmed only after your endpoint has answered successfully to a real event in the last 30 days, so a new endpoint waits for its first order or membership. When something cannot be checked the row says so instead of guessing. **Notifications** and **embed origins** are optional and are not counted: skip Notifications if you send your own email from the webhook feed. Even with every required row confirmed, a first test purchase is the proof that checkout works from end to end. ## Membership benefits A membership benefit is what a plan's members get: a percentage off, permission to buy gated tickets, or free guest tickets they can invite (guest invitations, with a number of tickets per member counted per event or per week, month or year in UTC; only that number can be edited afterwards, and the benefit lists what members have invited). Define it once on **Memberships**, under the plan's **Benefits**; it needs no event to exist. Each benefit lists the events and tickets it is used at, and editing its percentage changes later quotes at every one of them, while checkout sessions and orders keep what they recorded. A benefit gives nothing until an event assigns it. On an event page, **Membership benefits** lists the benefits that apply there; add one for the whole event, which includes tickets added later, or for chosen tickets of that event, and change or remove it at any time. The new event page offers the same choice. It assigns the benefits after the tickets exist, and if an assignment is refused it says how many were assigned so you can finish from the event page. The plan-wide percentage and gated-ticket setting on a plan is the legacy benefit and still applies at every event. | In the dashboard | In the API | | ------------------------------------------ | ---------------------------------------------------------------------------- | | a membership benefit | `membership_benefit` | | a benefit on an event | `membership_benefit_assignment`, under `/v1/events/{id}/membership_benefits` | | where a benefit is used | `/v1/membership_benefits/{id}/assignments` | | what members invited under a guest benefit | `/v1/membership_benefits/{id}/guest_invitations` | See [Memberships](/docs/guides/memberships/reference) for the full rules. ## Invitation allocations An event page lists its **Invitation allocations** and **Shared invitation pools**. An allocation is a limit of free tickets you hand to whoever you choose; your own system decides who uses it, and the label and reference you give it are your notes, never read by the engine. A pool is an extra limit the allocations joined to it share. Each row shows what has been issued and what is left. Both are maximums, not reserved seats: event capacity still applies. A limit set below what has been issued issues no more, and issued tickets keep counting. The event and, for an allocation, its pool are fixed once created. | In the dashboard | In the API | | ---------------- | ----------------------------------------------------------- | | an allocation | `invitation_allocation`, under `/v1/invitation_allocations` | | a pool | `invitation_pool`, under `/v1/invitation_pools` | Tickets are issued by your backend with a comp that names the allocation: see [Invitation allocations and pools](/docs/guides/invitations). ## Earned memberships A free plan can be earned by attending events. On **Memberships**, create or edit a free plan and switch on **Earned by attending events**: how many events, within how many months, and two choices the dashboard makes you answer rather than guess. **Keep once earned** leaves the membership with the customer; **Maintain qualification** ends it when they stop qualifying, and they can earn it again. **All of your events** counts every event; **Selected events** counts only the events you tick. The plan list shows the rule, and earned members are marked **Earned** in the Members list. Customers do not join an earned plan. For selected events, an event's page has **Counts toward memberships**, and so does the new event page: tick the earned plans this event counts toward, now or before the event exists. It is separate from **Membership benefits**: ticking a plan offers its members nothing, and assigning a benefit counts for nothing. Ending an earned membership yourself with **End membership** sticks until the customer attends something that counts afterwards. | In the dashboard | In the API | | ------------------------------- | ----------------------------------------------------------------------- | | the rule on a plan | `attendance_rule` on the plan | | an event counting toward a plan | `membership_qualifying_event`, under `/v1/events/{id}/qualifying_plans` | | a customer's progress | `/v1/membership_plans/{id}/qualification` | See [Memberships](/docs/guides/memberships/reference#earned-memberships) for the rules. ## Refunding an order An order page offers two refund actions for a paid order with live tickets. Each one says on the page whether admission is cancelled. * **Refund and cancel tickets** returns each selected ticket's remaining amount, including its booking fee, and cancels admission straight away: the tickets stop admitting and their places go back on sale. This is a `refund_and_revoke` refund. * **Return money, keep tickets** returns the amount you enter against the tickets you select and does not cancel admission: the tickets stay live with the same holder and admission code, and still count against capacity. This is a `money_only` refund. The order shows how much has been **Refunded** and what remains to refund. The remaining amount counts refunds that are still processing, so a money-only amount above it is refused, and a later refund and cancel returns only what is left; after earlier money-only refunds the confirmation shows the amount as an upper bound. With nothing left to refund you can still cancel the tickets; no more money is returned. A money-only refund never shows a ticket as refunded; it appears in the order's refunds with the type **Money only**, and a failed one is retried from there with the same amount. A failed refund that has already been retried shows as **Retried** and cannot be retried again. The **Money** page lists every refund with its type. The [refunds guide](/docs/guides/refunds) covers the same two types in the API. ## Checkout limits Set an event's checkout limits under **Checkout limits** on the new event page, or later in the event's settings (**Edit event** on the event page). There are three, and each is optional; leave one empty for no limit, or empty a saved one to remove it. An event nobody has set limits on has none. * **Minimum per order** and **Maximum per order** bound how many of the event's tickets one checkout may hold, counted across all its tickets together: with a maximum of 6, four standing and two seated tickets fill it. * **Maximum per customer** caps how many of the event's tickets one buyer may buy across all their orders. With a cap of 5, a buyer who already bought 2 can buy 3 more. Passing a ticket on to someone else does not give the buyer more. The minimum cannot be above either maximum, and the dashboard says so before it saves. The hosted checkout shows a limit in plain words, including how many more a buyer may still buy, and keeps **Pay** and **Get tickets** disabled until the cart fits; your own quantity controls can read the limits from each line's `event`. Tickets you issue directly as comps are not limited. | In the dashboard | In the API | | -------------------- | -------------------------------------- | | Minimum per order | the event's `min_tickets_per_order` | | Maximum per order | the event's `max_tickets_per_order` | | Maximum per customer | the event's `max_tickets_per_customer` | See [Events](/docs/guides/config/events#checkout-limits) for the full rules. ## Cancelling an event Decide what cancelling an event does *before* it happens. On the event page, **If this event is cancelled** has five checkboxes: **Stop new ticket sales**, **Close pending checkouts**, **Refund paid tickets**, **Disable admission** and **Notify attendees**. Each is independent, none is on by default, and saving changes nothing about the event. Refunding returns the money without taking the ticket away; disabling admission stops entry without returning money; tick both, either or neither. **Cancel this event** (under **Cancellation**) shows what the saved policy will do, asks for a reason and for you to type the event's name, and applies exactly that. It offers no choices of its own, and it is not offered until a policy is saved. Once cancelled, the same section shows each action's progress (for example "5 of 12" orders refunded), explains a failure in words, and offers **Retry failed actions**; a retry never refunds or notifies an order twice. Editing the policy afterwards does not change a cancellation that has started. Setting the policy and cancelling are for owners; nothing is deleted. | In the dashboard | In the API | | ------------------------------------------- | ----------------------------------------------------------------------------- | | If this event is cancelled | `PUT /v1/events/{id}/cancellation_policy` | | Cancel this event | `POST /v1/events/{id}/cancel` | | Cancellation progress, Retry failed actions | `GET /v1/events/{id}/cancellation`, `POST /v1/events/{id}/cancellation/retry` | See [Events](/docs/guides/config/events#cancelling-an-event) for the full rules. ## Editing a customer's contact details **Customers** lists everyone who has bought. **Details and orders** on a row opens the customer: their current name and email, your reference, when they first bought, the billing contact state, and their orders. Change the name or email there and save. The customer keeps the same id, your reference, orders, memberships and tickets; nothing is merged or created. An email another of your customers already uses is refused, and nothing changes. An email cannot be removed; an empty name clears it. Only current details change. Future orders use the new name and email, but every order placed before keeps the buyer name and email it was placed with, shown under **Buyer at the time**, and so do its receipts and recorded activity. Messages about an existing order, such as a refund or a revoked ticket, still go to the email recorded on that order. **Billing contact** says whether Stripe customers already linked to this customer have the new details: | Billing contact | Meaning | | --------------- | -------------------------------------------------------------------------- | | Not linked | no Stripe customer is linked, so there is nothing to update | | Pending | the change has not reached every linked Stripe customer yet; it is retried | | Synced | linked Stripe customers have the current details | | Failed | retries stopped; save the contact again to retry | | In the dashboard | In the API | | ---------------------------- | -------------------------------------------- | | saving a customer's contact | `PATCH /v1/customers/{id}` | | Billing contact | the customer's `billing_contact_sync.status` | | the refusal for a used email | `customer_email_conflict` | See [updating a customer's contact details](/docs/guides/orders#updating-a-customers-contact-details) for the full rules. ## How it shows up in the API Actions taken in the dashboard are ordinary API calls, so they behave exactly like yours: the same validation, the same errors, the same activities. The one visible difference is the actor. In the activity stream an owner's action has `actor.kind` of `member` and `actor.id` set to their email, where your integration's actions carry `api_key` and the key's id. See [Activity types](/docs/guides/activities/types) for the full list. --- # How it fits together URL: /docs/guides/how-it-fits-together What stays in your systems, what lives in the engine, and how the two stay in step — told through one promoter, one venue and one sale This page uses a fictional promoter throughout: **Halfmoon Presents**, who run gigs in a converted chapel and sell from their own site, `halfmoon.live`. Wherever you read Halfmoon, read yourself. ## What is yours, what is ours You run the shows. Venues, artists, line-ups, dates, the marketing, your website and your relationship with your audience are yours, and they live in your systems. We never hold a concert, and we never become the place your customers think they bought from. We run the selling. Capacity, prices, holds, orders, the tickets themselves and the money flow live in the engine, under your organizer. Money goes to your Stripe account, not ours; we take a fee per sale that you agreed in a fee schedule. Two systems, one seam: the API going in, and a stream of facts coming back. ```text YOUR WORLD (halfmoon.live) THE ENGINE (tickets.lissen.com) ┌──────────────────────────┐ ┌──────────────────────────────┐ │ your database │ API calls │ organizer: Halfmoon Presents │ │ venues, artists, │ ──────────▶ │ events, quotas, items, │ │ shows, line-ups, │ │ discount codes, fee │ │ your customers │ │ schedules, branding │ │ │ │ ───────────────────────── │ │ your website │ checkout │ checkout sessions, holds, │ │ show pages, "buy" │ ──────────▶ │ orders, positions (tickets) │ │ │ │ ───────────────────────── │ │ your webhook endpoint │ ◀────────── │ activity stream │ │ updates your database │ activities │ (every fact, any order) │ └──────────────────────────┘ └──────────────┬───────────────┘ ▲ │ │ payouts buyer pays on │ Stripe Connect └──────────────── your Stripe account ◀───────┘ ``` ## The mapping, with Halfmoon's data Halfmoon has a venue, The Chapel, capacity 250, and a show: Low Tide Choir, Friday 14 November, stored in their database as `shw_88`. The venue and the show stay theirs. What they create in the engine is only what selling needs. **One event.** Name, start and end, timezone, venue name and address. Halfmoon puts their own id in `metadata`; the engine echoes it on every response and every activity about that event, so they never keep a lookup table. ```json { "name": "Low Tide Choir", "starts_at": "2026-11-14T19:30:00Z", "ends_at": "2026-11-14T23:00:00Z", "timezone": "Europe/London", "venue_name": "The Chapel", "venue_address": "12 Vestry Lane, Bristol", "metadata": { "halfmoon_show_id": "shw_88" } } ``` **One quota.** "Chapel capacity", 250. A quota is a pool of capacity, not a ticket type, and that distinction is the whole point of the model: Halfmoon's General Admission at £15 and their Early Bird at £12 are **two items drawing from the same quota**, so selling 40 early birds leaves 210 for GA without anyone doing arithmetic. A guest list is a third item, £0, same pool. **Items** carry the price, the currency and the sale window. Early Bird closes on 1 November; the engine enforces that, the website just reads it. ```json { "name": "Early Bird", "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "quota_ids": ["quo_0199c4e5-3c21-7a55-9b02-4d8e1f6a9b33"], "price_minor": 1200, "currency": "GBP", "sale_ends_at": "2026-11-01T00:00:00Z", "metadata": { "halfmoon_tier": "early" } } ``` **A fee schedule**, set by Lissen when Halfmoon signed up: say 5% plus 50p per ticket, and who pays it. Halfmoon reads it; changing it is a conversation with Lissen, not an API call. **Discount codes** like `CHOIR10`, scoped to items or events. **Branding**: Halfmoon's colours, logo and font tokens, so the checkout page a buyer sees is Halfmoon's, on our hostname. ## One sale, end to end Ana is on `halfmoon.live`, on the Low Tide Choir page. The page shows prices and "38 left", which Halfmoon read from [availability](/docs/guides/capacity-and-pricing/availability) or keep updated from the stream. She picks two General Admission and clicks buy. Halfmoon's server creates a [checkout session](/docs/guides/checkout/sessions) for those two items and sends Ana to the session's hosted URL on `tickets.lissen.com`. From that moment the engine holds two of the 250 for her while she pays, on Halfmoon's Stripe account, on a page styled with Halfmoon's branding. When the payment succeeds the engine records an **order** with two **positions**, which are the tickets, and a **customer** dossier for Ana under Halfmoon's organizer. Halfmoon built none of that: no payment form, no inventory lock, no PCI scope, no fee maths, no ticket identifiers. ## How your database finds out Every fact the engine records becomes an [activity](/docs/guides/activities/stream) for its organizer: `event.created`, `item.updated`, `checkout_session.completed`, `order.paid`, `position.created`, and so on. Each carries a snapshot of the object, your `metadata` on it, who caused it (your API key, a person in your [dashboard](/docs/guides/dashboard), or the engine itself) and the request id that led to it. Activities can reach your endpoint out of order and more than once, so key your handler on the activity id and never assume arrival order. Delivery alone is not a complete record either: run the [reconciliation sweep](/docs/guides/activities/reconciliation-sweep), whose overlap pass reads the stream and catches anything a delivery missed. ```json { "id": "act_0199c4e6-4d32-7b66-8c13-5e9f2a7b0c44", "type": "order.created", "organizer_id": "org_0199c4e4-1a00-7e33-8a80-2b6c9d4e7f11", "actor": { "kind": "system", "id": "checkout_session:cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33" }, "data": { "object": { "id": "ord_0199c4e6-4c21-7a55-9b02-4d8e1f6a9b55", "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22", "metadata": { "halfmoon_show_id": "shw_88" } } } } ``` Halfmoon's handler is a small idempotent function: on `order.created`, insert a sale row for `shw_88` with Ana's email and the ticket ids, read with `GET /v1/positions?order_id=…` so any ticket already revoked is recorded as revoked; on `position.revoked`, mark the ticket, keeping the revocation even if the sale row has not arrived yet so a later `order.created` cannot mark it active. Everything they want to know about their audience, their sales counts and their reporting is now in their database, in their shape. The engine stays the truth for whether a ticket is valid and whether money moved. If Halfmoon's endpoint is down for an hour, nothing is lost: the stream is readable from any point. The reconciliation sweep resumes from its cursor and also re-reads a window from a time watermark, overlapping on purpose, and skips activity ids it has already handled. And the dashboard is the same API with a face: when someone at Halfmoon creates a show there instead of by code, the stream still carries `event.created` with the metadata they typed, and the database stays in step. ## Current API surface The guides linked from this page describe the current API surface, including check-in and manifests, refunds and disputes, waitlists, memberships, hosted checkout, and the activity feed. The generated [API reference](/docs/reference) is the contract for exact request and response shapes. --- # Guides URL: /docs/guides Configure what you sell, price a cart, take a payment, and consume the feed. Start with the picture, then the areas roughly in the order you will meet them. --- # Invitation allocations and pools URL: /docs/guides/invitations Give someone a limit of free tickets for an event, share a cap across several of them, and issue their guests' tickets with a comp that names the allocation. An **invitation allocation** is a budget of free tickets for one event that you hand to whoever you choose: an artist, an affiliate, a partner. The engine does not know who. It sees an allocation, an id with a ticket-unit limit, and your own system decides which person or account uses which allocation and whether a request on their behalf is allowed. The artist is never a customer, member, staff account or organizer in the engine because of an allocation. An **invitation pool** is an extra limit for the same event that several allocations draw on together. Both are **maxima, not reserved seats**: an allocation holds no tickets back from sale, and ordinary event capacity still applies to every ticket issued. The guests are ordinary customers. Your backend issues each guest's tickets with a [comp](/docs/guides/orders#complimentary-tickets) that names the allocation. The engine checks and consumes the allocation, its pool and the event's capacity in one step, so concurrent requests cannot spend more than the limits allow. ## Create a pool and allocations `POST /v1/invitation_pools` `POST /v1/invitation_allocations` Both creates require an `Idempotency-Key`. A pool takes an `event_id` and a `limit_units`; an allocation takes the same and, optionally, the `pool_id` of a pool of the **same event**. Neither the event nor the pool can change afterwards. `label` and `external_ref` are your own notes (who it is for, their id in your system) and the engine never reads them; `metadata` is yours as everywhere. ```bash curl -X POST https://tickets.lissen.com/api/v1/invitation_pools \ -H "Authorization: Bearer $TICKETING_API_KEY" \ -H "Ticketing-Organizer: org_0199c4d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \ -H "Idempotency-Key: pool-low-tide" \ -H "Content-Type: application/json" \ -d '{ "event_id": "evt_0199c4d1-5e60-7a12-9b34-6c7d8e9f0a1b", "limit_units": 15, "label": "Low Tide guest list" }' ``` ```bash curl -X POST https://tickets.lissen.com/api/v1/invitation_allocations \ -H "Authorization: Bearer $TICKETING_API_KEY" \ -H "Ticketing-Organizer: org_0199c4d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \ -H "Idempotency-Key: allocation-low-tide-artist-42" \ -H "Content-Type: application/json" \ -d '{ "event_id": "evt_0199c4d1-5e60-7a12-9b34-6c7d8e9f0a1b", "pool_id": "ivp_0199c4f2-0b6a-7d4e-8f21-3a5c7e9b1d20", "limit_units": 10, "external_ref": "artist-42", "label": "Headliner" }' ``` An unknown event, or a pool that is not the event's, answers `400 invalid_reference`. Store the returned `id` against your own actor. ## What has been used `GET /v1/invitation_allocations` `GET /v1/invitation_pools` Every read carries the usage the engine derives, in ticket units: | Field | Meaning | | ----------------- | ------------------------------------------------------------------------------------------------------------------ | | `limit_units` | The maximum you set. | | `used_units` | Tickets issued against it so far, less the units you [gave back](#give-units-back). | | `remaining_units` | `limit_units` minus `used_units`, never below zero. | | `available_units` | On an allocation only: what a comp can issue now, which is `remaining_units` capped by its pool's remaining units. | Filter the lists with `event_id`, and the allocations also with `pool_id`. Change a limit, label or reference with `PATCH /v1/invitation_allocations/{id}` or `PATCH /v1/invitation_pools/{id}`. Tickets already issued keep counting: a limit set below what was issued leaves nothing remaining and issues no more, and returns nothing. To give units back, [return them](#give-units-back). ## Issue a guest's tickets Send the comp as usual and add `allocation_id`: ```bash curl -X POST https://tickets.lissen.com/api/v1/comps \ -H "Authorization: Bearer $TICKETING_API_KEY" \ -H "Ticketing-Organizer: org_0199c4d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \ -H "Idempotency-Key: invite-artist-42-ana-2025-06-14" \ -H "Content-Type: application/json" \ -d '{ "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2, "recipient": { "email": "ana@example.com", "name": "Ana Guest" }, "allocation_id": "iva_0199c4f2-6c11-7b30-9a42-4d6f8a0c2e31" }' ``` The allocation must be this organizer's and belong to the item's event (otherwise `400 invalid_reference`). One ticket costs one unit, and the whole quantity is charged or none of it is. The order is an ordinary comp order whose `issuance.invitation` says what it was charged to: ```json { "issuance": { "type": "comp", "capacity_override": false, "invitation": { "usage_id": "ivu_0199c4f3-1d27-7a85-9c13-5e7f9a1b3c42", "allocation_id": "iva_0199c4f2-6c11-7b30-9a42-4d6f8a0c2e31", "pool_id": "ivp_0199c4f2-0b6a-7d4e-8f21-3a5c7e9b1d20", "units": 2, "returned_units": 0 } } } ``` `usage_id` is the invitation usage, the record of what these tickets were charged; keep it if you may [give the units back](#give-units-back) later. `returned_units` is how many you have. The same object is on the `order.created` activity, as it was then. A comp with no `allocation_id` is unmetered and carries no `invitation`. An idempotent replay keeps the original response: a comp issued before invitation returns were available omits `usage_id` and `returned_units`. Read the order with `GET /v1/orders/{id}` for its usage id and current returned units, including after giving units back. ### The shared cap If allocation A allows 10, allocation B allows 10 and their pool allows 15, then after A issues 10 tickets B can issue at most 5, because the pool has 5 left. When B asks for 6 the comp is refused with `422 invitation_allowance_exceeded`; `detail.shortfalls` names every budget that is short, with its `limit_units`, `used_units`, `remaining_units` and `requested_units`: ```json { "error": { "type": "invalid_request_error", "code": "invitation_allowance_exceeded", "param": "quantity", "detail": { "shortfalls": [ { "budget": "pool", "id": "ivp_0199c4f2-0b6a-7d4e-8f21-3a5c7e9b1d20", "limit_units": 15, "used_units": 10, "remaining_units": 5, "requested_units": 6 } ] } } } ``` ### Rules * **Capacity still applies.** An allocation is a ceiling on what its holder can issue, not a reservation, so the event's quotas are checked as for any comp and `insufficient_capacity` can still refuse the request. * **No override.** `capacity_override` skips room in the quotas only. It never passes an allowance: there is no operator override of an allocation or pool. * **Nothing is consumed by a failure.** A refusal, a capacity refusal or any error issues nothing and uses none of the allowance. * **Retries are safe.** The same `Idempotency-Key` returns the same order with `Idempotent-Replayed: true` and uses the allowance once. Retry a refused request with a new key once there is room. * **Nothing comes back by itself.** Tickets count once issued. Cancelling a ticket, transferring it to another holder, cancelling the event or retrying a request does not restore allowance or grant more. Whether a unit comes back is your decision: [give it back](#give-units-back) explicitly. To give an allocation more room without that, raise its limit. * **Each request names its own budget.** Using one allocation never draws on another's limit, and an allocation does not require its holder to be a member. ## Give units back `POST /v1/invitation_usages/{id}/returns` The engine takes no stance on whether a cancelled guest gives the place back to whoever invited them. If your rules say it does, return the units yourself. A return names the usage (`issuance.invitation.usage_id` on the order) and gives back some or all of its units, to the allocation and to its pool at once. It works whether or not the tickets were cancelled, and it changes neither the order nor its tickets: cancel those with a [refund-and-revoke](/docs/guides/refunds#cancelling-free-tickets) if the guest is not coming. ```bash curl -X POST https://tickets.lissen.com/api/v1/invitation_usages/ivu_0199c4f3-1d27-7a85-9c13-5e7f9a1b3c42/returns \ -H "Authorization: Bearer $TICKETING_API_KEY" \ -H "Ticketing-Organizer: org_0199c4d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \ -H "Idempotency-Key: return-ana-2025-06-14" \ -H "Content-Type: application/json" \ -d '{ "units": 1, "metadata": { "reason": "guest cancelled" } }' ``` ```json { "id": "ivr_0199c4f4-8a3b-7c51-9d22-6f8a0b2c4e53", "object": "invitation_return", "usage_id": "ivu_0199c4f3-1d27-7a85-9c13-5e7f9a1b3c42", "order_id": "ord_0199c4f3-1c90-7e44-8b12-4d6e8f0a2c31", "event_id": "evt_0199c4d1-5e60-7a12-9b34-6c7d8e9f0a1b", "units": 1, "created_at": "2025-06-14T10:12:00Z", "metadata": { "reason": "guest cancelled" } } ``` Send `{}` to give back every unit not yet returned. `Idempotency-Key` is required: a retry with the same key answers the same return and gives nothing back twice. Afterwards the allocation's and the pool's `used_units` are lower by `units`, the order's `issuance.invitation.returned_units` is higher, and the feed carries `invitation_return.created`. A usage never gives back more than it took. Returns of the same usage, and comps against the same allocation or pool, are decided one at a time, so concurrent returns cannot pass that cap either: | Answer | When | | ----------------------------------------- | ----------------------------------------------------------------------------------------------- | | `409 invitation_return_exceeds_remaining` | `units` is more than the usage has left to give back. `detail.remaining_units` is what is left. | | `409 invitation_usage_fully_returned` | Every unit of the usage was already given back. | | `404 not_found` | No usage with that id exists for this organizer. | ## Authorizing your actors The engine checks that your API key may use the organizer, and that the allocation, pool, item and recipient all belong to that organizer. It does **not** check who is asking for tickets on an allocation's behalf. Do that in your backend before you call the comp: authenticate the artist, look up the allocation id you stored for them, confirm they may invite on it, and send their guest's details as the `recipient`. Keep the artist in your own system; the engine's only record is the allocation id on the order and its activity. A typical flow: 1. When you onboard an artist for an event, create an allocation and store its `id` against the artist, with an optional shared pool for the whole line-up. 2. When the artist submits a guest, your backend calls `POST /v1/comps` with that allocation's id, a stable `Idempotency-Key` for this invitation, and the guest as `recipient`. 3. Show the artist `available_units` from the allocation read, and send the guest their ticket on `order.created`. The engine administration page for an event lists its allocations and pools with what has been issued, and lets you create and edit them. --- # Memberships URL: /docs/guides/memberships A recurring subscription on your Stripe account that turns into member pricing on every cart — told through one promoter, one plan and one member This page uses the same fictional promoter as [How it fits together](/docs/guides/how-it-fits-together): **Halfmoon Presents**, who run gigs in a converted chapel and sell from their own site, `halfmoon.live`. Halfmoon want a club: **£10 a month, and club members get 20% off every ticket**. This is how that happens, in order, and what each side is responsible for. The reference for every field, state and error is on the [second page](/docs/guides/memberships/reference). Read this one first. ## The two objects A **membership plan** is Halfmoon's recurring offer: a name, a price, a billing interval, the percentage members get off, and whether members can buy gated items. There is one plan for the club. Halfmoon could have several. A **membership** is one person's subscription to one plan. It mirrors a Stripe Subscription on Halfmoon's connected account and carries a status, the end of the current billing period, and whether it is scheduled to stop. The membership has exactly one job in the engine. **It is the fact the quote looks at.** Nothing else reads it. There is no members list to maintain and no code to hand out: a member gets 20% off because the engine finds an active membership when it prices their cart. What the membership is worth comes from its plan, either as a plan-wide percentage or as [benefits chosen per event](#benefits-chosen-per-event). ```text HALFMOON (halfmoon.live) THE ENGINE STRIPE ┌──────────────────────┐ ┌──────────────────────┐ ┌──────────────────┐ │ creates the plan │ ─────────────▶ │ membership plan │ ────▶ │ Product + Price │ │ │ │ │ │ on Halfmoon's │ │ Ana clicks "join" │ ─────────────▶ │ membership:incomplete│ ────▶ │ Subscription │ │ Ana pays in the page │ ─────────────────────────────────────────────▶│ invoice paid │ │ │ │ membership:active │ ◀──── │ webhook │ │ Ana opens a show │ ── quote ────▶ │ finds active member │ │ │ │ renders 20% off │ ◀── effects ── │ percent_off applied │ │ │ └──────────────────────┘ └──────────────────────┘ └──────────────────┘ ``` ## 1. Halfmoon creates the plan, once Halfmoon's Stripe account is already connected; see [Connect](/docs/guides/connect). Someone at Halfmoon creates the plan, either from the **Memberships** page in the [dashboard](/docs/guides/dashboard) or by API: `POST /v1/membership_plans` ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 3f1c9a72-5b8e-4d21-9c47-0e6a2b8d4f13" \ -H "Content-Type: application/json" \ -d '{ "name": "Halfmoon Club", "currency": "GBP", "price_minor": 1000, "interval": "month", "percent_off_bps": 2000, "unlocks_gated_items": false, "metadata": { "halfmoon_tier": "club" } }' ``` Three things happen in the engine: * A **Product** and a **£10/month recurring Price** are created on Halfmoon's connected Stripe account, and their ids are stored on the plan. Halfmoon never creates anything in Stripe by hand. * No platform fee is fixed on the plan. The fee is read from Halfmoon's active [fee schedule](/docs/guides/config/fee-schedules) for GBP (set by Lissen) each time someone **joins**, and attached to that member's subscription. Only the percentage applies to a subscription; the flat amount and mode do not. No schedule for the currency makes the join, not the plan, answer `fee_schedule_not_found`, never a membership without the fee. A later schedule change does not rewrite the fee on subscriptions that already exist. * **Membership pricing is switched on for Halfmoon.** Creating the first plan is the consent act. From now on, every quote for a Halfmoon cart consults memberships. Notice what Halfmoon did *not* configure: which events, which items, or which tiers the 20% covers. The plan's own `percent_off_bps` and `unlocks_gated_items` are the plan-wide, legacy way to give members something: they cover every item Halfmoon sells, at every event, including events created later. To give a discount or an unlock only at chosen events or tickets, define a [benefit](#benefits-chosen-per-event) instead. Either way a membership is a standing property of the buyer, unlike a [discount code](/docs/guides/config/discount-codes), which is presented and spent. **The currency and interval are fixed; the price can change.** `name`, `active`, `percent_off_bps`, `unlocks_gated_items` and the enrollment settings can be changed later. If the club ever becomes £12, Halfmoon changes the plan's price and every member pays £12 from their next renewal: see [Changing the price](#changing-the-price). To charge only new members £12 and keep everyone who joined at £10, create a new plan instead. ## 2. Ana joins on halfmoon.live Ana has an account on Halfmoon's site, stored in their database as `usr_4471`. She clicks "Join the club". Halfmoon's server, not her browser, creates the membership: `POST /v1/memberships` ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 7a2d5e90-1c3b-4f68-8d0a-9b4e6c2f1a57" \ -H "Content-Type: application/json" \ -d '{ "plan_id": "mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01", "customer": { "external_ref": "usr_4471", "email": "ana@example.com", "name": "Ana Reyes" } }' ``` `external_ref` is Halfmoon's own id for Ana, and Halfmoon's API key is what vouches for it. There are no anonymous memberships, and email is contact detail, not identity. The engine: * finds or creates Ana's **customer** record under Halfmoon, keyed by that reference; * creates a **Stripe Subscription** on Halfmoon's account, in Stripe's incomplete state, with the platform fee attached; * records a **membership** in status `incomplete`, and answers `201` with the membership and the credentials Ana's browser needs to pay. ```json { "membership": { "id": "mbs_0199c4f0-2b3c-7d4e-9f50-6b7c8d9e0f12", "object": "membership", "plan_id": "mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01", "customer_id": "cus_0199c4f0-3c4d-7e5f-a061-7c8d9e0f1a23", "status": "incomplete", "current_period_end": null, "cancel_at_period_end": false, "started_at": null, "ended_at": null, "price_minor": 1000, "price_applies_at": null, "created_at": "2026-11-02T10:14:08.000Z", "metadata": {} }, "payment": { "payment_intent_client_secret": "pi_..._secret_...", "connected_account_id": "acct_...", "publishable_key": "pk_test_..." } } ``` Halfmoon's page initialises Stripe.js for `connected_account_id`, mounts a Payment Element with the client secret, and calls `confirmPayment({ redirect: "if_required" })`. Ana enters her card. The £10 lands in Halfmoon's Stripe balance, less the platform fee. This is the same pattern as [checkout](/docs/guides/checkout/sessions): Halfmoon builds no payment form of its own and never sees a card number. **A `201` is not a member.** The membership is `incomplete` until Stripe reports the first invoice paid. Do not show Ana "you're in" from the create response. Poll `GET /v1/memberships/{id}` until `status` is `active`, or wait for `membership.activated` on your [activity stream](/docs/guides/activities/stream). The create is idempotent, and Ana cannot hold two live memberships on the same plan. What a second join does depends on the one she already has: * **`incomplete`, and its first payment is still awaited.** The join resumes it: the same membership comes back with fresh payment credentials, and no activity is recorded. Mount the Payment Element again with the new client secret. This is not pausing, resuming or undoing a cancellation; it only finishes a join that never paid. * **`incomplete`, but Stripe has already expired that first payment.** The old attempt is retired as `canceled` and a new membership and subscription are created. * **`incomplete`, but Stripe has already activated the subscription** and the webhook has not reached the engine yet. The join answers `409` `membership_already_exists`. Retrieve the membership and wait for it to become `active`; do not cancel it. * **`active` or `past_due`.** The join answers `409` `membership_already_exists`. ## 3. Stripe says the invoice was paid Stripe sends the engine an `invoice.paid` event for Halfmoon's account. The engine re-reads the subscription from Stripe rather than trusting the event body, then moves the membership to `active`, sets `started_at` and `current_period_end`, and emits `membership.activated`. That is the moment Ana is a club member. Nothing else in the engine changes. Halfmoon's webhook handler can now insert a row in their own database if they want one, but they do not have to: the engine will find her membership when it matters. ## 4. Ana opens a show page Ana is on the Low Tide Choir page. Halfmoon's server prices the cart, and this is the line that makes memberships work: **it names Ana on the quote**. `POST /v1/quotes` ```bash curl -X POST https://tickets.lissen.com/api/v1/quotes \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2 } ], "customer": { "external_ref": "usr_4471" } }' ``` The engine looks up the customer behind `usr_4471`, finds an active membership on a plan with 20% off, and applies it to every line. General Admission is £15.00; Ana pays £12.00 a ticket. ```json { "mode": "preview", "currency": "GBP", "subject": { "kind": "authenticated", "customer_id": "cus_0199c4f0-3c4d-7e5f-a061-7c8d9e0f1a23", "external_ref": "usr_4471" }, "line_items": [ { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "description": "General Admission", "quantity": 2, "unit_list_price_minor": 1500, "unit_price_minor": 1200, "discount_minor": 600, "subtotal_minor": 2400, "effect_ids": ["membership:mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01:percent_off"], "sellable": true } ], "applied_effects": [ { "id": "membership:mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01:percent_off", "provider_kind": "membership", "type": "percent_off", "state": "applied", "source": { "kind": "membership", "label": "Halfmoon Club", "plan_id": "mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01", "membership_id": "mbs_0199c4f0-2b3c-7d4e-9f50-6b7c8d9e0f12" }, "description": "20% off with Halfmoon Club", "percent_bps": 2000, "stackable": false, "consumable": false } ], "unapplied_effects": [] } ``` Halfmoon renders `unit_price_minor` and strikes through `unit_list_price_minor`, and can show "20% off with Halfmoon Club" straight from `source`. They compute nothing. The same page opened by someone who is not logged in, or logged in but not a member, prices at £15.00 and returns the club as a **teaser** in `unapplied_effects`, with `requires.display` reading "Join Halfmoon Club for 20% off". That is the upsell, and it is built from plan configuration only. No email or personal data is in it. **Forget the customer and the member sees list prices.** The discount exists only because Halfmoon passed `usr_4471` on this call. A quote with no `customer` is anonymous, and an anonymous cart has no memberships. ## 5. Ana buys Halfmoon creates a [checkout session](/docs/guides/checkout/sessions) for the two tickets with the same `customer`. The session takes its own binding quote, finds the same active membership, and holds the price at £12.00 a ticket until Ana has paid. The £24.00 plus fees is charged on Halfmoon's Stripe account like any other order. The order and its two positions are ordinary. Nothing on a ticket says "member"; the membership shaped the price and then stepped back. ## 6. Months later: renewal, a failed card, leaving Every month Stripe bills the subscription and sends another `invoice.paid`. The engine records `membership.renewed` and moves `current_period_end` forward. Halfmoon does nothing. If Ana's card fails, Stripe sends `invoice.payment_failed` and the membership becomes `past_due`. Unless the plan has a [benefit grace period](/docs/guides/memberships/reference#benefit-grace-period), from that moment her carts price at list and the club appears as a teaser again. With a grace period of, say, five days, her membership stays `past_due` but keeps its benefits until the `grace_ends_at` on the membership, and loses them then unless she has paid. **Tickets she already bought are untouched**: an issued ticket is valid at the door regardless of what happens to the membership afterwards. Chasing the payment is Stripe's and Halfmoon's business; the engine has no dunning screens. Ana can fix the card herself. Halfmoon's account page asks the engine for a hosted payment-method update and sends her to the Stripe page it returns: `POST /v1/memberships/{id}/payment_method_update_sessions` ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships/mbs_0199c4f0-2b3c-7d4e-9f50-6b7c8d9e0f12/payment_method_update_sessions \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "return_url": "https://halfmoon.live/account" }' ``` Ana enters the new card on Stripe and lands back on `halfmoon.live/account`. Her plan, price and renewal date are untouched. Because her membership is `past_due`, the engine then tries the new card once on the overdue invoice; when it is paid her membership is `active` again, recorded as `membership.renewed`. If that card is declined too, she stays `past_due` and Stripe keeps retrying. Halfmoon can also charge the overdue invoice whenever Ana asks, with `next_charge` and `"at": "now"`. The [reference](/docs/guides/memberships/reference#update-the-payment-method) covers which payment method the membership then bills. If Ana cancels, Halfmoon's server calls `POST /v1/memberships/{id}/cancel`. That sets `cancel_at_period_end` on Stripe and mirrors it on the membership. She keeps 20% off until the period ends. When Stripe reports the subscription ended, the membership becomes `canceled` with `ended_at` set, and she can join again later as a new membership. ## Members who already paid: a first charge date Before the engine, Halfmoon sold its club on an old shop. Leo paid there for a year that runs until 15 January. Halfmoon moves him across without charging him twice: the join says when his first charge is. ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 3e9b1c40-5d2a-4f17-9c8e-1a6d4b2f7e03" \ -H "Content-Type: application/json" \ -d '{ "plan_id": "mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01", "customer": { "external_ref": "usr_5120", "email": "leo@example.com" }, "first_charge_at": "2027-01-15T12:00:00Z" }' ``` The answer has no `payment`. It has a `setup` instead, with the same three fields in the same places, and the membership's `next_charge_at` is 15 January: ```json { "membership": { "status": "incomplete", "next_charge_at": "2027-01-15T12:00:00.000Z", "...": "..." }, "payment": null, "setup": { "setup_intent_client_secret": "seti_..._secret_...", "connected_account_id": "acct_...", "publishable_key": "pk_test_..." } } ``` Halfmoon's page mounts the Payment Element with that secret and calls `confirmSetup` instead of `confirmPayment`. Leo saves his card and is charged nothing. He saves it here even if he already has a card on file from another membership: each join's first charge waits for the card saved for it. The engine hears it from Stripe and the membership becomes `active` with `membership.activated`: he is a member now, with the plan's benefits. On 15 January Stripe charges £10 and renews monthly from there; that charge is recorded like a renewal, and a declined card is a failed renewal, with the plan's grace period. If he cancels before then he keeps the benefits until the date and is never charged. A card he never saves ends the join after about a day, as an unpaid one does. The [reference](/docs/guides/memberships/reference#charge-first-on-a-later-date) has the limits. Mia joined before Halfmoon knew her old shop date, and her old year runs to 1 March. Halfmoon moves her next charge there; she keeps everything until then, and nothing is credited or charged for the difference: `POST /v1/memberships/{id}/next_charge` ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships/mbs_0199c4f0-2b3c-7d4e-9f50-6b7c8d9e0f12/next_charge \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 5a1f0c2e-7b3d-4e8f-9a61-2c4d6e8f0a13" \ -H "Content-Type: application/json" \ -d '{ "at": "2027-03-01T12:00:00Z" }' ``` `"at": "now"` instead charges a full month now and renews from today, as a renewal; to try that out in test mode, see [Testing renewals](/docs/guides/memberships/testing-renewals). The [reference](/docs/guides/memberships/reference#move-or-make-the-next-charge) has the rules. ## Moving existing members Halfmoon's old shop charged its members on Halfmoon's own Stripe account, so their cards are already saved there. Leo's Customer on that account is `cus_Q1oldshop` and his card is `pm_1Q2oldshop`. To move him, Halfmoon's server joins him with that card and the date his paid year runs out. He does nothing. ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 7c2e9a14-0b3d-4e6f-8a1c-5d9b2f4e6a80" \ -H "Content-Type: application/json" \ -d '{ "plan_id": "mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01", "customer": { "external_ref": "usr_5120", "email": "leo@example.com" }, "first_charge_at": "2027-01-15T12:00:00Z", "saved_payment_method": { "stripe_customer_id": "cus_Q1oldshop", "stripe_payment_method_id": "pm_1Q2oldshop" } }' ``` Leo is a member at once, and nothing is charged until 15 January: ```json { "membership": { "status": "active", "next_charge_at": "2027-01-15T12:00:00.000Z", "...": "..." }, "payment": null, "setup": null } ``` On 15 January Stripe charges £10 to that card and renews monthly from there. The engine now uses `cus_Q1oldshop` for Leo's later memberships too. A few things to check for each member: * The Customer must be on Halfmoon's connected account with the card attached to it, and must not already belong to another of Halfmoon's customers. Otherwise the join refuses and creates nothing. * A member whose paid time has already run out joins without `first_charge_at`: the card is charged now. If it is declined, the join answers `payment_declined` and creates nothing. If the bank wants the member to authenticate, the answer has a `payment` secret for them to complete on Halfmoon's page. * If the old shop saved a card without the member's permission to charge it while they are away, the bank may ask for authentication on the first charge. That charge then fails like a renewal: the membership becomes `past_due`, with the plan's grace period. Stripe does not retry it by itself. The [reference](/docs/guides/memberships/reference#pay-with-a-card-already-saved) has every rule and refusal. ## Pausing, restarting and changing her mind Ana tells Halfmoon she is away for two months. Halfmoon's server calls `POST /v1/memberships/{id}/pause` with an `Idempotency-Key`. Her £10 plan is paused on Stripe straight away, halfway through a paid month, so about £5 of unused time is **credited** toward her next invoice (not refunded). Her membership becomes `paused`, `membership.paused` arrives on the activity stream, and her next quote prices at list because a paused membership gives no benefits. Tickets she already bought stay valid. When she is back, Halfmoon calls `POST /v1/memberships/{id}/resume`. Stripe starts a fresh month from today at her membership's price, applies the credit and charges the difference, about £5. If that payment succeeds, Stripe reports the subscription active, her membership returns to `active` with a new `current_period_end`, `membership.resumed` is recorded and her 20% is back. If the payment fails, the membership stays `paused`, her benefits stay off and no `membership.resumed` is recorded; the response carries `payment` credentials when the invoice can be paid, or `membership_resume_payment_failed` when Stripe refused the payment outright. A different customer, Leo, cancelled at period end and then changed his mind. `POST /v1/memberships/{id}/undo_cancellation` clears the scheduled cancellation: no charge, the same price and renewal date, and no gap in his benefits. Once a membership has actually ended, there is nothing to undo: he joins again as a new membership. The [reference](/docs/guides/memberships/reference#pause-and-resume) lists the rules and refusals. ## Changing the price A year on, Halfmoon's club goes up to £12 a month. Halfmoon emails its members a month ahead and, on the date it announced, changes the plan's price: `POST /v1/membership_plans/{id}/price` ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans/mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01/price \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 5b8e3f1c-9a72-4d21-8c47-2b8d4f130e6a" \ -H "Content-Type: application/json" \ -d '{ "price_minor": 1200 }' ``` The answer is the plan, now at `price_minor: 1200`. It is the same plan: its id, its 20%, its benefits and its settings are unchanged. The engine creates a £12/month Price on the plan's Stripe Product, with the same tax treatment as the £10 one, and records `membership_plan.updated`. Anyone who joins from now on pays £12. Then, in the background, every member of the plan moves to £12: within minutes for most plans, longer for one with thousands of members, and the members whose renewal is soonest first. A renewal Stripe bills before its member has moved is still £10, once. **Nothing is charged at the switch** and nothing is prorated: Ana has paid for this month at £10, and her next renewal is £12. Each member's move records `membership.updated`, whose membership shows the new `price_minor` (1200) and `price_applies_at`, the renewal at which £12 is first charged. Halfmoon can thank each member from those facts, or read `GET /v1/memberships/{id}` to show "£12 from 3 December". The move follows each member's situation: * **Overdue.** If Ana's renewal had failed, that open £10 invoice stays £10 (Stripe cannot change an invoice it has issued); the renewal after it is £12. * **Paused.** A paused member pays £12 when they resume, less the credit from the pause. They are moved when they resume, so their `price_minor` stays 1000 and their `price_applies_at` empty until then. * **Leaving at period end.** Leo, scheduled to cancel, is moved too. It changes nothing unless he undoes the cancellation, and then he renews at £12. * **Not yet paid.** A member whose first payment is still awaited pays that first invoice at the amount it was issued with; their first renewal is £12. * **Joining right now.** Someone who joins after the call pays £12 from the start. A join that was already under way when the price changed is moved with the members, like a member who has not paid yet. There is no date to schedule: the change applies from each member's next renewal after the call, so Halfmoon calls it on the day it told members. There is also no way to keep existing members at £10 on this plan. A free plan has no price to change, and a paid plan cannot become free. If Halfmoon decides to give Ana a month back, it refunds that payment through `POST /v1/refunds` with the payment's `membership_charge_id`. Her membership carries on exactly as it was; if Halfmoon also wants her gone, it cancels her membership as a separate step. See [Refunding a membership payment](refunds#refunding-a-membership-payment). ## Free plans: Halfmoon Friends Halfmoon also want a free tier: anyone with an account can join **Halfmoon Friends** and get 5% off, no card needed. That is a plan priced at zero: ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 5b8e2f14-9d3a-4c67-8e21-7f0a3c9d6b42" \ -H "Content-Type: application/json" \ -d '{ "name": "Halfmoon Friends", "currency": "GBP", "price_minor": 0, "percent_off_bps": 500 }' ``` Leave `interval` out or send `null`: a free plan has nothing to bill, so it never renews. Sending an interval with a zero price, or a positive price without one, is refused. Nothing is created in Stripe, so a free plan needs neither a connected account nor a fee schedule. Creating it still switches membership pricing on, exactly like a paid plan. Take Leo, another Halfmoon account holder who is not in the club. When Leo joins Friends, Halfmoon's server makes the same `POST /v1/memberships` call as before. The answer is different in the two places that matter: ```json { "membership": { "id": "mbs_0199c4f1-4d5e-7f60-8a72-8d9e0f1a2b34", "object": "membership", "plan_id": "mpl_0199c4f1-3c4d-7e5f-9061-7c8d9e0f1a23", "customer_id": "cus_0199c4f0-3c4d-7e5f-a061-7c8d9e0f1a23", "status": "active", "current_period_end": null, "cancel_at_period_end": false, "started_at": "2026-11-02T10:20:31.000Z", "ended_at": null, "created_at": "2026-11-02T10:20:31.000Z", "metadata": {} }, "payment": null } ``` The membership is already `active`, and `payment` is `null` because there is nothing to pay: no Payment Element, no confirmation and no polling. Halfmoon can say "you're in" straight from this response. `membership.created` and `membership.activated` arrive on the activity stream together. Everything after that is the paid story without Stripe. The next quote that names Leo applies 5% off. (Had Ana joined Friends too, her quotes would not change: only the best membership discount applies, and her club 20% beats Friends' 5%.) There is no billing period, so `current_period_end` stays `null` and there are no renewals, invoices or ledger entries. Joining twice while the first is live is still `membership_already_exists`, and the create is idempotent. A free membership and a paid one on different plans can be held side by side; joining one never changes the other. When Leo leaves Friends, `POST /v1/memberships/{id}/cancel` ends the free membership **immediately**: it comes back `canceled` with `ended_at` set, `membership.canceled` is recorded, and Leo's next quote prices at list. There is no paid-through period to wait for. Tickets Leo already bought stay valid, as they do for a paid member. ## Making one plan the way into another Halfmoon want their paid club open only to people who already belong to Family. They set that on the club plan, once: ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans/mpl_0199c4e2-8a1b-7c20-9d31-5e6f7a8b9c0d \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "required_plan_id": "mpl_0199c4f1-3c4d-7e5f-9061-7c8d9e0f1a23" }' ``` Now a join on the club plan from someone without an `active` Family membership comes back `422` `membership_prerequisite_not_met`, and Stripe is never called. `detail.required_plan_name` says "Family", ready to show. Once Ana's Family membership is active she can join the club the usual way, with the same `POST /v1/memberships` call; nothing is enrolled or charged because she qualified. If her Family membership later lapses, her club membership carries on under its own lifecycle. The [reference](/docs/guides/memberships/reference#require-a-membership-to-join) has the full rules. ## Choosing between alternative plans Halfmoon sell two paid ways in: **Founding** for the first supporters and **Standard** for everyone after. A supporter should be on one of them, never both, but the free **Friends** plan is separate and can sit alongside either. They put Founding and Standard in one group, once, and leave Friends out: ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans/mpl_0199c4e2-8a1b-7c20-9d31-5e6f7a8b9c0d \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "exclusive_group": "Paid offers" }' ``` (The same call on the other plan puts it in the group too.) Ana joins Friends and Founding: allowed. Leo joins Friends and Standard: allowed. When Ana later tries to join Standard as well, the join comes back `409` `membership_group_conflict`, `detail.plan_name` says "Founding", and Stripe is never called. The same holds while her Founding membership is still awaiting its first payment, overdue, paused, or set to cancel at the end of the period; it frees up only once that membership has actually ended. Halfmoon's site decides how to explain the choice; the engine switches nobody and cancels nothing. The [reference](/docs/guides/memberships/reference#alternative-plans-in-an-exclusive-group) has the full rules, including how to see customers who already hold two alternatives. ## A limited founding offer Halfmoon want a founding tier for their first 25 members, and a way to stop taking more once a night is sold on membership. The plan has two settings for this, and neither is `active`: ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 5b9e2c41-7d0a-4e83-b1f6-3a8c0d2e7f94" \ -H "Content-Type: application/json" \ -d '{ "name": "Halfmoon Founders", "currency": "GBP", "price_minor": 1000, "interval": "month", "percent_off_bps": 2000, "member_cap": 25 }' ``` The plan reads back with `"enrollment": { "status": "open", "places_left": 25 }`, which is what Halfmoon's page shows next to the button. Each join takes a place; a paid join holds its place while Ana is paying and keeps it for good once the first invoice is paid. If she walks away from the Payment Element, the place comes back. When the 25th place goes, the plan reads `"status": "full"` and a join answers `409` `membership_enrollment_full` without touching Stripe. The twenty-five keep everything they signed up for: their price, their renewals, their benefits. Even if one of them cancels, the offer stays full; it does not quietly start selling a "founding" place again. Halfmoon can also close any plan by hand with `{ "enrollment_open": false }`, with or without a cap, and reopen it the same way. **Enrollment is not activation.** `active: false` retires a plan: nobody can join and members stop getting its price effects. Enrollment only decides who may still join. The [reference](/docs/guides/memberships/reference#close-enrollment-or-cap-members) has the counting rules and every refusal. ## Earning a plan by attending Halfmoon want a **Regulars** tier nobody pays for or joins: go to four Halfmoon nights in a year and you are in. The numbers are configuration, not code. They put an attendance rule on a free plan: ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 0f2b6a8c-41de-4b7e-93a5-6c1d8e7f2a90" \ -H "Content-Type: application/json" \ -d '{ "name": "Halfmoon Regulars", "currency": "GBP", "price_minor": 0, "attendance_rule": { "threshold": 4, "window_months": 12, "retention": "maintain", "scope": "selected_events" } }' ``` Halfmoon answered two questions the engine will not answer for them. **Retention**: `keep` leaves the membership with the customer however old their visits get; `maintain` ends it once they no longer have four visits in the last twelve months, and they earn it again by getting back to four. **Scope**: `all_events` counts every Halfmoon event; `selected_events` counts only the events that say so. Halfmoon chose selected events, so on each night's page, or with one call, they make the event count: ```bash curl -X PUT https://tickets.lissen.com/api/v1/events/evt_0199c4d0-5a6b-7c8d-9e0f-1a2b3c4d5e6f/qualifying_plans/mpl_0199c4f1-3c4d-7e5f-9061-7c8d9e0f1a23 \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Next season's events do not exist yet, and that is fine: Halfmoon pick the plan when they create each event. Counting toward a membership is separate from the benefits that event offers: an event can count without offering Regulars anything, and the reverse. Nobody joins Regulars: `POST /v1/memberships` on it answers `422` `membership_plan_earned_only`. Ana buys tickets and goes to the door. A ticket she only bought, or a second ticket scanned at the same show, adds nothing; the door scan that admits her adds a visit, once per event. When her fourth visit is recorded, in that same step, the engine creates her Regulars membership, already `active` with `source: "earned"`. `membership.created` and `membership.activated` follow the `attendance.recorded` activity on the stream, with a `system` actor named `attendance_rule:`. Halfmoon's site can show her progress at any time: ```bash curl "https://tickets.lissen.com/api/v1/membership_plans/mpl_0199c4f1-3c4d-7e5f-9061-7c8d9e0f1a23/qualification?customer_id=cus_0199c4f0-3c4d-7e5f-a061-7c8d9e0f1a23" \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "object": "membership_qualification", "visits_counted": 3, "threshold": 4, "qualified": false, "qualified_until": null, "membership_id": null, "earned": false } ``` "3 of 4" is `visits_counted` of `threshold`. Once she qualifies, `qualified_until` says when it lapses if she attends nothing more, which is what a `maintain` plan needs to warn her. Earned plans can be the way into a paid plan too: set the Regulars plan as the paid club's `required_plan_id` and the earned membership is what unlocks the join. The paid membership is still hers to join; earning Regulars subscribes and charges nobody. The [reference](/docs/guides/memberships/reference#earned-memberships) has the exact rules for the window, corrections, explicit removal and edits. ## Benefits chosen per event A year on, Halfmoon add a **Family** plan and want finer control: Family members get 10% off, but only at the shows Halfmoon choose, and club members get a presale on some gated tickets. A plan-wide percentage cannot say that. A **membership benefit** can: a reusable discount or unlock that belongs to one plan and applies only where an event selects it. **Define the benefit once, before any event.** A `percent_off` benefit carries its own `percent_off_bps`; an `unlock` benefit is permission to buy gated items, which the member still pays for; a `fee_waiver` benefit, which has no other fields, waives the booking fee. Defining one changes no price. `POST /v1/membership_benefits` ```json { "plan_id": "mpl_…", "name": "Family discount", "kind": "percent_off", "percent_off_bps": 1000 } ``` **Select it from the event.** When Halfmoon set up the Low Tide Choir show, they assign Family discount to the whole event, or only to chosen tickets: `PUT /v1/events/{id}/membership_benefits/{benefit_id}` ```json { "scope": "event" } ``` From then on, a quote that names a Family member discounts that show's tickets by 10%, and the applied effect names the benefit as well as the plan and the membership: ```json { "id": "membership:mpl_…:benefit:mbn_…", "type": "percent_off", "percent_bps": 1000, "applies_to_item_ids": ["itm_…", "itm_…"], "source": { "kind": "membership", "label": "Family", "plan_id": "mpl_…", "membership_id": "mbs_…", "benefit_id": "mbn_…" }, "description": "10% off with Family" } ``` The rules that follow from it: * **Only where assigned.** A show Halfmoon did not select, including every show created later, prices at list for a Family member. Removing the last assignment makes the benefit give nothing; it never falls back to every event. * **Only for members of its plan.** A Friends member does not get Family's 10%. A free plan can have benefits of its own, assigned the same way. * **The best membership discount wins, once.** If Ana is in both Family and the club, and the club has a 20% benefit assigned only to the show's standard ticket, she pays 20% on the standard ticket and Family's 10% on the others, never 30%. Plan-wide percentages compete in the same way. A benefit applies once to a ticket however its assignments overlap. * **Unlocks name only the assigned gated tickets.** A presale unlock assigned to "Members presale" makes that ticket sellable to club members and leaves every other gated ticket gated. * **No booking fee where a waiver is assigned.** A `fee_waiver` benefit assigned to the show's standard ticket sets that line's `booking_fee_minor` to 0 for a Family member, on top of the 10% off; the platform fee is unchanged and comes out of Halfmoon's proceeds, as with a `fee_waiver` discount code. If the member also enters such a code, the membership's waiver is the one used and the code is reported superseded and is not spent. On a ticket so cheap that Halfmoon could not absorb the platform fee, the waiver steps aside: the member pays the ordinary booking fee and the quote still succeeds. * **Teasers are just as narrow.** A visitor who is not a member sees "Join Family for 10% off" only on a cart that contains tickets Family discount is assigned to, "Join Family to skip the booking fee" only on the tickets a fee waiver is assigned to and would waive a booking fee on for a member buying the same cart with the same codes (not on a ticket where the waiver would step aside), and an unlock teaser only for an assigned gated ticket. * **Edits are live; bought prices are not.** Changing Family discount to 15% prices the next quote at 15% at every show it is assigned to. An open checkout session keeps its binding quote at 10%; only an update or refresh of that session prices it again, and once payment has started it cannot change at all. A completed order keeps the effects recorded on it. An earlier preview on an event page is not a promise: its next quote uses 15%. The plan's `percent_off_bps` and `unlocks_gated_items` keep working beside benefits exactly as before, across every event, and nothing converts them into benefits. The [reference](/docs/guides/memberships/reference#membership-benefits) lists every benefit and assignment route and refusal. ## Letting members bring a guest Halfmoon's Family members may bring friends to the shows Halfmoon choose, two per show. The invitation page is Halfmoon's; the engine owns who may invite and how many tickets are left. **Define the allowance once, and assign it like any benefit.** `units` is Halfmoon's choice, counted per event or over a calendar period (a week, a month or a year, in UTC) shared by every show it is assigned to: ```json { "plan_id": "mpl_…", "name": "Bring a friend", "kind": "guest_invitation", "guest_allowance": { "units": 2, "mode": "per_event" } } ``` `PUT /v1/events/{id}/membership_benefits/{benefit_id}` **Show what is left.** When Ana opens the invitation page for Low Tide Choir, Halfmoon reads her allowance and renders the remaining tickets: `GET /v1/memberships/{id}/guest_allowance` **Invite.** Ana types her friend's email. Halfmoon's backend, which knows she is signed in as that member, calls the engine with her membership and an Idempotency-Key: `POST /v1/guest_invitations` ```json { "membership_id": "mbs_…", "benefit_id": "mbn_…", "item_id": "itm_…", "recipient": { "email": "sam@example.com", "name": "Sam" } } ``` The engine checks her membership, the benefit's scope, what is left and the show's capacity together, then issues a free ticket held by Sam, who needs no account. Halfmoon sends Sam the ticket from `order.created` like any comp. Ana's allowance drops by one ticket and the answer says what remains; nothing she or Sam does later gives it back by itself. If Sam cancels and Halfmoon's rules give Ana the place back, Halfmoon returns the unit. The [reference](/docs/guides/memberships/reference#guest-invitations) has the bucket rules, every refusal and the audit list. ### Free entry for members The engine never asks whether the recipient is someone other than the member: Halfmoon's invitation screen decides who the recipient is. So the same call can give Ana her own free ticket, which is how a club offers its members free entry with a limit, one per show or one a month. Use two benefits on the plan, so that her own entry and her friends are counted apart: | Benefit | Allowance | What Halfmoon's screen does | | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- | | Your free entry | `{ "units": 1, "mode": "per_event" }`, or `{ "units": 1, "mode": "per_period", "period": "month" }` for one a month at any assigned show | Names Ana as the recipient | | Bring a friend | `{ "units": 2, "mode": "per_event" }` | Names the friend, as above | Assign both to the shows like any benefit. To give Ana her entry, Halfmoon's backend invites her own customer (the membership's `customer_id`, or her email or `external_ref`) with the free-entry benefit: `POST /v1/guest_invitations` ```json { "membership_id": "mbs_…", "benefit_id": "mbn_… (Your free entry)", "item_id": "itm_…", "recipient": { "id": "cus_… (Ana's customer_id)" } } ``` The answer is the usual `201`: a free ticket, with Ana as the order's customer and the holder, charged to her free-entry allowance. Three things follow: * **The allowance is counted per member, per benefit.** Ana's free entry is spent only against the benefit you named, so it never uses up Bring a friend. If you point a single benefit at both uses, her own entry and her friends share one allowance. Once it is spent, the next invitation is refused with `invitation_allowance_exceeded`, whoever the recipient is. * **The free ticket counts towards the show's `max_tickets_per_customer`.** It is a ticket in Ana's name like any she buys, so a later purchase by her is checked against the limit with it included. The free entry itself is never refused for the limit. To let her buy four more on top of it, set the limit to five. * **The visit is Ana's attendance.** The ticket is admitted at the door like any other, and the visit is credited to the holder, so it counts as her own [attendance](/docs/guides/memberships#earning-a-plan-by-attending) towards plans earned by attending. ## Putting members first on a waitlist When a Halfmoon show sells out, Family members should be first in line for a ticket that comes back. A `waitlist_priority` benefit says so, assigned like any benefit: ```json { "plan_id": "mpl_…", "name": "First in line", "kind": "waitlist_priority" } ``` When Ana joins a sold-out ticket's waitlist, Halfmoon names her as on a cart, with `customer: { "external_ref": "usr_4471" }`. When a refund or failed payment frees a unit of that ticket, the engine offers it to waiting members whose current membership has the benefit assigned there, in the order they joined, before anyone else. Membership is judged when the unit is offered, so joining Family after the waitlist still counts and leaving it no longer does. An organizer's own promotion of a named entry is unchanged. The [waitlist guide](/docs/guides/waitlist#member-priority) has the details. ## What each side owns | Halfmoon | The engine | Stripe | | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | | Who Ana is (`usr_4471`), her login, the join page, the show page | The plan, the membership row and its status | The Product, Price, Subscription and invoices on Halfmoon's account | | Passing `customer` on every quote and session | Turning an active membership into price effects | Charging the card each period | | Rendering prices and teasers the quote returns | Reconciling status from Stripe's events | Reporting paid, failed and ended | | Deciding when to offer "cancel", "pause", "resume" and "undo cancellation" | Scheduling cancellation at period end, pausing and restarting the subscription, ending a free membership at once | Ending the subscription, pausing invoices, calculating the credit | | The "update card" button and who may press it | A single-use hosted link for the member's own Stripe customer, and keeping the subscription on the new card | The page where the card is entered | Everything Halfmoon needs to build is on this page: one create call, one Payment Element, one poll, and `customer` on every cart. The [reference](/docs/guides/memberships/reference) has the full field list, every state and the errors that can come back. --- # Plans, states and effects URL: /docs/guides/memberships/reference The membership reference — plan fields, the join contract, every state, the effects a member gets, and cancellation A membership is a recurring subscription on the organizer's **connected Stripe account**. The organizer is the merchant of record. The engine stores the subscription's state and turns an active membership into price effects. When Stripe reports a membership invoice paid, the engine appends a `membership_charge` ledger entry for the amount paid and a `platform_fee` entry for Lissen's fee, just as it does for ticket sales. A [free plan](#free-plans) has no Stripe side at all. This page is the reference. The [walkthrough](/docs/guides/memberships#the-two-objects) shows the whole flow once, with Halfmoon Presents and their £10-a-month club. ## Create a plan Plans are organizer-scoped. Creating a paid one creates a Stripe Product and recurring Price on the organizer's connected account, then stores their references in the engine; a [free plan](#free-plans) creates nothing in Stripe. Either kind also registers the in-engine `membership` entitlement provider for that organizer: creating the first plan is the consent act that lets quotes evaluate membership effects. ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: 8d7f1c2e-…' \ -H 'Content-Type: application/json' \ -d '{ "name": "Halfmoon Club", "currency": "GBP", "price_minor": 1000, "interval": "month", "percent_off_bps": 2000, "unlocks_gated_items": true, "active": true }' ``` `name`, `active`, `percent_off_bps`, `unlocks_gated_items`, [`required_plan_id`](#require-a-membership-to-join), [`exclusive_group`](#alternative-plans-in-an-exclusive-group), [`grace_days`](#benefit-grace-period), the [enrollment settings](#close-enrollment-or-cap-members) (`enrollment_open`, `member_cap`) and a free plan's [`attendance_rule`](#earned-memberships) can be changed with `POST /v1/membership_plans/{id}`. The currency and interval never change. The price changes with its own call, for new joins and existing members alike: see [Change the price](#change-the-price). The membership platform fee is the percentage from the organizer's active fee schedule for the plan currency. A missing schedule fails with `fee_schedule_not_found`; it is never treated as a zero fee. Membership v1 uses the percentage component only. A schedule's flat amount and fee mode do not become recurring Stripe invoice charges. Plan edits change the engine's offer and effect configuration only. They do not rename, deactivate, or otherwise synchronize the existing Stripe Product or Price. Only a [price change](#change-the-price) creates anything in Stripe. ## Change the price `POST /v1/membership_plans/{id}/price` ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans/mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01/price \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: 5b8e3f1c-…' \ -H 'Content-Type: application/json' \ -d '{ "price_minor": 1200 }' ``` Changes a paid plan's price for new joins and for every existing member, from each member's next renewal. The body takes `price_minor` only, above 0; any other field, a currency or an interval included, answers `400` `invalid_request`. It needs an `Idempotency-Key` and organizer administrator authority (`organizer_admin_required` otherwise), and answers `200` with the plan. * **The plan.** Its id, benefits, group, cap, grace and every other setting stay as they are. A new Stripe Price is created on the plan's Product in the plan's currency and interval, with the same tax behaviour as its current Price (a tax-inclusive plan stays tax-inclusive, and one created without tax stays without, whatever [membership tax](#tax) is now). The plan points at it, so joins from now on are charged it, and `membership_plan.updated` is recorded. A retry with the same key replays the answer and creates no second Price. Sending the plan's current price changes nothing and records nothing. * **The members.** Every live membership of the plan (`incomplete`, `active`, `past_due`, including one scheduled to cancel) is moved to the new Price in the background, within minutes for most plans, the soonest renewals first. A `paused` membership is moved when it [resumes](#pause-and-resume). Nothing is charged or prorated at the switch; the member's next renewal after the move charges the new price. A renewal that Stripe bills before its member has been moved still charges the previous price, once, so call it ahead of renewals you want at the new price. Each move records `membership.updated` with the membership's new `price_minor` and its `price_applies_at`. A move the payment provider refuses is retried, and a membership whose subscription has already ended is left for its own `membership.canceled`. * **When it applies.** There is no effective date: call it on the day you told your members. To keep existing members on their price, create a new plan instead. | The member is | Their next charge | | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `active` | The new price at `current_period_end`, the renewal after the call. | | `active`, scheduled to cancel | Nothing, unless the cancellation is undone; then the new price at renewal. | | `past_due` | The open invoice keeps its amount (an issued invoice cannot change); the renewal after it charges the new price. | | `paused` | The new price when they [resume](#pause-and-resume), less the pause credit. Until then `price_minor` is the previous price and `price_applies_at` is null; the resume moves them and sets both. | | `incomplete` | The first invoice keeps its amount; their first renewal charges the new price. A join already under way when the price changed is moved like this one. | | Waiting for a [first charge date](#charge-first-on-a-later-date) | The new price on that date: nothing was invoiced yet. `price_applies_at` is the date, the same as `next_charge_at`. | | Next charge [moved](#move-or-make-the-next-charge) to a date | The new price on that date, which stays as it is. `price_applies_at` is the date, the same as `next_charge_at`, also when the date is moved after the member was moved. | | Charged [now](#move-or-make-the-next-charge) | The price of the Price they are on when the charge is made. Charged now after being moved, they pay the new price then and `price_applies_at` is that charge; moved after the charge, from the next renewal. | A free plan answers `422` `membership_plan_free`. A plan without a connected Stripe Price answers `422` `payment_intent_unavailable`. ## Join and confirm Joining is keyed and attested by the partner. There are no anonymous memberships. Send exactly one of `customer.id` or `customer.external_ref`, plus the buyer's email and optional name: ```json { "plan_id": "mpl_…", "customer": { "external_ref": "partner-user-123", "email": "buyer@example.com", "name": "A. Buyer" } } ``` When the organizer charges [tax on memberships](#tax), a paid join also says where the buyer is: `customer.address` with a two-letter `country` (and the `postal_code` where Stripe Tax needs one), or the `ip_address` they joined from. For a paid plan, `POST /v1/memberships` returns the incomplete membership and three credentials: `payment_intent_client_secret`, `connected_account_id` and `publishable_key`. Use them exactly like buyer checkout credentials: initialise Stripe.js for the connected account, mount a Payment Element with the client secret, and call `confirmPayment({redirect: "if_required"})` in the buyer's page. Do not mark the member active from the HTTP 201 response. Poll `GET /v1/memberships/{id}` until the webhook-driven state is `active`. When Lissen collects an organizer's memberships on its own Stripe account, `connected_account_id` is `null`: initialise Stripe.js with the publishable key alone, without `stripeAccount`. The same holds for `setup` and for a resume's `payment`. A membership keeps the account it joined on for its renewals, card updates, pauses and cancellation, whatever the organizer collects on later. A join there cannot name a `saved_payment_method`: it answers `422` `saved_payment_method_unavailable`. The create call is idempotent. A customer cannot have two non-canceled memberships for the same plan. A join while an `incomplete` membership's first payment is still awaited resumes it: the same membership comes back with fresh payment credentials and no activity. If Stripe has already expired or canceled that subscription, the old record is retired as `canceled` and a new one is created. An `active` or `past_due` membership answers `409` `membership_already_exists`, as does an `incomplete` one whose subscription Stripe has already activated before its webhook arrived; poll the membership instead of joining again. An `incomplete` membership whose subscription Stripe holds as `unpaid` or `paused` answers `409` too, and polling will not clear it: that subscription will not activate by itself, so cancel the membership (or wait for it to read `canceled`) before joining again. To charge a paid plan first on a later date, see [Charge first on a later date](#charge-first-on-a-later-date). To pay with a card already saved on the organizer's Stripe account, see [Pay with a card already saved](#pay-with-a-card-already-saved). ### Retrying a join whose answer was lost If a paid join's answer never reached you (a timeout or a lost connection), make the same join again with the same `Idempotency-Key`. If the membership was created, its answer is replayed. If the earlier attempt created its Stripe subscription but never created the membership, the retry uses that subscription instead of creating a second one, and answers with the membership it was made for. With a new key the engine still finds and uses the earlier attempt's subscription when the customer has paid for a membership before; otherwise it creates a new one, and the earlier one is ended unpaid. If the retry is refused (the plan filled up or was disabled meanwhile, or, with [`first_charge_at`](#charge-first-on-a-later-date), its date passed before the member saved a card), the earlier attempt's subscription is cancelled and anything Stripe charged on it is refunded in full, platform fee included: the refund names a `canceled` membership that was never a member (`refund.created`). If no retry ever comes, Lissen ends that subscription itself soon after Stripe's first event for it, and refunds anything it charged the same way. A subscription made for a membership that does not exist never keeps a member's money. The platform fee percentage is read from the organizer's [fee schedule](/docs/guides/config/fee-schedules) at join, not at plan creation. A join with no schedule in the plan's currency answers `fee_schedule_not_found`. A canceled record does not get revived; joining again creates a new membership and subscription. ## Charge first on a later date A paid join can give `first_charge_at`, a timestamp: the member's card is saved now and nothing is charged until that date. Use it to move members who already paid elsewhere (an old shop, a previous provider) without charging them twice: set it to the date their paid time runs out. ```json { "plan_id": "mpl_…", "customer": { "external_ref": "partner-user-123", "email": "buyer@example.com" }, "first_charge_at": "2027-01-15T12:00:00Z" } ``` * It must be in the future and no more than 730 days away, Stripe's own limit; otherwise the join answers `400` `first_charge_at_out_of_range` and nothing is created. A free plan charges nothing, so a free join that gives it answers `400` `first_charge_at_free_plan`. * The response's `payment` is `null` and `setup` holds `setup_intent_client_secret`, `connected_account_id` and `publishable_key`. Initialise Stripe.js for the connected account, mount a Payment Element with that secret and call `confirmSetup({redirect: "if_required"})`: the member saves a card instead of paying. A join without `first_charge_at` answers exactly as before, with `setup: null`. * A returning member saves their card through the setup step like anyone else, even when Stripe already holds one for them (their Stripe Customer's default card): the join answers with `setup`, and the membership stays `incomplete` until the member confirms it. A card the member saved for another membership is never kept as payment for this one unless they confirm it here: should Stripe charge it on the date for a join they never finished, Lissen ends the join and refunds that payment in full (`refund.created`). To skip the setup step, name the saved card with [`saved_payment_method`](#pay-with-a-card-already-saved): the join is then `active` at once. * Until the card is saved the membership is `incomplete`, gives no member effects and holds its enrollment place and exclusive group like an unpaid join. A join whose card is not saved within about a day (23 hours), or by its `first_charge_at` if that is sooner, is ended by the engine: it reads `canceled`, its place and group are free, and its setup secret no longer works. Joining again before then resumes it with the same `setup` secret; joining again with another date (or with none), or after that day, replaces it with a new join and a new secret. * In a [capped plan](#close-enrollment-or-cap-members) the join's place is reserved for 24 hours. A card whose saving reaches Lissen only after that must win a place again; if the plan is full by then, the join is ended (`canceled`) and its subscription cancelled. A first payment already taken remains recorded as a [membership charge](#payments-and-refunds) and is refunded in full, platform fee included, by Lissen: a `refund.created` names that charge. * Once the card is saved the membership is `active`, with `membership.activated`: from then it counts like any active membership, for benefits, exclusive groups, caps and [prerequisites](#require-a-membership-to-join). * On the date Stripe charges the plan's full price and renews from there. That first charge is recorded like a renewal: a [membership charge](#payments-and-refunds), the platform fee and, under [membership tax](#tax), its tax. If it fails it is a failed renewal: the membership becomes `past_due`, the plan's [benefit grace period](#benefit-grace-period) applies and Stripe retries on its schedule. * A member who [cancels](#cancel-at-period-end) before the date keeps the benefits until then and is never charged. * `next_charge_at` on the membership says when it is next charged: `first_charge_at` until then, then the renewal date. * Once the card is saved the date can still be moved, or the first charge made now: see [move or make the next charge](#move-or-make-the-next-charge). ## Move or make the next charge `POST /v1/memberships/{id}/next_charge` Sets when an `active` paid membership is next charged. Use it to line a member up with the date they paid until on an old shop, or to make a renewal happen now (see [Testing renewals](/docs/guides/memberships/testing-renewals)). The body is `{ "at": "" }` or `{ "at": "now" }`, and the request requires an `Idempotency-Key`. ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships/$MEMBERSHIP_ID/next_charge \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: 7c1d2e3f-…' \ -H 'Content-Type: application/json' \ -d '{ "at": "2027-03-01T12:00:00Z" }' ``` ```json { "membership": { "status": "active", "next_charge_at": "2027-03-01T12:00:00.000Z", "...": "..." }, "charge_attempt": null } ``` * **A date** moves the next charge there, earlier or later. The member keeps the membership and its benefits until then, and the plan's full price is charged on the date, renewing monthly (or yearly) from it. Nothing is prorated: moving the date never credits unused time or charges a difference. It must be in the future and no more than 730 days away, Stripe's limit; otherwise `400` `next_charge_at_out_of_range` and nothing changes. A member still before their [first charge date](#charge-first-on-a-later-date) (card saved) is moved the same way. * **`now`** charges one full period now and starts a fresh period from now. It is recorded as a renewal: `membership.renewed`, a [membership charge](#payments-and-refunds), the platform fee and, under [membership tax](#tax), its tax. `charge_attempt` says how it went: `{ "outcome": "paid" }`, `failed` with the card's `decline_code`, or `requires_action` when the member's bank wants them to authenticate, which cannot happen while they are away. * **A failed `now` is a failed renewal**, never a change that waits for the payment: the membership becomes `past_due`, the plan's [benefit grace period](#benefit-grace-period) starts, and Stripe retries on its schedule (a payment that needs authentication is not retried: send the member to the [payment-method update](#update-the-payment-method)). The new period still runs from now. * **On a `past_due` membership** only `now` is accepted: it pays the open overdue invoice with the member's saved card. No second invoice is created. When it is paid the membership is `active` again (`membership.renewed`) and its grace is cleared; a decline leaves it `past_due`, Stripe's retries carry on, and `charge_attempt` says why. If Stripe has collected the invoice meanwhile nothing is charged and `charge_attempt` is `null`. A date is refused with `409` `membership_state_conflict`: pay what is overdue first. * **Refused** with `409` `membership_state_conflict` (`detail.operation` `next_charge`): a `paused` membership ([resume](#pause-and-resume) it instead), one set to [cancel at its period end](#cancel-at-period-end) (undo the cancellation first), and an `incomplete` or `canceled` one. A [free membership](#free-plans) answers `422` `membership_no_billing`. One next charge of a membership runs at a time: while another request on it failed midway and is unfinished (for up to 24 hours after its latest attempt), a new one is refused the same way; retry that request with its `Idempotency-Key` first. * **Reads and activities.** `next_charge_at` and `current_period_end` show the new date, and each move is recorded as `membership.updated`. * **Retries.** The same `Idempotency-Key` replays the stored answer. A request that failed midway is finished, never repeated, by a retry with the same key: what it does (pay the overdue invoice, charge now, or move the date) is decided by its first attempt, so a retry never charges twice, even when the membership's status changed in between, and a charge now retried hours later still completes. For 24 hours the key belongs to that request: sent with another `at` it answers `409` `idempotency_key_reused`, and the first request can still be retried under it. After 24 hours the key is a new request. * **Concurrent changes.** The answer and the stored membership show Stripe's state when the request completes: a cancellation made while the charge was being moved still reads as set to cancel. ## Pay with a card already saved A paid join can name a Stripe Customer and a card already saved on the organizer's own connected Stripe account, for example by the shop the organizer sold its memberships on before. The member does not enter a card. ```json { "plan_id": "mpl_…", "customer": { "external_ref": "partner-user-123", "email": "buyer@example.com" }, "saved_payment_method": { "stripe_customer_id": "cus_…", "stripe_payment_method_id": "pm_…" } } ``` * The Customer must exist on the organizer's connected account and not be deleted, otherwise `400` `stripe_customer_not_found`. The payment method must already be attached to that Customer (a legacy `card_…` id works too), otherwise `400` `payment_method_not_attached`. The engine never attaches a card itself. Nothing is created in either case. * The Customer must not belong to another customer: not to another customer's membership, not to another customer's [Pay with Lissen](/docs/guides/checkout/buyer-plane#pay-with-lissen) wallet, and not by the tags the engine puts on the Customers it uses. Otherwise the join answers `409` `stripe_customer_linked`, and `detail.customer_id` names that customer. A Customer the engine tagged for another organizer is refused without naming anyone. Emails are never compared. * The engine tags the Customer as its own, as it tags the Customers it creates. Under [membership tax](#tax) it also sets the join's location on it, as for a returning member. The Customer is then the one this customer's later memberships use. * A free plan charges nothing, so a free join that names one answers `400` `saved_payment_method_free_plan`. * Exclusive groups, prerequisites, enrollment and caps, and tax apply as to any join, and are checked before anything is created in Stripe. With [`first_charge_at`](#charge-first-on-a-later-date), the card is the one charged on the date. The membership is `active` at once, with `membership.created` and `membership.activated`. `payment` and `setup` are both `null`, and nothing is charged until the date. From the date it is as for any first charge date: the full price is charged then, and a decline is a failed renewal with the plan's grace. Without a date, the card is charged now: * **Paid:** the membership is `active` at once, `payment` and `setup` are `null`, and the payment is recorded when Stripe reports it paid. * **The bank asks the member to authenticate:** the membership is `incomplete` and `payment` holds the payment's `payment_intent_client_secret`. Initialise Stripe.js for the connected account and call `handleNextAction({ clientSecret })` while the member is on the page. The membership is `active` once it is paid. Joining again with the same card resumes it with the same secret. * **Declined:** the join answers `422` `payment_declined`. `message` is the card's reason, for the member, and `detail.decline_code` is Stripe's code when it gave one. Nothing is created, in Stripe or the engine, and the answer is stored under the `Idempotency-Key`. Join again with another card, or without `saved_payment_method` so the member enters one. The card is charged before the join is final. If a concurrent join takes the last place, the exclusive group or the Stripe Customer in that moment, the join answers that refusal and the payment is refunded in full, platform fee included, before its subscription is cancelled (with a `first_charge_at` that passed while the join was being made, the first charge is refunded the same way if Stripe already took it). So the money stays traceable, the refused join is recorded as a `canceled` membership that was never active (`membership.created` and `membership.canceled`), with its [membership charge](#payments-and-refunds) and a refund of all of it (`refund.created`, then `refund.completed` or `refund.failed`). It holds no place or group, and it does not link the Stripe Customer to the customer. If Stripe fails that refund, Lissen's operators are alerted, and you can refund the charge with `POST /v1/refunds`. If a join's answer never reached you (a timeout or a lost connection), make the same join again with the same `Idempotency-Key`. If the membership was created, its answer is replayed. If the earlier attempt created its subscription but never committed the membership, the engine finds it on the Customer and uses it instead of charging the card again, even when its `first_charge_at` has passed since (the membership is then as Stripe holds it). This recovery also works with a new key, but a new key for an already active membership answers `409` `membership_already_exists`. If the recovered join is refused, its subscription is cancelled and anything it charged is refunded, as above. A card the old shop saved without the member's permission for charges made while they are away (off-session) may need authentication when it is first charged. With a date, that charge fails like a renewal: the membership becomes `past_due`, with the plan's [grace period](#benefit-grace-period). Stripe does not retry a charge that waits for authentication. In Stripe test mode, replacing the card did not pay that charge either, so the membership stayed `past_due`. The member can give another card on the [card update page](#update-the-payment-method), but that does not pay the charge already due. ## Tax Lissen can turn on **membership tax** for an organizer, once Stripe Tax is set up on its connected account; the organizer's `membership_tax`, read with `GET /v1/organizer`, says whether it is on. It is off unless Lissen turns it on, and nothing on this page changes while it is off. When it is on: * A paid plan created from then on gets a tax-inclusive Stripe Price: `price_minor` is what the member pays, tax included. A plan created before keeps its Price, which does not include tax, so a join of it answers `422` `membership_plan_not_tax_inclusive` before anything is created in Stripe: create a new plan at the same price and offer that one. A [price change](#change-the-price) keeps a Price's tax behaviour, so it does not make such a plan tax-inclusive. * Each paid join's subscription is created with Stripe Tax, which taxes every invoice (the first, renewals, a resume's restart) where the buyer is. A join [charged first on a later date](#charge-first-on-a-later-date) still gives the location at join; its tax is calculated on that first charge. The join must give `customer.address.country` or `customer.ip_address`; the address wins when both are given. With neither, the join answers `400` `tax_location_required` before anything is created in Stripe. A location Stripe Tax cannot place answers `400` `tax_location_invalid`, with nothing created. A free plan's join needs neither. Joining again while the first payment is unpaid resumes the join from the same place; from another, the unpaid join is replaced (its invoice voided, even if enrollment has closed since) by one taxed where the buyer is now. If the buyer paid the first one meanwhile, the join answers `409` `membership_already_exists`; poll it. * Each [membership charge](#payments-and-refunds) carries `tax_minor`, the tax included in `amount_minor`. The subscription's Stripe invoice shows it as a tax line, as do Stripe's payment receipts when the connected account sends them. Memberships joined while it was off stay untaxed. ## States and webhooks | State | Meaning | | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `incomplete` | Subscription exists and its initial PaymentIntent still needs confirmation or provider settlement, or, for a join [charged first on a later date](#charge-first-on-a-later-date), its card is still to be saved. | | `active` | The subscription invoice was paid (or, for a join charged first on a later date, its card was saved) and the member effects apply. | | `past_due` | The provider reported a failed invoice. Member effects do not apply, except for a member inside a [benefit grace period](#benefit-grace-period). Dunning UX is out of scope for v1. | | `paused` | A paid membership was [paused](#pause-and-resume). Billing is stopped at the provider and member effects stopped when the pause happened. Only a successful restart payment leaves this state. | | `canceled` | The subscription ended. Member effects do not apply. | Only `active` gives member effects, plus a `past_due` membership inside its [benefit grace period](#benefit-grace-period); status itself never changes for grace. The engine maps Stripe's subscription status onto these five: `active`, `past_due`, `paused` and `canceled` pass through; `incomplete_expired`, a first payment Stripe let lapse, is stored as `canceled`; `trialing` is a join [charged first on a later date](#charge-first-on-a-later-date), stored as `active` once the member saved a card for that join (a card already on file from another membership does not count) and `incomplete` until, or a member whose [next charge was moved](#move-or-make-the-next-charge), who stays `active`; every other Stripe status (for example `unpaid`) is stored as `incomplete`. The engine offers no free trials: a later first charge charges the full price on its date. A `paused` membership still counts as a live membership of its plan: joining the plan again answers `409` `membership_already_exists` until it is resumed and later ended. A `past_due` membership returns to `active` when Stripe reports the subscription active again (typically after a retried invoice is paid); effects apply from then. The engine listens to Stripe for these events on your connected account and re-reads the subscription before writing state. You do not configure anything in Stripe for this; it is part of connecting your account. * `invoice.paid`: `subscription_create` activates the first period; `subscription_cycle` renews a later period. A join charged first on a later date opens with Stripe's paid $0 invoice, which records nothing; its charge on the date is a `subscription_cycle`. * `invoice.payment_failed`: moves the membership to `past_due`. When the membership was `active` and the failed invoice is an ordinary renewal, it also opens the plan's [benefit grace period](#benefit-grace-period). * `customer.subscription.updated`: mirrors provider status, period end and `cancel_at_period_end`. It is also how a join charged first on a later date learns its card was saved, and becomes `active`. A pause and a resume reach the engine through this event too, so a pause made in the Stripe Dashboard is mirrored as well. A [price change](#change-the-price)'s move of the subscription also sends it; when it shows the subscription on the plan's current Price and the membership does not yet, the move is recorded from it. * `customer.subscription.deleted`: records `canceled` and `ended_at`. Webhook delivery is idempotent on the PSP event id. A cancellation is terminal against an older, out-of-order paid event. The resulting activity types are `membership.created`, `membership.activated`, `membership.renewed`, `membership.updated`, `membership.canceled`, `membership.paused` and `membership.resumed`; plans add `membership_plan.created` and `membership_plan.updated`. All nine arrive on your [activity stream](/docs/guides/activities/stream) like any other fact and are listed under Memberships in [activity types](/docs/guides/activities/types). ## Effects and gated items Quotes accept an attested customer subject: ```json { "customer": { "external_ref": "partner-user-123" } } ``` An active member receives a non-consumable `percent_off` effect when the plan has a percentage, with provenance naming `plan_id`, `membership_id` and `plan_name`. A plan with `unlocks_gated_items: true` also returns an `unlock` effect naming the gated item ids in the cart. The effects are applied together with the existing stacking rules; a membership percentage is not stackable, so the best single exclusive price wins and provenance remains in the quote. An anonymous or non-member quote receives the same benefit as `unapplied_effects` with a generic `requires.display`, for example “Join Halfmoon Club for 20% off” or “Join Halfmoon Club to unlock Members presale”. No email or personal data is placed in this teaser. A gated item remains unsellable until an applied unlock names it. Teasers are offered only while the customer holds no eligible membership of the organizer, only for plans the customer could join, and only for what would apply to the cart: see [benefits in quotes](#benefits-in-quotes). The door rule is separate: tickets already issued remain issued if a membership later becomes `past_due`, `paused` or `canceled`. Membership state changes affect future quotes, not admission positions already delivered. A `past_due` member keeps these effects only inside a [benefit grace period](#benefit-grace-period). The plan's own `percent_off_bps` and `unlocks_gated_items` are the **legacy plan benefits**. They keep working as described above, across every event of the organizer, and nothing moves them into the benefits below. For a benefit that applies only at chosen events or items, define a [membership benefit](#membership-benefits) and [assign it to events](#assign-benefits-to-events) instead. ## Membership benefits A membership benefit is a reusable benefit of one plan, defined once and selected per event. Its `kind` is `percent_off`, with `percent_off_bps` from 1 to 10000 (the same unit as the plan field; 1000 is 10%), `unlock`, permission to buy gated items, `guest_invitation`, which lets members invite guests for free (see [guest invitations](#guest-invitations)), or `waitlist_priority`, which puts members ahead of arrival order on the assigned items' waitlists when a freed unit is offered automatically (see [waitlist priority](/docs/guides/waitlist#member-priority)), or `fee_waiver`, which waives the booking fee on the assigned items (see [benefits in quotes](#benefits-in-quotes)). Only `percent_off` takes `percent_off_bps` and only `guest_invitation` takes `guest_allowance`. An unlock is not a free ticket: the member still pays for the unlocked item. A plan can have several benefits, each assigned to different events or items, and a free plan's benefits work like a paid plan's. A benefit can be created before any event exists. On its own it changes no price: it applies only where an event assigns it. ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_benefits \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: 4a1e0c9b-…' \ -H 'Content-Type: application/json' \ -d '{ "plan_id": "mpl_…", "name": "Family discount", "kind": "percent_off", "percent_off_bps": 1000 }' ``` ```json { "id": "mbn_…", "object": "membership_benefit", "plan_id": "mpl_…", "name": "Family discount", "kind": "percent_off", "percent_off_bps": 1000, "created_at": "2030-01-10T12:00:00.000Z", "updated_at": "2030-01-10T12:00:00.000Z", "metadata": {} } ``` | Operation | Route | | --------------------------------- | ---------------------------------------------- | | Create (Idempotency-Key required) | `POST /v1/membership_benefits` | | List, optionally `?plan_id=mpl_…` | `GET /v1/membership_benefits` | | Retrieve | `GET /v1/membership_benefits/{id}` | | Update | `PATCH /v1/membership_benefits/{id}` | | Where it is assigned | `GET /v1/membership_benefits/{id}/assignments` | An update changes `name`, `percent_off_bps` (for `percent_off` only), `guest_allowance.units` (for `guest_invitation` only) or `metadata`; `plan_id` and `kind` are fixed, so create a new benefit to change them. Benefits are updated with `PATCH`, like the other configuration resources. An unknown plan answers `invalid_reference`; a percentage on an unlock, or a `percent_off` without one, answers `invalid_request`. Every assignment reads the live benefit. Changing Family discount from 10% to 15% applies to later quotes at every event it is assigned to. A checkout session's binding quote and a completed order keep the effects already recorded on them. Benefit edits never change a plan's price or billing. ## Assign benefits to events Benefits are chosen from the event. An assignment links one benefit to one event with a `scope`: * `event`: every item of the event, including items added later; * `items`: only `item_ids`, which must be items of this event. A benefit has at most one assignment per event, so the call is a create or replace addressed by the event and the benefit: ```bash curl -X PUT "https://tickets.lissen.com/api/v1/events/$EVENT_ID/membership_benefits/$BENEFIT_ID" \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Content-Type: application/json' \ -d '{ "scope": "items", "item_ids": ["itm_…"] }' ``` ```json { "id": "mba_…", "object": "membership_benefit_assignment", "benefit_id": "mbn_…", "event_id": "evt_…", "scope": "items", "item_ids": ["itm_…"], "created_at": "2030-01-10T12:05:00.000Z", "updated_at": "2030-01-10T12:05:00.000Z" } ``` | Operation | Route | | -------------------------------- | --------------------------------------------------------- | | The event's assignments | `GET /v1/events/{id}/membership_benefits` | | Assign, or replace an assignment | `PUT /v1/events/{id}/membership_benefits/{benefit_id}` | | Remove an assignment | `DELETE /v1/events/{id}/membership_benefits/{benefit_id}` | The event view and the benefit's `assignments` view list the same records; there is no separate plan-side list to keep in step. Retries are safe. Sending the current selection again returns the same assignment and records nothing. Sending a different selection for the same benefit and event replaces it: an event scope and an item selection that overlap are never stored twice. The assign and remove calls also accept an `Idempotency-Key`, which replays the first response, refusals and unchanged selections included, even after a later request has changed the assignment. The whole request is checked before anything changes; an assignment is never saved with part of its selection dropped: | Refusal | Code | | ----------------------------------------------------------------------- | ------------------------- | | The event or benefit does not exist for this organizer | `404` `not_found` | | An item does not exist for this organizer | `400` `invalid_reference` | | An item belongs to another event or to no event | `400` `item_not_in_event` | | `items` with no `item_ids`, `event` with `item_ids`, or a repeated item | `400` `invalid_request` | | Removing an assignment that does not exist | `404` `not_found` | Where a benefit applies: * A new event has no assignments; creating it never opts it into a benefit. * A benefit with no assignment at an event gives nothing there. Removing the last assignment leaves the benefit giving nothing, never applying to every event. * Overlapping assignments of one benefit apply it once. * Where several membership discounts cover the same item, the item gets the single best one, as for plan percentages today. * An item moved to another event stops being covered by the old event's assignment. ## Benefits in quotes For each eligible membership of an active plan (`active`, or `past_due` inside its [benefit grace](#benefit-grace-period)), a quote reads the plan's benefits and their assignments at the events in the cart, and returns at most one effect per benefit: | Benefit | Applied effect | | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `percent_off` | `percent_off` with the benefit's `percent_bps`, not stackable, with `applies_to_item_ids` listing the cart items the benefit's assignments cover | | `unlock` | `unlock` whose `unlocks_item_ids` lists the covered cart items that are gated; no effect when none is gated | | `fee_waiver` | `fee_waiver`, not stackable and not consumable, with `applies_to_item_ids` listing the covered cart items | The effect id is `membership:{plan_id}:benefit:{benefit_id}`, and its `source` names `plan_id`, `membership_id`, `plan_name` and `benefit_id`. A benefit with no assignment covering the cart returns no effect at all: an effect with empty `applies_to_item_ids` and `applies_to_event_ids` would cover every line, so a benefit is never returned that way. Legacy plan effects are returned beside benefit effects, unchanged and without `benefit_id`; the [stacking rules](/docs/guides/capacity-and-pricing/pricing-and-entitlements#the-stacking-order) then give each line its single best membership discount. A membership `fee_waiver` sets a covered line's `booking_fee_minor` to 0 and leaves `platform_fee_minor` unchanged, which you absorb, exactly as a [`fee_waiver` code](/docs/guides/capacity-and-pricing/pricing-and-entitlements#what-a-fee-waiver-actually-waives) does, and it applies on top of any discount. A line uses one waiver: beside a `fee_waiver` code the membership's waiver is used and the code is listed in `superseded_effect_ids`, so it is not spent. Where waiving would leave a platform fee at or above the line's discounted price, the membership's waiver steps aside on that line: the line keeps its booking fee and the waiver is superseded unless it waived another line. A `fee_waiver` code on that line still refuses the quote with `fee_exceeds_charge`. A customer with no eligible membership gets teasers instead, only for the plans this customer's join would be accepted on, checked by the same rules as the join itself. A plan is never teased when it is [earned](#earned-memberships) or [closed or full](#close-enrollment-or-cap-members); when it [requires a membership](#require-a-membership-to-join) the customer does not hold as `active` (an anonymous quote holds none); when the customer holds an ongoing membership of another plan in its [exclusive group](#alternative-plans-in-an-exclusive-group); when the customer already holds a membership of it that gives no benefits (`paused`, or `past_due` outside its grace); or, while the organizer charges [tax on memberships](#tax), when it is a paid plan whose price does not include tax. An unpaid join of the plan (`incomplete`) keeps its teaser, as joining again resumes it. What only the join request carries, such as the customer's tax location, is checked at the join. For each cart line the best percentage joining would give there, from the highest legacy plan percentage and the percent benefits assigned to that line, is teased once, with the id the applied effect would have. A percent teaser's `applies_to_item_ids` lists only the cart items where it is the best offer, so a line carries at most one percent teaser; a legacy plan percentage that is the best offer on every line keeps its empty, every-line scope. Each gated line is teased with the legacy plan unlock where that plan unlocks gated items, otherwise with the first unlock benefit assigned to it (id `membership:{plan_id}:benefit:{benefit_id}:unlock:{item_id}`). Each line a `fee_waiver` benefit is assigned to is teased once, by the first such benefit in id order that would waive a booking fee there for a member of its plan, as a `fee_waiver` teaser with the applied effect's id and `applies_to_item_ids` listing the lines it is teased on; its display reads `Join {plan} to skip the booking fee`. A line with no booking fee to waive, or where the waiver would step aside because the platform fee reaches the price a member of that plan would pay for the same cart (after the plan's own discounts and the cart's codes and checkout offer), gets no waiver teaser. A line no plan or benefit covers gets no teaser. Quotes read the live benefit, so a definition edit or an assignment change prices the next quote. The quote held by an open checkout session keeps the terms it was priced with until that session is updated or refreshed, and cannot change once payment has started; an order keeps the effects recorded on it. Benefit definitions record `membership_benefit.created` and `membership_benefit.updated`; assignments record `membership_benefit_assignment.created`, `.updated` and `.removed`. All five are listed under Memberships in [activity types](/docs/guides/activities/types). ## Guest invitations A `guest_invitation` benefit lets the members of its plan invite guests: the engine issues an ordinary [complimentary ticket](/docs/guides/orders#complimentary-tickets) to the guest and counts it against the inviting member's allowance. You own the invitation screen and the email; the engine owns the allowance and the ticket. You never keep a counter of your own. ### Configure the allowance Create the benefit like any other, with a `guest_allowance`: ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_benefits \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: 7c3d…' \ -H 'Content-Type: application/json' \ -d '{ "plan_id": "mpl_…", "name": "Bring a friend", "kind": "guest_invitation", "guest_allowance": { "units": 2, "mode": "per_event" } }' ``` | Field | Meaning | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `guest_allowance.units` | Guest tickets each member may invite per bucket, at least 1. Counted in tickets: an invitation for two guests uses two. Yours to choose; the engine has no default. | | `guest_allowance.mode` | `per_event`: every event the benefit is assigned to has its own allowance. `per_period`: one allowance shared by every event it is assigned to. | | `guest_allowance.period` | For `per_period` only: `week`, `month` or `year`. | The benefit gives nothing until events assign it, from the event or ticket-type setup, exactly like other benefits ([assign them](#assign-benefits-to-events)). An invitation works only for an event the benefit is assigned to, and only for the tickets the assignment covers (`items` scope covers just the listed ones). `units` can be changed later with `PATCH`; the mode and period are fixed so a spent ticket never moves between buckets. Raising `units` gives members the difference at once. Lowering it below what a member has already invited leaves those tickets issued and the member with none left to invite; nothing is taken back. **Period boundaries are calendar periods in UTC**, not rolling windows and not tied to the membership's billing date: | Period | Bucket key | Starts | Starts afresh | | ------- | ----------------- | -------------------- | -------------------------- | | `week` | `week:2026-09-28` | Monday 00:00 UTC | the next Monday 00:00 UTC | | `month` | `month:2026-10` | the 1st, 00:00 UTC | the 1st of the next month | | `year` | `year:2026` | 1 January, 00:00 UTC | 1 January of the next year | The bucket is chosen from the moment the invitation is issued, not from the event's date, so a `per_period` allowance is shared by every assigned event invited to inside that period. A `per_event` bucket is `event:`. The allowance is per member (customer) and per benefit: a member who cancels and rejoins the plan keeps the same allowance for the bucket. ### Show the allowance, then invite Before you show the invitation screen, read the member's allowance: `GET /v1/memberships/{id}/guest_allowance` ```bash curl "https://tickets.lissen.com/api/v1/memberships/$MEMBERSHIP_ID/guest_allowance?benefit_id=$BENEFIT_ID&event_id=$EVENT_ID" \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' ``` ```json { "object": "guest_allowance", "benefit_id": "mbn_…", "membership_id": "mbs_…", "customer_id": "cus_…", "event_id": "evt_…", "mode": "per_event", "period": null, "bucket": { "key": "event:evt_…", "starts_at": null, "ends_at": null }, "limit_units": 2, "used_units": 1, "remaining_units": 1 } ``` `event_id` is required for a `per_event` allowance and optional for `per_period`, whose `bucket.starts_at` and `bucket.ends_at` say when it starts afresh. This read does not judge eligibility or assignment; the invitation does. When the member picks an event and types a guest's email, invite: `POST /v1/guest_invitations` ```bash curl -X POST https://tickets.lissen.com/api/v1/guest_invitations \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: invite-mem-4411-low-tide-1' \ -H 'Content-Type: application/json' \ -d '{ "membership_id": "mbs_…", "benefit_id": "mbn_…", "item_id": "itm_…", "quantity": 1, "recipient": { "email": "guest@example.com", "name": "Sam Guest" } }' ``` `membership_id` is the member's identity, as your own authentication has established it: a trusted partner call. The recipient's email never identifies the inviter, and the recipient needs no account. The `recipient` is named as on a [comp](/docs/guides/orders#complimentary-tickets) (`id`, `external_ref` or `email`) and may be anyone, including the member themselves. The answer is `201`: ```json { "object": "guest_invitation", "inviter": { "membership_id": "mbs_…", "customer_id": "cus_…", "benefit_id": "mbn_…" }, "order": { "id": "ord_…", "customer_id": "cus_…", "total_minor": 0, "payment_state": "paid", "issuance": { "type": "comp", "capacity_override": false, "guest_invitation": { "benefit_id": "mbn_…", "membership_id": "mbs_…", "inviter_customer_id": "cus_…", "bucket": "event:evt_…", "usage_id": "ivu_…", "units": 1, "returned_units": 0 } }, "positions": [ { "id": "pos_…", "holder_customer_id": "cus_…", "price_minor": 0, "admission_code": "…", "qr_image_url": "…" } ] }, "allowance": { "object": "guest_allowance", "limit_units": 2, "used_units": 2, "remaining_units": 0 } } ``` (`allowance` is the full object shown above.) The order is an ordinary comp: the recipient is its customer and the holder of every ticket, the inviting member is a different role recorded in `issuance.guest_invitation` (not necessarily a different person: a member named as the recipient gets their own free ticket, [counted like any guest](/docs/guides/memberships#free-entry-for-members)), and positions, admission codes, capacity and activity are those of any order. **Deliver the ticket from the feed**: `order.created` carries the order, the guest's `buyer_email` and the positions with their QR URLs, and `position.created` follows for each ticket, the same facts you already handle for comps. What the engine checks, in one transaction, before anything is written: | Check | Refusal | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | | `membership_id`, `benefit_id` or `item_id` does not exist for this organizer | `400` `invalid_reference` | | The membership gives no member benefits now: `paused`, `canceled`, `incomplete`, or `past_due` outside its [benefit grace](#benefit-grace-period), or its plan is inactive | `422` `membership_not_eligible` (`detail.status`) | | The benefit is not a `guest_invitation` benefit of the member's plan, or is not assigned to the item's event and ticket type | `422` `guest_benefit_not_applicable` | | The whole `quantity` does not fit in what is left of the allowance | `422` `invitation_allowance_exceeded` (`detail.shortfalls`) | | Not enough capacity for `quantity` | `422` `insufficient_capacity` | | No usable recipient, or a recipient without an email | `400` `invalid_request`, `422` `buyer_identity_required` | A member cannot override capacity: there is no `capacity_override` field, and the operator [comp route](/docs/guides/orders#complimentary-tickets) never spends a member's allowance or grants a member entitlement. A refusal consumes nothing. `Idempotency-Key` is required: a retry returns the same invitation and spends nothing twice, even after the allowance has since changed. Two different invitations sent at once are decided one at a time, so a member can never go past the limit. ### What counts, and giving units back An invitation is spent when the ticket is issued. Failures and retries consume nothing. **The engine never restores an allowance by itself.** A guest ticket that is transferred, canceled, refunded or revoked keeps counting, and so does one for an event that is cancelled. Whether the member gets the place back is your decision, and the engine takes no stance on it. For that, and for audit, every accepted invitation is kept with the inviting member and membership, the benefit, the bucket, the units, the units you returned and the order and positions issued: `GET /v1/membership_benefits/{id}/guest_invitations` The list is newest first, filterable by `membership_id` and `event_id`, and each row is a `guest_invitation_usage`. The same inviter, benefit and bucket are on the order's `issuance.guest_invitation` (with its `usage_id`), and so on `order.created`. An idempotent replay keeps the original response: an invitation issued before invitation returns were available omits `usage_id` and `returned_units` on its order. Read the order with `GET /v1/orders/{id}` for its usage id and current returned units, including after giving units back. To give a member their place back, return the units of the invitation's usage: its `id` on the list, or `issuance.guest_invitation.usage_id` on the order. `POST /v1/invitation_usages/{id}/returns` ```bash curl -X POST https://tickets.lissen.com/api/v1/invitation_usages/$USAGE_ID/returns \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: return-sam-low-tide' \ -H 'Content-Type: application/json' \ -d '{}' ``` `{}` gives back every unit not yet returned; `{ "units": 1 }` gives back one. The answer is `201` with an `invitation_return` (`id`, `usage_id`, `order_id`, `event_id`, `units`). The units go back to the bucket they were spent in, so a `per_period` return after the period has ended gives the member nothing they can still use. The member's `used_units` drops by `units`, the usage's `returned_units` rises, and the feed carries `invitation_return.created`. A return does not cancel the guest's ticket: do that with a [refund-and-revoke](/docs/guides/refunds#cancelling-free-tickets) first if the guest is not coming. A usage never gives back more than it took: more than is left answers `409 invitation_return_exceeds_remaining` (with `detail.remaining_units`), and a usage already given back in full answers `409 invitation_usage_fully_returned`. `Idempotency-Key` is required; a retry answers the same return. ## Free plans A plan with `price_minor: 0` is free. The rest of this section is everything that differs; anything it does not mention works as for a paid plan. | | Paid plan | Free plan | | ----------------------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------- | | `interval` on create | Required: `month` or `year` | Omit or send `null`; any interval is refused | | `interval` on the plan | `month` or `year` | `null` | | Stripe Product and Price | Created on the connected account | None | | Connected account, fee schedule | Required | Not needed | | Join response `payment` | The three credentials | `null` | | Membership after join | `incomplete` until the first invoice is paid | `active` at once, `started_at` set | | `current_period_end` | Set from the subscription | Always `null` | | Renewal | Every interval, `membership.renewed` | Never | | `grace_days` ([benefit grace](#benefit-grace-period)) | `0` to `365` | Always `0`; a larger value is refused | | `POST /v1/memberships/{id}/cancel` | Cancels at period end | Ends now: `canceled`, `ended_at` set | | Pause, resume, undo cancellation | Available, see [Pause and resume](#pause-and-resume) | Refused: `membership_no_billing` | | Activity types | `created`, `activated`, `renewed`, `updated`, `canceled`, `paused`, `resumed` | `created` and `activated` on join, `canceled` on cancel | | Ledger entries | `membership_charge` per paid invoice | None | These fields do not apply to a free plan and hold no value rather than an invented one: `interval` and `current_period_end` are `null`, `cancel_at_period_end` stays `false`, and `payment` is `null`. No Stripe Customer or Subscription exists, so no provider event ever refers to a free membership. Handle `null` before you read these. Since free plans, `MembershipPlan.interval` and `MembershipCreated.payment` can be `null`, and a plan's `price_minor` can be `0`. An integration written before free plans that assumes a plan always has an interval, or that a join always returns payment credentials, must check for `null` first. Everything else is shared with paid plans. Duplicate protection, idempotent joins, organizer isolation and the plan edit rules are the same. Effects depend only on an `active` membership of an active plan, whatever its price. A free membership and a paid one on different plans can coexist, and joining one never cancels the other. ## Require a membership to join A plan can name another plan of the same organizer as its prerequisite. Set `required_plan_id` when creating the plan, or later with `POST /v1/membership_plans/{id}`; send `null` to remove it. Without one, the plan joins exactly as described above. The plan reads back with the same field, `null` when there is none, so a client can show the gate before offering the join. ```json { "name": "Halfmoon Club", "price_minor": 1000, "interval": "month", "currency": "GBP", "required_plan_id": "mpl_…" } ``` A customer can join the plan only while they hold an `active` membership of the required plan. The engine checks this on every `POST /v1/memberships`, for paid and free plans alike, before it creates anything: no Stripe Customer or Subscription, no membership, and no customer record for someone the engine has not met. A customer who fails the check gets `422` `membership_prerequisite_not_met`: ```json { "error": { "type": "invalid_request_error", "code": "membership_prerequisite_not_met", "message": "Joining this plan requires an active membership of \"Family\"", "param": "plan_id", "detail": { "required_plan_id": "mpl_…", "required_plan_name": "Family" }, "request_id": "req_…" } } ``` What counts is the status of the customer's membership of the required plan at the moment of the join: | Customer's membership of the required plan | Can join | | ----------------------------------------------------------------------- | -------- | | `active` (including one set to cancel at period end) | Yes | | `incomplete`, `past_due`, `canceled`, or any status other than `active` | No | | None, or the customer does not exist yet | No | To grey out the offer before the customer clicks, read the plan's `required_plan_id` and check `GET /v1/memberships?customer_id=…&plan_id=…&status=active`. The join call is still the authority: a stale page or a retry is refused the same way, and a refused call stored under an `Idempotency-Key` replays its refusal, so retry with a new key once the customer qualifies. The prerequisite only decides who may join: * Earning the required membership enrols, charges and switches nobody. The customer still joins the gated plan with their own explicit call. * Losing it later (cancellation, a failed payment) changes nothing about a membership already on the gated plan. It is not rechecked at renewal; the membership keeps its normal lifecycle. Joining again after the gated membership ended is a new join and needs the prerequisite again. * Organizers are isolated: the required plan must belong to the same organizer (`400` `invalid_reference` otherwise), and only that organizer's memberships are consulted. * A plan cannot require itself, and a plan cannot require one that already requires it, directly or through others (`400` `invalid_request`). Chains such as A requires B requires C are allowed, and each plan checks only its own prerequisite when someone joins it. * It is one plan reference, not a rule language: no combinations, counts or attendance conditions. ## Alternative plans in an exclusive group Plans can be marked as alternatives by giving them the same `exclusive_group`: a name of 1 to 100 characters (surrounding spaces are trimmed, the match is exact, so `Offers` and `offers` are different groups). Set it when creating the plan, or later with `POST /v1/membership_plans/{id}`; send `null` to leave the group. The plan reads back with the same field, `null` when it has none. A group is just that shared name inside one organizer: there is nothing else to create, and groups of different organizers never meet. ```json { "name": "Founding", "price_minor": 2000, "interval": "month", "currency": "GBP", "exclusive_group": "Paid offers" } ``` A customer can hold only one ongoing membership among the plans of a group. The engine checks this on every `POST /v1/memberships`, for paid and free plans alike, before it creates anything (no Stripe Customer or Subscription, no membership, no customer record), and again under a lock that serializes the customer's joins across the whole group, so two simultaneous joins of different alternatives cannot both succeed. A refused customer gets `409` `membership_group_conflict` naming the membership in the way: ```json { "error": { "type": "invalid_request_error", "code": "membership_group_conflict", "message": "The customer already has an ongoing membership of \"Founding\" in the group \"Paid offers\"", "param": "plan_id", "detail": { "group": "Paid offers", "membership_id": "mbs_…", "plan_id": "mpl_…", "plan_name": "Founding", "status": "active", "cancel_at_period_end": false }, "request_id": "req_…" } } ``` "Ongoing" is any membership that is not `canceled`: | The customer's existing membership in the group | Joining an alternative | | --------------------------------------------------------------------------- | ---------------------- | | `incomplete` (first payment pending) | Refused | | `active`, including one set to cancel at period end, until it actually ends | Refused | | `past_due` | Refused | | `paused` | Refused | | `canceled` | Allowed | | None | Allowed | Everything else is unchanged: * Plans outside the group, and plans in other groups, coexist freely. With Founding and Standard in one group and a free Family plan outside it, a customer can hold Family and Founding, or Family and Standard, but not Founding and Standard together. A plan with no `exclusive_group` is never affected, and grouping is independent of price, benefits, attendance and [join prerequisites](#require-a-membership-to-join). * Joining the same plan twice is still `membership_already_exists`, grouped or not, and finishing your own unfinished join of the plan (the idempotent resume of an `incomplete` membership) is not a second enrolment. * Resuming a paused membership, or undoing a scheduled cancellation, is the same membership, not a join, and is never refused by the group. * The engine never switches plans: no automatic upgrade, downgrade, proration, cancellation or replacement. To move a customer, end the existing membership and let them join the other plan once it is `canceled`. The refusal depends on current memberships, so it is not stored under the `Idempotency-Key`: the very same request can succeed once the existing membership has ended. * Changing group configuration never cancels, edits or hides an existing membership, and the join check is the only enforcement. Putting plans into a group that customers already hold together leaves those customers as they are. `GET /v1/membership_plan_groups` lists every group with its plans and, under `conflicts`, each customer who already holds more than one ongoing membership in it (their `membership_ids`), so you can decide what to do. Those customers cannot join a further alternative until they are down to the plan they keep. ## Close enrollment or cap members Two settings decide who can still **join** a plan. They are separate from `active`, which decides whether the plan's effects apply to the people who already belong: | Setting | Stops new joins | Stops existing members' benefits | Touches Stripe | | ------------------------ | -------------------------------------------- | ---------------------------------------------------------- | --------------------- | | `active: false` | Yes (the plan answers `not_found` to a join) | **Yes**: members get no price effects, unlocks or benefits | No: billing continues | | `enrollment_open: false` | Yes (`membership_enrollment_closed`) | No | No | | `member_cap` reached | Yes (`membership_enrollment_full`) | No | No | Use `active` to retire a plan. Use enrollment to stop taking **new** members while everyone who has joined keeps their price, billing, renewals and benefits. Closing enrollment never cancels a subscription, stops an effect or changes a price, and it never changes the Stripe Product or Price. ```bash # Close a plan to new members, whatever its size. curl -X POST https://tickets.lissen.com/api/v1/membership_plans/mpl_0199c4f0-1a2b-7c3d-8e4f-5a6b7c8d9e01 \ -H 'Authorization: Bearer tk_test_…' -H 'Ticketing-Organizer: org_…' \ -H 'Content-Type: application/json' \ -d '{ "enrollment_open": false }' # Or open a limited offer: the first 25 members, then it closes itself. curl -X POST https://tickets.lissen.com/api/v1/membership_plans \ -H 'Authorization: Bearer tk_test_…' -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: …' -H 'Content-Type: application/json' \ -d '{ "name": "Halfmoon Founders", "currency": "GBP", "price_minor": 1000, "interval": "month", "member_cap": 25 }' ``` Both settings are optional on create and update: a plan without them is open and uncapped, as every plan was before. The settings are the same for paid and free plans. `member_cap` is a whole number of 1 or more; send `null` to remove it. ### Reading the state Every plan read carries the settings and the resulting state, so a client can present the offer without trying a join: ```json { "id": "mpl_…", "active": true, "enrollment_open": true, "member_cap": 25, "enrollment": { "status": "open", "places_left": 3 } } ``` | `enrollment.status` | Meaning | | ------------------- | -------------------------------------------------------------- | | `open` | A new customer can join. | | `closed` | The owner set `enrollment_open: false`. Closed wins over full. | | `full` | The plan has a cap and no place is left. | `places_left` is `null` without a cap. It counts places already taken **and** places held by a join whose first payment is still pending, so it is the number a join could win right now. It is independent of `active`. ### How places are counted Places are accounted per membership, under a lock on the plan, never by counting rows and inserting afterwards, so concurrent joins cannot pass the cap. * A **free** join takes a place when the membership is created. * A **paid** join **reserves** a place when the membership is created `incomplete`, for up to 24 hours: longer than the 23 hours after which Stripe expires an unpaid subscription. The reservation becomes permanent when the first payment activates the membership (for a join [charged first on a later date](#charge-first-on-a-later-date), the saving of its card). If the payment is abandoned, the subscription expires or the membership is canceled before it was paid, the place is released; an abandoned hold also frees itself when its 24 hours end, with nothing to clean up. * Retrying an unfinished paid join (a new key for the same customer and plan) resumes the membership and its place and consumes no further one. A same-key retry replays the stored answer. * **Renewals and resuming a paused membership are not signups**: they belong to the same membership and take no place. A paused membership keeps its place. * A taken place is **never given back**. If a member of a full cohort cancels, the plan stays `full`: a founding offer does not silently reopen. To admit more people, an owner raises `member_cap` (only the added room becomes available) or removes it with `null`. Setting a cap on a plan that had none counts the memberships that are live at that moment as the first places; memberships that had already ended are not part of the cohort. Removing a cap and setting one again starts the count again from the live memberships. * A customer who joins again after their earlier membership ended is a new signup: they need an open plan and a free place like anyone else. There is no grandfathered re-entry. ### Refusals A closed or full plan refuses `POST /v1/memberships` with `409` `membership_enrollment_closed` or `membership_enrollment_full`, before anything is created: no Stripe Customer or Subscription, no membership and no customer record. The authority is the join itself, not the plan read: a stale page, or two customers racing for the last place, are answered the same way, and the loser of a race has any Stripe subscription it had begun undone. The checks come after the [prerequisite](#require-a-membership-to-join). Neither refusal is stored under the `Idempotency-Key`: a `409` releases the claim, so a retry, with the same key or a new one, is decided afresh once the plan reopens. An unfinished join that was started before the plan closed or filled is not refused: it already holds its place, and its payment credentials were issued. There is no administrative bypass for joins: every joined membership is created through this join, so nothing enrols a customer in a closed or full plan. The one membership the join does not create is an [earned](#earned-memberships) one: a plan with an attendance rule refuses joins outright (`membership_plan_earned_only`) and grants memberships to customers who qualify, so its enrollment settings, member cap, prerequisite and exclusive group do not limit those grants. For the same reason a plan with an `attendance_rule` reads `enrollment.status: open` (or whatever its `enrollment_open` and `member_cap` say) but the object describes nothing: no join is ever accepted, so do not use it to offer a join. ## Earned memberships A **free** plan can carry an `attendance_rule`. The engine then grants a membership of the plan to a customer who attended enough events, with no join, and the numbers are the organizer's configuration. Nothing about Family, four visits or twelve months is built in. ### The rule ```json { "threshold": 4, "window_months": 12, "retention": "keep", "scope": "all_events" } ``` | Field | Meaning | | --------------- | ---------------------------------------------------------- | | `threshold` | Distinct events attended, 1 to 1000. | | `window_months` | The rolling lookback, 1 to 120 whole months, ending now. | | `retention` | `keep` or `maintain`. No default: you choose. | | `scope` | `all_events` or `selected_events`. No default: you choose. | Set it with `attendance_rule` on `POST /v1/membership_plans` or `POST /v1/membership_plans/{id}`; `null` removes it. The whole rule is sent each time. Only a free plan can have one (`400` `invalid_request` on a paid plan), and the plan reads back with the same field. Removing a rule leaves the memberships it granted exactly as they are; nothing ends them afterwards. ### What counts as a visit A visit is the derived [attendance](/docs/guides/check-in) fact: one customer at one event, supported by an admitted, non-voided check-in that credited them as the ticket holder at the door. The rule counts **distinct events**: * Several orders, tickets or scans for one event are one visit. * A ticket that was bought but never scanned, a rejected or superseded scan and a voided scan are not visits. Paid, free and complimentary tickets all count: the rule has no ticket-type filter. * A visit is dated by its earliest admitted scan (`first_admitted_at`). It counts while that instant is inside `[now - window_months, now]`. The start is inclusive and months are calendar months in UTC: three months before 31 May is 28 or 29 February at the same time of day. There is no calendar-year reset; the window slides. A visit to an event the customer already visited adds nothing, so a second scan there never refreshes an old visit. * With `selected_events`, only visits to events that count toward the plan. ### Which events count For `selected_events` an event counts toward a plan only when it says so, from the event's side: | Operation | | | --------------------------------------------------- | --------------------------------------------------------------------------------------- | | `PUT /v1/events/{id}/qualifying_plans/{plan_id}` | The event counts toward the plan. Repeating it changes nothing and records no activity. | | `DELETE /v1/events/{id}/qualifying_plans/{plan_id}` | It stops counting. `404` if it did not. | | `GET /v1/events/{id}/qualifying_plans` | The plans the event counts toward. | | `GET /v1/membership_plans/{id}/qualifying_events` | The same rows, from the plan's side. | The event can be in the future and can have no attendance yet, so events that do not exist when the plan is created are added as they are created. Counting toward a membership is independent of [membership benefits](#membership-benefits): neither implies the other. A plan without a rule answers `attendance_rule_not_configured`, and one whose rule counts every event answers `attendance_scope_not_selected`. Adding or removing an event re-evaluates the customers who attended it. The rows are kept if the scope is later switched to `all_events` (they are ignored) and count again if it is switched back. ### Granting The engine evaluates a customer for a plan whenever something that can change the answer happens, always by the same rule, and acts only on the difference: | Situation | Result | | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Qualified, no live membership of the plan | A membership is created, already `active`, with `source: "earned"`. `membership.created` and `membership.activated` follow, by a `system` actor `attendance_rule:`. | | Qualified, a live membership already (earned or joined) | Nothing. A customer has one live membership of a plan. | | Not qualified | Nothing is granted. | | The plan is not `active` | Nothing is granted; `maintain` memberships still end. | An earned grant is not a join. It does not pass the checks meant for public sign-up: the plan's own `required_plan_id` is not consulted, and there is no customer-supplied identity to check. It never subscribes to, charges for, replaces or cancels any other membership, paid or free, and it only ever looks at memberships of its own plan. A plan with a rule cannot be joined: `POST /v1/memberships` answers `422` `membership_plan_earned_only`. Memberships that already existed before a rule was attached have `source: "joined"` and the rule never ends them. ### When the evaluation runs * **When attendance changes.** A scan that admits the first ticket of a visit, a void, a superseding earlier scan, a credit correction and a recipient's claim all report `attendance.recorded` or `attendance.removed`. The evaluation happens in the same transaction, so the grant or end commits with the evidence and its activities follow the attendance activity. A failure of the evaluation never fails a door scan; the next sweep repeats it. * **As time passes.** A `maintain` membership ends when visits age out even if the customer attends nothing. A worker sweep runs every five minutes and is idempotent, so a membership ends on the first pass after `qualified_until`, not necessarily at that instant. The sweep is also the safety net for everything above. * **When a rule is edited.** Saving a changed rule re-evaluates the organizer's customers against the new rule: customers who now qualify are granted and, under `maintain`, earned memberships that no longer qualify are ended. The request handles up to 200 customers and the sweep finishes the rest within minutes. Creating a plan with a rule counts attendance that already happened. Reactivating an inactive plan is picked up by the sweep. ### Keep and maintain | `retention` | A customer stops qualifying (visits age out, a visit is voided or corrected away, the rule is raised, an event stops counting) | | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `keep` | The earned membership stays. Corrections to false evidence are explicit: a void or a credit correction never silently takes a membership away. End it yourself with cancel. | | `maintain` | The earned membership ends: `canceled`, `ended_at` set, `membership.canceled` by the `attendance_rule` actor. Qualifying again, with new visits, earns a fresh membership; the ended one stays as history. | `maintain` ends only memberships with `source: "earned"`. Voiding a scan that never counted changes nothing. ### Ending one yourself `POST /v1/memberships/{id}/cancel` works on an earned membership as on any free membership: it ends now. That is an explicit removal and it sticks. The customer is not granted the plan again just because their old visits still qualify; they earn it again by a counted visit whose first scan is later than the cancellation. An end by `maintain` is different: qualifying again earns it at once, because the engine, not a person, ended it. ### Reading progress `GET /v1/membership_plans/{id}/qualification?customer_id=…` computes the customer's standing now: `visits_counted` of `threshold`, `window_start` and `window_end`, `qualified`, `qualified_until` (when the threshold-th most recent visit leaves the window; `null` while not qualified), the counted `visits` newest first, `membership_id` (their live membership of the plan, if any) and `earned` (whether the rule granted it). It answers for customers who have earned nothing and is read-only. A plan with no rule is `422` `attendance_rule_not_configured`. ## Pause and resume A paid membership can be paused and restarted through the API. You own the customer-facing controls; the engine keeps billing, benefits and activity consistent. All three operations below require an `Idempotency-Key`, are scoped to the organizer, and answer `404` for a membership that is not the organizer's. | Operation | Allowed when | Billing | Membership and benefits | | --------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | | `POST /v1/memberships/{id}/pause` | `active`, no cancellation scheduled | Pauses **immediately**. The unused part of the paid period is **credited** toward the next invoice. It is not refunded in cash, and there is no way to schedule a pause for the period end. | `paused`; benefits stop at once, so the very next quote prices at list. | | `POST /v1/memberships/{id}/resume` | `paused` | Same plan, at the membership's `price_minor`. A fresh billing period starts now on the existing interval; the credit is applied and any balance is collected from the customer's saved payment method. | Returns to `active`, and benefits return, only after the provider reports the subscription active again. | | `POST /v1/memberships/{id}/undo_cancellation` | `active` or `past_due`, cancellation scheduled | None. No charge; price and renewal date are unchanged. | Continues without interruption. | **Pause.** The membership's subscription is paused natively at the payment provider (Stripe), which stops it generating invoices; it is not the collection-only pause that leaves a subscription active. The unused-time credit is calculated once, by Stripe. Example: a 10 GBP a month membership paused halfway through a paid month is credited roughly 5 GBP toward its next invoice. An invoice that already exists keeps moving while paused, so pausing is not forgiveness of money already owed. `current_period_end` becomes the time of the pause, and `membership.paused` is recorded. A pause is refused with `membership_state_conflict` unless the membership is `active` and not scheduled to cancel (undo the cancellation first), with `membership_no_billing` for a [free membership](#free-plans), and with `membership_pause_unsupported` when the subscription does not meet the provider's prerequisites: flexible billing mode, automatic collection, no subscription schedule, and an active status. The engine never migrates existing subscriptions to make them eligible, and not every subscription created before this feature qualifies. A paused membership cannot be canceled: resume it first. **Resume.** The restart invoice is the pause credit plus a full new period at the membership's `price_minor`, the plan's new price when the plan was [repriced](#change-the-price) while it was paused. Example: resuming the 10 GBP membership above collects about 5 GBP, and the new month runs from the restart date. A restart invoice fully covered by credit needs no payment, and the membership becomes `active` straight away. The response is `{ "membership": …, "payment": … }`: * `membership.status` is `active` and `payment` is `null` when the provider already reports the subscription active. `membership.resumed` is recorded once, with the new `current_period_end`. * `membership.status` stays `paused` when the restart payment is still unpaid or failed. No benefits return and **no `membership.resumed` is recorded**. When the restart invoice is open and payable, `payment` carries the usual three credentials so the customer can complete or retry it with a Payment Element; otherwise it is `null`. When a payment later succeeds the provider reports the subscription active, the membership becomes `active` and `membership.resumed` is recorded. Poll `GET /v1/memberships/{id}` or follow the activity stream; do not treat the 200 as the restart. * The provider refusing the payment outright (for example, the customer has no usable payment method) answers `422` `membership_resume_payment_failed`, leaves the membership `paused`, and can be retried after the customer fixes their payment method, with a new `Idempotency-Key`. Resume never changes the plan or price and never creates a new subscription. An ended membership is not revived; it uses the normal join. **Undo a scheduled cancellation.** Clears `cancel_at_period_end` on the same subscription before the period closes, so the membership renews as usual. It is recorded as `membership.updated` (with `cancel_at_period_end` now `false` in the snapshot). If the subscription has already ended at the provider, or the membership is `canceled`, the request answers `409` `membership_state_conflict`: a stale request never reactivates an ended subscription. **Retries and ordering.** Repeating a request with the same `Idempotency-Key` replays the stored answer without calling the provider again or recording a second activity. A pause, resume or reversal that reached the provider before the engine recorded it is completed on retry rather than repeated, and the provider's own events reconcile the same state without duplicating it: each transition is recorded once, whichever path sees it first. **What a pause does not touch.** Tickets already issued stay valid, and nothing at admission checks a membership. Only the paused membership's effects stop; the customer's other memberships are unaffected. ## Payments and refunds Each paid invoice becomes a settled **membership charge**, once, even when it is paid after the membership ended (for example, its subscription was cancelled in the Stripe Dashboard while the join was being made). Charges are listed by `GET /v1/memberships/{id}/charges`, with what has been refunded and what can still be, and the [tax](#tax) included in its amount (`tax_minor`, 0 when the organizer does not charge tax on memberships). Refund a charge with `POST /v1/refunds` and its `membership_charge_id`; see [Refunding a membership payment](../refunds#refunding-a-membership-payment). A refund returns money only: the membership is not cancelled or paused, its benefits and renewal schedule are unchanged and no ticket is revoked, and a refund never counts as paying an overdue renewal. Ending the membership stays a separate action, below. ## Benefit grace period A paid plan can keep its benefits available for a number of days after a renewal payment fails, so a member has time to fix their card without losing member prices or unlocks the next morning. Set it with `grace_days` on the plan (whole days, `0` to `365`); it is also in the admin plan editor. ```bash curl -X POST https://tickets.lissen.com/api/v1/membership_plans/mpl_0199c4e2-8a1b-7c20-9d31-5e6f7a8b9c0d \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Content-Type: application/json' \ -d '{ "grace_days": 5 }' ``` `grace_days` defaults to `0`, which is no grace: a plan that never sets it behaves exactly as before. A [free plan](#free-plans) has nothing to renew and refuses a value above `0` with `invalid_request`. The engine hard-codes no duration; every organizer picks their own. **What starts it.** A membership that is `active` and whose ordinary renewal invoice (`subscription_cycle`) fails becomes `past_due` and, if the plan has `grace_days` above `0`, opens one grace window. `grace_started_at` is the moment the engine records the failure and `grace_ends_at` is `grace_days` whole 24-hour days later. Both timestamps are on the membership (`GET /v1/memberships/{id}` and the list) and on the `membership.updated` activity that records the failure. `in_grace` is computed at read time from them and the clock: it is on reads only, not in activity snapshots. They let a partner explain "your benefits end on Friday" or "your benefits ended on Friday". `status` stays `past_due` throughout: grace is a separate eligibility fact, never a pretend payment or an `active` state. | Membership situation | Grace | | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `active`, ordinary renewal fails | Starts (if the plan has `grace_days`) | | `past_due`, further retries fail, duplicate or out-of-order events arrive | Unchanged: the window is never restarted or extended | | A member updates their card | Unchanged, unless the new card [pays the overdue invoice](#a-card-update-collects-what-is-overdue): then cleared | | Renewal is paid, subscription `active` again | Cleared; a later failure starts a new window | | `incomplete` (first payment never completed) | None | | `paused` and a failed resume payment | None: a paused member must pay to resume, as before | | `canceled`, or Stripe reports `unpaid` or another non-`past_due` status | Ends at once and is cleared | | A `past_due` membership that began before grace existed | None | **What it gives.** While `in_grace` is true the membership counts as eligible in the same place an `active` one does, so the quote, the binding checkout quote and every [benefit](#membership-benefits) behave exactly as for an active member: the same definitions, the same event and ticket scopes, the same inventory and capacity. Grace does not widen a benefit, reset a counter or reserve stock. Tickets claimed during grace are ordinary issued positions. When the window ends, new quotes stop granting benefits; no webhook is needed, because the engine compares `grace_ends_at` with the current time on every quote and read. The deadline is exclusive: at `grace_ends_at` itself the benefits are already gone. Nothing is recorded when a window lapses. Tickets already issued stay valid under their existing admission contract, and a quote already bound before the deadline keeps its price. **Editing the plan.** The deadline is fixed when the episode starts. Changing `grace_days` afterwards, even to `0`, does not lengthen or shorten a window already running; the new value applies from the next failed renewal. Closing enrollment (`active: false`) is a separate setting and is not affected by this. **What it does not do.** It is not a [join prerequisite](#require-a-membership-to-join) substitute: only an `active` membership satisfies one, so a member in grace cannot use their membership to join a plan that requires it. It does not change the payment provider's retry schedule, emails or subscription settings, and it does not apply to a join or a resume. A failed [charge now](#move-or-make-the-next-charge) is a failed renewal, so it starts a window too. Messaging to the member is the partner's to write. ## Cancel at period end `POST /v1/memberships/{id}/cancel` on a paid membership sets Stripe's `cancel_at_period_end` and mirrors it in the membership; a free membership has no period and [ends at once](#free-plans). A `paused` membership is refused with `409` `membership_state_conflict`: [resume it](#pause-and-resume) first, then cancel. Immediate cancellation of a paid membership, proration, plan changes, dunning UX and a general Stripe Customer Portal are out of scope; the one portal flow the engine offers is the [payment-method update](#update-the-payment-method). The current period's member effects remain available until the provider reports the subscription as ended; the UI should show the scheduled end rather than implying an immediate revocation. A scheduled cancellation can be [undone](#pause-and-resume) until the subscription ends. ## Update the payment method A member replaces the card their membership bills on a Stripe-hosted page. The partner authenticates the member and asks the engine for a session; the member enters the card on Stripe, never on the partner's page, and Stripe returns them to the partner's `return_url`. ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships/$MEMBERSHIP_ID/payment_method_update_sessions \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Content-Type: application/json' \ -d '{ "return_url": "https://halfmoon.live/account", "customer_id": "cus_…" }' ``` ```json { "object": "membership_payment_method_update_session", "membership_id": "mbs_…", "url": "https://billing.stripe.com/p/session/…" } ``` Redirect the member to `url`. It is single-use and short-lived, so create a new session for every attempt; the call takes no `Idempotency-Key` and every call opens a fresh session. * **Authorization.** The engine resolves the membership inside the organizer named by `Ticketing-Organizer`, then uses that membership's own Stripe Customer on the organizer's connected account, in the organizer's test or live mode. Nothing in the request names a Stripe customer, so a caller cannot point the page at someone else's. `customer_id` is an optional guard: send the customer your own session resolved, and a membership that belongs to another customer answers `404` as if it did not exist. * **`return_url`** follows a checkout session's rule: HTTPS, or the registered app callback. Anything else is `400`. * **Nothing else is offered.** The page is the payment-method update and nothing more: no cancellation, plan change, invoice history or contact edit. The engine keeps a minimal customer-portal configuration of its own on the connected account (found by a `lissen_portal` metadata tag, created once if missing) and does not use or alter the organizer's own portal settings. A tagged configuration that has since been widened to allow cancellation or plan changes is not used. * **Who can update.** `active`, `past_due` and `paused` memberships, including one set to cancel at period end. A paused member whose restart payment was refused can fix the card here and then [resume](#pause-and-resume). A free membership has no payment method and an `incomplete` one is still awaiting its first payment: both answer `422` `membership_not_billable`. A `canceled` membership answers `409` `membership_already_canceled`. No Stripe object is created for any of them. * **Unavailable accounts.** If Stripe will not open the portal for the organizer's account, the answer is `422` `payment_method_update_unavailable`; a transient Stripe fault answers a retryable `503` `connect_provider_unavailable`. Stripe's own error text is never forwarded. ### Which payment method the membership bills The payment method is **customer-wide** on the organizer's connected account. Stripe stores the member's choice as the Customer's default payment method, and a Subscription's own default takes precedence over it. The engine saves the first payment's card on the subscription, so a Customer default alone would leave the membership billing the old card. The engine therefore reacts to Stripe's `customer.updated` event: when the Customer's default payment method changed, it reads the Customer and, for each non-canceled membership subscription it holds for that Customer that carries its own default, sets that default to the new method. Consequences: * The change reaches the subscription shortly after the member returns, not before; Stripe is read again at that moment, so a redelivered event changes nothing twice. * A subscription with no default of its own already uses the Customer's. * Subscriptions that are not the engine's memberships are never touched, and no default is ever cleared. * Two memberships held by the same customer on the same organizer share the Customer, so both move to the new method. ### A card update collects what is overdue Changing the card changes nothing about the membership itself: it keeps its id, plan, price and `current_period_end`, and the card change records no activity. For a `past_due` membership the engine then makes **one** attempt to pay the open overdue invoice with the new card, once Stripe has confirmed the change. When it is paid, Stripe reports the invoice paid and the membership returns to `active` through `invoice.paid` (`membership.renewed`, with its charge), clearing its grace. If the new card is declined the membership stays `past_due` and Stripe's retries carry on as before; nothing is charged twice for a redelivered event. Other memberships are not charged: an `active` or `paused` member's card change is only a card change. Show the member that their card was saved, then read the membership for whether they are paid up. To try again later, call [next charge](#move-or-make-the-next-charge) with `now`. --- # Testing renewals URL: /docs/guides/memberships/testing-renewals Try a membership renewal, a failed renewal and its recovery in test mode, in minutes, with the next charge action and Stripe's test cards A paid membership renews once a month or once a year, which is too slow to test by waiting. In test mode you can make each part of a renewal happen now, on a real test membership, with the same calls and the same activities your integration will see in live mode: | You want to see | Do | | ---------------- | ------------------------------------------ | | A renewal | Charge the next period now | | A failed renewal | Save a card that declines, then charge now | | Recovery from it | Save a good card again | Use a test organizer and a `tk_test_…` key, and join a paid plan with Stripe's test card `4242 4242 4242 4242` (any future expiry, any CVC) first, so the membership is `active`. Each step below takes one `Idempotency-Key`; use a new one every time. The engine learns the outcome of a payment from Stripe's own events, a few seconds later: read the membership with `GET /v1/memberships/{id}` or follow the [activity stream](/docs/guides/activities) rather than acting on the first answer alone. ## A renewal Charge the next period now with [next charge](/docs/guides/memberships/reference#move-or-make-the-next-charge): ```bash curl -X POST https://tickets.lissen.com/api/v1/memberships/$MEMBERSHIP_ID/next_charge \ -H 'Authorization: Bearer tk_test_…' \ -H 'Ticketing-Organizer: org_…' \ -H 'Idempotency-Key: 0f6c2a10-…' \ -H 'Content-Type: application/json' \ -d '{ "at": "now" }' ``` ```json { "membership": { "status": "active", "next_charge_at": "…one period from now…", "...": "..." }, "charge_attempt": { "outcome": "paid", "decline_code": null } } ``` The plan's full price is charged now and a fresh period starts from now. You get `membership.renewed`, and the payment appears as a membership charge (`GET /v1/memberships/{id}/charges`) with its platform fee and, if the organizer charges tax on memberships, its tax, just as a monthly renewal would. ## A failed renewal 1. Open the member's [payment-method update](/docs/guides/memberships/reference#update-the-payment-method) and save Stripe's test card `4000 0000 0000 0341`. It saves, but every charge on it is declined. 2. Charge now, as above, with a new `Idempotency-Key`. ```json { "membership": { "status": "past_due", "in_grace": true, "grace_ends_at": "…", "...": "..." }, "charge_attempt": { "outcome": "failed", "decline_code": "generic_decline" } } ``` This is exactly a failed monthly renewal: the membership is `past_due`, and if the plan has a [benefit grace period](/docs/guides/memberships/reference#benefit-grace-period) (`grace_days` above 0) the member keeps the benefits until `grace_ends_at`. `membership.updated` records the failure. Stripe now retries the payment on its own schedule over the next days. ## Recovery Open the payment-method update again and save `4242 4242 4242 4242`. Once Stripe confirms the new card, the engine tries it once on the overdue invoice. The invoice is paid, the membership is `active` again with `membership.renewed`, and its grace is cleared. No second invoice is created. To recover without changing the card, or to retry after a decline, call next charge with `"at": "now"` on the `past_due` membership: it pays the overdue invoice with the card on file and says how it went in `charge_attempt`. ## Other things to try * **Move the next charge.** Send a date instead of `now` to see `next_charge_at` move with `membership.updated`. Nothing is charged until that date. * **A card that needs authentication.** Stripe's `4000 0027 6000 3184` asks for 3-D Secure on every charge, which a renewal cannot do while the member is away: `charge_attempt.outcome` is `requires_action`, the membership is `past_due`, and Stripe does not retry it. The member fixes it through the payment-method update. --- # Connecting Customer.io URL: /docs/guides/notifications/customer-io Wiring your own sending workspace, the seven buyer messages and their variables, and what delivery guarantees you get **The engine sends nothing by default.** It has no sending identity of its own — no from-address, no domain, no template library — and it will never mail one of your buyers on a whim. Every message that ever goes out comes from *your* Customer.io workspace, using *your* credentials, against a template *you* wrote. An organizer with no provider connection is not "suppressed". It is never considered at all. That has a consequence worth stating plainly before you build anything: if you connect nothing, buyers get nothing. Ticket delivery is your job until you wire it up here. **What works today.** You can connect a provider, store credentials, wire all seven message types, and read it all back — that surface is shipped and stable. **What fires.** Messages are triggered by activities from orders, waitlists and refunds. A correct connection sends only when one of those activities is recorded; it never sends on a timer or from a configuration change. In the dashboard, the **Notifications** page does the same: connect the workspace (the key is write-only, so replacing it means pasting a new one), then turn on and map the messages you want. It is optional. If you send your own email from the webhook feed, leave it empty. ## The connection One connection per organizer, at a singleton endpoint. `PATCH` creates it the first time and updates it thereafter. `PATCH /v1/notification_provider` ```bash curl -X PATCH https://tickets.lissen.com/api/v1/notification_provider \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Idempotency-Key: 9f3a1c07-2b64-4de1-8c05-7a1e4d9b0f21" \ -H "Content-Type: application/json" \ -d '{ "kind": "customerio", "credentials": { "app_api_key": "…your Customer.io App API key…", "region": "eu" }, "messages": { "order_confirmation": { "enabled": true, "provider_message_ref": "42" } } }' ``` ```json { "id": "np_0199c4ea-6d22-7b18-8e05-3f9a4c2d1b70", "kind": "customerio", "credentials_configured": true, "messages": { "order_confirmation": { "enabled": true, "provider_message_ref": "42", "enabled_at": "2026-11-14T18:11:04Z" } }, "metadata": {} } ``` | Field | Notes | | ------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `kind` | `customerio` is the only value today. Optional on the first connect. | | `credentials.app_api_key` | Your Customer.io **App API key** — the transactional-send credential, for your own workspace. | | `credentials.region` | `eu` or `us`. Defaults to `eu`. Customer.io's two stacks have different hostnames, so this must match your workspace. | | `messages` | The wiring map. See below. | | `metadata` | Yours. Stored and echoed back, never interpreted. | **A `200` here validates nothing about your Customer.io setup.** The engine never calls your workspace at write time: it does not check your API key, it does not check the region, and it does not check that any `provider_message_ref` names a real template. These checks happen when a message is sent. Send yourself a test transactional message from Customer.io's own tooling to prove the workspace side works. ### Credentials are write-only A credential you send here is **never returned by any endpoint**. It is encrypted at rest and the read image carries `credentials_configured: true` instead. There is no field on the response for it to appear in, and none on the activity snapshot either. A lost key is replaced, not recovered: `PATCH` a new `credentials` object and the old one is overwritten. Sending `credentials` is required on the very first connect, and optional on every update after it. Reading the connection back: `GET /v1/notification_provider` ```bash curl https://tickets.lissen.com/api/v1/notification_provider \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` Before you have ever connected, this is a `404` `not_found`. That is the correct answer, not an error to work around. ## The wiring map `messages` maps each message type to a template in your workspace: ```json { "messages": { "order_confirmation": { "enabled": true, "provider_message_ref": "42" }, "refund_confirmation": { "enabled": true, "provider_message_ref": "51" }, "waitlist_joined": { "enabled": false, "provider_message_ref": "58" } } } ``` * **`provider_message_ref`** is your Customer.io transactional message id. It is **opaque to the engine** — we never validate it, at write time or ever. A typo is stored happily and surfaces only as a failed delivery. Check it yourself. * **`enabled`** is the switch. `false` and *absent* mean exactly the same thing: silent. ### Suppression is omission There is deliberately **no suppression flag, no mute list, and no global "sending enabled" switch**. A message type is eligible if and only if it is present, enabled, and carries a `provider_message_ref`. Anything else is silence. A second mechanism would have to be kept in sync with the first one, and the day they disagreed you would not be able to tell whether a missing email was policy or a bug. ### If you send your own order confirmations If your product sends every order confirmation itself, say so on your organizer, and the engine will never map `order_confirmation` for it: `PATCH /v1/organizer` ```bash curl -X PATCH https://tickets.lissen.com/api/v1/organizer \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "own_order_confirmation": true }' ``` While `own_order_confirmation` is `true`, a wiring that enables `order_confirmation` is a `400` `invalid_request` with `param` `messages.order_confirmation`, so nobody can wire it by mistake and send your buyers a second email. Every other message type wires as before. It is not a second switch: the wiring map is still the only thing that decides what the engine sends, and the setting only keeps that one message out of it. Setting it while `order_confirmation` is enabled in your wiring is a `400` `invalid_request` with `param` `own_order_confirmation`: unwire it first. Setting it back to `false` lets you map it again. It is `false` until you set it, and `GET /v1/organizer` reads it. **Sending `messages` replaces the whole map.** It is not a per-key merge. If you `PATCH` `messages` containing only `order_confirmation`, every other message type is dropped and goes silent. Read the connection, change the key you mean, and send the whole map back. Omitting `messages` entirely leaves the existing wiring untouched. ### Eligible is not the same as sent Wiring is the first gate, not the only one. A message goes out only when **all** of these hold: 1. The message type is present, enabled, and has a `provider_message_ref`. 2. The triggering activity happened **after** that type's `enabled_at`, after the connection was created, and recently enough to be inside the retry horizon below. 3. Any extra condition on the trigger passes — `payment_failure_followup`, for instance, only applies to a position revoked because a payment bounced. 4. Every field the message cannot do its job without is present, and a recipient address can be resolved. 5. The deployment is allowed to mail that address (see the environment rule). 6. The engine wins the send claim, so duplicate workers cannot race the same attempt, and a sender of your own that claimed the message first keeps it (see [sending a message yourself](#sending-a-message-yourself)). An unacknowledged attempt is never re-sent; acknowledged `408`, `429`, and `5xx` failures may be attempted again. ### `enabled_at`, and why nothing is retro-sent When you switch a message type on, the engine stamps `enabled_at` on it. Delivery is floored on that timestamp, so **turning a message type on today never mails buyers from yesterday.** `enabled_at` is engine-computed and **never accepted from a caller**. If a partner could backdate it, they could mail buyers who were deliberately not being mailed. Two behaviours follow: * Switching a type **off and on again** re-stamps `enabled_at` to now. The gap is never filled in afterwards. * Changing only the `provider_message_ref` on a type that is already on keeps the original `enabled_at`. Fixing a typo does not reset your history. ## The seven message types Each type is triggered by exactly one activity. This is the whole v1 catalog — transactional consequences of a buyer's own action, and nothing else. The engine will not send marketing on your behalf, ever. | Message type | Fires on | Sent to | Trigger ships with | | -------------------------- | ------------------------------------------------------------------------------------------- | ----------------------- | -------------------------------------------------------------------- | | `order_confirmation` | An order is issued | The order's buyer | [orders & issuance](/docs/guides/orders) | | `payment_failure_followup` | A position is revoked **because a payment bounced** | The buyer on that order | [orders & issuance](/docs/guides/orders) | | `waitlist_invitation` | A waitlist entry is promoted | The entry's own address | [waitlist](/docs/guides/waitlist) | | `refund_confirmation` | A refund completes, unless it refunds a membership payment | The buyer on that order | [refunds & disputes](/docs/guides/refunds) | | `waitlist_joined` | Someone joins a waitlist | The entry's own address | [waitlist](/docs/guides/waitlist) | | `waitlist_rejected` | An organizer rejects a waitlist request | The entry's own address | [waitlist](/docs/guides/waitlist#approval-gated-items) | | `event_cancelled` | A cancelled event's policy switched on Notify attendees: one request per order with tickets | The buyer on that order | [event cancellation](/docs/guides/config/events#cancelling-an-event) | Revocations caused by a refund or a dispute never produce a `payment_failure_followup` — those are the refund message's business, and the engine filters them out before anything is planned. ### Writing the templates Customer.io exposes the data of an API-triggered transactional message under the **`trigger` namespace**. Every variable is therefore `{{trigger.order_id}}` — a bare `{{order_id}}` renders **blank, silently**, which is the kind of failure nobody notices until a buyer receives an empty email. The one exception is loop variables: inside `{% for position in trigger.positions %}` the item is plain `{{position.description}}`. Two rules hold across all seven: * **Required means the message is not sent without it.** Its absence is a permanent failure, recorded and abandoned. That is deliberate: an order confirmation with no tickets on it, or a refund confirmation with no amount, is a wrong email rather than a degraded one, and you would rather send nothing. * **Optional fields are omitted entirely when absent**, not sent as `null`. So `{% if trigger.buyer_name %}` behaves the way you expect. The `event` object, where present, is `{ id, name, starts_at, timezone, venue_name, venue_address }`. Every member is an optional string, passed through as the engine holds it — `starts_at` is normally an RFC 3339 UTC timestamp and `timezone` an IANA name such as `Europe/London`, but neither is validated before the message is built, so guard both in the template. #### `order_confirmation` Fires on **issuance, not settlement**. A buyer paying by a slow method holds valid tickets before the money clears, and a zero-total order, including a comp, rides this same message — so the copy should say the tickets are issued, never that the payment succeeded. | Variable | Type | Required | | ------------------------------------ | ----------------------------------------------------------------------------------- | -------- | | `trigger.order_id` | string, `ord_` + UUID | yes | | `trigger.currency` | three-uppercase-letter currency string | yes | | `trigger.total_minor` | integer, minor units | yes | | `trigger.positions` | non-empty array of objects | yes | | `trigger.positions[].id` | string, `pos_` + UUID | yes | | `trigger.positions[].description` | non-empty string | yes | | `trigger.positions[].admission_code` | non-empty string | yes | | `trigger.positions[].qr_image_url` | URL of the code as a PNG (see [positions](../orders#positions-and-admission-codes)) | no | | `trigger.positions[].price_minor` | integer, minor units | no | | `trigger.buyer_name` | string | no | | `trigger.booking_fee_minor` | integer, minor units | no | | `trigger.event` | event object | no | `admission_code` is the door's credential and re-renders the same QR every time. This payload is secret-bearing: a rendered copy of this email should not be forwarded casually or logged. #### `payment_failure_followup` | Variable | Type | Required | | --------------------- | -------------------------------------------- | -------- | | `trigger.position_id` | string, `pos_` + UUID | yes | | `trigger.order_id` | string, `ord_` + UUID | yes | | `trigger.buyer_name` | string | no | | `trigger.description` | string — the item name as it was at issuance | no | | `trigger.item_id` | optional string | no | | `trigger.revoked_at` | optional string | no | | `trigger.event` | event object | no | There is no re-purchase variable: put your own purchase URL in the template. #### `waitlist_invitation` Capacity is being **held** for this person, and the hold expires. The deadline is the whole content of the message. | Variable | Type | Required | | ------------------------------- | --------------------------- | -------- | | `trigger.waitlist_entry_id` | string, `wl_` + UUID | yes | | `trigger.invitation_expires_at` | RFC 3339 string with offset | yes | | `trigger.checkout_url` | absolute URL string | yes | | `trigger.name` | string | no | | `trigger.item_id` | optional string | no | | `trigger.event` | event object | no | #### `refund_confirmation` Engine refunds and refunds you take from your own Stripe Dashboard ride the same message: the buyer does not care which console it was pressed in. The one exception is a refund of a membership payment (a refund with `membership_charge_id` set, from the engine or the Dashboard), which sends no message. A `money_only` refund does not change admission status, so branch your copy on `trigger.revokes_admission` rather than telling the buyer their ticket is cancelled. It describes only this refund: an earlier refund may already have revoked the tickets. A [free ticket cancellation](/docs/guides/refunds#cancelling-free-tickets) sends this message too, with `trigger.amount_minor` equal to `0` and `trigger.revokes_admission` equal to `true`. For a zero-amount cancellation, confirm that the selected tickets are no longer valid without promising money or a bank settlement. Update any template you already have wired to handle this case. | Variable | Type | Required | | --------------------------- | -------------------------------------- | -------- | | `trigger.refund_id` | string, `rfd_` + UUID | yes | | `trigger.order_id` | string, `ord_` + UUID | yes | | `trigger.currency` | three-uppercase-letter currency string | yes | | `trigger.amount_minor` | integer, minor units | yes | | `trigger.buyer_name` | string | no | | `trigger.position_ids` | array of strings | no | | `trigger.refund_type` | `refund_and_revoke` or `money_only` | yes | | `trigger.revokes_admission` | boolean, false for `money_only` | yes | Avoid promising a settlement date in the copy: when the money lands is the bank's business, not ours. #### `waitlist_joined` | Variable | Type | Required | | --------------------------- | -------------------- | -------- | | `trigger.waitlist_entry_id` | string, `wl_` + UUID | yes | | `trigger.name` | string | no | | `trigger.item_id` | optional string | no | | `trigger.event` | event object | no | | `trigger.requires_approval` | boolean | no | | `trigger.quantity` | integer | no | There is deliberately no queue position: the engine does not publish one. `trigger.requires_approval` is true when the item is approval-gated: the buyer asked for a place and the organizer decides, so word it as a request sent rather than a place in a queue. `waitlist_invitation` carries the same two fields; on an approval-gated item it is the approval of a request with something to pay. #### `waitlist_rejected` | Variable | Type | Required | | --------------------------- | -------------------- | -------- | | `trigger.waitlist_entry_id` | string, `wl_` + UUID | yes | | `trigger.name` | string | no | | `trigger.item_id` | optional string | no | | `trigger.requires_approval` | boolean | no | | `trigger.quantity` | integer | no | | `trigger.event` | event object | no | The engine records no reason for a rejection, so the message has none to give. Keep it short, and do not promise another chance. #### `event_cancelled` | Variable | Type | Required | | ----------------------------- | -------------------------------------------------- | ---------------------- | | `trigger.cancellation_id` | string, `ecn_` + UUID | yes | | `trigger.order_id` | string, `ord_` + UUID | yes | | `trigger.buyer_name` | string | no | | `trigger.event` | event object (`name` is required) | yes | | `trigger.refunds_tickets` | boolean | no (false when absent) | | `trigger.refund_amount_minor` | integer, minor units refunded to this order so far | no | | `trigger.currency` | ISO 4217 code | no | | `trigger.admission_disabled` | boolean | no (false when absent) | | `trigger.cancelled_at` | ISO timestamp | no | The message says what the cancelled event's policy does and no more. When `refunds_tickets` is true the money is on its way back to the original payment (the amount appears once the refund exists); when `admission_disabled` is true the tickets will not be accepted at the door, and when it is false they still are. The organizer's cancellation reason is an internal note and is never in the payload. ### A minimal template ```liquid Subject: Your tickets{% if trigger.event.name %} for {{trigger.event.name}}{% endif %} Hi{% if trigger.buyer_name %} {{trigger.buyer_name}}{% endif %}, Your tickets are issued. Order reference: {{trigger.order_id}} {% for position in trigger.positions %} - {{position.description}} {% if position.qr_image_url %}Admission QR code{% endif %} Admission code: {{position.admission_code}} {% endfor %} Order total: £{{trigger.total_minor | divided_by: 100.0}} ``` **That `divided_by: 100.0` is only correct for two-decimal currencies.** It is written for a GBP-only workspace. Minor units do not always divide by 100 — JPY has no minor unit at all and KWD has three decimal places, so the same filter would show a ¥5,000 order as `¥50.00`. If you sell in more than one currency, branch on `{{trigger.currency}}` or use your provider's own currency formatting rather than dividing inline. ## Delivery semantics What you are promised, and what you are not: * **Retries run for about six hours, then stop.** The horizon is measured from the activity, not from the first attempt, so a burst of fast failures cannot quietly redefine it. Past the deadline the message is abandoned. Human messages cannot arrive days late — a waitlist invitation that turns up after its window has closed is hostile, not helpful. * **A failure your provider actually answered is retried when it is worth retrying.** A `408` or `429` is retried, and so is any `5xx`. Every other `4xx` is a rejection we stop on. `425 Too Early` counts as a rejection, because replaying a send your provider may already have processed is exactly the duplicate we refuse to risk. * **A no-answer provider call is not sent again.** Transport failures trigger worker backoff, but the send claim remains held. A retry within the claim window steps aside instead of calling the provider again. Once that window expires, the stale-claim pass records the outcome as ambiguous and stops. The engine cannot tell whether the first call delivered the message; the activity remains available for deliberate follow-up. * **A message missing a required field is never half-sent.** It is recorded as a permanent failure naming the field that was missing. * **Delivery records are kept for about thirty days.** They are operational records, not an audit trail; the activity is the durable one. The outcomes, in one table: | What happened | What we do | | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | Provider accepted it | Done. One send, never repeated. | | Provider answered `408`, `429` or `5xx` | Retry, until the six-hour horizon. | | Provider answered any other `4xx` (including `425`) | Stop. Treated as a rejection. | | No answer at all — connection failed mid-call | Worker backoff retains the claim; no provider resend. Terminalized as ambiguous after the claim window. | | A required field was missing | Stop, recorded as a permanent failure. | | Six hours elapsed with no success | Stop, recorded as given up. | | The deployment may not mail this address | Stop, recorded as suppressed. | ### Non-production deployments cannot mail a real buyer Outside production, the engine will only deliver to a small internal allowlist of Lissen staff addresses. Every other recipient is recorded as suppressed and stopped there — never retried, and never delivered. **This is a property of the deployment, not of your organizer.** A test organizer in production mails normally; any organizer in a preview or local deployment does not. If you are wondering why a message did not arrive, the first question is which environment produced it. ### Where an activity's messages stand To see whether the engine sends the messages an activity triggers, and how far each send got, read the activity's notifications: `GET /v1/activities/{id}/notifications` ```bash curl https://tickets.lissen.com/api/v1/activities/act_0199c4f1-2a3b-7c4d-8e5f-6a7b8c9d0e1f/notifications \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" ``` ```json { "data": [ { "message_type": "refund_confirmation", "eligible": true, "state": "settled", "outcome": "sent", "sender": "engine" } ] } ``` There is one entry per message type the activity's type triggers (see [the seven message types](#the-seven-message-types)); an activity that triggers none answers an empty list, and another organizer's activity is a `404` `not_found`. | Field | Notes | | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `eligible` | Whether the engine sends this message for this activity: the type is wired, and the activity was created at or after both the connection and the type's `enabled_at`. The retry horizon and the trigger's own condition are checked when the engine sends, not here. Once `false` for an activity it stays `false`, since switching the type on again stamps a later `enabled_at`. | | `state` | `none`: not tried yet, or the provider refused the last try and it may be tried again. An eligible message reads `none` until the engine plans it, within about a minute. `in_flight`: a send holds its claim, from just before the provider call until its outcome is recorded. `settled`: finished, never tried again. | | `outcome` | Once `settled`: `sent`, `permanent_failure`, `gave_up`, `ambiguous` or `suppressed_nonprod` (the outcomes in the table above). Otherwise `null`. More values may be added. | | `sender` | Who holds the claim while `in_flight`, or recorded the outcome once `settled`: `engine`, or `organizer` for a sender of your own (below). `null` while `none`. More values may be added. | The answer never includes a recipient, a payload or the provider's error text. Send records are kept for about thirty days, so an older activity reads `none`. To see whether an email reached the inbox, use Customer.io's own delivery logs, and the [activity stream](/docs/guides/activities/stream) for the fact that triggered it. ### Sending a message yourself A sender of your own can take a message over from the engine, or hand it back, without dropping or doubling one: it claims each send in the same attempt log the engine claims in, before it calls its provider. Whichever claims first sends; the engine steps aside for a message you have claimed, and you must not send one the engine holds or has settled. First read the activity's notifications. The message is yours to send when `eligible` is `false` and `state` is `none`. While it is `eligible`, or `in_flight` with `sender` `engine`, look again later: the engine is sending it. Then claim it, before you call your provider: `POST /v1/activities/{id}/notifications/claim` ```bash curl -X POST https://tickets.lissen.com/api/v1/activities/act_0199c4f1-2a3b-7c4d-8e5f-6a7b8c9d0e1f/notifications/claim \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "message_type": "refund_confirmation" }' ``` ```json { "message_type": "refund_confirmation", "status": "claimed", "claim_id": "4182", "sender": "organizer", "outcome": null } ``` Send it only when `status` is `claimed`. `in_flight` means a claim is held, by `sender`: the engine's (wait for it, as above) or your own from an earlier try (that try may have sent it: check your provider's delivery log). `settled` means it is finished with `outcome`. Claiming does not consult the wiring: the read decides whether the message should be yours. Then call your provider, and settle the claim with what happened. The answer is the message's state afterwards, as in the read above. `POST /v1/activities/{id}/notifications/settle` ```bash curl -X POST https://tickets.lissen.com/api/v1/activities/act_0199c4f1-2a3b-7c4d-8e5f-6a7b8c9d0e1f/notifications/settle \ -H "Authorization: Bearer tk_test_..." \ -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \ -H "Content-Type: application/json" \ -d '{ "message_type": "refund_confirmation", "claim_id": "4182", "result": "sent", "provider_message_id": "dlv_7Hq2" }' ``` | `result` | When | Then | | ----------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `sent` | Your provider accepted the message. Send its delivery id as `provider_message_id`. | Settled `sent`. Nobody sends it again. | | `released` | It definitely did not: your provider refused it, or the connection never opened. | The claim is given back, so a later claim, yours or the engine's, may send it. | | `ambiguous` | You cannot tell: a timeout, a `5xx`, an answer without a delivery id. | Settled `ambiguous`. Nobody sends it again; check your provider's delivery log. | A claim not settled within about ten minutes is recorded `ambiguous`, as the engine's own are, and never sent again. Settling a claim that is no longer yours (already settled or given back, recorded `ambiguous`, or the engine's) is a `409` `notification_claim_not_held` and changes nothing: read the message's state instead. If the answer to a claim is lost, retrying it reads your own claim `in_flight`; do not send then, since you cannot know whether the lost claim went on to call your provider. Handing a message type over is then one `PATCH` of the wiring: unmap it, and every message the engine has not claimed by then is yours; map it again, and messages from that moment are the engine's, while older ones stay yours. ## What emits on the activity stream * `notification_provider.created` — the first time you connect. * `notification_provider.updated` — **every successful `PATCH` after that**, whether or not the values actually changed. The snapshot on both carries the connection's `kind`, `credentials_configured`, the wiring map and your `metadata`. **It has no field for credentials at all**, so there is nothing to redact and nothing that can be forgotten. Individual sends do **not** emit activities. The activity that triggered the message is the record of what happened. ## Stable error codes | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | invalid_request | 400 | invalid_request_error | The request body or query failed validation. `param` names the field. | Fix the named field and send the request again. | | not_found | 404 | invalid_request_error | No such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden. | Check the id and the organizer header. | | notification_claim_not_held | 409 | invalid_request_error | The `claim_id` you settled is not a claim your own sender holds on that activity's message: it was already settled or given back, it was recorded `ambiguous` after the claim window, or it is the engine's. Nothing changed. | Read `GET /v1/activities/{id}/notifications` for where the message stands, and never send it again on that claim. A retried settlement whose first answer was lost lands here too: the state shows what it recorded. | | idempotency_key_reused | 409 | idempotency_error | This key was already used with a different request body. Fingerprints cover method, path, sorted query pairs and the exact request bytes. | Use a fresh key for a genuinely different request, or resend the original bytes to replay the original response. | | idempotency_key_in_flight | 409 | idempotency_error | An identical request under the same key is still executing. This is the only concurrency case that 409s. | Wait and retry; the first attempt will finish or release the key. | | internal_error | 500 | api_error | Something failed on our side. | Retry. If it persists, send us the `request_id` from the response — it identifies the exact request in our logs. | You will meet `invalid_request` for: connecting with no `credentials`; changing `kind` without supplying new credentials; a credential bundle that does not match the declared `kind`; a `messages` key that is not one of the seven message types; enabling `order_confirmation` on an organizer that sends its own; claiming a message the activity's type does not trigger; and a `provider_message_id` settled with a result other than `sent`. `param` names the offender. A mistyped message type is a `400` rather than being quietly stripped: silently dropping it would be indistinguishable from the silence you actually asked for. Reads are more forgiving in the other direction — a wiring key written by a newer version of the engine is dropped from the response rather than turning your `GET` into a `500`. `internal_error` here includes the deliberate refusal to store a credential when it cannot be stored securely. We fail closed rather than keep your secret in the clear. ## Gotchas * **`PATCH messages` replaces the map.** The single most common way to accidentally turn off four message types is to send one. * **Send an `Idempotency-Key`.** It is optional on this endpoint, but without one a retried `PATCH` runs again and emits a second `notification_provider.updated` — noise on your feed for a call you only meant to make once. * **Nothing about your Customer.io workspace is checked at write time.** A wrong key, a wrong region or a wrong message ref all store cleanly. * **`region` must match your workspace.** An `eu` key against the `us` stack authenticates against nothing. * **Enabling a type does not backfill.** If you connect a week after going live, the first week's buyers are not mailed. * **Wiring all seven does not backfill old activities.** A message is sent only for an eligible activity recorded after that message type was enabled. Check the provider delivery logs when a current trigger does not arrive. --- # Notifications URL: /docs/guides/notifications Connecting your own provider, and the seven buyer messages The engine sends nothing by default. It has no from-address, no domain and no templates of its own, and it will never mail one of your buyers unless you have connected a sending workspace and wired a message type to a template in it. That means buyer email is opt-in, per message type, and everything that goes out goes out in your own voice — from your Customer.io workspace, under your credentials. --- # Orders, positions and customers URL: /docs/guides/orders What an accepted payment or a comp becomes — the order, one position per unit with its admission code, the buyer's customer record — how a ticket changes holder, and what happens when the money bounces or the capacity is gone When checkout observes a payment in `succeeded` or `processing`, the engine issues immediately. It does not wait for a processing payment to settle. Three things come into being in one transaction: * an **order**: the commerce record — what was bought, for how much, by whom, and whether the money has landed; * one **position** per unit bought: the atom of the system. It has its own price, its own description, and it lives and dies on its own through revocation, refund and check-in. An admission position carries an **admission code**, the opaque secret its QR encodes and the only thing the door reads; * a **customer**: the buyer's record with this organizer, minted from the email on the session or found again by your `external_ref`. They exist because a session completed issuance, or because you issued [complimentary tickets](#complimentary-tickets) with `POST /v1/comps`; `payment_state` separately records whether the money has landed. They are read with: `GET /v1/orders` `GET /v1/orders/{id}` `GET /v1/positions` `GET /v1/positions/{id}` `GET /v1/customers` `GET /v1/customers/{id}` A customer's current name and email are the one thing here you can change; see [updating a customer's contact details](#updating-a-customers-contact-details). ## The order ```json { "id": "ord_0199c4f1-2b7e-7a41-8c55-1d9e6f3a2b77", "customer_id": "cus_0199c4f0-9d12-7c8e-a3b4-5e6f7a8b9c01", "checkout_session_id": "cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33", "issuance": { "type": "checkout", "capacity_override": false }, "currency": "GBP", "total_minor": 4500, "booking_fee_minor": 500, "platform_fee_minor": 500, "payment_state": "paid", "buyer_email": "sam@example.com", "buyer_name": "Sam Buyer", "buyer_phone": null, "applied_effects": [], "positions": [ { "id": "pos_0199c4f1-2b81-7e02-9a17-6c3d5e4f2a10", "order_id": "ord_0199c4f1-2b7e-7a41-8c55-1d9e6f3a2b77", "customer_id": "cus_0199c4f0-9d12-7c8e-a3b4-5e6f7a8b9c01", "holder_customer_id": "cus_0199c4f0-9d12-7c8e-a3b4-5e6f7a8b9c01", "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "event_id": "evt_0199c4e2-6b3d-7a90-8e1f-2c4d5a6b7c88", "description": "General admission", "currency": "GBP", "list_price_minor": 2000, "price_minor": 2000, "booking_fee_minor": 250, "platform_fee_minor": 250, "admission_code": "K7Q2M9XW4RT8HN3PVB6C", "qr_image_url": "https://tickets.lissen.com/api/v1/public/positions/pos_0192b1c2-9c3e-7a1d-8b2f-4e5d6c7b8a90/qr.png?sig=…", "status": "live", "revoked_at": null, "revocation_reason": null, "event": { "id": "evt_…", "name": "Halfmoon Presents: Low Tide", "starts_at": "2026-11-14T19:30:00Z", "timezone": "Europe/London", "venue_name": "The Chapel", "venue_address": null }, "created": "2026-11-02T14:09:40Z", "metadata": {} } ], "event": { "id": "evt_…", "name": "Halfmoon Presents: Low Tide", "starts_at": "2026-11-14T19:30:00Z", "timezone": "Europe/London", "venue_name": "The Chapel", "venue_address": null }, "psp_refs": { "payment_intent": "pi_3Qx…", "payment_intent_status": "succeeded" }, "created": "2026-11-02T14:09:40Z", "metadata": {} } ``` Every money field is a **copy of the quote the buyer paid against**, split per unit so the positions sum back to the order exactly. The order never re-prices. `buyer_email`, `buyer_name` and `buyer_phone` are snapshots taken at issuance: the customer record can change later, the receipt cannot. `buyer_phone` is null unless the checkout's customer carried one. `payment_state`: | State | Meaning | | ---------------- | --------------------------------------------------------------------------------------------------------- | | `processing` | Issued optimistically on a delayed method (a bank debit). The tickets are valid; the money is on its way. | | `paid` | The money landed. Card payments arrive here directly. | | `payment_failed` | The money never came. Every position was revoked and the capacity returned. | | `refund_pending` | A refund is in progress. | | `refunded` | Every position on the order has been revoked by completed refunds. | `issuance` records how the order came to exist. `type` is `checkout` for an order a checkout session issued and `comp` for [complimentary tickets](#complimentary-tickets); `capacity_override` is `true` only for a comp issued with the capacity override. Order facts recorded before this field existed do not carry it. ## Positions and admission codes A position is one unit. `status` is the door's only validity oracle: `live` admits, `revoked` does not, and `revocation_reason` says why (`payment_failed`, `refunded`, `disputed`). An item with an event admits someone, so its positions carry an `admission_code`; merchandise does not. `admission_code` is a credential, not an id. Nothing about the position can be derived from it, and it is exactly what a QR encodes — so every position payload, on this read and in the activity feed, is secret-bearing. Store it as you would a token. `qr_image_url` is the same credential as an image: a signed, public PNG of the admission code that an email or a wallet pass can show, served by `GET /v1/public/positions/{id}/qr.png?sig=…`. It needs no API key, because a mail client carries none, and the signature is what stands in for one — the URL is exactly as private as the message you put it in. It is a read projection on the API, not part of the activity snapshot, and is `null` for a non-admission or revoked position. The QR encodes the bare admission code, which is what the door scans. `GET /v1/positions` filters by `order_id`, `item_id`, `event_id`, `status` and `holder_customer_id`, which is how you list what is live for a night, or the tickets one customer holds. ### Buyer and holder Every position names two customers of your organizer. `customer_id` is the order's customer: the buyer who paid (for a comp, the recipient), the same value as the order's `customer_id`. `holder_customer_id` is the customer who holds that position. When an order is issued, every position's holder is the buyer, whether the order was paid, free or issued while its payment was still processing, so someone who buys two tickets holds both. The buyer never changes, and neither do the order's `buyer_email` and `buyer_name`, which record what was entered at checkout. The holder records who the engine has assigned the position to. It does not prove who is at the door. Forwarding a ticket email or a screenshot of its QR code does not change the holder: the door admits whoever presents a live admission code. Only a [transfer](#transferring-a-ticket) or an organizer's [holder correction](#correcting-a-holder) changes it. Position reads always include `holder_customer_id`. Position facts on the activity stream include it from the time the field was introduced; older facts do not have it. ## Customers A customer is a per-organizer buyer record. When you name the buyer with `customer.external_ref` on the session, the record is found or created by that reference and its email refreshed; when you only give an email, it is found or created by email. The engine never links customers across organizers, and never treats an email as a credential. ```json { "id": "cus_0199c4f0-9d12-7c8e-a3b4-5e6f7a8b9c01", "email": "sam@example.com", "name": "Sam Buyer", "external_ref": "farrago:user-1", "created": "2026-11-02T14:09:40Z", "metadata": {}, "billing_contact_sync": { "status": "synced", "updated": null } } ``` One case joins two records' histories: a **claim**. When a purchase names an `external_ref` that matches no customer yet, and an anonymous customer (one with no `external_ref`) already exists with the same email, that anonymous customer takes the reference instead of a second record being created. Its earlier email-only purchases stay on it, and the feed carries `customer.updated`. A customer that already has a different `external_ref` is never claimed. There is no other merge: the engine does not combine two customers because their emails match, and never moves a customer between references. ### Updating a customer's contact details When a buyer changes their name or email with you, send the new details: `PATCH /v1/customers/{id}` ```json { "name": "Sam Rivers", "email": "sam.rivers@example.com" } ``` Send either field or both. `name: null` clears the name; an email cannot be removed. The call is authorized like every partner call, by your organizer key, and the engine trusts it: verify an email change under your own identity process before you send it. An `Idempotency-Key` is optional and replays the first answer. The update changes the customer in place. Its `id` and `external_ref` stay the same, and so does everything that points at it: its orders, its memberships, and the positions it bought or holds. It is not a transfer, a merge or a re-key, and nothing is created. If another customer of the organizer already has the email, the call answers 409 `customer_email_conflict` and changes nothing; the engine does not merge the two. **Current versus historical.** The customer read and the customer list's `email` filter show the new details, and so does the next order issued to the customer — including one whose checkout was already open, because an order takes the details as they are when it settles. What was recorded at a purchase does not change: an order keeps the `buyer_email` and `buyer_name` it was issued with, the engine's messages about that order (a refund, a revoked ticket) still go to that recorded address, and past activities keep the snapshots they carried. A `customer.updated` activity carries the new customer and the previous values in `previous_attributes`. A later checkout or membership join by the same buyer still refreshes the customer's name and email from what they enter, as it always has. ### Billing-contact sync Where the engine already holds a Stripe Customer for this customer on the organizer's connected account — from a Pay with Lissen payment or a membership — the update reaches it too. The engine updates only those stored Customers, and only on the organizer's account. It never creates a Stripe Customer for a contact update, and never looks one up by email. `billing_contact_sync` says where that stands: | Status | Meaning | | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `not_linked` | The engine holds no Stripe Customer for this customer, so there is nothing to update. | | `pending` | The latest update has not reached every linked Stripe Customer yet. The engine tries once straight after the update, then retries in the background with growing waits for a few hours. | | `synced` | Nothing is outstanding: every linked Stripe Customer has the details the engine last sent. | | `failed` | The latest update did not reach every linked Stripe Customer and the engine stopped retrying: its retries ran out, Stripe refused the details, or a linked Stripe Customer no longer exists on the organizer's account. Send the contact details again to retry. | `updated` is when the status last changed, and is null before the customer's first contact update. The update's own response is what was committed, so for a customer with a linked Stripe Customer it says `pending`; read the customer again, or follow its `customer.updated` activities, to see the outcome. When several updates are pending, the latest one wins, and each retry sends the details of the update it belongs to. A later purchase's refresh of the contact details is not sent to Stripe. If the engine creates a Stripe Customer for the customer (a first Pay with Lissen payment or membership) while an update is committing, and the new Customer carries the details from before the update, the status goes back to `pending` until the update reaches it. ## Transferring a ticket `POST /v1/positions/{id}/transfer` A transfer moves one position from its current holder to another of your customers, immediately. Someone who bought two tickets and gives one to a friend uses it, and so does someone who gives away a ticket they already had. There is no acceptance step: when the call succeeds, the recipient holds the ticket. ```bash curl -X POST https://tickets.lissen.com/api/v1/positions/pos_0199c4f1-2b81-7e02-9a17-6c3d5e4f2a10/transfer \ -H "Authorization: Bearer $TICKETING_API_KEY" \ -H "Ticketing-Organizer: org_0199c4d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \ -H "Idempotency-Key: gift-low-tide-sam-1" \ -H "Content-Type: application/json" \ -d '{ "acting_customer": { "external_ref": "member-4411" }, "destination": { "email": "friend@example.com", "name": "A Friend" } }' ``` The answer is `200` with the position, now carrying the recipient as `holder_customer_id`. **What changes is the holder, and nothing else.** The position keeps its id, its admission code and QR, its price, fees and payment, and its place in the quota. No ticket is issued or cancelled, and the buyer's order is the same order: it still lists every position it bought, each with its current holder, so the buyer's receipt can show which ticket went to someone else. There is no `transferred` status; a transferred position is `live` for its new holder under the ordinary admission rules. A ticket bought at a member price, or through a member-only offer, transfers to anyone at the price that was paid: the recipient's membership is not checked. **Only the current holder can transfer.** `acting_customer` is the customer you vouch for through your own sign-in, by `id` or by your `external_ref`, exactly as you name a buyer for pricing. The engine checks it against the holder in the same transaction as the change. Buying the ticket gives no right to take it back once it has been given away, and neither does holding a copy of its QR. An email is never accepted as the acting customer. Because `acting_customer` is your system's word for who is acting, a transfer takes the organizer's API key, and one made under a dashboard sign-in (an organizer owner or Lissen staff member) answers `403 staff_identity_not_permitted`. To move a ticket without the holder's authority, make a [holder correction](#correcting-a-holder) with the API key. **The destination** is one of: * `id`: an existing customer of this organizer; * `external_ref`: your reference for an existing customer. It is not created here; * `email`, with an optional `name`: for a recipient you cannot vouch for. The engine finds or creates the anonymous customer for that address. A customer that already carries an `external_ref` is never chosen by email, because an address the sender typed proves nothing about whose account it is. Once you have signed the recipient in and verified that address, [claim what it holds](#claiming-tickets-sent-to-an-address) for them. If you already know the recipient's own reference, send it instead. **The QR does not change.** The door admits the admission code, not a person, so a copy the buyer kept still scans. Deliver the ticket to the recipient; the engine sends no message of its own for a transfer. **Transfers stop at check-in.** Once a position has been admitted, a transfer answers `409 already_checked_in`. A revoked position (payment failure, refund or dispute) answers `422 position_revoked`: a transfer never revives a ticket. Concurrent transfers and scans of one position are decided one at a time against its current state, so only one of two racing transfers can succeed. **Retries** with the same `Idempotency-Key` return the stored answer with `Idempotent-Replayed: true` and change nothing. That holds even after the ticket has moved on: a retry of an old transfer never gives it back. A refusal is stored the same way, except `already_checked_in`, which is re-checked on a retry. | Result | Meaning | | ---------------------------------- | -------------------------------------------------------------------------------------------------- | | `403 not_position_holder` | The acting customer does not hold the position now. Nothing changed. | | `403 staff_identity_not_permitted` | The request was a dashboard sign-in, not the organizer's API key. | | `409 already_checked_in` | The position has been admitted. An organizer can still [correct the holder](#correcting-a-holder). | | `422 position_revoked` | The position was revoked. | | `422 holder_unchanged` | The destination already holds the position. | | `400 invalid_reference` | The acting customer or the destination names no customer of this organizer; `param` says which. | | `404 not_found` | No such position for this organizer. | ### Reading tickets by holder The recipient's tickets are the positions they hold, whoever bought them: `GET /v1/positions` Filter with `holder_customer_id` to show a customer only their own tickets, without the buyer's other positions, order or payment. The buyer's view is the order, which keeps every position it bought. ### Claiming tickets sent to an address `POST /v1/position_claims` A ticket sent to an email is held by the organizer's anonymous customer for that address, not by anyone's account. When the recipient signs in to your site and you have verified that the address is theirs, claim it for them: ```bash curl -X POST https://tickets.lissen.com/api/v1/position_claims \ -H "Authorization: Bearer $TICKETING_API_KEY" \ -H "Ticketing-Organizer: org_0199c4d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \ -H "Idempotency-Key: claim-member-7730-friend" \ -H "Content-Type: application/json" \ -d '{ "external_ref": "member-7730", "email": "friend@example.com" }' ``` * If no customer carries `external_ref` yet, the anonymous customer takes it, as a [purchase claim](#customers) would, and keeps everything it holds. The feed carries `customer.updated`. * If a customer already carries it, every position the anonymous customer holds that is not revoked moves to that customer, admitted ones included. Each move is a holder change with `kind: claim`, and the feed carries one `position.holder_changed` per position. The answer is `200` with `customer_id`, `anonymous_customer_id` and the claimed `positions`. Orders the anonymous customer placed itself stay with it: a claim moves tickets, it does not merge customers. `404 not_found` means the address has no anonymous customer, or it holds nothing to claim; a second claim of the same address answers that. Only your API key can claim, because the claim is your statement that the address is verified; never pass an address the recipient or a sender only typed. ### Correcting a holder `POST /v1/positions/{id}/holder_correction` A holder correction is the organizer's override for a mistake: a ticket given to the wrong friend, or sold at the box office to the wrong name. It moves the position to `destination` (the same three forms as a transfer) without the current holder's authority, and it needs a `reason`: ```json { "destination": { "external_ref": "member-5520" }, "reason": "Box office sold this ticket to the wrong member" } ``` It is allowed after check-in, and it leaves check-in records exactly as they were: a correction does not rewrite when a ticket was admitted, nor whom the admission credited with [attendance](/docs/guides/check-in#attendance) (that moves only with its own credit correction). A revoked position is refused. The change records who made it (`actor`) and why. Correct a holder with the organizer's API key. The engine would also accept a correction from an organizer owner or Lissen staff member signed in to the dashboard, recorded as that person, but the dashboard does not offer one yet and does not show who holds a ticket. Until it does, holder corrections come from your own system. ### Holder history `GET /v1/positions/{id}/holder_changes` Every transfer, correction and claim is recorded, newest `effective_at` first: the previous and new holder, `kind` (`transfer`, `correction` or `claim`), the correction's `reason`, who made the change (`actor`), the request that made it, and `effective_at`, the engine's time when the change took hold of the position. The history is append-only. A position that never changed holder has an empty history; its first holder is the order's customer. The feed receives `position.holder_changed` for each change, carrying the position with its admission code and a `holder_change` object with the previous and new holder and the kind. Send the recipient their ticket from it. A transfer or correction to a new email also emits `customer.created` first. ## Complimentary tickets `POST /v1/comps` A comp issues free tickets of an existing item straight to a recipient: no checkout session for a buyer, no page, no payment. Your backend decides who gets one; the engine issues ordinary tickets. ```bash curl -X POST https://tickets.lissen.com/api/v1/comps \ -H "Authorization: Bearer $TICKETING_API_KEY" \ -H "Ticketing-Organizer: org_0199c4d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f" \ -H "Idempotency-Key: guest-list-low-tide-ana" \ -H "Content-Type: application/json" \ -d '{ "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "quantity": 2, "recipient": { "email": "ana@example.com", "name": "Ana Guest", "external_ref": "member-4411" }, "metadata": { "guest_list": "low-tide" } }' ``` The answer is `201` with the order and its positions, the same shape every order read returns: * `issuance` is `{ "type": "comp", "capacity_override": false }`, plus an `invitation` object when the request named an allocation. A comp issued by `POST /v1/guest_invitations` instead carries `guest_invitation`: the inviting member, membership, benefit and allowance bucket (see [guest invitations](/docs/guides/memberships/reference#guest-invitations)). * `total_minor`, `booking_fee_minor` and `platform_fee_minor` are `0`, `payment_state` is `paid` and `psp_refs` is empty. There is no PaymentIntent, no ledger entry and no platform fee. * Each position has `price_minor: 0` and keeps the item's price as `list_price_minor`. An admission item's positions carry an admission code and a `qr_image_url`, exactly as a sold ticket does. * The recipient is the order's customer, so it holds every position. The key or the person who issued the comp is the `actor` on its activities; it is never the holder. * `checkout_session_id` names a session the engine created already `completed` to record the comp. It holds no capacity, no buyer can open it, and it emits no `checkout_session` activity. * `metadata` is stored on the order as yours, like checkout metadata. **The recipient** follows the checkout customer rules. Send `id` alone for an existing customer, who must have an email. Otherwise send `external_ref`, `email` or both, with an optional `name`: the customer is found by your reference, or created with it when you also give the email; an email alone finds or creates the customer by email; a new reference [claims](#customers) the anonymous customer with the same email. An `external_ref` on its own must name a customer that already has an email, because the tickets have to be delivered somewhere. **What a comp skips** is the buyer's purchase rules: the item's sale window and its gating (a membership or other unlock). An inactive item is still refused, and so is an item with no event: a comp is an admission ticket, and only an item with an event has an admission code and QR. **Capacity** is checked as for a sale, under the same capacity locks, and for the whole quantity at once: either every position is issued or none is. Set `capacity_override: true` to issue even when the quotas have no room. The override affects capacity only. Overridden positions are ordinary live positions: they count against every quota the item draws on, and no quota's size changes. With a quota of 100, 100 tickets issued and no live holds, two overridden comps leave 102 issued and 0 available; sales resume only once issued tickets plus live holds fall below 100 again. **Invitation allocations.** A comp can also name an `allocation_id`: an organizer-owned budget of tickets for the item's event, optionally sharing a cap with other allocations through a pool. The tickets are charged against the allocation and its pool in the same step as capacity, and `issuance.invitation` records what they were charged to, with the `usage_id` you can [give units back](/docs/guides/invitations#give-units-back) of and the `returned_units` you have. `capacity_override` never passes an allowance. See [Invitation allocations and pools](/docs/guides/invitations). **Cancelling a comp.** A refund-and-revoke naming its tickets cancels them: with no payment to return, the refund completes at zero without a Stripe call and the capacity returns to sale. It gives back no invitation allocation, pool or guest allowance units by itself. See [Cancelling free tickets](/docs/guides/refunds#cancelling-free-tickets). **Retries** with the same `Idempotency-Key` return the same order with `Idempotent-Replayed: true`, and issue nothing more. The same key with a different body answers `409 idempotency_key_reused`. Keep the key and the exact body until you have a definitive answer: after a timeout, a `5xx` or `409 idempotency_key_in_flight` the comp may already exist, so retry the same request rather than minting a new key, which would issue a second order. | Result | Meaning | | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `400 invalid_reference` | `item_id` or `recipient.id` is not one of this organizer's. | | `400 invalid_footprint` | The item draws on no quota. | | `422 item_not_sellable` | The item is inactive, or has no event. | | `422 insufficient_capacity` | There is no room for the whole quantity. `detail.shortfalls` names each short quota; nothing was issued. | | `400 invalid_reference` | Also: `allocation_id` is not this organizer's, or belongs to another event than the item. | | `422 invitation_allowance_exceeded` | With `allocation_id`: the allocation, or the pool it joined, has fewer tickets left than `quantity`. `detail.shortfalls` names each short budget; nothing was issued or consumed. | | `422 buyer_identity_required` | The recipient has no email to deliver to. Send `recipient.email`. | | `409 capacity_locked` | A busy on-sale held the capacity lock too long, or the item's quotas changed while the comp was being issued. Nothing was issued. Retry with the same key. | The feed receives `customer.created` (or `customer.updated`), `order.created` and one `position.created` per unit, as for any issued order, and nothing later: deliver on `order.created`. If you have connected a notification provider, the order confirmation goes to the recipient like any other. ## When the money bounces Issuance is optimistic, so a payment that fails after the tickets exist takes them back: every position on the order is revoked with `payment_failed`, the capacity returns to the quota, and `order.payment_failed` plus one `position.revoked` per unit land in the feed. The buyer gets the `payment_failure_followup` message if you have wired one. Only a failure of the payment itself does this. A buyer whose card is declined can try another on the same checkout, and Stripe may report the first card's failure after the second card has paid. The engine checks with Stripe before taking anything back, so that late report changes nothing, and an order that is already `paid` is never taken back by a payment failure. ## When the capacity is gone A payment can arrive after its hold lapsed — a slow method, a buyer who left a tab open. Completion re-checks capacity under the same lock a fresh purchase takes. If there is room, the order is issued as usual. If there is not, no order exists: the payment is refunded in full, fee included, and the session closes as `payment_refused` with the fact in the feed. The buyer was never charged for anything they did not get. Completion also re-checks the event's [checkout limits](/docs/guides/checkout/sessions#event-checkout-limits). A payment whose checkout no longer fits them, typically because the purchaser used their per-customer cap elsewhere while paying, is refused and refunded the same way, with the limit's error code as the session's `psp_refs.refused_reason`. ## What emits on the activity stream In order, in one transaction: `customer.created` (or `customer.updated`), `order.created` carrying the whole order with its positions, then `position.created` per unit, then `checkout_session.completed`. A comp emits the same facts without `checkout_session.completed`. Later: `order.paid` when a processing payment lands; `order.payment_failed` and `position.revoked` on a bounce; `checkout_session.payment_refused` when the capacity was gone or a checkout limit refused the purchase; `position.holder_changed` when a ticket is transferred or claimed, or its holder corrected. A contact update emits `customer.updated`, and so does its billing-contact sync when it settles as `synced`, `failed` or `not_linked`, or returns to `pending` because a newly linked Stripe Customer still needs the update or a superseded attempt re-queues it. `order.created` is the delivery moment: the notification sink's `order_confirmation` message fires on it, carrying the positions and their codes. The [full type registry](/docs/guides/activities/types) lists every type. ### Delivering tickets from your own system If you send your own confirmation email or show tickets in your app, trigger on `order.created`, not only on `order.paid`: a free order, a comp and a card payment that succeeded straight away issue positions with no later `order.paid`, and a `processing` payment is issued before it settles. Key your handler on the order id so a repeated activity sends nothing twice. Read the order's positions with `GET /v1/positions` filtered by `order_id` before sending and send only positions whose `status` is still `live`, because a `position.revoked` can reach you before `order.created`. Record withdrawals as they arrive, and act on `position.revoked` (and `order.payment_failed`) to withdraw a ticket you already delivered. On `position.holder_changed`, send the same ticket to the new holder and update who you show it to; the order's own snapshot is not re-emitted, so read the position or the order for its current holder. --- # Refunds, disputes and the ledger URL: /docs/guides/refunds Refund ticket positions with or without cancelling them, reconcile Stripe disputes, and read the money movement ledger. A refund names one order and the positions it relates to, and has one of two types. They differ in one thing that matters at the door: whether the tickets still admit. | Type | Money returned | Tickets | Capacity | | ----------------------------- | ------------------------------------ | ----------------------------------------------------- | -------------- | | `refund_and_revoke` (default) | What each named position still holds | Revoked immediately; the admission code stops working | Released | | `money_only` | The `amount_minor` you ask for | Stay live: same admission code, same holder | Still consumed | Use `refund_and_revoke` to cancel tickets. Use `money_only` for a goodwill or partial refund, such as returning GBP 5 of a GBP 20 ticket, when the buyer keeps the ticket. ## Refund endpoints `POST /v1/refunds` `GET /v1/refunds` `GET /v1/refunds/{id}` A refund-and-revoke names the positions to cancel and takes no amount: ```json { "order_id": "ord_0199c4f1-2b7e-7a41-8c55-1d9e6f3a2b77", "position_ids": ["pos_0199c4f1-2b81-7e02-9a17-6c3d5e4f2a10"], "reason": "requested_by_customer" } ``` A money-only refund names live positions and the amount to return, in the order currency's minor units: ```json { "order_id": "ord_0199c4f1-2b7e-7a41-8c55-1d9e6f3a2b77", "position_ids": ["pos_0199c4f1-2b81-7e02-9a17-6c3d5e4f2a10"], "type": "money_only", "amount_minor": 500, "reason": "requested_by_customer" } ``` `amount_minor` is required for `money_only` and refused for `refund_and_revoke`; it must be a positive integer. A request without `type` is a refund-and-revoke. The response is a `refund` object. Its useful fields are `type`, `status` (`processing`, `completed` or `failed`), `amount_minor`, `fee_refund_minor`, `currency`, `position_ids`, `reason`, `failure_reason` and `psp_refs`. A create call is accepted as `processing`; the final state arrives through the activity stream and can be read again by id. Retry a failed or network-interrupted refund with a new `Idempotency-Key`. ## Refundable balance Every order carries `amount_refunded_minor`, the money completed refunds have returned, and `amount_refundable_minor`, what a new refund can still return. The refundable balance is the order total less every refund that counts against it: completed and processing refunds, and failed refunds that no later refund has replaced. A Stripe Dashboard refund waiting in a `refund_exception` (see below) already returned its money, so it counts in both figures until staff resolve it. The refundable balance is zero unless the order is `paid` or `refund_pending`. Each position has its own remainder: its `price_minor` plus `booking_fee_minor`, less what refunds naming it have already returned. * A money-only refund may not exceed the order's refundable balance or the total remainder of the positions it names. A larger request returns HTTP 409 with `error.code = "refund_amount_exceeds_refundable"` and refunds nothing. The amount is split across the named positions in proportion to what each still holds, never above any position's remainder. * A refund-and-revoke returns each named position's remainder, so money an earlier money-only refund returned is never returned twice. If earlier refunds already returned everything a position was worth, the refund completes at zero without a Stripe call and the positions are still revoked. * A refund-and-revoke naming a position whose money-only refund is still processing returns HTTP 409 with `error.code = "position_not_refundable"` and changes nothing. Retry it once the money-only refund completes or fails, so it returns exactly what the buyer is still owed. Concurrent requests for the same order are serialised, so two partial refunds that each fit alone cannot both be accepted when together they exceed the balance. ## Refund-and-revoke The named positions are revoked immediately and their capacity becomes available again. Once revoked, an admission code cannot be used at the door, and the engine does not reissue it if a refund later fails. A failed refund leaves the order in `refund_pending` and the positions revoked so an operator can retry deliberately. A position can be refunded and revoked only once. The order must be `paid` or `refund_pending`. The order becomes `refunded` only when no refund-and-revoke remains processing, none has failed without a later refund superseding it, and every position is revoked with reason `refunded`. A completed refund returns the order to `paid` when live positions remain and neither processing nor unsuperseded failed refund-and-revoke refunds remain. Positions revoked for a dispute or payment failure do not satisfy the fully-refunded condition; having no live positions alone does not make the order refunded. Disputes do not change its `payment_state`. ### Cancelling free tickets An order that took no payment (a [comp](/docs/guides/orders), a member's guest invitation or a [zero-total checkout](/docs/guides/checkout/zero-total)) is cancelled the same way: a refund-and-revoke naming its tickets. With no money to return, the refund completes at zero without a Stripe call, the tickets are revoked with reason `refunded`, and their capacity returns to sale. The feed carries `refund.created`, `position.revoked` and `refund.completed`, so you can tell the holder. If you have wired `refund_confirmation`, it also sends for this cancellation with an amount of zero; [adapt your notification template](/docs/guides/notifications/customer-io#writing-the-templates) to confirm cancellation without promising money. A money-only refund of such an order returns HTTP 409 with `error.code = "order_not_refundable"`. Cancelling a free ticket gives back nothing it spent from an invitation allocation, its pool or a member's guest allowance by itself: those units still count. Whether they come back is your decision; to give them back, return them of the order's invitation usage ([allocations](/docs/guides/invitations#give-units-back), [guest allowances](/docs/guides/memberships/reference#what-counts-and-giving-units-back)). ## Money-only refunds A money-only refund never changes a ticket: the positions keep their status, admission code, holder and capacity use, and the order's price snapshots stay as they were. It never changes the order's `payment_state` either, whether it is processing, completed or failed; only the order's balances move. A failed money-only refund keeps holding its amount against the refundable balance until later refunds replace it, position by position: a later refund of either type that names one of its positions releases its share on that position before the new refund is priced. Cancelling its tickets one at a time therefore returns each ticket in full. Once every position it named has been named again, the engine emits `refund.superseded`. To retry, send the money-only refund again with a new `Idempotency-Key`. Failed refund-and-revoke attempts are replaced the same way, so a failed retry of some of their positions never holds the same money twice. ## Refunds for a cancelled event When an event is cancelled under a policy that switches on `refund_paid_tickets`, the engine returns the money for every paid order with tickets to the event as one **money-only** refund per order, for what each live ticket still has left. It is the same primitive as a partial money-only refund, so the tickets stay live, the order stays `paid` and nothing is released to capacity; whether the tickets still admit is the separate `disable_admission` switch. A refund of the whole payment made this way is never read as a revocation: the provider refund carries `refund_type: money_only`, and reconciliation trusts that even when the charge reads as fully refunded. Each refund names the cancellation in its `metadata.event_cancellation_id`. A refund the provider refuses is reported on the cancellation and replaced only when someone retries it; the failed one is superseded, so the same money is never held twice. See [cancelling an event](/docs/guides/config/events#cancelling-an-event). ## Refunding a membership payment A membership payment is refunded against its **membership charge**, not an order: no ticket order or position needs to exist. Every paid invoice the engine records for a membership is a `membership_charge` (`mch_…`) carrying the amount paid, the platform fee, and the invoice and PaymentIntent references the refund is made against. List a membership's payments and read each one's balance: `GET /v1/memberships/{id}/charges` Each charge has `amount_minor`, `amount_refunded_minor`, `amount_refundable_minor` and `refundable`. Refund part or all of it with the same endpoint as a ticket refund, naming the charge instead of an order: ```json { "membership_charge_id": "mch_0199c4f1-2b7e-7a41-8c55-1d9e6f3a2b77", "amount_minor": 500, "reason": "requested_by_customer" } ``` `amount_minor` is required and must be a positive integer within the charge's `amount_refundable_minor`; `position_ids` is refused, and `type` may only be `money_only`. The response is the ordinary `refund` object with `order_id` null and `membership_id` and `membership_charge_id` set. List a charge's refunds with `GET /v1/refunds?membership_charge_id=` or all of a membership's with `membership_id=`. A refund returns money and nothing else. It does not cancel, pause or switch the membership, restart its billing period, change its benefits or renewal date, or revoke any ticket the member holds. To end the membership use [cancel](memberships/reference#cancel-at-period-end) separately. A refund is also never read as paying an overdue renewal: a `past_due` membership stays `past_due` whatever it refunds, because refunding an old invoice says nothing about the current one. The refundable balance is the amount paid less every `completed` and `processing` refund of that charge, including Dashboard refunds the engine has reconciled. The balance is read under a lock on the charge, so repeated and concurrent requests cannot refund more than was paid; a request above it returns `409 refund_amount_exceeds_refundable` with nothing refunded. A refund that fails releases its amount at once (nothing was revoked), so the same money can be requested again with a new `Idempotency-Key`. Stripe returns the platform fee in proportion to the money, and the engine records the same share as `fee_refund_minor`. A charge recorded before membership refunds were supported carries no payment reference. It is listed with `refundable: false`, and requesting a refund returns `409 membership_charge_not_refundable`; refund it from the Stripe Dashboard and the engine reconciles it into the same history. A charge id that does not belong to the organizer returns `404 not_found`. **Provider events.** The engine settles an engine-made refund when Stripe confirms or refuses it, and writes `refund` and `platform_fee_refund` ledger entries, named by the charge rather than an order, for what Stripe returned. A refund taken in the Stripe Dashboard on a charge the engine recorded as a membership payment is recorded as an `external` refund of the same charge, and its platform fee is returned in proportion to the money. Refunds of any other payment on the connected account, including payments the engine did not create, are not the engine's to manage and are ignored. An external refund the engine cannot map to the charge unambiguously (for example a different currency) is logged as an exception and recorded nowhere. ## Payment mode refusal A refund must use the payment's original test or live mode. A request for a payment in a different mode returns HTTP 409 with `error.code = "refund_payment_mode_mismatch"`. This refusal creates no refund and revokes no positions. A live payment copied into a test environment cannot be refunded there; refund it through its original live environment. ## Stripe refunds taken outside the engine Stripe Dashboard refunds are reconciled from Connect webhooks. A full refund whose charge metadata identifies an order is applied to all positions still needing that refund, including a position left revoked by a failed engine refund. A partial refund is safe but cannot be assigned to positions automatically; the engine creates a `refund_exception` for a staff member to resolve. The operator selects the positions covered by that external refund, then the engine revokes exactly those positions and records the proportional fee refund, or records the money without revoking anything. The fee refund brings the application fee returned so far up to the share of all the money the charge has returned, less Dashboard refunds still waiting in other exceptions, so a fee share an engine refund already returned is never returned again. Money an engine money-only refund returned never counts towards a full Dashboard refund. If you take the rest of a charge from the Dashboard after a money-only refund, the charge reads as fully refunded, but the engine opens a `refund_exception` rather than revoking the tickets. Cancel tickets with a refund-and-revoke through the API instead. ## Fees and the ledger For direct charges, the platform executes the connected-account refund with `refund_application_fee: true`. Stripe refunds the application fee in proportion to the money returned, for either refund type. There is no separate booking-fee policy: the amount a refund returns counts against each position's price and booking fee together. A refund's `fee_refund_minor` is the engine's request-time estimate of that proportional platform fee: the position's `platform_fee_minor` scaled by the share of the position's value this refund returns. Repeated partial refunds of one position add up to its whole platform fee. The ledger records Stripe's confirmed amounts, which can differ from the estimate by rounding: each confirmed refund writes one `refund` row for the money returned to the buyer and one `platform_fee_refund` row for the application fee Stripe returned. The ledger names a refund's positions only when the Stripe refunds not yet booked are a single engine refund that accounts for the whole newly observed amount; events can arrive out of order, so an equal amount alone never decides it. Card network and Stripe processing fees are not part of either figure. The public refund object keeps its request-time amount and fee snapshot; settlement updates its status and provider references without replacing those amounts. ## Disputes `GET /v1/disputes` `GET /v1/disputes/{id}` When a `charge.dispute.created` event arrives, all live positions on the affected order are revoked immediately with `revocation_reason: "disputed"`. The dispute does not change the order's `payment_state`. A won dispute records a reversal in the ledger but does not restore tickets; a lost dispute remains an observed debit. Dispute lifecycle activities are `dispute.created`, `dispute.won` and `dispute.lost`. ## Ledger entries `GET /v1/ledger_entries` The ledger is append-only and tenant-scoped. It is written only from confirmed payment-provider events, with idempotency on `(psp_event_id, entry_type)`. Amounts are positive minor-unit integers; `entry_type` gives the direction: | Entry type | Meaning | Direction | | --------------------- | ----------------------------------- | --------- | | `ticket_sale` | Ticket sale amount received | in | | `platform_fee` | Platform fee received | in | | `refund` | Ticket amount returned | out | | `platform_fee_refund` | Platform fee returned | out | | `dispute_debit` | Disputed charge withdrawn | out | | `dispute_fee` | Dispute fee charged | out | | `dispute_reversal` | Dispute funds reinstated | in | | `membership_charge` | Membership invoice payment received | in | Do not derive accounting totals from an optimistic checkout response. Read the ledger and the refund/dispute objects after webhook reconciliation, and use `ledger_entry.appended` as the audit trail for each confirmed movement. An order can exist a few seconds before its sale is on the ledger — the buyer's page completes the session as soon as the payment goes through, and the `ticket_sale` and `platform_fee` entries follow when Stripe's event arrives. There is one of each per payment, whichever event reports it. ## Activity and buyer messages Refunds emit `refund.created` and then `refund.completed` or `refund.failed`. A membership payment refund emits the same activities, with `order_id` null, and sends no buyer message: your product owns member-facing messaging. When a later refund supersedes a failed attempt, the engine emits `refund.superseded`; its snapshot metadata includes `superseded_by` with the new refund's id. Every refund snapshot carries its `type`, and the activity records who created it. External partial refunds also emit `refund_exception.created` and, after staff assignment, `refund_exception.resolved`. A completed refund can trigger the `refund_confirmation` buyer message; its `revokes_admission` field is false for a money-only refund, so the message can say this refund does not change admission status. It describes only that refund, not whether the tickets are still valid. Position revocations caused by refunds or disputes do not trigger the payment-failure message. --- # Waitlists URL: /docs/guides/waitlist Item-scoped queues of emails with the names buyers give, invitation holds, the checkout link a promotion creates, and items an organizer approves buyer by buyer. A waitlist belongs to one **item**, not an event. It opens when that item's derived availability is gone; another item at the same event can still sell. Joining records an email, and optionally a name, a phone and a quantity. It consumes no capacity and the API does not publish a position, because the order can change without a buyer-visible reason. An item marked `requires_approval` uses the same queue differently: it is never bought directly, and its waitlist is how it is sold. See [Approval-gated items](#approval-gated-items). ## Join an item Create an entry with a keyed request: `POST /v1/waitlist_entries` ```json { "item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10", "name": "Sam Buyer", "email": "sam@example.com" } ``` `name`, `phone` and `quantity` are optional. An entry without a name returns `name: null` wherever it is read, so show its email instead. `quantity` is the number of units the buyer is asking for (default 1, bounded by the item's `max_per_order`); a promotion reserves and invites exactly that many. `customer` names the buyer you have signed in, by the `external_ref` you store for them, as on a [checkout session](/docs/guides/checkout/sessions). It gives a member their [priority](#member-priority); the entry returns it as `customer_external_ref`, null when you named nobody. Omit it for a buyer you have not signed in. An ordinary item must have no derived availability. An item that is merely being held by another checkout is also unavailable at that instant, so the join is allowed; the next public read or checkout decides again under the quota lock. The same email may join different items, but not the same item while its existing entry is `waiting` or `invited`. ## List and inspect `GET /v1/waitlist_entries` lists the queue in id order. Filter it by `item_id`, `event_id`, or `status`; the event filter is a convenience over the item's event and does not turn the queue into an event-scoped list. `GET /v1/waitlist_entries/{id}` returns the canonical item and event projection. The `checkout_url` is always null on list and retrieve responses; `invitation_expires_at` and `checkout_session_id` are projected while a live invitation hold exists. The promotion response and its `waitlist_entry.promoted` activity carry the checkout URL. It is a bearer: keep it out of logs, analytics, and any place that is not handing it to the invitee. ## Promote one entry `POST /v1/waitlist_entries/{id}/promote` reserves the entry's quantity of the item's capacity and creates an invitation checkout for the entry's stored email and any name or phone given. Public promotion is keyed by entry id. The invitation expiry is: ```text min(waitlist_invitation_window_seconds, event.starts_at - waitlist_event_cutoff_seconds - now) ``` If that window is zero or negative, promotion is refused. Promotion is also refused with `422` `customer_ticket_limit_exceeded` (`param: "id"`) when the event sets a [per-customer cap](/docs/guides/checkout/sessions#event-checkout-limits) and the entry's email already belongs to a customer who holds that many of the event's tickets: no unit is reserved and the entry stays waiting. The invitation hold and the checkout session share the same deadline. Item and quantity are immutable in the invitation checkout; the buyer may still update their name or email before payment. Fetching payment credentials re-arms an invitation hold and its session to the later of the current deadline and the ordinary payment TTL; it never shortens the invitation window. Ordinary checkout holds are not renewed by this buyer-plane call. The response includes `checkout_url` because this operation intentionally mints a bearer link, and the promoted activity carries the same value so a connected notification provider can send its `waitlist_invitation` message. A keyed retry returns the same URL while the invitation is live. No invitation email is sent unless a notification provider is connected. A successful payment converts the entry; an expiry, refusal, or explicit removal lapses it. When a payment failure, refund, or dispute revokes a ticket, the freed unit is kept inside that transaction and offered to the next waiting entry for the same item before the unit can become publicly available: the oldest entry with [member priority](#member-priority), otherwise the oldest entry. If the event is past the invitation cutoff, or that entry's customer is already at the event's per-customer cap, the unit returns to public availability instead. A single revocation offers at most ten freed units to the list; any remainder is publicly available for a later purchase or promotion. ### Member priority An entry has member priority when its `customer_external_ref` names a customer whose membership gives member effects now (active, or past due inside its benefit grace) of an active plan with a `waitlist_priority` [membership benefit](/docs/guides/memberships/reference#membership-benefits) assigned to the entry's item: to its whole event, or to the item itself. Entries with priority are offered freed units first, in the order they joined; everyone else follows in the order they joined. Priority is judged each time a unit is offered, so a membership started after joining counts and one that has ended does not. It changes only who is offered a freed unit automatically: an organizer's promotion of a named entry, and the queue's id order on list, are unchanged. Invitation quotes run the in-engine pricing providers, including any applicable membership effect, while external HTTP providers are skipped during the capacity-critical promotion. The quote says `degraded: true` with `external` as the degraded provider when that happens. The invitation quote is contractual from promotion: updating the buyer's name or email does not re-run pricing or change the amount, and it cannot introduce a different provider set. `POST /v1/waitlist_entries/{id}/remove` removes a waiting entry. Invited, converted, lapsed and rejected entries are immutable history. ## Approval-gated items Set `requires_approval: true` on an item to have its organizer decide who gets one. For such an item: * **Joining is open while the item is on sale**, whatever its availability. An item that is inactive or outside its sale window answers `waitlist_item_not_open`. * **Ordinary checkout refuses it.** A preview quote reports the line as `sellable: false` with `blocked_reason: "approval_required"`; creating or updating a checkout session with it answers `item_not_sellable`. * **Promote is the approval.** It refuses for the same reasons as any promotion (`insufficient_capacity`, `invitation_window_closed`, `item_not_sellable`). When the invitation's quote totals zero, the order is issued in the same request: the entry comes back `converted`, with `checkout_url: null`, and the usual `order.created` and `position.created` activities follow. When there is something to pay, the entry is `invited` and the buyer pays through the invitation checkout. * **Reject is the refusal.** `POST /v1/waitlist_entries/{id}/reject` moves a waiting entry to `rejected` and emits `waitlist_entry.rejected`, which a connected notification provider can turn into its `waitlist_rejected` message. A rejected email may join again. * **Freed units are not offered automatically.** A refund or revocation on an approval-gated item returns the unit to the item's capacity; nobody is invited until the organizer approves them. Every entry carries `requires_approval`, so a consumer can tell a request from a place in a sold-out queue, `promoted_at` (when it was approved or invited) and `closed_at` (when it became `converted`, `lapsed` or `rejected`). ## Errors and activity | Code | Status | Type | What it means | What to do | | --- | --- | --- | --- | --- | | waitlist_closed | 409 | invalid_request_error | The item's derived availability is not sold out, so its waitlist is closed. | Offer the item for sale, or retry after the remaining availability is gone. | | waitlist_item_not_open | 409 | invalid_request_error | The approval-gated item is switched off or outside its sale window, so it is not taking requests. | Show the item as closed, or retry inside its sale window. | | waitlist_entry_exists | 409 | invalid_request_error | This email already has a waiting or invited entry for this item. | Use the existing entry, or wait for it to lapse before joining again. | | waitlist_entry_not_waiting | 409 | invalid_request_error | The entry is no longer waiting and cannot be promoted, rejected or removed. | Retrieve the entry and follow its current status instead. | | quantity_limit_exceeded | 422 | invalid_request_error | The line asks for more units than the item's max_per_order allows. | Lower the quantity to the item's limit, which is in the error detail. | | item_not_sellable | 422 | invalid_request_error | The item exists but cannot be sold right now — inactive, outside its sale window, gated with no applied unlock, or approval-gated outside an approved invitation. A comp ignores the sale window, gating and approval and is refused only for an inactive item or an item with no event. | Quote the cart first: the line's `blocked_reason` tells you which of those it is. | | invitation_window_closed | 409 | invalid_request_error | There is no positive invitation window before the event cutoff. | Do not send an invitation for this event; leave the capacity public. | | insufficient_capacity | 409 (waitlist) · 422 (checkout) | invalid_request_error | There is genuinely not enough room. The decision was recomputed inside the lock immediately before it was returned. | Read availability, offer fewer units, or send the buyer to a waitlist. For a comp, `detail.shortfalls` names each short quota; set `capacity_override` only if the organizer means to issue past capacity. | | invitation_session_immutable | 409 | invalid_request_error | An invitation checkout cannot change its item or quantity. | Keep the invited item and quantity; update only the buyer's contact details. | The lifecycle is visible in the activity feed as `waitlist_entry.created`, `waitlist_entry.promoted`, `waitlist_entry.lapsed`, `waitlist_entry.converted` and `waitlist_entry.rejected`. The promoted snapshot is the only activity that carries the invitation checkout URL (it is null when the approval issued the order at once). Treat all five payloads as customer data; treat the promoted URL as a credential. An organizer's refusal is `rejected`; `lapsed` covers an invitation expiry, a refused payment and an explicit removal, which the object does not tell apart — use the activity actor and surrounding hold/session activities when that distinction is needed. ## Linking a converted entry to its order A converted `waitlist_entry` retains `checkout_session_id`, identifying the session on the converted hold that issued its order. This applies to paid invitations and free approvals, and is consistent in reads, lists and the `waitlist_entry.converted` activity object. Match that ID to the order's `checkout_session_id`; it is a correlation ID, not a credential. After conversion, `checkout_url` and `invitation_expires_at` are null: the invitation has ended. Do not offer an old payment link or use the invitation deadline as the conversion time. A live invitation still carries its current session and deadline; bearer checkout links remain limited to the promotion response and its activity. --- # Webhooks URL: /docs/guides/webhooks Receive signed activity deliveries and reconcile them safely. Create one or more endpoints with `POST https://tickets.lissen.com/api/v1/webhook_endpoints`. Each endpoint has an HTTPS URL, a status, metadata and the activity types it receives. `enabled_types` accepts exact names such as `order.paid`, a resource wildcard such as `order.*`, or `*`. The create response includes `secret` once. Save it immediately. Later reads, lists and updates never return it. Use `POST /v1/webhook_endpoints/{id}/rotate` to mint a replacement. ```ts const endpoint = await client.createWebhookEndpoint({ idempotencyKey: crypto.randomUUID(), body: { url: "https://partner.example/webhooks/ticketing", enabled_types: ["order.*", "refund.*"], }, }); ``` ## Verify signatures Every request body is the same activity envelope returned by `GET /v1/activities/{id}`. Verify the raw request bytes before parsing JSON. `Ticketing-Signature` has a Unix timestamp and one or more `v1` HMACs. ```ts import { createHmac, timingSafeEqual } from "node:crypto"; function verify(rawBody: Buffer, header: string, secret: string) { const values = Object.fromEntries(header.split(",").map((part) => part.trim().split("="))); const timestamp = values.t; if (!timestamp || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false; const expected = createHmac("sha256", secret) .update(Buffer.concat([Buffer.from(`${timestamp}.`), rawBody])) .digest("hex"); return header.split(",").some((part) => { const value = part.trim(); const signature = value.startsWith("v1=") ? value.slice(3) : ""; // Validate attacker-controlled text before a length-sensitive compare. if (!/^[0-9a-f]{64}$/iu.test(signature)) return false; return timingSafeEqual(Buffer.from(expected, "hex"), Buffer.from(signature, "hex")); }); } ``` Rotation keeps the old secret active for 24 hours. During that overlap, requests contain multiple `v1` values. Accept a match for either your old or new secret until the overlap has elapsed. ## Delivery and recovery Any 2xx response accepts a delivery. Failed deliveries retry at roughly 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, then every 12 hours, for up to three days. There is no ordering guarantee and you may receive the same `act_` id more than once. Store and deduplicate by `act_` id. Run a daily reconciliation request even when your endpoint is healthy. At the start of a pass capture `T`; query `GET /v1/activities` from your **stored watermark minus a generous overlap** (48 hours is a sensible nightly margin), page the entire result with no persistent cursor, and apply every activity idempotently. Only after the whole pass commits locally, advance the watermark to `T` — never to the newest activity you happened to observe. A later pass then covers activities that committed after the pass began. If an endpoint is disabled after repeated failures, fix it, update its status to `enabled`, then run this reconciliation process to close the gap. --- # Lissen Ticketing URL: /docs A multi-tenant API for selling admission and membership — capacity, pricing, checkout, and a complete feed of everything that happened. The Lissen ticketing engine is a REST API for **selling things that have a door**. You bring the audience, the artwork and the story; the engine holds the capacity, prices the cart, takes the money on your own Stripe account, and records every fact so your systems can stay in step with ours. It is a cash register with a door scanner attached. It records that something was sold, to whom, for how much, and whether it admits you to something — and nothing else. What the thing *is* stays in your catalog. ## Start here ## The shape of an integration 1. **Configure** what you are selling: an event, the items that sell entry to it, and the quotas that back them. 2. **Quote** a cart to see what a buyer would pay, with every discount and fee explained. 3. **Check out**: open a session, which holds the capacity and prepares the payment on your connected account. 4. **Consume the feed**: every state change in the engine is an activity, and the activity stream is how your own systems learn what happened. ## What the engine will never do * **Hold your catalog.** Listings, lineups, artwork and descriptions stay with you, joined to engine records by id. * **Send email in your name without being asked.** Nothing sends until you connect your own provider. * **Be the merchant of record.** Money lands on your Stripe account; you own the customer relationship, the charge and the dispute. ## Using coding agents Give your coding agent [the documentation index](/docs/llms.txt) or [the complete documentation](/docs/llms-full.txt). Each guide and API reference page is also available as Markdown by appending `.md` to its URL. The [OpenAPI contract](/docs/openapi.json) includes all request and response schemas. --- # API reference The complete public API contract, including schemas, authentication and responses. [Download OpenAPI](/docs/openapi.json) - [Events](/docs/reference/events.md) - [Quotas](/docs/reference/quotas.md) - [Items](/docs/reference/items.md) - [Fee schedules](/docs/reference/fee-schedules.md) - [Discount codes](/docs/reference/discount-codes.md) - [Branding](/docs/reference/branding.md) - [Organizer](/docs/reference/organizer.md) - [Buyer plane](/docs/reference/buyer-plane.md) - [Door passes](/docs/reference/door-passes.md) - [Check-in](/docs/reference/check-in.md) - [Quotes](/docs/reference/quotes.md) - [Memberships](/docs/reference/memberships.md) - [Invitations](/docs/reference/invitations.md) - [Checkout sessions](/docs/reference/checkout-sessions.md) - [Orders](/docs/reference/orders.md) - [Waitlist](/docs/reference/waitlist.md) - [Refunds](/docs/reference/refunds.md) - [Money](/docs/reference/money.md) - [Notification provider](/docs/reference/notification-provider.md) - [Entitlement providers](/docs/reference/entitlement-providers.md) - [Webhooks](/docs/reference/webhooks.md) - [Connect](/docs/reference/connect.md) - [Activities](/docs/reference/activities.md) ```json { "openapi": "3.1.0", "info": { "title": "Ticketing Partner API", "version": "1.0.0" }, "servers": [ { "url": "https://tickets.lissen.com/api" } ], "components": { "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "API key" }, "clientSecretAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "Checkout session client secret", "description": "A session-scoped bearer returned once by checkout-session create. It reaches only its own session and expires with it; it can never create a session and is never accepted on a keyed route." } }, "schemas": { "EventList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Event" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Event": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "starts_at": { "type": "string", "format": "date-time" }, "ends_at": { "type": [ "string", "null" ], "format": "date-time" }, "timezone": { "type": "string" }, "venue_name": { "type": "string" }, "venue_address": { "type": [ "string", "null" ] }, "metadata": { "type": "object", "additionalProperties": {} }, "min_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647, "description": "Fewest tickets for this event in one checkout, counted across the event's items. Null means no minimum." }, "max_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647, "description": "Most tickets for this event in one checkout, counted across the event's items. Null means no maximum." }, "max_tickets_per_customer": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647, "description": "Most tickets for this event one purchaser (the order customer) may buy across all their orders. Null means no cap." } }, "required": [ "id", "name", "starts_at", "ends_at", "timezone", "venue_name", "venue_address", "metadata", "min_tickets_per_order", "max_tickets_per_order", "max_tickets_per_customer" ] }, "ErrorEnvelope": { "type": "object", "properties": { "error": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/ErrorType" }, "code": { "$ref": "#/components/schemas/ErrorCode" }, "message": { "type": "string" }, "param": { "type": "string" }, "detail": { "type": "object", "additionalProperties": {} }, "request_id": { "type": "string", "format": "uuid" } }, "required": [ "type", "code", "message", "request_id" ] } }, "required": [ "error" ] }, "ErrorType": { "type": "string", "enum": [ "invalid_request_error", "authentication_error", "idempotency_error", "rate_limit_error", "api_error" ] }, "ErrorCode": { "type": "string", "x-extensible-enum": [ "invalid_request", "missing_organizer", "invalid_organizer", "missing_authorization", "invalid_api_key", "organizer_not_granted", "api_key_not_authorized", "api_key_mode_mismatch", "missing_idempotency_key", "idempotency_key_reused", "idempotency_key_in_flight", "buyer_plane_unavailable", "door_pass_unavailable", "invalid_pagination", "invalid_sale_window", "invalid_event_window", "invalid_reference", "code_already_exists", "capacity_locked", "insufficient_capacity", "invalid_footprint", "quota_below_consumption", "quota_unlimited_immutable", "item_quotas_locked", "not_found", "internal_error", "currency_mismatch", "item_not_sellable", "fee_schedule_not_found", "fee_schedule_ambiguous", "connect_account_not_onboardable", "connect_account_already_linked", "connect_state_invalid", "connect_oauth_failed", "connect_oauth_not_available", "connect_oauth_state_consumed", "connect_provider_unavailable", "staff_identity_invalid", "staff_identity_not_permitted", "fee_exceeds_charge", "checkout_session_not_open", "checkout_session_locked", "checkout_session_conflict", "code_not_reservable", "payment_intent_unavailable", "invalid_client_secret", "identity_not_assigned", "buyer_identity_required", "invalid_webhook_url", "invalid_webhook_enabled_type", "webhook_endpoint_not_found", "webhook_endpoint_rotation_failed", "membership_already_exists", "membership_already_canceled", "membership_state_conflict", "membership_no_billing", "membership_pause_unsupported", "membership_resume_payment_failed", "door_pass_expired", "door_pass_organizer_mismatch", "already_checked_in", "position_revoked", "code_not_found", "wrong_event", "checkin_not_admitted", "checkin_not_found", "invalid_door_pass_expiry", "waitlist_closed", "waitlist_entry_exists", "waitlist_entry_not_waiting", "invitation_window_closed", "invitation_session_immutable", "order_not_refundable", "position_not_refundable", "refund_positions_mismatch", "identity_token_rejected", "reverify_required", "payment_method_not_owned", "live_payments_not_configured", "refund_payment_mode_mismatch", "payment_required", "payment_declined", "quantity_limit_exceeded", "waitlist_item_not_open", "not_position_holder", "holder_unchanged", "item_not_in_event", "invalid_order_limits", "order_quantity_below_minimum", "order_quantity_above_maximum", "customer_ticket_limit_exceeded", "refund_amount_exceeds_refundable", "membership_charge_not_refundable", "customer_email_conflict", "membership_prerequisite_not_met", "membership_not_billable", "payment_method_update_unavailable", "credit_unchanged", "membership_group_conflict", "membership_enrollment_closed", "membership_enrollment_full", "membership_plan_earned_only", "attendance_rule_not_configured", "attendance_scope_not_selected", "checkout_offer_not_applicable", "member_role_not_permitted", "entitlement_provider_not_found", "entitlement_provider_conflict", "invalid_entitlement_provider", "invitation_allowance_exceeded", "membership_not_eligible", "guest_benefit_not_applicable", "cancellation_policy_not_configured", "organizer_admin_required", "admission_disabled", "cancellation_policy_required", "event_already_cancelled", "cancellation_not_retryable", "tax_location_required", "tax_location_invalid", "membership_plan_not_tax_inclusive", "first_charge_at_free_plan", "first_charge_at_out_of_range", "next_charge_at_out_of_range", "saved_payment_method_free_plan", "stripe_customer_not_found", "payment_method_not_attached", "stripe_customer_linked", "membership_plan_free", "provisioner_required", "slug_already_exists", "saved_payment_method_unavailable", "notification_claim_not_held", "invitation_usage_fully_returned", "invitation_return_exceeds_remaining" ] }, "QuotaList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Quota" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Quota": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "size": { "type": [ "integer", "null" ], "minimum": 0 }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "name", "size", "metadata" ] }, "ItemList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Item" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Item": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "price_minor": { "type": "integer", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "gated": { "type": "boolean" }, "active": { "type": "boolean" }, "sort_order": { "type": "integer" }, "sale_starts_at": { "type": [ "string", "null" ], "format": "date-time" }, "sale_ends_at": { "type": [ "string", "null" ], "format": "date-time" }, "opens_after_item_id": { "type": [ "string", "null" ], "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The other ticket type of the same event this one opens after, with `opens_when`. Set both or neither." }, "opens_when": { "type": [ "string", "null" ], "enum": [ "runs_out", "closes", "either", null ], "description": "`runs_out`: the other item's issued units reach the size of a quota it draws on (units in live baskets do not count). `closes`: the other item's `sale_ends_at` has passed. `either`: whichever comes first. Combined with `sale_starts_at`, the item opens at the earlier of the two; its own `sale_ends_at`, `active` and quotas still apply. Once opened by a trigger it stays open." }, "sale_state": { "type": "string", "enum": [ "inactive", "not_started", "on_sale", "ended" ], "description": "Derived, read-only: whether the item can be sold right now, by the one evaluation every engine surface uses. `inactive` (`active` is false), `not_started` (waiting for `sale_starts_at` or its trigger), `on_sale`, or `ended` (`sale_ends_at` has passed). Capacity is separate: an `on_sale` item can still be sold out." }, "sale_opens_at": { "type": [ "string", "null" ], "format": "date-time", "description": "Derived, read-only: when the sale opened or is scheduled to, the earlier of `sale_starts_at` and the opening trigger's recorded or scheduled instant. Null for an unscheduled item, and while an item with only a `runs_out` trigger is still waiting." }, "sale_opened_by": { "type": [ "string", "null" ], "enum": [ "schedule", "trigger", null ], "description": "Derived, read-only: what opened the sale, `schedule` (`sale_starts_at`) or `trigger` (the linked item). Null while not open and for an unscheduled item." }, "quota_ids": { "type": "array", "items": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "minItems": 1 }, "requires_approval": { "type": "boolean", "description": "Approval-gated: buyers join the item's waitlist while the item is on sale, ordinary checkout refuses it, and a unit is sold only by promoting an entry." }, "max_per_order": { "type": [ "integer", "null" ], "exclusiveMinimum": 0, "maximum": 100, "description": "The most units of this item one checkout session may hold; null leaves only the line ceiling." }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "event_id", "name", "price_minor", "currency", "gated", "active", "sort_order", "sale_starts_at", "sale_ends_at", "opens_after_item_id", "opens_when", "sale_state", "sale_opens_at", "sale_opened_by", "quota_ids", "requires_approval", "max_per_order", "metadata" ] }, "FeeScheduleList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/FeeSchedule" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "FeeSchedule": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^fsc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "item_id": { "type": [ "string", "null" ], "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "percent_bps": { "type": "integer", "minimum": 0 }, "flat_minor": { "type": "integer", "minimum": 0 }, "mode": { "type": "string", "enum": [ "passed_on", "absorbed" ] }, "active": { "type": "boolean" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "event_id", "item_id", "currency", "percent_bps", "flat_minor", "mode", "active", "metadata" ] }, "DiscountCodeList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/DiscountCode" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "DiscountCode": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^dsc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "code": { "type": "string" }, "effect_type": { "type": "string", "enum": [ "percent", "amount", "unlock", "price_override", "fee_waiver" ] }, "percent_bps": { "type": [ "integer", "null" ], "minimum": 0 }, "amount_minor": { "type": [ "integer", "null" ] }, "amount_currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$" }, "stackable": { "type": "boolean" }, "valid_from": { "type": [ "string", "null" ], "format": "date-time" }, "valid_until": { "type": [ "string", "null" ], "format": "date-time" }, "max_uses": { "type": [ "integer", "null" ], "exclusiveMinimum": 0 }, "max_uses_per_customer": { "type": [ "integer", "null" ], "exclusiveMinimum": 0 }, "active": { "type": "boolean" }, "item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "event_ids": { "type": "array", "items": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "code", "effect_type", "percent_bps", "amount_minor", "amount_currency", "stackable", "valid_from", "valid_until", "max_uses", "max_uses_per_customer", "active", "item_ids", "event_ids", "metadata" ] }, "Branding": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^brd_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "logo_url": { "type": [ "string", "null" ], "format": "uri" }, "brand_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "accent_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "background_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "text_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "font_key": { "type": [ "string", "null" ], "enum": [ "inter", "system", "manrope", null ] }, "corner_radius": { "type": [ "integer", "null" ], "minimum": 0, "maximum": 48 }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "logo_url", "brand_color", "accent_color", "background_color", "text_color", "font_key", "corner_radius", "metadata" ] }, "Organizer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "slug": { "type": "string" }, "test": { "type": "boolean" }, "status": { "type": "string", "enum": [ "active", "frozen" ] }, "psp_account_ref": { "type": [ "string", "null" ] }, "embed_origins": { "type": "array", "items": { "type": "string" } }, "membership_tax": { "type": "boolean", "default": false, "description": "Membership subscriptions charge tax: Stripe Tax calculates it on each invoice and new paid plans get tax-inclusive prices. Set by Lissen; false unless Lissen has turned it on for the organizer." }, "ticket_collection": { "type": "string", "enum": [ "connected_account", "platform" ], "default": "connected_account", "description": "Where ticket payments are charged: `connected_account`, the organizer's own Stripe account (the default), or `platform`, Lissen's platform account. Set by Lissen." }, "membership_collection": { "type": "string", "enum": [ "connected_account", "platform" ], "default": "connected_account", "description": "Where membership payments are charged: `connected_account`, the organizer's own Stripe account (the default), or `platform`, Lissen's platform account. Set by Lissen." }, "own_order_confirmation": { "type": "boolean", "default": false, "description": "The organizer sends its own order confirmations, so the engine never sends `order_confirmation` for it and its notification wiring refuses that message. Set by the organizer; false by default." } }, "required": [ "id", "name", "slug", "test", "status", "psp_account_ref", "embed_origins" ] }, "OrganizerEmbed": { "type": "object", "properties": { "embed_origins": { "type": "array", "items": { "type": "string", "format": "uri" } } }, "required": [ "embed_origins" ] }, "OrganizerCreate": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "slug": { "type": "string", "minLength": 2, "maxLength": 63, "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$", "description": "The new organizer's permanent public handle: lowercase letters, digits and internal hyphens. Creating again with a slug this key already created returns that organizer." }, "fee_schedules_from": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "An organizer this key holds a grant for, whose active organizer-wide fee schedules and notification provider connection the new organizer starts with. The connection's credentials are copied inside the engine and stay write-only." } }, "required": [ "name", "slug", "fee_schedules_from" ] }, "OrganizerCollectionUpdate": { "type": "object", "properties": { "ticket_collection": { "type": "string", "enum": [ "connected_account", "platform" ], "description": "Where new ticket payments are charged: `connected_account` (the organizer's own Stripe account) or `platform` (Lissen's platform account)." }, "membership_collection": { "type": "string", "enum": [ "connected_account", "platform" ], "description": "Where new membership payments are charged: `connected_account` or `platform`." }, "membership_tax": { "type": "boolean", "description": "Membership subscriptions charge tax with Stripe Tax, on whichever account charges them." } }, "minProperties": 1 }, "AttendeeList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Attendee" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Attendee": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "attendee" ] }, "position_id": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "item_name": { "type": "string", "description": "The ticket type's name when the ticket was issued." }, "holder": { "type": "object", "properties": { "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": [ "string", "null" ] }, "email": { "type": [ "string", "null" ] } }, "required": [ "customer_id", "name", "email" ], "description": "Who holds the ticket now, which is not always who bought it." }, "checked_in": { "type": "boolean", "description": "True when an admitted, non-voided check-in exists for this ticket." } }, "required": [ "object", "position_id", "event_id", "item_id", "item_name", "holder", "checked_in" ] }, "DoorPass": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^key_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "door_pass" ] }, "name": { "type": "string", "minLength": 1 }, "status": { "type": "string", "enum": [ "active", "expired", "revoked" ] }, "event_ids": { "type": "array", "items": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "minItems": 1 }, "expires_at": { "type": [ "string", "null" ], "format": "date-time" }, "enrolled_at": { "type": [ "string", "null" ], "format": "date-time" }, "created_at": { "type": "string", "format": "date-time" }, "token_prefix": { "type": "string" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "object", "name", "status", "event_ids", "expires_at", "enrolled_at", "created_at", "token_prefix", "metadata" ] }, "DoorPassCreate": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "event_ids": { "type": "array", "items": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "minItems": 1 }, "expires_at": { "type": [ "string", "null" ], "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "name", "event_ids" ] }, "DoorPassList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/DoorPass" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Checkin": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^chk_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "checkin" ] }, "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "position_id": { "type": [ "string", "null" ], "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "door_pass_id": { "type": [ "string", "null" ], "pattern": "^key_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "client_scan_id": { "type": "string", "maxLength": 64 }, "scanned_at": { "type": "string", "format": "date-time" }, "synced_at": { "type": "string", "format": "date-time" }, "manual": { "type": "boolean" }, "outcome": { "type": "string", "enum": [ "admitted", "rejected", "superseded", "voided" ] }, "rejection_reason": { "type": [ "string", "null" ] }, "voided_at": { "type": [ "string", "null" ], "format": "date-time" }, "credited_customer_id": { "type": [ "string", "null" ], "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The customer this admission credits with attendance: the position's holder when the scan happened (for an offline scan, when the scanner says it happened). Null for a scan that was never admitted. It is recorded with the admission and does not follow later holder changes; only an organizer's credit correction, or a recipient's claim of what was sent to their address, moves it." }, "metadata": { "type": "object", "additionalProperties": {} }, "position": { "$ref": "#/components/schemas/CheckinPosition" } }, "required": [ "id", "object", "event_id", "position_id", "door_pass_id", "client_scan_id", "scanned_at", "synced_at", "manual", "outcome", "rejection_reason", "voided_at", "credited_customer_id", "metadata", "position" ] }, "CheckinPosition": { "type": [ "object", "null" ], "properties": { "id": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": { "type": "string" }, "buyer_name": { "type": [ "string", "null" ] }, "order_id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "required": [ "id", "description", "buyer_name", "order_id" ] }, "CheckinCreate": { "type": "object", "properties": { "client_scan_id": { "type": "string", "minLength": 1, "maxLength": 64 }, "code": { "type": "string", "minLength": 1 }, "scanned_at": { "type": "string", "format": "date-time" }, "manual": { "type": "boolean", "default": false } }, "required": [ "client_scan_id", "code", "scanned_at" ] }, "CheckinSyncResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/components/schemas/CheckinSyncResult" } } }, "required": [ "results" ] }, "CheckinSyncResult": { "type": "object", "properties": { "client_scan_id": { "type": "string" }, "outcome": { "type": "string", "enum": [ "recorded", "already_recorded", "superseded", "revoked_since_manifest", "unknown_code", "wrong_event" ] }, "checkin_id": { "type": [ "string", "null" ], "pattern": "^chk_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "winning_scan": { "$ref": "#/components/schemas/CheckinWinner" }, "superseded_scan": { "$ref": "#/components/schemas/CheckinWinner" } }, "required": [ "client_scan_id", "outcome", "checkin_id" ] }, "CheckinWinner": { "type": "object", "properties": { "checkin_id": { "type": "string", "pattern": "^chk_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "scanned_at": { "type": "string", "format": "date-time" }, "door_pass_id": { "type": [ "string", "null" ], "pattern": "^key_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "door_pass_name": { "type": "string", "minLength": 1 } }, "required": [ "checkin_id", "scanned_at", "door_pass_id", "door_pass_name" ] }, "CheckinSync": { "type": "object", "properties": { "scans": { "type": "array", "items": { "type": "object", "properties": { "client_scan_id": { "type": "string", "minLength": 1, "maxLength": 64 }, "code": { "type": "string", "minLength": 1 }, "code_hash": { "type": "string", "pattern": "^[a-fA-F0-9]{64}$" }, "scanned_at": { "type": "string", "format": "date-time" }, "manual": { "type": "boolean", "default": false } }, "required": [ "client_scan_id", "scanned_at" ] }, "minItems": 1, "maxItems": 500 } }, "required": [ "scans" ] }, "CheckinList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Checkin" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Manifest": { "type": "object", "properties": { "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "generated_at": { "type": "string", "format": "date-time" }, "refresh_after": { "type": "string", "format": "date-time" }, "entries": { "type": "array", "items": { "$ref": "#/components/schemas/ManifestEntry" } } }, "required": [ "event_id", "generated_at", "refresh_after", "entries" ] }, "ManifestEntry": { "type": "object", "properties": { "code_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "position_id": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": { "type": "string" }, "checked_in_at": { "type": [ "string", "null" ], "format": "date-time" }, "buyer_name": { "type": [ "string", "null" ] }, "masked_email": { "type": [ "string", "null" ] }, "order_id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "required": [ "code_hash", "position_id", "description", "checked_in_at", "buyer_name", "masked_email", "order_id" ] }, "Quote": { "type": "object", "properties": { "mode": { "type": "string", "enum": [ "preview", "checkout_quote" ] }, "created": { "type": "string", "format": "date-time" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "subject": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "authenticated", "anonymous" ] }, "customer_id": { "type": [ "string", "null" ], "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "external_ref": { "type": [ "string", "null" ] } }, "required": [ "kind", "customer_id", "external_ref" ] }, "line_items": { "type": "array", "items": { "$ref": "#/components/schemas/QuoteLineItem" } }, "applied_effects": { "type": "array", "items": { "$ref": "#/components/schemas/PriceEffect" } }, "unapplied_effects": { "type": "array", "items": { "$ref": "#/components/schemas/PriceEffect" } }, "superseded_effect_ids": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "rejected_codes": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string" }, "reason": { "type": "string", "enum": [ "not_found", "inactive", "not_yet_valid", "expired", "not_applicable", "currency_mismatch", "max_uses_reached", "per_customer_limit_reached" ] } }, "required": [ "code", "reason" ] } }, "totals": { "type": "object", "properties": { "list_subtotal_minor": { "type": "integer", "minimum": 0 }, "discount_minor": { "type": "integer", "minimum": 0 }, "subtotal_minor": { "type": "integer", "minimum": 0 }, "booking_fee_minor": { "type": "integer", "minimum": 0 }, "platform_fee_minor": { "type": "integer", "minimum": 0 }, "total_minor": { "type": "integer", "minimum": 0 } }, "required": [ "list_subtotal_minor", "discount_minor", "subtotal_minor", "booking_fee_minor", "platform_fee_minor", "total_minor" ] }, "degraded": { "type": "boolean" }, "degraded_providers": { "type": "array", "items": { "type": "string", "enum": [ "discount_codes", "membership", "external" ] } } }, "required": [ "mode", "created", "currency", "subject", "line_items", "applied_effects", "unapplied_effects", "superseded_effect_ids", "rejected_codes", "totals", "degraded", "degraded_providers" ] }, "QuoteLineItem": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": { "type": "string" }, "quantity": { "type": "integer", "exclusiveMinimum": 0 }, "unit_list_price_minor": { "type": "integer", "minimum": 0 }, "unit_price_minor": { "type": "integer", "minimum": 0 }, "list_subtotal_minor": { "type": "integer", "minimum": 0 }, "discount_minor": { "type": "integer", "minimum": 0 }, "subtotal_minor": { "type": "integer", "minimum": 0 }, "booking_fee_minor": { "type": "integer", "minimum": 0 }, "platform_fee_minor": { "type": "integer", "minimum": 0 }, "effect_ids": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "sellable": { "type": "boolean" }, "blocked_reason": { "type": [ "string", "null" ], "enum": [ "gated", "inactive", "sale_not_started", "sale_ended", "approval_required", "event_cancelled", null ] } }, "required": [ "item_id", "event_id", "description", "quantity", "unit_list_price_minor", "unit_price_minor", "list_subtotal_minor", "discount_minor", "subtotal_minor", "booking_fee_minor", "platform_fee_minor", "effect_ids", "sellable", "blocked_reason" ] }, "PriceEffect": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "provider_kind": { "type": "string", "enum": [ "discount_codes", "membership", "external" ] }, "provider_id": { "type": [ "string", "null" ], "pattern": "^ep_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "type": { "type": "string", "enum": [ "percent_off", "amount_off", "price_override", "fee_waiver", "unlock" ] }, "state": { "type": "string", "enum": [ "applied", "unapplied" ] }, "source": { "type": [ "object", "null" ], "properties": { "kind": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "ref": { "type": [ "string", "null" ] }, "plan_id": { "type": [ "string", "null" ], "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "membership_id": { "type": [ "string", "null" ], "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "plan_name": { "type": [ "string", "null" ], "minLength": 1 }, "display": { "type": [ "string", "null" ], "minLength": 1 }, "benefit_id": { "type": [ "string", "null" ], "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "required": [ "kind", "label", "ref" ] }, "requires": { "type": [ "object", "null" ], "properties": { "kind": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "ref": { "type": [ "string", "null" ] }, "plan_id": { "type": [ "string", "null" ], "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "membership_id": { "type": [ "string", "null" ], "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "plan_name": { "type": [ "string", "null" ], "minLength": 1 }, "display": { "type": [ "string", "null" ], "minLength": 1 }, "benefit_id": { "type": [ "string", "null" ], "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "required": [ "kind", "label", "ref" ] }, "description": { "type": "string", "minLength": 1 }, "stackable": { "type": "boolean" }, "consumable": { "type": "boolean" }, "redemption_ref": { "type": [ "string", "null" ], "minLength": 1 }, "percent_bps": { "type": [ "integer", "null" ] }, "amount_minor": { "type": [ "integer", "null" ] }, "currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$" }, "price_override_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "applies_to_item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "applies_to_event_ids": { "type": "array", "items": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "unlocks_item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } } }, "required": [ "id", "provider_kind", "provider_id", "type", "state", "source", "requires", "description", "stackable", "consumable", "redemption_ref", "percent_bps", "amount_minor", "currency", "price_override_minor", "applies_to_item_ids", "applies_to_event_ids", "unlocks_item_ids" ] }, "MembershipPlanList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MembershipPlan" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "MembershipPlan": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "price_minor": { "type": "integer", "minimum": 0 }, "interval": { "type": [ "string", "null" ], "enum": [ "month", "year", null ], "description": "How often a paid plan renews. Null for a free plan (`price_minor` 0), which never renews." }, "percent_off_bps": { "type": [ "integer", "null" ], "minimum": 0 }, "unlocks_gated_items": { "type": "boolean" }, "active": { "type": "boolean" }, "enrollment_open": { "type": "boolean", "description": "The owner's switch for new signups, independent of `active`. False closes the plan to new joins while existing members keep their price, billing and benefits." }, "member_cap": { "type": [ "integer", "null" ], "exclusiveMinimum": 0, "description": "Optional cohort size. When that many places have been taken the plan stops enrolling, and stays closed even if a member later leaves, until an owner changes the cap or clears it. Null is uncapped." }, "enrollment": { "$ref": "#/components/schemas/MembershipPlanEnrollment" }, "required_plan_id": { "type": [ "string", "null" ], "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The plan whose active membership a customer must hold to join this one, or null when joining needs no other membership. Checked only at the join: losing the required membership later changes no existing membership." }, "exclusive_group": { "type": [ "string", "null" ], "description": "The name of the exclusive group this plan belongs to, or null when ungrouped. Plans of this organizer that share a name are alternatives: a customer can hold only one ongoing (not canceled) membership among them." }, "grace_days": { "type": "integer", "minimum": 0, "maximum": 365, "description": "Benefit grace period in whole days (0 to 365). When an `active` member's ordinary renewal payment fails the membership becomes `past_due` (its status stays truthful) and keeps this plan's benefits for this many days from the moment the failure is recorded; successful payment ends the overdue episode, and benefits stop at the deadline otherwise. 0, the default, means no grace: benefits stop at the failure. Paid plans only: a free plan (`price_minor` 0) has nothing to renew and refuses a value above 0. The window is fixed when an overdue episode starts, so editing this setting never lengthens or shortens an episode already running." }, "attendance_rule": { "$ref": "#/components/schemas/AttendanceRule" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "name", "currency", "price_minor", "interval", "percent_off_bps", "unlocks_gated_items", "active", "enrollment_open", "member_cap", "enrollment", "required_plan_id", "exclusive_group", "grace_days", "attendance_rule", "created_at", "updated_at", "metadata" ] }, "MembershipPlanEnrollment": { "type": "object", "properties": { "status": { "type": "string", "enum": [ "open", "closed", "full" ], "description": "`open`: a new customer can join. `closed`: the owner closed enrollment (`enrollment_open` false). `full`: the plan has a `member_cap` and every place is taken or held by a join awaiting its first payment. Closed wins over full. Independent of `active`. For a plan with an `attendance_rule` this object describes nothing: such a plan is earned, not joined, and every join answers `membership_plan_earned_only` whatever this says." }, "places_left": { "type": [ "integer", "null" ], "minimum": 0, "description": "Places still available under `member_cap`, counting taken places and unexpired holds; null when the plan has no cap. A hold from an unpaid join frees its place if the payment is abandoned, so this can rise again until the cohort fills." } }, "required": [ "status", "places_left" ] }, "AttendanceRule": { "type": [ "object", "null" ], "properties": { "threshold": { "type": "integer", "minimum": 1, "maximum": 1000, "description": "How many distinct events a customer must have attended. Several tickets, orders or scans for one event are one event." }, "window_months": { "type": "integer", "minimum": 1, "maximum": 120, "description": "The rolling lookback, in whole calendar months ending now (UTC). There is no calendar-year reset: the window slides." }, "retention": { "type": "string", "enum": [ "keep", "maintain" ], "description": "`keep`: once earned the membership stays until someone ends it, however old the visits get. `maintain`: it ends when the customer stops qualifying and is earned again by qualifying again." }, "scope": { "type": "string", "enum": [ "all_events", "selected_events" ], "description": "`all_events`: every event of the organizer counts. `selected_events`: only events that name this plan (`PUT /v1/events/{id}/qualifying_plans/{plan_id}`), including events not created yet." } }, "required": [ "threshold", "window_months", "retention", "scope" ], "description": "Optional attendance rule of a free plan: customers who attend enough events earn a membership of the plan, with no join. Only a free plan (`price_minor` 0) can have one. Send null to remove it; the memberships already earned stay and are never ended by the removed rule. Changing the rule re-evaluates the organizer's customers (grants to those who now qualify and, under `maintain`, ends earned memberships that no longer do), at most 200 customers in the request and the rest within minutes." }, "MembershipPlanGroupList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MembershipPlanGroup" } } }, "required": [ "data" ] }, "MembershipPlanGroup": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "membership_plan_group" ] }, "name": { "type": "string" }, "plan_ids": { "type": "array", "items": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": "Every plan of the organizer currently in the group, active or not." }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "membership_ids": { "type": "array", "items": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": "The customer's ongoing memberships in the group (two or more), oldest first." } }, "required": [ "customer_id", "membership_ids" ] }, "description": "Customers who already hold more than one ongoing membership in the group, for example from before the group was configured. The engine never resolves them: cancel or let one end through the normal membership operations. Empty when the group is consistent." } }, "required": [ "object", "name", "plan_ids", "conflicts" ] }, "MembershipList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Membership" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Membership": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "membership" ] }, "plan_id": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "status": { "type": "string", "enum": [ "incomplete", "active", "past_due", "paused", "canceled" ] }, "current_period_end": { "type": [ "string", "null" ], "format": "date-time" }, "cancel_at_period_end": { "type": "boolean" }, "started_at": { "type": [ "string", "null" ], "format": "date-time" }, "ended_at": { "type": [ "string", "null" ], "format": "date-time" }, "grace_started_at": { "type": [ "string", "null" ], "format": "date-time", "description": "When this overdue episode's benefit grace began: the moment the engine recorded the failed ordinary renewal of a previously `active` membership whose plan has `grace_days` above 0. Null when no grace is running or was ever granted for the current status. Fixed for the whole episode: retries, duplicate or out-of-order provider events and card updates never restart it. Cleared when the membership leaves `past_due`." }, "grace_ends_at": { "type": [ "string", "null" ], "format": "date-time", "description": "The instant the episode's benefit grace ends (exclusive: benefits stop at this time). Fixed when the episode starts from the plan's `grace_days` then. Stays on a `past_due` membership after it passes, so a partner can say when benefits stopped; null once the membership leaves `past_due`. A reading of this field never changes `status`, which stays `past_due` throughout." }, "in_grace": { "type": "boolean", "description": "True when the membership is `past_due` and the current time is inside its grace window, so it still gets the plan's benefits. Evaluated when the membership is read, with no provider event needed for the window to lapse." }, "next_charge_at": { "type": [ "string", "null" ], "format": "date-time", "description": "When the membership is next charged: the join's `first_charge_at` until that first charge, then the renewal date. A `past_due` membership's failed invoice is retried on Stripe's schedule before then. Null when nothing will be charged: a free membership, one set to cancel at the period end, `paused`, `canceled`, or a join whose first payment is being made now." }, "source": { "type": "string", "enum": [ "joined", "earned" ], "description": "`earned` when the plan's attendance rule granted the membership; `joined` for every membership a customer joined, paid or free." }, "price_minor": { "type": "integer", "minimum": 0, "description": "The price of the membership's next charge, in minor units of the plan's currency: the plan's price when the customer joined, then each new price of the plan (`POST /v1/membership_plans/{id}/price`) once the membership has been moved to it. 0 for a free membership. An invoice already open when the plan was repriced (an overdue renewal, an unpaid first payment) keeps the amount it was created with." }, "price_applies_at": { "type": [ "string", "null" ], "format": "date-time", "description": "When the membership is first charged its `price_minor` after a reprice of its plan: its next renewal after it was moved, or the next charge a later `next_charge` request moved or made before that renewal. Null when its plan was never repriced since it joined, and for a membership moved while `paused`, which is charged the new price when it resumes; a resume that moves it itself sets it to the resume." }, "created_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "object", "plan_id", "customer_id", "status", "current_period_end", "cancel_at_period_end", "started_at", "ended_at", "grace_started_at", "grace_ends_at", "in_grace", "next_charge_at", "source", "price_minor", "price_applies_at", "created_at", "metadata" ] }, "MembershipCreated": { "type": "object", "properties": { "membership": { "$ref": "#/components/schemas/Membership" }, "payment": { "$ref": "#/components/schemas/MembershipPayment" }, "setup": { "$ref": "#/components/schemas/MembershipSetup" } }, "required": [ "membership", "payment", "setup" ] }, "MembershipPayment": { "type": [ "object", "null" ], "properties": { "payment_intent_client_secret": { "type": "string" }, "connected_account_id": { "type": [ "string", "null" ], "minLength": 1, "description": "The Stripe account to start Stripe.js with (`stripeAccount`): the organizer's connected account the membership is charged on, or null when it is charged on Lissen's platform account, which Stripe.js is started without." }, "publishable_key": { "type": "string", "minLength": 1 } }, "required": [ "payment_intent_client_secret", "connected_account_id", "publishable_key" ], "description": "Credentials for confirming the first payment. Null when the plan is free (the membership is already active) and when the join gave `first_charge_at` (see `setup`). For a join with `saved_payment_method` charged now it is present only while the bank asks the member to authenticate (handle the PaymentIntent's next action with Stripe.js); null once the card paid." }, "MembershipSetup": { "type": [ "object", "null" ], "properties": { "setup_intent_client_secret": { "type": "string", "description": "Confirm it with Stripe.js (`confirmSetup` with the Payment Element) to save the member's card for the first charge." }, "connected_account_id": { "type": [ "string", "null" ], "minLength": 1, "description": "The Stripe account to start Stripe.js with (`stripeAccount`): the organizer's connected account the membership is charged on, or null when it is charged on Lissen's platform account, which Stripe.js is started without." }, "publishable_key": { "type": "string", "minLength": 1 } }, "required": [ "setup_intent_client_secret", "connected_account_id", "publishable_key" ], "description": "Present only when the join gave `first_charge_at` without `saved_payment_method`: credentials for saving the member's card, which is charged on that date. Nothing is charged now. The membership is `incomplete` until the card is saved, then `active`. Null when the join named a saved card: that card is already the one charged on the date." }, "MembershipPaymentMethodUpdateSession": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "membership_payment_method_update_session" ] }, "membership_id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "url": { "type": "string", "format": "uri" } }, "required": [ "object", "membership_id", "url" ] }, "MembershipResumed": { "type": "object", "properties": { "membership": { "$ref": "#/components/schemas/Membership" }, "payment": { "allOf": [ { "$ref": "#/components/schemas/MembershipPayment" }, { "description": "Present only while the membership is still `paused` and its restart invoice is open and payable: confirm this payment to restore the membership. Null once the membership is active, or when no payment is currently payable." } ] } }, "required": [ "membership", "payment" ] }, "MembershipNextCharge": { "type": "object", "properties": { "membership": { "$ref": "#/components/schemas/Membership" }, "charge_attempt": { "$ref": "#/components/schemas/MembershipChargeAttempt" } }, "required": [ "membership", "charge_attempt" ] }, "MembershipChargeAttempt": { "type": [ "object", "null" ], "properties": { "outcome": { "type": "string", "enum": [ "paid", "failed", "requires_action" ], "description": "`paid`: the charge succeeded. `failed`: the card was declined. `requires_action`: the member's bank asked them to authenticate, which cannot happen off-session; Stripe does not retry such a payment, so send the member to a payment-method update." }, "decline_code": { "type": [ "string", "null" ], "description": "The provider's decline code of a failed attempt (for example `insufficient_funds`), when it gave one." } }, "required": [ "outcome", "decline_code" ], "description": "How the charge of `at: now` went. Null for a moved date, and when nothing was charged because the overdue invoice was already paid." }, "MembershipBenefitList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MembershipBenefit" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "MembershipBenefit": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "membership_benefit" ] }, "plan_id": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "kind": { "type": "string", "enum": [ "percent_off", "unlock", "guest_invitation", "waitlist_priority", "fee_waiver" ] }, "percent_off_bps": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 10000 }, "guest_allowance": { "type": [ "object", "null" ], "properties": { "units": { "type": "integer", "minimum": 1 }, "mode": { "type": "string", "enum": [ "per_event", "per_period" ] }, "period": { "type": [ "string", "null" ], "enum": [ "week", "month", "year", null ] } }, "required": [ "units", "mode", "period" ] }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "object", "plan_id", "name", "kind", "percent_off_bps", "created_at", "updated_at", "metadata" ] }, "MembershipBenefitAssignmentList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MembershipBenefitAssignment" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "MembershipBenefitAssignment": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^mba_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "membership_benefit_assignment" ] }, "benefit_id": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "scope": { "type": "string", "enum": [ "event", "items" ] }, "item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" } }, "required": [ "id", "object", "benefit_id", "event_id", "scope", "item_ids", "created_at", "updated_at" ] }, "InvitationPoolList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/InvitationPool" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "InvitationPool": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^ivp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "invitation_pool" ] }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "label": { "type": [ "string", "null" ] }, "external_ref": { "type": [ "string", "null" ] }, "limit_units": { "type": "integer", "minimum": 0 }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} }, "used_units": { "type": "integer", "minimum": 0, "description": "Ticket units issued against the pool so far, across every allocation joined to it, less the units you returned with `POST /v1/invitation_usages/{id}/returns`. Issued tickets keep counting even if later canceled or transferred: the engine never gives a unit back by itself." }, "remaining_units": { "type": "integer", "minimum": 0, "description": "`limit_units` minus `used_units`, never below zero." } }, "required": [ "id", "object", "event_id", "label", "external_ref", "limit_units", "created_at", "updated_at", "metadata", "used_units", "remaining_units" ] }, "InvitationAllocationList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/InvitationAllocation" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "InvitationAllocation": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^iva_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "invitation_allocation" ] }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "pool_id": { "type": [ "string", "null" ], "pattern": "^ivp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "label": { "type": [ "string", "null" ] }, "external_ref": { "type": [ "string", "null" ] }, "limit_units": { "type": "integer", "minimum": 0 }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} }, "used_units": { "type": "integer", "minimum": 0, "description": "Ticket units issued against this allocation so far, less the units you returned with `POST /v1/invitation_usages/{id}/returns`. Issued tickets keep counting even if later canceled or transferred: the engine never gives a unit back by itself." }, "remaining_units": { "type": "integer", "minimum": 0, "description": "`limit_units` minus `used_units`, never below zero. Ignores the pool." }, "available_units": { "type": "integer", "minimum": 0, "description": "What a comp against this allocation can issue right now: `remaining_units`, capped by the pool's remaining units when the allocation joined one. Ordinary event capacity is a separate limit and is not counted." } }, "required": [ "id", "object", "event_id", "pool_id", "label", "external_ref", "limit_units", "created_at", "updated_at", "metadata", "used_units", "remaining_units", "available_units" ] }, "MembershipQualifyingEventList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MembershipQualifyingEvent" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "MembershipQualifyingEvent": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^mqe_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "membership_qualifying_event" ] }, "plan_id": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "created_at": { "type": "string", "format": "date-time" } }, "required": [ "id", "object", "plan_id", "event_id", "created_at" ] }, "MembershipQualification": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "membership_qualification" ] }, "plan_id": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "attendance_rule": { "$ref": "#/components/schemas/AttendanceRule" }, "visits_counted": { "type": "integer", "minimum": 0, "description": "Distinct events that count toward the rule right now: attended inside the window and, for `selected_events`, selected for this plan." }, "threshold": { "type": "integer", "minimum": 1, "description": "`attendance_rule.threshold`, repeated so progress reads as `visits_counted` of `threshold`." }, "window_start": { "type": "string", "format": "date-time", "description": "Inclusive start of the rolling window." }, "window_end": { "type": "string", "format": "date-time", "description": "The instant the window and the count were computed." }, "qualified": { "type": "boolean", "description": "Whether `visits_counted` reaches `threshold` now. Independent of whether a membership exists: a `keep` membership outlives qualification, and an explicit removal can leave a qualified customer without one." }, "qualified_until": { "type": [ "string", "null" ], "format": "date-time", "description": "When the customer stops qualifying if they attend nothing more: the instant the threshold-th most recent counted visit leaves the window. Null while not qualified. A forecast: a `maintain` membership ends on the first evaluation at or after it (within minutes)." }, "visits": { "type": "array", "items": { "type": "object", "properties": { "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "first_admitted_at": { "type": "string", "format": "date-time" } }, "required": [ "event_id", "first_admitted_at" ] }, "description": "The counted visits, newest first, each dated by its earliest admitted scan." }, "membership_id": { "type": [ "string", "null" ], "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The customer's live (not canceled) membership of this plan, if any." }, "earned": { "type": "boolean", "description": "Whether that membership was earned by the rule (`source` `earned`). False when there is no membership or the customer joined." } }, "required": [ "object", "plan_id", "customer_id", "attendance_rule", "visits_counted", "threshold", "window_start", "window_end", "qualified", "qualified_until", "visits", "membership_id", "earned" ] }, "EventCancellationPolicy": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^ecp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "event_cancellation_policy" ] }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "stop_new_sales": { "type": "boolean" }, "close_pending_checkouts": { "type": "boolean" }, "refund_paid_tickets": { "type": "boolean" }, "disable_admission": { "type": "boolean" }, "notify_attendees": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" } }, "required": [ "id", "object", "event_id", "stop_new_sales", "close_pending_checkouts", "refund_paid_tickets", "disable_admission", "notify_attendees", "created_at", "updated_at" ] }, "EventCancellationPolicyPut": { "type": "object", "properties": { "stop_new_sales": { "type": "boolean", "description": "When the event is cancelled, refuse new checkout sessions for it. When false, cancelling does not stop sales." }, "close_pending_checkouts": { "type": "boolean", "description": "When the event is cancelled, expire its open checkouts under the normal payment lifecycle (a checkout whose payment has started is never expired). When false, they keep their ordinary lifecycle." }, "refund_paid_tickets": { "type": "boolean", "description": "When the event is cancelled, return the money for its paid tickets as money-only refunds, so a ticket stays usable unless `disable_admission` is also set. When false, no refund is issued automatically." }, "disable_admission": { "type": "boolean", "description": "When the event is cancelled, refuse entry at the door and leave the event out of door manifests. Tickets are not revoked and no money moves. When false, cancelling does not affect admission." }, "notify_attendees": { "type": "boolean", "description": "When the event is cancelled, request a cancellation notice for each order with tickets to the event through the notification integration and the activity feed. Internal activity is recorded either way. When false, no attendee notice is requested." } }, "required": [ "stop_new_sales", "close_pending_checkouts", "refund_paid_tickets", "disable_admission", "notify_attendees" ], "additionalProperties": false }, "EventCancellation": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^ecn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "event_cancellation" ] }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "status": { "type": "string", "enum": [ "in_progress", "completed", "needs_attention" ] }, "reason": { "type": "string" }, "actor": { "type": "object", "properties": { "kind": { "type": "string" }, "id": { "type": "string" } }, "required": [ "kind", "id" ] }, "policy": { "type": "object", "properties": { "stop_new_sales": { "type": "boolean" }, "close_pending_checkouts": { "type": "boolean" }, "refund_paid_tickets": { "type": "boolean" }, "disable_admission": { "type": "boolean" }, "notify_attendees": { "type": "boolean" } }, "required": [ "stop_new_sales", "close_pending_checkouts", "refund_paid_tickets", "disable_admission", "notify_attendees" ] }, "actions": { "type": "array", "items": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "stop_new_sales", "close_pending_checkouts", "refund_paid_tickets", "disable_admission", "notify_attendees" ] }, "enabled": { "type": "boolean" }, "status": { "type": "string", "enum": [ "pending", "completed", "failed", "skipped" ] }, "attempts": { "type": "integer", "minimum": 0 }, "total": { "type": [ "integer", "null" ], "minimum": 0 }, "completed": { "type": "integer", "minimum": 0 }, "last_error": { "type": [ "string", "null" ] }, "completed_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "action", "enabled", "status", "attempts", "total", "completed", "last_error", "completed_at" ] } }, "cancelled_at": { "type": "string", "format": "date-time" }, "completed_at": { "type": [ "string", "null" ], "format": "date-time" } }, "required": [ "id", "object", "event_id", "status", "reason", "actor", "policy", "actions", "cancelled_at", "completed_at" ] }, "EventCancel": { "type": "object", "properties": { "reason": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Why the event is cancelled, for the organizer's own record. It is kept on the cancellation and its activity and is never sent to attendees." }, "confirm": { "type": "boolean", "enum": [ true ], "description": "Must be `true`: cancelling cannot be undone from the API, so the caller states that it means it." } }, "required": [ "reason", "confirm" ], "additionalProperties": false }, "QuotaAvailability": { "type": "object", "properties": { "quota_id": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "size": { "type": [ "integer", "null" ], "minimum": 0, "description": "null means deliberate unlimited capacity." }, "issued": { "type": "integer", "minimum": 0, "description": "Live positions drawing on this quota." }, "in_baskets": { "type": "integer", "minimum": 0, "description": "Units claimed by live holds. Liveness is the hold status, not the clock: an expired-but-unswept hold still blocks." }, "available": { "type": [ "integer", "null" ], "minimum": 0, "description": "size minus issued minus in_baskets, floored at zero; null when the quota is unlimited." }, "state": { "$ref": "#/components/schemas/AvailabilityState" } }, "required": [ "quota_id", "size", "issued", "in_baskets", "available", "state" ] }, "AvailabilityState": { "type": "string", "enum": [ "available", "in_baskets", "gone" ] }, "QuotaAvailabilityList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/QuotaAvailability" } } }, "required": [ "data" ] }, "ItemIssuanceList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/ItemIssuance" } } }, "required": [ "data" ] }, "ItemIssuance": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "issued": { "type": "integer", "minimum": 0, "description": "Live positions of this item." } }, "required": [ "item_id", "issued" ] }, "CheckoutSessionCreated": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "status": { "type": "string", "enum": [ "open", "payment_pending", "payment_processing", "completed", "expired", "payment_refused" ] }, "created": { "type": "string", "format": "date-time" }, "customer_id": { "type": [ "string", "null" ], "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$" }, "line_items": { "type": "array", "items": { "$ref": "#/components/schemas/CheckoutSessionLineItem" } }, "quote": { "allOf": [ { "$ref": "#/components/schemas/Quote" }, { "type": [ "object", "null" ] } ] }, "total_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "booking_fee_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "platform_fee_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "payment_method_types": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "hold_id": { "type": [ "string", "null" ], "pattern": "^hld_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "hosted_url": { "type": [ "string", "null" ] }, "return_url": { "type": [ "string", "null" ] }, "psp_refs": { "type": "object", "additionalProperties": {} }, "locked_at": { "type": [ "string", "null" ], "format": "date-time" }, "expires_at": { "type": "string", "format": "date-time" }, "completed_at": { "type": [ "string", "null" ], "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} }, "client_secret": { "type": "string", "description": "The buyer-plane bearer for this session: scoped to it, expiring with it, and never returned by any other endpoint or present in an activity payload. Retrying this request with the same Idempotency-Key replays the IDENTICAL response, this field included — the stored body is encrypted at rest rather than stripped, and is purged when the session reaches a terminal state." }, "url": { "type": "string", "description": "The hosted checkout page for this session, carrying the client secret in the URL fragment. Replayed identically." } }, "required": [ "id", "status", "created", "customer_id", "currency", "line_items", "quote", "total_minor", "booking_fee_minor", "platform_fee_minor", "payment_method_types", "hold_id", "hosted_url", "return_url", "psp_refs", "locked_at", "expires_at", "completed_at", "metadata", "client_secret", "url" ] }, "CheckoutSessionLineItem": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0 }, "unit_list_price_minor": { "type": "integer", "minimum": 0 } }, "required": [ "item_id", "quantity", "unit_list_price_minor" ] }, "CheckoutSessionList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/CheckoutSession" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "CheckoutSession": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "status": { "type": "string", "enum": [ "open", "payment_pending", "payment_processing", "completed", "expired", "payment_refused" ] }, "created": { "type": "string", "format": "date-time" }, "customer_id": { "type": [ "string", "null" ], "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$" }, "line_items": { "type": "array", "items": { "$ref": "#/components/schemas/CheckoutSessionLineItem" } }, "quote": { "allOf": [ { "$ref": "#/components/schemas/Quote" }, { "type": [ "object", "null" ] } ] }, "total_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "booking_fee_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "platform_fee_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "payment_method_types": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "hold_id": { "type": [ "string", "null" ], "pattern": "^hld_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "hosted_url": { "type": [ "string", "null" ] }, "return_url": { "type": [ "string", "null" ] }, "psp_refs": { "type": "object", "additionalProperties": {} }, "locked_at": { "type": [ "string", "null" ], "format": "date-time" }, "expires_at": { "type": "string", "format": "date-time" }, "completed_at": { "type": [ "string", "null" ], "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "status", "created", "customer_id", "currency", "line_items", "quote", "total_minor", "booking_fee_minor", "platform_fee_minor", "payment_method_types", "hold_id", "hosted_url", "return_url", "psp_refs", "locked_at", "expires_at", "completed_at", "metadata" ] }, "BuyerCheckoutSession": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "status": { "type": "string", "enum": [ "open", "payment_pending", "payment_processing", "completed", "expired", "payment_refused" ] }, "currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$" }, "organizer": { "type": "object", "properties": { "name": { "type": "string" }, "slug": { "type": "string" } }, "required": [ "name", "slug" ] }, "branding": { "$ref": "#/components/schemas/BuyerCheckoutBranding" }, "line_items": { "type": "array", "items": { "$ref": "#/components/schemas/BuyerCheckoutSessionLineItem" } }, "quote": { "allOf": [ { "$ref": "#/components/schemas/Quote" }, { "type": [ "object", "null" ] } ] }, "total_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "booking_fee_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "platform_fee_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "payment_method_types": { "type": "array", "items": { "type": "string" } }, "return_url": { "type": [ "string", "null" ] }, "expires_at": { "type": "string", "format": "date-time" }, "buyer_email": { "type": [ "string", "null" ] }, "order_id": { "type": [ "string", "null" ], "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "attested_buyer": { "anyOf": [ { "type": "object", "properties": { "email": { "type": "string" }, "reverify_required": { "type": "boolean" } }, "required": [ "email", "reverify_required" ] }, { "type": "null" } ], "description": "The attested Lissen buyer, or null. `reverify_required` is true once the attestation behind a saved card is older than ninety days; the wallet refuses to pay until the identity plane vouches again." } }, "required": [ "id", "status", "currency", "organizer", "branding", "line_items", "quote", "total_minor", "booking_fee_minor", "platform_fee_minor", "payment_method_types", "return_url", "expires_at", "buyer_email", "order_id", "attested_buyer" ] }, "BuyerCheckoutBranding": { "type": "object", "properties": { "logo_url": { "type": [ "string", "null" ], "format": "uri" }, "brand_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "accent_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "background_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "text_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "font_key": { "type": [ "string", "null" ], "enum": [ "inter", "system", "manrope", null ] }, "corner_radius": { "type": [ "integer", "null" ], "minimum": 0, "maximum": 48 } }, "required": [ "logo_url", "brand_color", "accent_color", "background_color", "text_color", "font_key", "corner_radius" ] }, "BuyerCheckoutSessionLineItem": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0 }, "unit_list_price_minor": { "type": "integer", "minimum": 0 }, "item_name": { "type": "string" }, "event": { "anyOf": [ { "$ref": "#/components/schemas/BuyerCheckoutEvent" }, { "type": "null" } ] } }, "required": [ "item_id", "quantity", "unit_list_price_minor", "item_name", "event" ] }, "BuyerCheckoutEvent": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "starts_at": { "type": "string", "format": "date-time" }, "venue_name": { "type": "string" }, "min_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 }, "max_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 }, "max_tickets_per_customer": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 } }, "required": [ "id", "name", "starts_at", "venue_name", "min_tickets_per_order", "max_tickets_per_order", "max_tickets_per_customer" ] }, "BuyerPaymentCredentials": { "type": "object", "properties": { "payment_intent_client_secret": { "type": "string", "description": "Confirms the Payment Element in the buyer's browser. Fetched immediately before confirmation, which is also when the engine re-syncs the intent's amount to the session's contractual quote." }, "connected_account_id": { "type": [ "string", "null" ], "description": "The organizer's connected account when charges are made directly on it — the organizer is the merchant of record — so Stripe.js must be initialised with it. Null when the payment is made on the Lissen platform account: initialise Stripe.js without a connected account." }, "publishable_key": { "type": "string", "description": "The platform publishable key for this organizer's mode — the one credential that legitimately leaves the engine." }, "payment_method_types": { "type": "array", "items": { "type": "string" }, "description": "Exactly what the Element renders. Delayed-notification methods such as bank debits appear only when the event is far enough away for the payment to clear before its doors open." } }, "required": [ "payment_intent_client_secret", "connected_account_id", "publishable_key", "payment_method_types" ] }, "BuyerIdentity": { "type": "object", "properties": { "attested": { "type": "boolean", "enum": [ true ], "description": "Always true — a refused token is an error, never an unattested 200." }, "email": { "type": "string", "description": "The verified address the identity plane vouched for. The session's customer dossier now carries it." }, "saved_cards": { "type": "array", "items": { "$ref": "#/components/schemas/BuyerSavedCard" }, "description": "The cards this buyer has saved with Lissen, across every organizer. Empty when they have no wallet yet — which is the ordinary first-purchase case, not an error." }, "reverify_required": { "type": "boolean", "description": "True when the attestation is older than ninety days. Saved cards are still listed, but paying with one is refused until the identity plane vouches again." } }, "required": [ "attested", "email", "saved_cards", "reverify_required" ] }, "BuyerSavedCard": { "type": "object", "properties": { "id": { "type": "string" }, "brand": { "type": "string" }, "last4": { "type": "string" }, "exp_month": { "type": "integer", "minimum": 1, "maximum": 12 }, "exp_year": { "type": "integer" } }, "required": [ "id", "brand", "last4", "exp_month", "exp_year" ] }, "BuyerIdentityCleared": { "type": "object", "properties": { "attested": { "type": "boolean", "enum": [ false ] } }, "required": [ "attested" ] }, "BuyerEnrolment": { "type": "object", "properties": { "enrolled": { "type": "boolean", "description": "True only when the identity plane holds a verified identity for this address AND that identity has at least one saved card. Everything else — unknown, unverified, no wallet, over the probe budget — is false." } }, "required": [ "enrolled" ] }, "BuyerWalletSetup": { "type": "object", "properties": { "client_secret": { "type": "string", "description": "A PLATFORM SetupIntent's client secret: the new card is entered on the Lissen platform account, never on the organizer's. Confirm it with Stripe.js initialised WITHOUT a connected account." }, "publishable_key": { "type": "string", "description": "The platform publishable key for this organizer's mode." }, "connected_account_id": { "type": [ "string", "null" ], "description": "The organizer's connected Stripe account, where the payment itself is made. A checkout that asks the engine to confirm a saved card's payment (`confirm: \"server\"` on wallet/pay) makes its Radar session there first, with this key and this account. Null when the payment is made on the Lissen platform account (make the Radar session on Stripe.js initialised without a connected account), or while the organizer has no connected account." } }, "required": [ "client_secret", "publishable_key", "connected_account_id" ] }, "BuyerWalletPayment": { "type": "object", "properties": { "payment_intent_client_secret": { "type": "string", "description": "The session's own PaymentIntent, already pointed at the card. Confirm it on the Stripe.js instance for `connected_account_id`." }, "connected_account_id": { "type": [ "string", "null" ], "description": "The organizer's connected account when the charge is direct on it: Stripe.js must be initialised with it. Null when the payment is made on the Lissen platform account: initialise Stripe.js without a connected account." }, "publishable_key": { "type": "string" }, "payment_method_id": { "type": "string", "description": "The method to confirm with. For a direct charge, the CLONE on the connected account — not the id you sent: the platform method does not exist on the organizer's account. On the platform account, the platform method itself." }, "payment_intent_status": { "type": "string", "enum": [ "succeeded", "processing", "requires_action" ], "description": "Present only when the request asked for `confirm: \"server\"`: what the engine's confirmation left. `succeeded` or `processing` — the money moved; finalize the session. `requires_action` — the bank wants 3-D Secure: read the intent with `payment_intent_client_secret` on the Stripe.js instance for `connected_account_id` and handle its next action (a `redirect_to_url` to the checkout's bank-return page), then finalize. A declined card is not a status here but a 422 `payment_declined`." } }, "required": [ "payment_intent_client_secret", "connected_account_id", "publishable_key", "payment_method_id" ] }, "OrderList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Order" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Order": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "checkout_session_id": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "issuance": { "$ref": "#/components/schemas/OrderIssuance" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "total_minor": { "type": "integer", "minimum": 0 }, "booking_fee_minor": { "type": "integer", "minimum": 0 }, "platform_fee_minor": { "type": "integer", "minimum": 0 }, "payment_state": { "type": "string", "x-extensible-enum": [ "processing", "paid", "payment_failed", "refund_pending", "refunded" ] }, "buyer_email": { "type": "string" }, "buyer_name": { "type": [ "string", "null" ] }, "buyer_phone": { "type": [ "string", "null" ], "default": null }, "applied_effects": { "type": "array", "items": {} }, "positions": { "type": "array", "items": { "$ref": "#/components/schemas/Position" } }, "event": { "type": [ "object", "null" ], "properties": { "id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "starts_at": { "type": "string", "format": "date-time" }, "timezone": { "type": "string" }, "venue_name": { "type": "string" }, "venue_address": { "type": [ "string", "null" ] } }, "required": [ "id", "name", "starts_at", "timezone", "venue_name", "venue_address" ] }, "psp_refs": { "type": "object", "additionalProperties": {} }, "created": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} }, "amount_refunded_minor": { "type": "integer", "minimum": 0, "description": "Money returned by completed refunds and by Stripe Dashboard refunds awaiting staff assignment, in minor units." }, "amount_refundable_minor": { "type": "integer", "minimum": 0, "description": "What a new refund can still return: the order total less completed, processing and failed-but-not-retried refunds and Dashboard refunds awaiting staff assignment. Zero unless `payment_state` is `paid` or `refund_pending`." } }, "required": [ "id", "customer_id", "checkout_session_id", "issuance", "currency", "total_minor", "booking_fee_minor", "platform_fee_minor", "payment_state", "buyer_email", "buyer_name", "applied_effects", "positions", "event", "psp_refs", "created", "metadata", "amount_refunded_minor", "amount_refundable_minor" ] }, "OrderIssuance": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "checkout", "comp" ], "x-extensible-enum": [ "checkout", "comp" ], "description": "`checkout` for an order a checkout session issued; `comp` for complimentary tickets issued directly with `POST /v1/comps`." }, "capacity_override": { "type": "boolean", "description": "True when the comp request set `capacity_override`, so its positions were issued without a capacity check. Always false for a checkout order." }, "invitation": { "type": "object", "properties": { "usage_id": { "type": "string", "pattern": "^ivu_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The invitation usage that charged the tickets. Give its units back with `POST /v1/invitation_usages/{id}/returns`. Present on fresh order reads and new responses; replays stored before invitation returns omit it." }, "allocation_id": { "type": [ "string", "null" ], "pattern": "^iva_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "pool_id": { "type": [ "string", "null" ], "pattern": "^ivp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The pool the allocation had joined when the tickets were issued; null when it had none." }, "units": { "type": "integer", "minimum": 1, "description": "Ticket units charged: the number of tickets on the order." }, "returned_units": { "type": "integer", "minimum": 0, "description": "Units you have given back of `units` with invitation returns. The engine never gives any back by itself, not even when the tickets are cancelled. Present on fresh order reads and new responses; replays stored before invitation returns omit it." } }, "required": [ "allocation_id", "pool_id", "units" ], "description": "Present only for a comp issued against an invitation allocation (`allocation_id` on the request): what the tickets were charged to. Absent otherwise." }, "guest_invitation": { "type": "object", "properties": { "benefit_id": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "membership_id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The membership that made the inviting member eligible." }, "inviter_customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The inviting member, whose allowance was spent. The holder of the tickets is the order's customer, a different role." }, "bucket": { "type": "string", "description": "The allowance bucket the units were counted in: `event:`, or the UTC calendar period such as `month:2026-10`." }, "usage_id": { "type": "string", "pattern": "^ivu_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The invitation usage that charged the tickets. Give its units back with `POST /v1/invitation_usages/{id}/returns`. Present on fresh order reads and new responses; replays stored before invitation returns omit it." }, "units": { "type": "integer", "minimum": 1, "description": "Ticket units charged: the number of tickets on the order." }, "returned_units": { "type": "integer", "minimum": 0, "description": "Units you have given back of `units` with invitation returns. The engine never gives any back by itself, not even when the tickets are cancelled. Present on fresh order reads and new responses; replays stored before invitation returns omit it." } }, "required": [ "benefit_id", "membership_id", "inviter_customer_id", "bucket", "units" ], "description": "Present only for tickets issued by `POST /v1/guest_invitations`: who invited, under which benefit and in which allowance bucket. Absent otherwise." } }, "required": [ "type", "capacity_override" ] }, "Position": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "order_id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "holder_customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The customer who holds the position now, from the same organizer. It starts as the order's customer and changes only through a transfer, an organizer's holder correction or a verified recipient's position claim; forwarding the ticket or its QR code does not change it." }, "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": { "type": "string" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "list_price_minor": { "type": "integer", "minimum": 0 }, "price_minor": { "type": "integer", "minimum": 0 }, "booking_fee_minor": { "type": "integer", "minimum": 0 }, "platform_fee_minor": { "type": "integer", "minimum": 0 }, "admission_code": { "type": [ "string", "null" ] }, "status": { "type": "string", "enum": [ "live", "revoked" ] }, "revoked_at": { "type": [ "string", "null" ], "format": "date-time" }, "revocation_reason": { "type": [ "string", "null" ] }, "event": { "type": [ "object", "null" ], "properties": { "id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "starts_at": { "type": "string", "format": "date-time" }, "timezone": { "type": "string" }, "venue_name": { "type": "string" }, "venue_address": { "type": [ "string", "null" ] } }, "required": [ "id", "name", "starts_at", "timezone", "venue_name", "venue_address" ] }, "created": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} }, "qr_image_url": { "type": [ "string", "null" ], "description": "Signed public PNG of the admission code, for an email or a wallet pass. Null for a non-admission or revoked position." } }, "required": [ "id", "order_id", "customer_id", "holder_customer_id", "item_id", "event_id", "description", "currency", "list_price_minor", "price_minor", "booking_fee_minor", "platform_fee_minor", "admission_code", "status", "revoked_at", "revocation_reason", "event", "created", "metadata", "qr_image_url" ] }, "PositionList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Position" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "CustomerList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Customer" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Customer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "email": { "type": [ "string", "null" ] }, "name": { "type": [ "string", "null" ] }, "phone": { "type": [ "string", "null" ], "default": null }, "external_ref": { "type": [ "string", "null" ] }, "created": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} }, "billing_contact_sync": { "$ref": "#/components/schemas/BillingContactSync" } }, "required": [ "id", "email", "name", "external_ref", "created", "metadata", "billing_contact_sync" ] }, "BillingContactSync": { "type": "object", "properties": { "status": { "type": "string", "x-extensible-enum": [ "not_linked", "pending", "synced", "failed" ], "description": "`not_linked`: the engine stores no Stripe Customer for this customer, so there is nothing to update. `pending`: a contact update has not yet reached every linked Stripe Customer; the engine keeps retrying. `synced`: nothing is outstanding for the linked Stripe Customers. `failed`: the latest contact update did not reach every linked Stripe Customer and the engine stopped retrying (retries ran out, Stripe refused the details, or a linked Stripe Customer no longer exists); sending the contact again retries it." }, "updated": { "type": [ "string", "null" ], "format": "date-time", "description": "When the status last changed; null before the first contact update." } }, "required": [ "status", "updated" ] }, "GuestInvitationUsageList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/GuestInvitationUsage" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "GuestInvitationUsage": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "guest_invitation_usage" ] }, "id": { "type": "string", "pattern": "^ivu_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "benefit_id": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "membership_id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The membership that made the member eligible when they invited." }, "inviter_customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The member whose allowance was spent." }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "order_id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The comp order issued to the guest; its positions are the issued tickets." }, "bucket": { "type": "string", "description": "The allowance bucket the units were counted in." }, "units": { "type": "integer", "minimum": 1, "description": "Ticket units the invitation took." }, "returned_units": { "type": "integer", "minimum": 0, "description": "Units you have given back of `units` with `POST /v1/invitation_usages/{id}/returns`. What still counts against the allowance is `units` minus `returned_units`." }, "created_at": { "type": "string", "format": "date-time" } }, "required": [ "object", "id", "benefit_id", "membership_id", "inviter_customer_id", "event_id", "order_id", "bucket", "units", "returned_units", "created_at" ] }, "GuestAllowance": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "guest_allowance" ] }, "benefit_id": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "membership_id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The member whose allowance this is." }, "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The event the bucket was worked out for. Null only for a `per_period` allowance read without one." }, "mode": { "type": "string", "enum": [ "per_event", "per_period" ] }, "period": { "type": [ "string", "null" ], "enum": [ "week", "month", "year", null ] }, "bucket": { "type": "object", "properties": { "key": { "type": "string", "description": "`event:` for `per_event`; the UTC calendar period for `per_period`, such as `week:2026-09-28`, `month:2026-10` or `year:2026`." }, "starts_at": { "type": [ "string", "null" ], "format": "date-time", "description": "Start of the period, inclusive. Null for `per_event`." }, "ends_at": { "type": [ "string", "null" ], "format": "date-time", "description": "End of the period, exclusive: when the allowance starts afresh. Null for `per_event`." } }, "required": [ "key", "starts_at", "ends_at" ], "description": "The allowance bucket the clock and the event put this member in." }, "limit_units": { "type": "integer", "minimum": 1, "description": "The configured allowance in ticket units, in force now." }, "used_units": { "type": "integer", "minimum": 0, "description": "Ticket units this member has invited in the bucket, less the units you returned with `POST /v1/invitation_usages/{id}/returns`. Issued tickets keep counting even if later canceled or transferred: the engine never restores an allowance by itself." }, "remaining_units": { "type": "integer", "minimum": 0, "description": "`limit_units` minus `used_units`, never below zero." } }, "required": [ "object", "benefit_id", "membership_id", "customer_id", "event_id", "mode", "period", "bucket", "limit_units", "used_units", "remaining_units" ] }, "GuestInvitation": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "guest_invitation" ] }, "inviter": { "type": "object", "properties": { "membership_id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "benefit_id": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "required": [ "membership_id", "customer_id", "benefit_id" ] }, "order": { "allOf": [ { "$ref": "#/components/schemas/Order" }, { "description": "The ordinary comp order issued to the recipient, with its positions. The recipient is its customer and the holder of every ticket. `issuance.guest_invitation` names the inviter, benefit and allowance bucket." } ] }, "allowance": { "allOf": [ { "$ref": "#/components/schemas/GuestAllowance" }, { "description": "The inviting member's allowance in the bucket after this invitation, as of the transaction that issued it." } ] } }, "required": [ "object", "inviter", "order", "allowance" ] }, "InvitationReturn": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^ivr_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "invitation_return" ] }, "usage_id": { "type": "string", "pattern": "^ivu_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The invitation usage the units were given back of." }, "order_id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The comp order the usage paid for. A return does not change it or its tickets." }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "units": { "type": "integer", "minimum": 1, "description": "Ticket units given back: each budget the usage was charged to can issue this many more." }, "created_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "object", "usage_id", "order_id", "event_id", "units", "created_at", "metadata" ] }, "InvitationReturnCreate": { "type": "object", "properties": { "units": { "type": "integer", "minimum": 1, "description": "Ticket units to give back. Omit it to give back every unit of the usage not yet returned. More than is left is refused with `invitation_return_exceeds_remaining`." }, "metadata": { "type": "object", "additionalProperties": {} } } }, "PositionTransferCreate": { "type": "object", "properties": { "acting_customer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 } }, "description": "The customer making the transfer, as your own authentication vouches for them: the engine customer id or your external_ref. It must be the position's current holder. An email is not accepted here; it is not proof of who is acting." }, "destination": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "An existing customer of this organizer." }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Your reference for an existing customer of this organizer. It must already exist; it is never created here." }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "A recipient you cannot vouch for. Finds or creates the organizer's anonymous customer for this address; a customer carrying an external_ref is never chosen by email. Once you have signed the recipient in and verified the address, `POST /v1/position_claims` gives them what it holds." }, "name": { "type": "string", "minLength": 1, "maxLength": 200, "description": "The recipient's name, used only when the email creates a new customer." } }, "description": "Who will hold the position." } }, "required": [ "acting_customer", "destination" ] }, "PositionHolderCorrectionCreate": { "type": "object", "properties": { "destination": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "An existing customer of this organizer." }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Your reference for an existing customer of this organizer. It must already exist; it is never created here." }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "A recipient you cannot vouch for. Finds or creates the organizer's anonymous customer for this address; a customer carrying an external_ref is never chosen by email. Once you have signed the recipient in and verified the address, `POST /v1/position_claims` gives them what it holds." }, "name": { "type": "string", "minLength": 1, "maxLength": 200, "description": "The recipient's name, used only when the email creates a new customer." } }, "description": "Who will hold the position." }, "reason": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Why the organizer is correcting the holder. Recorded on the holder change and in the activity." } }, "required": [ "destination", "reason" ] }, "PositionClaim": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "position_claim" ] }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The customer that holds the claimed positions now." }, "anonymous_customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The anonymous customer the positions were sent to. Equal to `customer_id` when that customer took your reference." }, "positions": { "type": "array", "items": { "$ref": "#/components/schemas/Position" }, "description": "Every position the claim gave the customer, revoked ones excluded. Admitted positions are included." } }, "required": [ "object", "customer_id", "anonymous_customer_id", "positions" ] }, "PositionClaimCreate": { "type": "object", "properties": { "external_ref": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Your reference for the customer you have signed in. When no customer of this organizer carries it yet, the anonymous customer for `email` takes it." }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "An address your own authentication has verified belongs to that customer. Never pass an address the customer only typed, or one a sender typed." } }, "required": [ "external_ref", "email" ] }, "PositionHolderChangeList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/PositionHolderChange" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "PositionHolderChange": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^phc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "kind": { "type": "string", "enum": [ "transfer", "correction", "claim" ], "x-extensible-enum": [ "transfer", "correction", "claim" ], "description": "`transfer` when the holder passed the position on; `correction` when the organizer overrode the holder; `claim` when a verified recipient claimed what was sent to their address." }, "from_customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "to_customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "reason": { "type": [ "string", "null" ] }, "effective_at": { "type": "string", "format": "date-time" }, "object": { "type": "string", "enum": [ "position_holder_change" ] }, "position_id": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "actor": { "type": "object", "properties": { "kind": { "type": "string" }, "id": { "type": "string" } }, "required": [ "kind", "id" ], "description": "Who made the change: the API key for a transfer or a claim; for a correction, the API key or the organizer owner or Lissen staff member signed in." }, "request_id": { "type": [ "string", "null" ] } }, "required": [ "id", "kind", "from_customer_id", "to_customer_id", "reason", "effective_at", "object", "position_id", "actor", "request_id" ] }, "AttendanceList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Attendance" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Attendance": { "type": "object", "properties": { "object": { "type": "string", "enum": [ "attendance" ] }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "first_admitted_at": { "type": "string", "format": "date-time", "description": "The earliest scan among the admissions that support the visit." }, "checkin_ids": { "type": "array", "items": { "type": "string", "pattern": "^chk_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "minItems": 1, "description": "Every admitted check-in supporting the visit, earliest scan first. Voiding all of them removes the visit." } }, "required": [ "object", "customer_id", "event_id", "first_admitted_at", "checkin_ids" ] }, "CheckinCreditCorrectionCreate": { "type": "object", "properties": { "customer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "An existing customer of this organizer." }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Your reference for an existing customer of this organizer. It must already exist; it is never created here." }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "A recipient you cannot vouch for. Finds or creates the organizer's anonymous customer for this address; a customer carrying an external_ref is never chosen by email. Once you have signed the recipient in and verified the address, `POST /v1/position_claims` gives them what it holds." }, "name": { "type": "string", "minLength": 1, "maxLength": 200, "description": "The recipient's name, used only when the email creates a new customer." } }, "description": "The customer the admission should credit: an existing customer by `id` or `external_ref`, or an address, which finds or creates the organizer's anonymous customer for it." }, "reason": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Why the organizer is correcting the credit. Recorded on the credit change and in the activity." } }, "required": [ "customer", "reason" ] }, "WaitlistEntry": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^wl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "waitlist_entry" ] }, "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": [ "string", "null" ] }, "email": { "type": "string" }, "phone": { "type": [ "string", "null" ], "default": null }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "default": 1 }, "requires_approval": { "type": "boolean", "default": false }, "status": { "type": "string", "enum": [ "waiting", "invited", "converted", "lapsed", "rejected" ] }, "promoted_at": { "type": [ "string", "null" ], "format": "date-time" }, "closed_at": { "type": [ "string", "null" ], "format": "date-time", "default": null }, "invitation_expires_at": { "type": [ "string", "null" ], "format": "date-time" }, "checkout_session_id": { "type": [ "string", "null" ], "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "checkout_url": { "type": [ "string", "null" ], "format": "uri" }, "event": { "type": [ "object", "null" ], "properties": { "id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string" }, "starts_at": { "type": "string", "format": "date-time" }, "venue_name": { "type": "string" } }, "required": [ "id", "name", "starts_at", "venue_name" ] }, "customer_external_ref": { "type": [ "string", "null" ], "default": null }, "created_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "object", "item_id", "event_id", "name", "email", "status", "promoted_at", "invitation_expires_at", "checkout_session_id", "checkout_url", "event", "created_at", "metadata" ] }, "WaitlistEntryList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/WaitlistEntry" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Refund": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^rfd_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "refund" ] }, "order_id": { "type": [ "string", "null" ], "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The order a ticket refund returns money for. Null for a refund of a membership payment, which names `membership_charge_id` instead." }, "membership_id": { "type": [ "string", "null" ], "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The membership whose payment a membership refund returns money for. Null for a ticket refund." }, "membership_charge_id": { "type": [ "string", "null" ], "pattern": "^mch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The membership charge a membership refund returns money against. Null for a ticket refund. A membership refund is always `money_only`: it never cancels or pauses the membership, revokes a position or changes its renewal." }, "status": { "type": "string", "enum": [ "processing", "completed", "failed" ] }, "type": { "type": "string", "description": "`refund_and_revoke` returns each position's remaining refundable amount and revokes it: the ticket no longer admits. `money_only` returns `amount_minor` against the positions and leaves them live: same ticket, same holder, same capacity.", "x-extensible-enum": [ "refund_and_revoke", "money_only" ] }, "amount_minor": { "type": "integer", "minimum": 0 }, "fee_refund_minor": { "type": "integer", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "external": { "type": "boolean" }, "reason": { "type": "string", "enum": [ "requested_by_customer", "duplicate", "fraudulent" ] }, "failure_reason": { "type": [ "string", "null" ] }, "position_ids": { "type": "array", "items": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "psp_refs": { "type": "object", "additionalProperties": {} }, "created": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "object", "order_id", "membership_id", "membership_charge_id", "status", "type", "amount_minor", "fee_refund_minor", "currency", "external", "reason", "failure_reason", "position_ids", "psp_refs", "created", "metadata" ] }, "RefundList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Refund" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "MembershipChargeList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/MembershipCharge" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "MembershipCharge": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^mch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "membership_charge" ] }, "membership_id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "amount_minor": { "type": "integer", "exclusiveMinimum": 0, "description": "The invoice amount paid, in minor units." }, "application_fee_minor": { "type": "integer", "minimum": 0, "description": "The platform fee taken on the payment." }, "tax_minor": { "type": "integer", "minimum": 0, "description": "The tax included in `amount_minor`, from the invoice Stripe Tax calculated: VAT when the organizer charges tax on memberships (`membership_tax`), otherwise 0." }, "amount_refunded_minor": { "type": "integer", "minimum": 0, "description": "Money returned by completed refunds of this charge, including Dashboard refunds reconciled from Stripe." }, "amount_refundable_minor": { "type": "integer", "minimum": 0, "description": "What a new refund can still return: the amount paid less completed and processing refunds. Zero when the charge carries no payment reference." }, "refundable": { "type": "boolean", "description": "True when a refund can be requested now: the charge has a payment reference and money is left." }, "psp_refs": { "type": "object", "additionalProperties": {} }, "created": { "type": "string", "format": "date-time" } }, "required": [ "id", "object", "membership_id", "currency", "amount_minor", "application_fee_minor", "tax_minor", "amount_refunded_minor", "amount_refundable_minor", "refundable", "psp_refs", "created" ] }, "DisputeList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Dispute" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Dispute": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^dsp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "dispute" ] }, "order_id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "status": { "type": "string", "enum": [ "open", "won", "lost" ] }, "amount_minor": { "type": "integer", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "reason": { "type": [ "string", "null" ] }, "evidence_due_by": { "type": [ "string", "null" ], "format": "date-time" }, "psp_refs": { "type": "object", "additionalProperties": {} }, "created": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "object", "order_id", "status", "amount_minor", "currency", "reason", "evidence_due_by", "psp_refs", "created", "metadata" ] }, "LedgerEntryList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/LedgerEntry" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "LedgerEntry": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^led_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "object": { "type": "string", "enum": [ "ledger_entry" ] }, "entry_type": { "type": "string", "enum": [ "ticket_sale", "membership_charge", "refund", "platform_fee", "platform_fee_refund", "dispute_debit", "dispute_reversal", "dispute_fee" ] }, "amount_minor": { "type": "integer", "exclusiveMinimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "order_id": { "type": [ "string", "null" ], "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "position_ids": { "type": "array", "items": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "psp_refs": { "type": "object", "additionalProperties": {} }, "created": { "type": "string", "format": "date-time" } }, "required": [ "id", "object", "entry_type", "amount_minor", "currency", "order_id", "position_ids", "psp_refs", "created" ] }, "NotificationProvider": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^np_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "kind": { "type": "string", "enum": [ "customerio" ] }, "credentials_configured": { "type": "boolean", "description": "Whether credentials are stored. The credentials themselves are write-only and are never returned." }, "messages": { "$ref": "#/components/schemas/NotificationMessages" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "id", "kind", "credentials_configured", "messages", "metadata" ] }, "NotificationMessages": { "type": "object", "properties": { "order_confirmation": { "$ref": "#/components/schemas/NotificationMessageWiring" }, "payment_failure_followup": { "$ref": "#/components/schemas/NotificationMessageWiring" }, "waitlist_invitation": { "$ref": "#/components/schemas/NotificationMessageWiring" }, "refund_confirmation": { "$ref": "#/components/schemas/NotificationMessageWiring" }, "waitlist_joined": { "$ref": "#/components/schemas/NotificationMessageWiring" }, "waitlist_rejected": { "$ref": "#/components/schemas/NotificationMessageWiring" }, "event_cancelled": { "$ref": "#/components/schemas/NotificationMessageWiring" } } }, "NotificationMessageWiring": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Disabled is identical to unmapped: the message is silent. There is no separate suppression concept." }, "provider_message_ref": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Opaque provider-side template/transactional-message identifier. The engine never validates it; a typo surfaces as a provider delivery error in the attempt log." }, "enabled_at": { "type": "string", "format": "date-time", "description": "When this message type was last switched on. Engine-managed and read-only. Activities created before it are never sent, so enabling a message type does not retro-mail the scan window." } }, "required": [ "enabled", "provider_message_ref" ] }, "NotificationProviderCredentials": { "type": "object", "properties": { "app_api_key": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Customer.io App API key for the organizer's OWN workspace. Write-only: it is never returned by any endpoint." }, "region": { "type": "string", "enum": [ "eu", "us" ], "description": "Customer.io workspace region. Defaults to eu." } }, "required": [ "app_api_key" ], "additionalProperties": false, "writeOnly": true }, "NotificationMessagesInput": { "type": "object", "properties": { "order_confirmation": { "$ref": "#/components/schemas/NotificationMessageWiringInput" }, "payment_failure_followup": { "$ref": "#/components/schemas/NotificationMessageWiringInput" }, "waitlist_invitation": { "$ref": "#/components/schemas/NotificationMessageWiringInput" }, "refund_confirmation": { "$ref": "#/components/schemas/NotificationMessageWiringInput" }, "waitlist_joined": { "$ref": "#/components/schemas/NotificationMessageWiringInput" }, "waitlist_rejected": { "$ref": "#/components/schemas/NotificationMessageWiringInput" }, "event_cancelled": { "$ref": "#/components/schemas/NotificationMessageWiringInput" } }, "additionalProperties": false }, "NotificationMessageWiringInput": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Disabled is identical to unmapped: the message is silent. There is no separate suppression concept." }, "provider_message_ref": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Opaque provider-side template/transactional-message identifier. The engine never validates it; a typo surfaces as a provider delivery error in the attempt log." } }, "required": [ "enabled", "provider_message_ref" ], "additionalProperties": false }, "ActivityNotificationList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/ActivityNotification" } } }, "required": [ "data" ] }, "ActivityNotification": { "type": "object", "properties": { "message_type": { "type": "string", "enum": [ "order_confirmation", "payment_failure_followup", "waitlist_invitation", "refund_confirmation", "waitlist_joined", "waitlist_rejected", "event_cancelled" ] }, "eligible": { "type": "boolean", "description": "Whether the engine sends this message for this activity: the message type is wired on the organizer's notification provider, and the activity was created at or after both the connection and the type's `enabled_at`. The six-hour give-up horizon and the trigger's own condition (a revocation that was not a payment failure, a refund of a membership payment) are checked when the engine plans and sends, not here. Once false for an activity it stays false: switching the type on again stamps a later `enabled_at`." }, "state": { "type": "string", "enum": [ "none", "in_flight", "settled" ], "description": "`settled` once the attempt log has a terminal outcome; `in_flight` while a send holds its claim, from just before the provider call until the outcome is recorded; otherwise `none`: never tried, or the provider refused the last try and the engine may try again. An eligible message reads `none` until the engine plans it, within about a minute of the activity." }, "outcome": { "type": [ "string", "null" ], "enum": [ "sent", "permanent_failure", "gave_up", "ambiguous", "suppressed_nonprod", null ], "x-extensible-enum": [ "sent", "permanent_failure", "gave_up", "ambiguous", "suppressed_nonprod" ], "description": "The terminal outcome once `settled`, otherwise null: `sent`, `permanent_failure` (rejected, or a required field was missing), `gave_up` (the six-hour horizon passed), `ambiguous` (the provider may have taken it but no answer was recorded, so it is never sent again) or `suppressed_nonprod` (a non-production deployment may not mail that address)." }, "sender": { "type": [ "string", "null" ], "enum": [ "engine", "organizer", null ], "x-extensible-enum": [ "engine", "organizer" ], "description": "Who holds the claim while `in_flight`, or recorded the outcome once `settled`: `engine`, the notification sink, or `organizer`, your own sender, which claims through `POST /v1/activities/{id}/notifications/claim`. Null while `none`." } }, "required": [ "message_type", "eligible", "state", "outcome", "sender" ] }, "NotificationSendClaim": { "type": "object", "properties": { "message_type": { "type": "string", "enum": [ "order_confirmation", "payment_failure_followup", "waitlist_invitation", "refund_confirmation", "waitlist_joined", "waitlist_rejected", "event_cancelled" ] }, "status": { "type": "string", "enum": [ "claimed", "in_flight", "settled" ], "description": "`claimed`: the send is yours. Call your provider, then settle the claim with `claim_id`. `in_flight`: `sender` holds a claim on it; do not send it. `settled`: it is finished with `outcome`; do not send it." }, "claim_id": { "type": [ "string", "null" ], "description": "Your claim when `status` is `claimed`, otherwise null. Opaque: pass it back to settle the claim." }, "sender": { "type": "string", "enum": [ "engine", "organizer" ], "x-extensible-enum": [ "engine", "organizer" ], "description": "Who holds the claim (`claimed`, `in_flight`) or recorded the outcome (`settled`): `organizer`, your own sender, or `engine`, the notification sink." }, "outcome": { "type": [ "string", "null" ], "enum": [ "sent", "permanent_failure", "gave_up", "ambiguous", "suppressed_nonprod", null ], "x-extensible-enum": [ "sent", "permanent_failure", "gave_up", "ambiguous", "suppressed_nonprod" ], "description": "The terminal outcome once `settled`, otherwise null: `sent`, `permanent_failure` (rejected, or a required field was missing), `gave_up` (the six-hour horizon passed), `ambiguous` (the provider may have taken it but no answer was recorded, so it is never sent again) or `suppressed_nonprod` (a non-production deployment may not mail that address)." } }, "required": [ "message_type", "status", "claim_id", "sender", "outcome" ] }, "NotificationSendClaimRequest": { "type": "object", "properties": { "message_type": { "type": "string", "enum": [ "order_confirmation", "payment_failure_followup", "waitlist_invitation", "refund_confirmation", "waitlist_joined", "waitlist_rejected", "event_cancelled" ], "description": "The message to send: one the activity's type triggers." } }, "required": [ "message_type" ] }, "NotificationSendSettlement": { "type": "object", "properties": { "message_type": { "type": "string", "enum": [ "order_confirmation", "payment_failure_followup", "waitlist_invitation", "refund_confirmation", "waitlist_joined", "waitlist_rejected", "event_cancelled" ], "description": "The message the claim is on." }, "claim_id": { "type": "string", "pattern": "^[1-9][0-9]{0,14}$", "description": "The `claim_id` the claim answered." }, "result": { "type": "string", "enum": [ "sent", "released", "ambiguous" ], "description": "`sent`: the provider accepted the message. `released`: it definitely did not (it refused the request, or the connection never opened), so the claim is given back and a later claim may send it. `ambiguous`: whether it did is unknown (a timeout, a server error, an answer without a delivery id). It is recorded as such and never sent again by either sender." }, "provider_message_id": { "type": "string", "minLength": 1, "maxLength": 255, "description": "With `sent` only: the provider's id for the delivery, kept with the outcome." } }, "required": [ "message_type", "claim_id", "result" ] }, "EntitlementProviderList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/EntitlementProvider" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "EntitlementProvider": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^ep_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "kind": { "type": "string", "enum": [ "external" ] }, "quote_url": { "type": "string", "maxLength": 2048, "format": "uri", "description": "Where the engine asks the provider for price effects on a cart." }, "commit_url": { "type": [ "string", "null" ], "maxLength": 2048, "format": "uri", "description": "Where the engine commits a consumable effect at issuance. Null for a provider that never returns one." }, "signing_secret_configured": { "type": "boolean", "description": "Whether a signing secret is stored. The secret itself is write-only and is never returned." }, "status": { "type": "string", "enum": [ "active", "disabled" ], "description": "A disabled provider is never called. Active is the consent to call it." }, "metadata": { "type": "object", "additionalProperties": {} }, "created": { "type": "string", "format": "date-time" }, "updated": { "type": "string", "format": "date-time" } }, "required": [ "id", "kind", "quote_url", "commit_url", "signing_secret_configured", "status", "metadata", "created", "updated" ] }, "EntitlementProviderCreate": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "external" ] }, "quote_url": { "type": "string", "maxLength": 2048, "format": "uri" }, "commit_url": { "type": [ "string", "null" ], "maxLength": 2048, "format": "uri" }, "signing_secret": { "type": "string", "minLength": 32, "maxLength": 256, "description": "The key the engine signs its callbacks to this provider with. Write-only: choose a random value of at least 32 characters, keep a copy for verifying signatures, and replace it here to rotate. It is stored encrypted and never returned.", "writeOnly": true }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "quote_url", "signing_secret" ] }, "WebhookEndpointList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/WebhookEndpoint" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "WebhookEndpoint": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^we_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "url": { "type": "string", "format": "uri" }, "enabled_types": { "type": "array", "items": { "type": "string" } }, "status": { "type": "string", "enum": [ "enabled", "disabled" ] }, "metadata": { "type": "object", "additionalProperties": {} }, "created": { "type": "string", "format": "date-time" }, "updated": { "type": "string", "format": "date-time" } }, "required": [ "id", "url", "enabled_types", "status", "metadata", "created", "updated" ] }, "WebhookEndpointCreated": { "allOf": [ { "$ref": "#/components/schemas/WebhookEndpoint" }, { "type": "object", "properties": { "secret": { "type": "string", "minLength": 1, "description": "Signing secret shown once. Store it before continuing." } }, "required": [ "secret" ] } ] }, "ConnectOnboardingLink": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "expires_at": { "type": "string", "format": "date-time" }, "psp_account_ref": { "type": "string" } }, "required": [ "url", "expires_at", "psp_account_ref" ] }, "ConnectAuthorization": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "expires_at": { "type": "string", "format": "date-time" } }, "required": [ "url", "expires_at" ] }, "ActivityList": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Activity" } }, "has_more": { "type": "boolean" } }, "required": [ "data", "has_more" ] }, "Activity": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^act_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "type": { "type": "string" }, "created": { "type": "string", "format": "date-time" }, "organizer_id": { "type": [ "string", "null" ], "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "actor": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "api_key", "door_pass", "staff", "system", "psp_webhook", "member" ] }, "id": { "type": "string" } }, "required": [ "kind", "id" ] }, "request_id": { "type": [ "string", "null" ], "format": "uuid" }, "livemode": { "type": "boolean" }, "data": { "type": "object", "properties": { "object": { "type": "object", "additionalProperties": {} }, "previous_attributes": { "type": "object", "additionalProperties": {} }, "redacted": { "type": "boolean", "enum": [ true ] } }, "required": [ "object" ] } }, "required": [ "id", "type", "created", "organizer_id", "actor", "request_id", "livemode", "data" ] } }, "parameters": {} }, "paths": { "/v1/events": { "get": { "tags": [ "Events" ], "summary": "List events", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A keyset page of events.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Events" ], "summary": "Create a event", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "starts_at": { "type": "string", "format": "date-time" }, "ends_at": { "type": [ "string", "null" ], "format": "date-time" }, "timezone": { "type": "string" }, "venue_name": { "type": "string", "minLength": 1 }, "venue_address": { "type": [ "string", "null" ] }, "metadata": { "type": "object", "additionalProperties": {} }, "min_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 }, "max_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 }, "max_tickets_per_customer": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 } }, "required": [ "name", "starts_at", "timezone", "venue_name" ] } } } }, "responses": { "201": { "description": "The created event.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Event" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}": { "get": { "tags": [ "Events" ], "summary": "Retrieve a event", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The event.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Event" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Events" ], "summary": "Update a event", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "starts_at": { "type": "string", "format": "date-time" }, "ends_at": { "type": [ "string", "null" ], "format": "date-time" }, "timezone": { "type": "string" }, "venue_name": { "type": "string", "minLength": 1 }, "venue_address": { "type": [ "string", "null" ] }, "metadata": { "type": "object", "additionalProperties": {} }, "min_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 }, "max_tickets_per_order": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 }, "max_tickets_per_customer": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 2147483647 } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated event.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Event" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/quotas": { "get": { "tags": [ "Quotas" ], "summary": "List quotas", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A keyset page of quotas.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuotaList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Quotas" ], "summary": "Create a quota", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "size": { "type": [ "integer", "null" ], "minimum": 0 }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "name", "size" ] } } } }, "responses": { "201": { "description": "The created quota.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Quota" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/quotas/{id}": { "get": { "tags": [ "Quotas" ], "summary": "Retrieve a quota", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "quo_0199c4e6-5c81-7d13-b7a0-4f8e2c6b9d34" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The quota.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Quota" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Quotas" ], "summary": "Update a quota", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "quo_0199c4e6-5c81-7d13-b7a0-4f8e2c6b9d34" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "size": { "type": [ "integer", "null" ], "minimum": 0 }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated quota.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Quota" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/items": { "get": { "tags": [ "Items" ], "summary": "List items", "description": "Newest first, id-keyset. Pass `event_id` for one event's items instead of paging through the organizer's whole catalogue.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only the items of this event. An event that does not exist under your organizer has none." }, "required": false, "description": "Only the items of this event. An event that does not exist under your organizer has none.", "name": "event_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A keyset page of items.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Items" ], "summary": "Create a item", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string", "minLength": 1 }, "price_minor": { "type": "integer", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "gated": { "type": "boolean" }, "active": { "type": "boolean" }, "sort_order": { "type": "integer" }, "sale_starts_at": { "type": [ "string", "null" ], "format": "date-time" }, "sale_ends_at": { "type": [ "string", "null" ], "format": "date-time" }, "opens_after_item_id": { "type": [ "string", "null" ], "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The other ticket type of the same event this one opens after, with `opens_when`. Set both or neither." }, "opens_when": { "type": [ "string", "null" ], "enum": [ "runs_out", "closes", "either", null ], "description": "`runs_out`: the other item's issued units reach the size of a quota it draws on (units in live baskets do not count). `closes`: the other item's `sale_ends_at` has passed. `either`: whichever comes first. Combined with `sale_starts_at`, the item opens at the earlier of the two; its own `sale_ends_at`, `active` and quotas still apply. Once opened by a trigger it stays open." }, "quota_ids": { "type": "array", "items": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "minItems": 1 }, "requires_approval": { "type": "boolean" }, "max_per_order": { "type": [ "integer", "null" ], "exclusiveMinimum": 0, "maximum": 100 }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "name", "price_minor", "currency", "quota_ids" ] } } } }, "responses": { "201": { "description": "The created item.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/items/{id}": { "get": { "tags": [ "Items" ], "summary": "Retrieve a item", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The item.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Items" ], "summary": "Update a item", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "event_id": { "type": [ "string", "null" ], "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": "string", "minLength": 1 }, "price_minor": { "type": "integer", "minimum": 0 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "gated": { "type": "boolean" }, "active": { "type": "boolean" }, "sort_order": { "type": "integer" }, "sale_starts_at": { "type": [ "string", "null" ], "format": "date-time" }, "sale_ends_at": { "type": [ "string", "null" ], "format": "date-time" }, "opens_after_item_id": { "type": [ "string", "null" ], "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The other ticket type of the same event this one opens after, with `opens_when`. Set both or neither." }, "opens_when": { "type": [ "string", "null" ], "enum": [ "runs_out", "closes", "either", null ], "description": "`runs_out`: the other item's issued units reach the size of a quota it draws on (units in live baskets do not count). `closes`: the other item's `sale_ends_at` has passed. `either`: whichever comes first. Combined with `sale_starts_at`, the item opens at the earlier of the two; its own `sale_ends_at`, `active` and quotas still apply. Once opened by a trigger it stays open." }, "quota_ids": { "type": "array", "items": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "minItems": 1 }, "requires_approval": { "type": "boolean" }, "max_per_order": { "type": [ "integer", "null" ], "exclusiveMinimum": 0, "maximum": 100 }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated item.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/fee_schedules": { "get": { "tags": [ "Fee schedules" ], "summary": "List fee schedules", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A keyset page of fee schedules.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeeScheduleList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/fee_schedules/{id}": { "get": { "tags": [ "Fee schedules" ], "summary": "Retrieve a fee schedule", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^fsc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "fsc_0199c4e7-9e42-7a58-8c26-1d5b3f7a0e69" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The fee schedule.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeeSchedule" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/discount_codes": { "get": { "tags": [ "Discount codes" ], "summary": "List discount codes", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A keyset page of discount codes.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscountCodeList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Discount codes" ], "summary": "Create a discount code", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "code": { "type": "string", "minLength": 1 }, "effect_type": { "type": "string", "enum": [ "percent", "amount", "unlock", "price_override", "fee_waiver" ] }, "percent_bps": { "type": [ "integer", "null" ], "minimum": 0 }, "amount_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "amount_currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$" }, "stackable": { "type": "boolean" }, "valid_from": { "type": [ "string", "null" ], "format": "date-time" }, "valid_until": { "type": [ "string", "null" ], "format": "date-time" }, "max_uses": { "type": [ "integer", "null" ], "exclusiveMinimum": 0 }, "max_uses_per_customer": { "type": [ "integer", "null" ], "exclusiveMinimum": 0 }, "active": { "type": "boolean" }, "item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "event_ids": { "type": "array", "items": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "code", "effect_type" ] } } } }, "responses": { "201": { "description": "The created discount code.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscountCode" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/discount_codes/{id}": { "get": { "tags": [ "Discount codes" ], "summary": "Retrieve a discount code", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^dsc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "dsc_0199c4e8-1a73-7c94-9f38-6b2d4e8c5a71" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The discount code.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscountCode" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Discount codes" ], "summary": "Update a discount code", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^dsc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "dsc_0199c4e8-1a73-7c94-9f38-6b2d4e8c5a71" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "code": { "type": "string", "minLength": 1 }, "effect_type": { "type": "string", "enum": [ "percent", "amount", "unlock", "price_override", "fee_waiver" ] }, "percent_bps": { "type": [ "integer", "null" ], "minimum": 0 }, "amount_minor": { "type": [ "integer", "null" ], "minimum": 0 }, "amount_currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$" }, "stackable": { "type": "boolean" }, "valid_from": { "type": [ "string", "null" ], "format": "date-time" }, "valid_until": { "type": [ "string", "null" ], "format": "date-time" }, "max_uses": { "type": [ "integer", "null" ], "exclusiveMinimum": 0 }, "max_uses_per_customer": { "type": [ "integer", "null" ], "exclusiveMinimum": 0 }, "active": { "type": "boolean" }, "item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "event_ids": { "type": "array", "items": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" } }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated discount code.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscountCode" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/branding": { "get": { "tags": [ "Branding" ], "summary": "Retrieve organizer branding", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The organizer branding tokens.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Branding" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Branding" ], "summary": "Update organizer branding", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "logo_url": { "type": [ "string", "null" ], "format": "uri" }, "brand_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "accent_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "background_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "text_color": { "type": [ "string", "null" ], "pattern": "^(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\\((?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]),\\s*(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\))$" }, "font_key": { "type": [ "string", "null" ], "enum": [ "inter", "system", "manrope", null ] }, "corner_radius": { "type": [ "integer", "null" ], "minimum": 0, "maximum": 48 }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated organizer branding tokens.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Branding" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/organizer": { "get": { "tags": [ "Organizer" ], "summary": "Retrieve the current organizer", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The current organizer profile.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Organizer" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Organizer" ], "summary": "Update the current organizer's settings", "description": "Sets whether this organizer sends its own order confirmations and replaces the origins allowed to embed its checkout component. Own order confirmations cannot be enabled while order_confirmation is enabled in the notification wiring; unwire it first. Embed origins must be exact https origins — no path, no trailing slash, no wildcard — and at most twenty. Name, slug, status and test mode are staff-managed and cannot be set here.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "embed_origins": { "type": "array", "items": { "type": "string", "maxLength": 255 }, "maxItems": 20, "description": "The exact https origins allowed to embed this organizer's checkout component, replaced wholesale. At most 20; an empty array means the component cannot be embedded anywhere." }, "own_order_confirmation": { "type": "boolean", "description": "The organizer sends its own order confirmations. While true the engine never sends `order_confirmation`, and the notification wiring refuses to map it." } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated organizer profile.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Organizer" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/public/organizers/{slug}/embed": { "get": { "tags": [ "Buyer plane" ], "summary": "Read an organizer's allowed embed origins", "description": "Public and cacheable for sixty seconds. Returns the exact https origins allowed to embed this organizer's checkout component; an empty list means it is not embeddable. An unknown slug is 404 `not_found`.", "parameters": [ { "schema": { "type": "string", "minLength": 1, "maxLength": 64 }, "required": true, "name": "slug", "in": "path" } ], "responses": { "200": { "description": "The organizer's allowed embed origins.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizerEmbed" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/public/positions/{id}/qr.png": { "get": { "tags": [ "Buyer plane" ], "summary": "A position's admission code as a QR image", "description": "Public. Returns a PNG of the position's admission QR code, for the `qr_image_url` the position carries. A missing or wrong signature, a revoked position and an unknown id are all 404 `not_found`.", "parameters": [ { "schema": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "minLength": 1, "maxLength": 128 }, "required": true, "name": "sig", "in": "query" } ], "responses": { "200": { "description": "The QR code, as a PNG.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "image/png": { "schema": { "type": "string", "format": "binary" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/organizers": { "post": { "tags": [ "Organizer" ], "summary": "Create an organizer", "description": "Provisioner keys only. Creates an organizer in the key's mode, grants this key on it, gives it the active fee schedules and the notification provider connection of `fee_schedules_from`, so its buyers get the same messages, and has it collect ticket and membership payments on Lissen's platform account. `Ticketing-Organizer` names any organizer the key holds. Safe to retry: the slug is the replay key, and creating a slug this key already created returns that organizer with 200.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizerCreate" } } } }, "responses": { "200": { "description": "The organizer this key already created with that slug.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Organizer" } } } }, "201": { "description": "The new organizer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Organizer" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/organizer/collection": { "patch": { "tags": [ "Organizer" ], "summary": "Set where the current organizer's payments are charged", "description": "Lissen staff and provisioner keys only. Sets the organizer's ticket and membership collection and its membership tax. A change applies to new payments: each existing payment, order and membership keeps the account that charged it. An organizer collecting on `connected_account` without a connected account cannot take paid sales.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizerCollectionUpdate" } } } }, "responses": { "200": { "description": "The organizer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Organizer" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/attendees": { "get": { "tags": [ "Events" ], "summary": "List an event's attendees", "description": "The holders of the event's live tickets, newest ticket first, id-keyset. Each entry carries the holder's name and email, the ticket type and whether the ticket has been scanned in; it deliberately carries no admission code, price, order, buyer or payment state. A revoked ticket is not an attendee. A signed-in event editor can read this for the events they manage; an event outside their access answers 404.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of attendees.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttendeeList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/door_passes": { "post": { "tags": [ "Door passes" ], "summary": "Create a door pass", "description": "An optional Idempotency-Key replays the same pass and bearer. Unkeyed requests create independent passes.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string" }, "required": false, "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoorPassCreate" } } } }, "responses": { "201": { "description": "The door pass and its bearer token; keyed retries replay the same token for one hour.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/DoorPass" }, { "type": "object", "properties": { "token": { "type": "string" } }, "required": [ "token" ] } ] } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "get": { "tags": [ "Door passes" ], "summary": "List door passes", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "event_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "active", "expired", "revoked" ] }, "required": false, "name": "status", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of door passes.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoorPassList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/door_passes/{id}": { "get": { "tags": [ "Door passes" ], "summary": "Retrieve a door pass", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^key_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The door pass.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoorPass" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/door_passes/{id}/revoke": { "post": { "tags": [ "Door passes" ], "summary": "Revoke a door pass", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^key_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The revoked door pass.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoorPass" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkins": { "post": { "tags": [ "Check-in" ], "summary": "Scan an admission code", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": false, "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckinCreate" } } } }, "responses": { "201": { "description": "An admitted check-in.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Checkin" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "get": { "tags": [ "Check-in" ], "summary": "List check-ins", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "event_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "admitted", "rejected", "superseded", "voided" ] }, "required": false, "name": "outcome", "in": "query" }, { "schema": { "type": "string", "pattern": "^key_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "door_pass_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "position_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "credited_customer_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of check-ins.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckinList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkins/sync": { "post": { "tags": [ "Check-in" ], "summary": "Synchronize offline scans", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": false, "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckinSync" } } } }, "responses": { "200": { "description": "The ordered result for each scan.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckinSyncResponse" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkins/{id}": { "get": { "tags": [ "Check-in" ], "summary": "Retrieve a check-in", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^chk_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The check-in.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Checkin" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkins/{id}/void": { "post": { "tags": [ "Check-in" ], "summary": "Void an admitted check-in", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^chk_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": false, "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The voided check-in.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Checkin" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/manifest": { "get": { "tags": [ "Check-in" ], "summary": "Download an event admission manifest", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": false, "description": "Required for API-key callers. Door-pass callers may omit it only when the pass has one organizer grant.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "description": "The ETag from the previous manifest response." }, "required": false, "description": "The ETag from the previous manifest response.", "name": "If-None-Match", "in": "header" } ], "responses": { "200": { "description": "The current manifest.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } }, "ETag": { "schema": { "type": "string" } }, "Cache-Control": { "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Manifest" } } } }, "304": { "description": "The manifest has not changed.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/quotes": { "post": { "tags": [ "Quotes" ], "summary": "Preview a quote", "description": "A non-binding preview: the same pricing engine a checkout runs, with no hold, no reservation and no state change. It therefore takes no Idempotency-Key and emits no activity. Effects carry provenance (`source`) when applied and `requires` when they are teasers; `degraded` is true when a provider failed open.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "line_items": { "type": "array", "items": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 100 } }, "required": [ "item_id", "quantity" ] }, "minItems": 1, "maxItems": 50 }, "codes": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "maxItems": 10 }, "customer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 } } } }, "required": [ "line_items" ] } } } }, "responses": { "200": { "description": "The previewed quote.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Quote" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_plans": { "get": { "tags": [ "Memberships" ], "summary": "List membership plans", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Membership plans.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipPlanList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Memberships" ], "summary": "Create a membership plan", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "price_minor": { "type": "integer", "minimum": 0, "description": "The price per interval in minor units. 0 makes a free plan: no payment, no connected account, no renewal." }, "interval": { "type": [ "string", "null" ], "enum": [ "month", "year", null ], "description": "Required for a paid plan. Omit or send null for a free plan." }, "percent_off_bps": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 10000 }, "unlocks_gated_items": { "type": "boolean" }, "active": { "type": "boolean" }, "enrollment_open": { "type": "boolean", "description": "Close (false) or reopen (true) the plan to new signups without deactivating it. Existing memberships are untouched." }, "member_cap": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 1000000, "description": "Cohort size: once this many places are taken the plan stops enrolling. Raising it offers only the new room; clearing it (null) makes the plan uncapped; setting one on an uncapped plan counts its live memberships as the first places." }, "required_plan_id": { "type": [ "string", "null" ], "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Optional join prerequisite: another plan of this organizer whose `active` membership the customer must hold when joining this plan. Send null to clear it. An unknown or other-organizer plan answers `invalid_reference`; the plan itself, or a plan that already requires this one, answers `invalid_request`." }, "exclusive_group": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 100, "description": "Optional exclusive group name (1 to 100 characters, surrounding spaces trimmed, compared exactly). Plans of this organizer with the same name are mutually exclusive alternatives: joining one is refused with `membership_group_conflict` while the customer holds an ongoing (not canceled) membership of another. Send null to leave a group. Changing it never cancels or edits an existing membership; existing conflicts are listed by `GET /v1/membership_plan_groups`." }, "grace_days": { "type": "integer", "minimum": 0, "maximum": 365, "description": "Benefit grace period in whole days (0 to 365). When an `active` member's ordinary renewal payment fails the membership becomes `past_due` (its status stays truthful) and keeps this plan's benefits for this many days from the moment the failure is recorded; successful payment ends the overdue episode, and benefits stop at the deadline otherwise. 0, the default, means no grace: benefits stop at the failure. Paid plans only: a free plan (`price_minor` 0) has nothing to renew and refuses a value above 0. The window is fixed when an overdue episode starts, so editing this setting never lengthens or shortens an episode already running." }, "attendance_rule": { "type": [ "object", "null" ], "properties": { "threshold": { "type": "integer", "minimum": 1, "maximum": 1000, "description": "How many distinct events a customer must have attended. Several tickets, orders or scans for one event are one event." }, "window_months": { "type": "integer", "minimum": 1, "maximum": 120, "description": "The rolling lookback, in whole calendar months ending now (UTC). There is no calendar-year reset: the window slides." }, "retention": { "type": "string", "enum": [ "keep", "maintain" ], "description": "`keep`: once earned the membership stays until someone ends it, however old the visits get. `maintain`: it ends when the customer stops qualifying and is earned again by qualifying again." }, "scope": { "type": "string", "enum": [ "all_events", "selected_events" ], "description": "`all_events`: every event of the organizer counts. `selected_events`: only events that name this plan (`PUT /v1/events/{id}/qualifying_plans/{plan_id}`), including events not created yet." } }, "required": [ "threshold", "window_months", "retention", "scope" ], "description": "Optional attendance rule of a free plan: customers who attend enough events earn a membership of the plan, with no join. Only a free plan (`price_minor` 0) can have one. Send null to remove it; the memberships already earned stay and are never ended by the removed rule. Changing the rule re-evaluates the organizer's customers (grants to those who now qualify and, under `maintain`, ends earned memberships that no longer do), at most 200 customers in the request and the rest within minutes." }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "name", "currency", "price_minor" ] } } } }, "responses": { "201": { "description": "The membership plan.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipPlan" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_plans/{id}": { "get": { "tags": [ "Memberships" ], "summary": "Retrieve a membership plan", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The membership plan.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipPlan" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Memberships" ], "summary": "Update a membership plan", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "percent_off_bps": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 10000 }, "unlocks_gated_items": { "type": "boolean" }, "active": { "type": "boolean" }, "enrollment_open": { "type": "boolean", "description": "Close (false) or reopen (true) the plan to new signups without deactivating it. Existing memberships are untouched." }, "member_cap": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 1000000, "description": "Cohort size: once this many places are taken the plan stops enrolling. Raising it offers only the new room; clearing it (null) makes the plan uncapped; setting one on an uncapped plan counts its live memberships as the first places." }, "required_plan_id": { "type": [ "string", "null" ], "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Optional join prerequisite: another plan of this organizer whose `active` membership the customer must hold when joining this plan. Send null to clear it. An unknown or other-organizer plan answers `invalid_reference`; the plan itself, or a plan that already requires this one, answers `invalid_request`." }, "exclusive_group": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 100, "description": "Optional exclusive group name (1 to 100 characters, surrounding spaces trimmed, compared exactly). Plans of this organizer with the same name are mutually exclusive alternatives: joining one is refused with `membership_group_conflict` while the customer holds an ongoing (not canceled) membership of another. Send null to leave a group. Changing it never cancels or edits an existing membership; existing conflicts are listed by `GET /v1/membership_plan_groups`." }, "grace_days": { "type": "integer", "minimum": 0, "maximum": 365, "description": "Benefit grace period in whole days (0 to 365). When an `active` member's ordinary renewal payment fails the membership becomes `past_due` (its status stays truthful) and keeps this plan's benefits for this many days from the moment the failure is recorded; successful payment ends the overdue episode, and benefits stop at the deadline otherwise. 0, the default, means no grace: benefits stop at the failure. Paid plans only: a free plan (`price_minor` 0) has nothing to renew and refuses a value above 0. The window is fixed when an overdue episode starts, so editing this setting never lengthens or shortens an episode already running." }, "attendance_rule": { "$ref": "#/components/schemas/AttendanceRule" }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated membership plan.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipPlan" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_plans/{id}/price": { "post": { "tags": [ "Memberships" ], "summary": "Change a membership plan's price", "description": "Changes a paid plan's price for new joins and for its existing members. The plan keeps its id, benefits, group, cap and every other setting; a new price is created at the payment provider in the plan's currency and interval, with the same tax treatment as the plan's current price, and joins from now on are charged it. Every live membership of the plan (`incomplete`, `active`, `past_due`, `paused`, including one scheduled to cancel) is then moved to it in the background, usually within minutes and the soonest renewals first: nothing is charged or prorated at the switch, and each member's next renewal after the move charges the new price. A renewal that falls before its member has been moved still charges the previous price, once. A paused member who resumes before being reached is moved by the resume. An invoice already open (an overdue renewal, an unpaid first payment) is charged at the amount it was created with, and the renewal after it at the new price; a paused member pays the new price when they resume. Each moved membership records `membership.updated` with its new `price_minor` and `price_applies_at`, and the plan records `membership_plan.updated`. A membership that joins while the members are being moved is moved too. To keep existing members on their price, create a new plan instead. The body takes `price_minor` only. Requires `Idempotency-Key` and organizer administrator authority. A free plan answers 422 `membership_plan_free`; a price of 0 is refused with `invalid_request`. Sending the plan's current price changes nothing.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "price_minor": { "type": "integer", "exclusiveMinimum": 0, "description": "The plan's new price per interval, in minor units of its currency. Above 0: a paid plan stays paid. The currency and interval never change." } }, "required": [ "price_minor" ], "additionalProperties": false } } } }, "responses": { "200": { "description": "The membership plan at its new price.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipPlan" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_plan_groups": { "get": { "tags": [ "Memberships" ], "summary": "List membership plan groups", "description": "Lists the organizer's exclusive plan groups (every distinct `exclusive_group` name in use) with their plans, and for each the customers who already hold more than one ongoing membership in it. A group is configuration on the plans, not a separate object, so this read is how an organizer sees what a group change left behind. It is read-only: the engine never cancels, replaces or edits a membership to resolve a conflict. Not paginated: an organizer has few groups, and at most 1000 conflicting customers are listed in total.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The exclusive plan groups.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipPlanGroupList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships": { "get": { "tags": [ "Memberships" ], "summary": "List memberships", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "customer_id", "in": "query" }, { "schema": { "type": "string", "minLength": 1, "maxLength": 255 }, "required": false, "name": "external_ref", "in": "query" }, { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "plan_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "incomplete", "active", "past_due", "paused", "canceled" ] }, "required": false, "name": "status", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Memberships.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Memberships" ], "summary": "Create a membership", "description": "Creates a connected-account subscription and returns the first invoice PaymentIntent secret for an in-place Payment Element confirmation. Calling again for a customer whose membership is still awaiting its first payment resumes that membership with fresh payment credentials instead of failing; an active membership answers membership_already_exists. Joining a free plan (price_minor 0) needs no connected account, creates no subscription and returns an active membership with payment null. A plan with a `required_plan_id` can be joined only by a customer who holds an `active` membership of that plan: otherwise the join answers 422 `membership_prerequisite_not_met` (`detail.required_plan_id` and `detail.required_plan_name` name the plan) and creates nothing, in Stripe or in the engine, for a paid and a free plan alike. A plan with an `exclusive_group` is refused with 409 `membership_group_conflict` (`detail.membership_id`, `detail.plan_id`, `detail.plan_name`, `detail.status` name the existing membership) while the customer holds an ongoing membership of another plan of that group, also before anything is created; joining the same plan again keeps answering `membership_already_exists`. A plan whose enrollment is closed (`enrollment_open` false) answers 409 `membership_enrollment_closed`, and a plan whose `member_cap` is reached answers 409 `membership_enrollment_full` (`detail.places_left` 0), before anything is created in Stripe or the engine; a paid join holds one place while its first payment is pending, so a plan can read full while unpaid joins hold the last places. Retrying an unfinished join resumes it with the place it already holds. A plan with an `attendance_rule` is earned, not joined: it answers 422 `membership_plan_earned_only` and the engine grants the membership when the customer qualifies.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "plan_id": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "customer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 }, "email": { "type": "string", "maxLength": 320, "format": "email" }, "name": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 }, "address": { "type": "object", "properties": { "country": { "type": "string", "pattern": "^[A-Z]{2}$", "description": "Two-letter country code (ISO 3166-1 alpha-2), for example `GB`." }, "postal_code": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Needed by Stripe Tax for some countries (the United States and Canada); not for the UK or the EU." } }, "required": [ "country" ], "description": "The fan's billing address, used only to tax a paid membership when the organizer charges tax on memberships (`membership_tax`). Give this or `ip_address`; the address wins when both are given." }, "ip_address": { "type": "string", "description": "The IP address the fan joined from, used to place them for tax when no address is given. Used only when the organizer charges tax on memberships." } }, "required": [ "email" ] }, "first_charge_at": { "type": "string", "format": "date-time", "description": "Paid plans only: charge the plan's full price first on this date instead of now. The join saves the member's card (confirm the returned `setup`) and charges nothing until then; renewals follow from this date. Must be in the future and no more than 730 days away (Stripe's limit). Refused for a free plan." }, "saved_payment_method": { "type": "object", "properties": { "stripe_customer_id": { "type": "string", "minLength": 1, "maxLength": 255, "description": "A Customer on the organizer's own connected Stripe account (`cus_…`), for example one an earlier shop saved the member's card on." }, "stripe_payment_method_id": { "type": "string", "minLength": 1, "maxLength": 255, "description": "A payment method already attached to that Customer (`pm_…`; a legacy `card_…` id works too). The engine never attaches one itself." } }, "required": [ "stripe_customer_id", "stripe_payment_method_id" ], "description": "Paid plans only: pay with a card already saved on the organizer's connected account instead of a new one. The Customer must exist (not deleted) with the payment method attached, and must not be linked to another customer (`stripe_customer_linked` names them); it is then tagged by the engine and used for this customer's later memberships. With `first_charge_at` the membership is `active` at once, with no `setup`, and nothing is charged until the date. Without it the card is charged now: the membership is `active` once paid; if the bank asks the member to authenticate, `payment` holds the payment's secret and the membership stays `incomplete` until it is paid; a decline answers `payment_declined` and creates nothing. Refused for a free plan, and when the organizer's memberships are charged on Lissen's platform account (`saved_payment_method_unavailable`)." }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "plan_id", "customer" ] } } } }, "responses": { "201": { "description": "The membership and payment credentials.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipCreated" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}": { "get": { "tags": [ "Memberships" ], "summary": "Retrieve a membership", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The membership.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Membership" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/payment_method_update_sessions": { "post": { "tags": [ "Memberships" ], "summary": "Create a hosted payment-method update for a membership", "description": "Returns a Stripe-hosted page where the member replaces the payment method their membership is billed with, then returns them to return_url. The engine reuses the membership's own connected-account customer; it creates no customer, subscription or charge, and the page offers nothing else (no cancellation, plan change or invoice history). The payment method is customer-wide on the organizer's connected account: it becomes the default for every membership subscription the engine holds for that customer, and each one that carries its own default is repointed at it once Stripe confirms the change (the update reaches the subscription shortly after the member returns, not before). The membership's plan, price and renewal date are never changed. For an overdue (`past_due`) membership the engine then makes one attempt to pay the open overdue invoice with the new card: when it is paid the membership returns to `active`; a decline leaves it `past_due` and Stripe's retries continue. Active, `past_due` and `paused` memberships qualify (a paused member whose restart payment failed can fix the card here, then resume). Free memberships have no payment method and answer `membership_not_billable`, as does a membership still awaiting its first payment. A canceled membership answers `membership_already_canceled`. A connected account that cannot host the page answers `payment_method_update_unavailable`; a transient provider fault answers a retryable `connect_provider_unavailable`. Takes no Idempotency-Key: every call opens a new session, and the returned `url` is Stripe-hosted, single-use and short-lived, so send the member there at once.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "return_url": { "type": "string", "format": "uri", "description": "Where Stripe returns the member after they finish or leave the hosted update. Same rules as a checkout session's return_url: HTTPS or the registered app callback." }, "customer_id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Optional guard: the customer the caller authenticated. When supplied it must be the membership's own customer, otherwise the answer is a 404 and no session is created." } }, "required": [ "return_url" ] } } } }, "responses": { "201": { "description": "The hosted payment-method update session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipPaymentMethodUpdateSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/cancel": { "post": { "tags": [ "Memberships" ], "summary": "Cancel a membership", "description": "A paid membership cancels at period end: it stays active until its paid period closes. A free membership has no period, so it ends immediately and its benefits stop at once. Cancelling an earned membership is an explicit removal and sticks: the customer is not granted it again until they attend an event that counts after the removal. A `paused` membership is refused with `membership_state_conflict`: resume it first, then cancel.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The membership, canceling at period end (paid) or canceled (free).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Membership" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/pause": { "post": { "tags": [ "Memberships" ], "summary": "Pause a membership", "description": "Pauses an `active` paid membership immediately: the payment provider natively pauses the subscription, so no invoices are generated, and the unused part of the paid period is credited toward the next invoice. It is a credit, not a cash refund, and there is no scheduled pause. The membership becomes `paused` and its benefits stop at once; tickets already issued stay valid. Requires `Idempotency-Key`. Refused with `membership_state_conflict` unless the membership is `active` with no cancellation scheduled, `membership_no_billing` for a free membership, and `membership_pause_unsupported` when the subscription does not meet the provider's prerequisites.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The paused membership.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Membership" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/resume": { "post": { "tags": [ "Memberships" ], "summary": "Resume a paused membership", "description": "Restarts a `paused` membership on the same plan, at its `price_minor` (the plan's new price when the plan was repriced while it was paused). A fresh billing period starts now on the existing interval; the pause credit is applied and any balance is collected from the customer's saved payment method. The membership becomes `active`, and `membership.resumed` is recorded, only once the provider reports the subscription active, which includes a restart invoice fully covered by credit. If the payment fails or needs the customer's action, the response still reads `paused` (with `payment` credentials when the invoice is payable) and no benefits are restored; the membership resumes when the payment later succeeds. Requires `Idempotency-Key`. A provider refusal of the payment answers `membership_resume_payment_failed`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The membership and, while it is still paused, the restart payment credentials.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipResumed" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/undo_cancellation": { "post": { "tags": [ "Memberships" ], "summary": "Undo a scheduled cancellation", "description": "Clears a period-end cancellation before the membership terminates: `cancel_at_period_end` becomes false, the price and renewal date are unchanged, nothing is charged and benefits continue without interruption. Records `membership.updated`. Refused with `membership_state_conflict` when no cancellation is scheduled or the membership has already ended; an ended membership is never revived, join again instead. Requires `Idempotency-Key`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The membership with its cancellation cleared.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Membership" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/next_charge": { "post": { "tags": [ "Memberships" ], "summary": "Move or make a membership's next charge", "description": "Sets when an `active` paid membership is next charged, including one still before its first charge date. With a date, the next charge moves there, earlier or later: the member keeps the membership and its benefits until then, and the plan's full price is charged on the date, renewing from it. Nothing is prorated: moving the date never credits or charges a difference. With `now`, one full period is charged now and a fresh period starts from now, recorded as a renewal (`membership.renewed`, with its charge, platform fee and tax). If that charge fails it is a failed renewal: the membership becomes `past_due`, the plan's benefit grace starts and Stripe retries on its schedule; `charge_attempt` says how it went. On a `past_due` membership only `now` is accepted: it pays the open overdue invoice (no second invoice is created), and when that succeeds the membership is `active` again; a decline leaves it `past_due` and Stripe's retries continue. `next_charge_at` and `membership.updated` reflect every move. Requires `Idempotency-Key`; a retry with the same key never charges twice. Refused with `membership_state_conflict` (409) for a `paused` membership (resume it instead), one set to cancel at its period end (undo the cancellation first), an `incomplete` or `canceled` one, and a date on a `past_due` one; `membership_no_billing` for a free membership; and `next_charge_at_out_of_range` for a date in the past or more than 730 days away.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "at": { "anyOf": [ { "type": "string", "enum": [ "now" ] }, { "type": "string", "format": "date-time" } ], "description": "`now`, or the date to charge next. A date moves an `active` membership's next charge there: the member keeps everything until then, and the full price is charged on it; nothing is prorated, credited or charged for the difference. `now` charges one full period now and starts a fresh period from now; on a `past_due` membership it pays the open overdue invoice instead. A date must be in the future and no more than 730 days away (Stripe's limit), and is refused on a `past_due` membership." } }, "required": [ "at" ] } } } }, "responses": { "200": { "description": "The membership after the move or the charge, and how a charge now went.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipNextCharge" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_benefits": { "get": { "tags": [ "Memberships" ], "summary": "List membership benefits", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only the benefits of this plan." }, "required": false, "description": "Only the benefits of this plan.", "name": "plan_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Membership benefits.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefitList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Memberships" ], "summary": "Create a membership benefit", "description": "Defines a reusable benefit of one plan. It needs no event and changes no price on its own: it applies only where an event assigns it. An unknown plan answers `invalid_reference`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "plan_id": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The plan whose active members receive the benefit. Fixed once created." }, "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "kind": { "type": "string", "enum": [ "percent_off", "unlock", "guest_invitation", "waitlist_priority", "fee_waiver" ], "description": "`percent_off` takes a percentage off each assigned item; `unlock` lets members buy the assigned gated items; `guest_invitation` lets members invite guests to the assigned events and ticket types, up to `guest_allowance`; `waitlist_priority` puts members' waitlist entries for the assigned events and ticket types ahead of arrival order when a freed place is offered automatically; `fee_waiver` waives the booking fee on the assigned items, as a discount code's fee waiver does: the organizer absorbs the platform fee. Fixed once created." }, "percent_off_bps": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 10000, "description": "Required for `percent_off`, in basis points (1000 is 10%). Omit or send null for the other kinds." }, "guest_allowance": { "type": [ "object", "null" ], "properties": { "units": { "type": "integer", "minimum": 1, "description": "Guest tickets each member may invite, counted in ticket units (an invitation for two guests spends two) in each bucket." }, "mode": { "type": "string", "enum": [ "per_event", "per_period" ], "description": "`per_event`: every event the benefit is assigned to has its own allowance. `per_period`: one allowance is shared by every assigned event, counted over the calendar `period` in which the invitation is issued. Fixed once created." }, "period": { "type": [ "string", "null" ], "enum": [ "week", "month", "year", null ], "description": "Required for `per_period`, omitted for `per_event`. Periods are UTC calendar periods: a `week` runs Monday 00:00 to the next Monday, a `month` from the 1st, a `year` from 1 January. Fixed once created." } }, "required": [ "units", "mode" ], "description": "Required for `guest_invitation`; omit or send null for the other kinds." }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "plan_id", "name", "kind" ] } } } }, "responses": { "201": { "description": "The membership benefit.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefit" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_benefits/{id}": { "get": { "tags": [ "Memberships" ], "summary": "Retrieve a membership benefit", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The membership benefit.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefit" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Memberships" ], "summary": "Update a membership benefit", "description": "Changes the name, percentage or metadata; the plan and kind are fixed. Every assignment reads the live benefit, so later quotes at every assigned event use the change, while checkout sessions and orders keep the effects already recorded on them.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "percent_off_bps": { "type": "integer", "minimum": 1, "maximum": 10000, "description": "Only for a `percent_off` benefit." }, "guest_allowance": { "type": "object", "properties": { "units": { "type": "integer", "minimum": 1, "description": "Guest tickets each member may invite, counted in ticket units (an invitation for two guests spends two) in each bucket." } }, "required": [ "units" ], "additionalProperties": false, "description": "Only for a `guest_invitation` benefit: the new `units`. The mode and period are fixed once created. Members who have already used more than the new limit keep what they were issued and have nothing left to invite." }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated membership benefit.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefit" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_benefits/{id}/assignments": { "get": { "tags": [ "Memberships" ], "summary": "List where a membership benefit is assigned", "description": "The benefit-side view of the same assignments the event routes write.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The benefit's assignments.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefitAssignmentList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/membership_benefits": { "get": { "tags": [ "Memberships" ], "summary": "List an event's membership benefit assignments", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The event's assignments.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefitAssignmentList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/membership_benefits/{benefit_id}": { "put": { "tags": [ "Memberships" ], "summary": "Assign a membership benefit to an event", "description": "Creates or replaces this benefit's assignment to the event; a benefit has at most one assignment per event. The whole selection is checked first: an item of another event or an eventless item answers `item_not_in_event`, an unknown item `invalid_reference`, and nothing changes. Sending the current selection again changes nothing and records no activity.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "benefit_id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "event", "items" ], "description": "`event` covers every item of the event, including items added later. `items` covers only `item_ids`." }, "item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": "Required and non-empty for `items`: items of this event. Omit or send an empty list for `event`." } }, "required": [ "scope" ] } } } }, "responses": { "200": { "description": "The assignment.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefitAssignment" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "delete": { "tags": [ "Memberships" ], "summary": "Remove a membership benefit from an event", "description": "The benefit then gives nothing at this event. Removing an assignment that does not exist answers `not_found`; send an Idempotency-Key to retry safely.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "benefit_id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The removed assignment.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipBenefitAssignment" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/invitation_pools": { "get": { "tags": [ "Invitations" ], "summary": "List invitation pools", "description": "Newest first, id-keyset. Each pool carries what has been issued against it and what remains.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only the pools of this event." }, "required": false, "description": "Only the pools of this event.", "name": "event_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Invitation pools.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationPoolList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Invitations" ], "summary": "Create an invitation pool", "description": "A shared limit for one event that several allocations draw on together. It issues nothing on its own: tickets are issued by comps against an allocation joined to it. An unknown event answers `invalid_reference`. Requires `Idempotency-Key`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The event the pool belongs to. Fixed once created." }, "limit_units": { "type": "integer", "minimum": 0, "maximum": 100000, "description": "Ticket units this budget allows in all. A maximum, not a reservation: it holds no capacity back from the event. Zero closes it." }, "label": { "type": "string", "minLength": 1, "maxLength": 200 }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "event_id", "limit_units" ] } } } }, "responses": { "201": { "description": "The invitation pool.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationPool" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/invitation_pools/{id}": { "get": { "tags": [ "Invitations" ], "summary": "Retrieve an invitation pool", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^ivp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The invitation pool.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationPool" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Invitations" ], "summary": "Update an invitation pool", "description": "Changes the limit, label, external reference or metadata; the event is fixed. Tickets already issued keep counting: a limit set below what was issued leaves nothing remaining and issues no more, and returns nothing. To give units back, return them of their usage with `POST /v1/invitation_usages/{id}/returns`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^ivp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "limit_units": { "type": "integer", "minimum": 0, "maximum": 100000, "description": "Ticket units this budget allows in all. A maximum, not a reservation: it holds no capacity back from the event. Zero closes it." }, "label": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 }, "external_ref": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated invitation pool.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationPool" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/invitation_allocations": { "get": { "tags": [ "Invitations" ], "summary": "List invitation allocations", "description": "Newest first, id-keyset. Each allocation carries what has been issued against it and what it can issue now.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only the allocations of this event." }, "required": false, "description": "Only the allocations of this event.", "name": "event_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^ivp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only the allocations joined to this pool." }, "required": false, "description": "Only the allocations joined to this pool.", "name": "pool_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Invitation allocations.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationAllocationList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Invitations" ], "summary": "Create an invitation allocation", "description": "An invitation budget for one event: a ticket-unit maximum an organizer hands to whoever it chooses. The engine knows no artist or customer behind it; map your own actors to the returned id. It may also draw on a pool of the same event. An unknown event answers `invalid_reference`, as does a pool that is not the event's. Requires `Idempotency-Key`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "event_id": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The event the allocation belongs to. Fixed once created." }, "pool_id": { "type": "string", "pattern": "^ivp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "A pool of the same event whose limit the allocation also draws on. Fixed once created; omit it for an allocation bounded only by its own limit." }, "limit_units": { "type": "integer", "minimum": 0, "maximum": 100000, "description": "Ticket units this budget allows in all. A maximum, not a reservation: it holds no capacity back from the event. Zero closes it." }, "label": { "type": "string", "minLength": 1, "maxLength": 200 }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "event_id", "limit_units" ] } } } }, "responses": { "201": { "description": "The invitation allocation.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationAllocation" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/invitation_allocations/{id}": { "get": { "tags": [ "Invitations" ], "summary": "Retrieve an invitation allocation", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^iva_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The invitation allocation.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationAllocation" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Invitations" ], "summary": "Update an invitation allocation", "description": "Changes the limit, label, external reference or metadata; the event and pool are fixed. Tickets already issued keep counting: a limit set below what was issued leaves nothing remaining and issues no more, and returns nothing. To give units back, return them of their usage with `POST /v1/invitation_usages/{id}/returns`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^iva_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "limit_units": { "type": "integer", "minimum": 0, "maximum": 100000, "description": "Ticket units this budget allows in all. A maximum, not a reservation: it holds no capacity back from the event. Zero closes it." }, "label": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 }, "external_ref": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated invitation allocation.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationAllocation" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/qualifying_plans": { "get": { "tags": [ "Memberships" ], "summary": "List the memberships an event counts toward", "description": "The event-side view of the same rows the plan-side list reads.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The plans this event counts toward.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipQualifyingEventList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_plans/{id}/qualifying_events": { "get": { "tags": [ "Memberships" ], "summary": "List the events that count toward a membership plan", "description": "Meaningful for a plan whose attendance rule has scope `selected_events`. Rows kept from before the plan counted every event are listed too but ignored while the scope is `all_events`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The events that count toward the plan.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipQualifyingEventList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/qualifying_plans/{plan_id}": { "put": { "tags": [ "Memberships" ], "summary": "Make an event count toward a membership plan", "description": "\"Counts toward this membership\": attending this event is a visit for the plan's attendance rule. The event may be in the future and may have no attendance yet. It is independent of membership benefits: counting toward a plan offers no benefit, and offering a benefit counts for nothing. Customers who already attended the event are evaluated at once (at most 200 in the request, the rest within minutes). Sending it again changes nothing and records no activity. Refused with `attendance_rule_not_configured` when the plan has no rule and `attendance_scope_not_selected` when its rule counts every event.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "plan_id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The event's qualification for the plan.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipQualifyingEvent" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "delete": { "tags": [ "Memberships" ], "summary": "Stop an event counting toward a membership plan", "description": "Visits to the event stop counting. Under `maintain`, earned memberships that no longer qualify end; under `keep` nothing is removed. Removing a row that does not exist answers `not_found`; send an Idempotency-Key to retry safely.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "plan_id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The removed qualification.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipQualifyingEvent" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_plans/{id}/qualification": { "get": { "tags": [ "Memberships" ], "summary": "Read a customer's progress toward an earned membership", "description": "How many qualifying events the customer has attended inside the plan's rolling window, against the threshold, whether they qualify now, when that lapses without further attendance, and the plan membership they hold (and whether it was earned). Computed from attendance when asked, so it also answers for a customer who has not earned anything. A plan with no attendance rule answers `attendance_rule_not_configured`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mpl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The customer whose progress to read." }, "required": true, "description": "The customer whose progress to read.", "name": "customer_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The customer's qualification progress.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipQualification" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/cancellation_policy": { "get": { "tags": [ "Events" ], "summary": "Read what cancelling an event does", "description": "The organizer's configured cancellation policy for the event. Answers `cancellation_policy_not_configured` until one is saved: there is no default policy, and an event with none cannot be cancelled.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The event's cancellation policy.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventCancellationPolicy" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "put": { "tags": [ "Events" ], "summary": "Configure what cancelling an event does", "description": "Creates or replaces the policy: all five consequences are required and independent (stop new sales, close pending checkouts, refund paid tickets, disable admission, notify attendees). Saving a policy cancels nothing. The policy is applied automatically when the event is cancelled, which accepts no overrides, and is snapshotted then: a later edit never changes a cancellation that has started. Sending the current settings again changes nothing and records no activity. Requires organizer administrator authority.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventCancellationPolicyPut" } } } }, "responses": { "200": { "description": "The event's cancellation policy.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventCancellationPolicy" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/cancel": { "post": { "tags": [ "Events" ], "summary": "Cancel an event", "description": "Records that the event is cancelled and applies the event's cancellation policy, exactly as the organizer configured it in advance: whether to stop new sales, close pending checkouts, refund paid tickets, disable admission and notify attendees. The request takes only the reason and a confirmation; it accepts no overrides of any of those effects. The policy is snapshotted when this is accepted, so editing it afterwards never changes this cancellation. Stopping sales and disabling admission take effect at once; closing checkouts, refunds and notices run in the background, are repeatable and report their progress on the returned cancellation (read it with `GET /v1/events/{id}/cancellation`). Answers `cancellation_policy_required` when the event has no policy and `event_already_cancelled` when it was cancelled before. Nothing is deleted: orders, tickets, refunds and check-ins are kept. Requires organizer administrator authority.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventCancel" } } } }, "responses": { "202": { "description": "The cancellation, with its policy snapshot and each action's progress.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventCancellation" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/cancellation": { "get": { "tags": [ "Events" ], "summary": "Read an event's cancellation and its progress", "description": "The recorded cancellation: reason, who cancelled, the policy snapshot it applied and, for each of the five actions, whether it is enabled, its status (`pending`, `completed`, `failed` or `skipped`), attempts, how many orders or checkouts it has found and finished, and a `last_error` code when it failed. `status` is `in_progress` while any action is pending, `needs_attention` when none is pending but one failed, and `completed` otherwise. Answers `not_found` for an event that has not been cancelled. Requires organizer administrator authority.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The event's cancellation.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventCancellation" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/events/{id}/cancellation/retry": { "post": { "tags": [ "Events" ], "summary": "Retry the failed actions of an event's cancellation", "description": "Hands the failed actions back to the background executor. A retry resumes where the failure left off: orders already refunded and noticed are not refunded or noticed again, and a refund the provider refused is replaced by a new one. It re-applies the snapshot the cancellation started with, never the current policy. Answers `cancellation_not_retryable` unless the cancellation `needs_attention`. Requires organizer administrator authority.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "202": { "description": "The cancellation, with the failed actions pending again.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventCancellation" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/quotas/{id}/availability": { "get": { "tags": [ "Quotas" ], "summary": "Retrieve derived quota availability", "description": "Availability is always derived (size minus issued positions minus live holds), never stored. This read is a display value: the sell decision recomputes the same derivation inside the per-quota transaction lock.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^quo_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "quo_0199c4e6-5c81-7d13-b7a0-4f8e2c6b9d34" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The quota's derived availability.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuotaAvailability" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/availability": { "get": { "tags": [ "Quotas" ], "summary": "Retrieve derived availability for several quotas at once", "description": "The same derivation as the single-quota read, for up to 100 quotas in one request. Ids that name nothing under your organizer are omitted. Availability is a display value: the sell decision recomputes it inside the per-quota transaction lock.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "minLength": 1, "description": "Comma-separated quota ids, at most 100. Ids that name nothing under your organizer are omitted from the response rather than reported." }, "required": true, "description": "Comma-separated quota ids, at most 100. Ids that name nothing under your organizer are omitted from the response rather than reported.", "name": "quota_ids", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Derived availability for each quota that exists under the organizer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuotaAvailabilityList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/item_issuance": { "get": { "tags": [ "Items" ], "summary": "Retrieve derived issued counts for several items at once", "description": "The live positions of each item, for up to 100 items in one request: what has been issued and not revoked, which is what a sales figure counts. Ids that name nothing under your organizer are omitted; an item with no live position reports zero. Derived on each read, never stored. Capacity is separate: read a quota's availability for what is left.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "minLength": 1, "description": "Comma-separated item ids, at most 100. Ids that name nothing under your organizer are omitted from the response rather than reported." }, "required": true, "description": "Comma-separated item ids, at most 100. Ids that name nothing under your organizer are omitted from the response rather than reported.", "name": "item_ids", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The issued count of each item that exists under the organizer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemIssuanceList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkout_sessions": { "post": { "tags": [ "Checkout sessions" ], "summary": "Create a checkout session", "description": "Mints the hold, takes the binding quote in checkout_quote mode, reserves the consumable effects it spends, and creates the PaymentIntent on the organizer's connected account. Idempotency-Key is REQUIRED: a duplicate consumes capacity. Creation is keyed-only — a client secret can never create a session. A live organizer without live Stripe credentials receives HTTP 503 `live_payments_not_configured` before any session, capacity hold or provider request; contact the platform operator to complete setup before retrying.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "line_items": { "type": "array", "items": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 100 } }, "required": [ "item_id", "quantity" ] }, "minItems": 1, "maxItems": 50, "description": "The WHOLE new cart, never a delta: the engine is the sole cart authority and an update states the cart it wants." }, "codes": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "maxItems": 10 }, "offer": { "type": "object", "properties": { "effect_type": { "type": "string", "enum": [ "percent", "amount", "price_override" ], "description": "`percent` takes `percent_bps` off each ticket; `amount` takes `amount_minor` off each ticket; `price_override` sells each ticket at `amount_minor` (zero is free entry). Same meanings as the discount-code effects of the same name." }, "percent_bps": { "type": [ "integer", "null" ], "description": "`percent` only: basis points off, in (0, 10000]." }, "amount_minor": { "type": [ "integer", "null" ], "minimum": 0, "description": "`amount` and `price_override` only: minor units, per ticket." }, "amount_currency": { "type": [ "string", "null" ], "pattern": "^[A-Z]{3}$", "description": "`amount` and `price_override` only: must equal the cart's currency, or the create is refused with `checkout_offer_not_applicable`." }, "item_ids": { "type": "array", "items": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": "Restricts the offer to these items. With `event_ids` empty too, the offer covers every line. Union semantics, like a discount code's." }, "event_ids": { "type": "array", "items": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "description": "Restricts the offer to the items of these events." }, "label": { "type": "string", "minLength": 1, "maxLength": 120, "description": "What the buyer sees on the effect line, e.g. `Invitation from Sam`." }, "reference": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255, "description": "Your own handle for the offer (an affiliate or invitation id). Echoed on the applied effect as `source.ref` for reconciliation; the engine never interprets it." } }, "required": [ "effect_type", "label" ], "description": "A checkout-specific offer from your trusted backend, priced by the same engine as a discount code and bound to THIS session only: catalog prices do not change and the buyer sees it applied without typing a code. Best price wins against membership pricing (the member percentage is never applied again to the offer price); it stacks with ordinary codes exactly as a code of its kind would. Refused with `checkout_offer_not_applicable` if it covers no line or is in another currency. Retries with the same Idempotency-Key replay one session. Partner-plane only: a buyer-plane request cannot set or change it." }, "customer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "The buyer's email. Required before payment credentials are issued; the order confirmation goes here." }, "name": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 }, "phone": { "type": [ "string", "null" ], "pattern": "^(?=(?:\\D*\\d){5})\\+?[\\d ()-]{7,25}$" } } }, "return_url": { "type": [ "string", "null" ], "format": "uri", "description": "HTTPS return URL or the registered lsn://checkout-return app callback." }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "line_items" ] } } } }, "responses": { "201": { "description": "The created session, with its buyer client_secret and hosted URL.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckoutSessionCreated" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "get": { "tags": [ "Checkout sessions" ], "summary": "List checkout sessions", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "enum": [ "open", "completed", "expired", "payment_refused" ], "description": "Filters on the STORED status. payment_pending is the derived wire reading of an open session whose payment has started, so it is not a filter value." }, "required": false, "description": "Filters on the STORED status. payment_pending is the derived wire reading of an open session whose payment has started, so it is not a filter value.", "name": "status", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A keyset page of checkout sessions.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckoutSessionList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkout_sessions/{id}": { "get": { "tags": [ "Checkout sessions" ], "summary": "Retrieve a checkout session", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The checkout session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Checkout sessions" ], "summary": "Update a checkout session", "description": "The universal cart verb. One transaction re-acquires the quota locks over the old and new footprints, adjusts the hold (shrinking frees capacity; growth is atomic keep-or-refuse — a refusal leaves the existing hold untouched and returns insufficient_capacity), re-runs the quote, re-reserves consumables, and amends the same PaymentIntent in place. The latest quote is contractual. A session whose payment has started is locked and refuses with checkout_session_locked.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "line_items": { "type": "array", "items": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 100 } }, "required": [ "item_id", "quantity" ] }, "minItems": 1, "maxItems": 50, "description": "The WHOLE new cart, never a delta: the engine is the sole cart authority and an update states the cart it wants." }, "codes": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "maxItems": 10 }, "customer": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "The buyer's email. Required before payment credentials are issued; the order confirmation goes here." }, "name": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 }, "phone": { "type": [ "string", "null" ], "pattern": "^(?=(?:\\D*\\d){5})\\+?[\\d ()-]{7,25}$" } } }, "return_url": { "type": [ "string", "null" ], "format": "uri", "description": "HTTPS return URL or the registered lsn://checkout-return app callback." }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The checkout session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkout_sessions/{id}/expire": { "post": { "tags": [ "Checkout sessions" ], "summary": "Expire a checkout session", "description": "Releases the hold early, releases the consumable reservations it was holding, and cancels the PaymentIntent. Idempotent: a session that is already expired or completed is returned unchanged.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The checkout session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}": { "get": { "tags": [ "Buyer plane" ], "summary": "Retrieve the buyer's checkout session", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "responses": { "200": { "description": "The buyer's view of the session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerCheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Buyer plane" ], "summary": "Update the buyer's cart", "description": "The same universal update the partner plane runs, authorized by the session's own client secret. Line items, presented codes and the buyer's own email and name — a buyer can never change the partner's metadata, return URL or customer identity.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "line_items": { "type": "array", "items": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 100 } }, "required": [ "item_id", "quantity" ] }, "minItems": 1, "maxItems": 50, "description": "The WHOLE new cart, never a delta: the engine is the sole cart authority and an update states the cart it wants." }, "codes": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "maxItems": 10 }, "customer": { "type": "object", "properties": { "email": { "type": "string", "maxLength": 320, "format": "email" }, "name": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 }, "phone": { "type": [ "string", "null" ], "pattern": "^(?=(?:\\D*\\d){5})\\+?[\\d ()-]{7,25}$" } }, "required": [ "email" ] } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The buyer's view of the session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerCheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/quote": { "post": { "tags": [ "Buyer plane" ], "summary": "Refresh the session's binding quote", "description": "Re-runs the quote against the unchanged cart — how a buyer picks up a price effect that became applicable, or a code that has just expired. The refreshed quote replaces the stored one and is what the PaymentIntent is synced to.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "responses": { "200": { "description": "The buyer's view of the session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerCheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/complete": { "post": { "tags": [ "Buyer plane" ], "summary": "Complete a zero-total checkout", "description": "Issues a paid order and positions from the session's binding zero-total quote without a PaymentIntent or ledger entry. Requires a buyer email (422 buyer_identity_required); a non-zero quote returns 422 payment_required. Consumable refusal rolls back issuance. Idempotent per session: a completed session returns the same order_id within the closed-session read window (one hour after session expiry).", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "responses": { "200": { "description": "The buyer's view of the session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerCheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Completion conflict: `checkout_session_not_open` (the session or its capacity hold has expired), `checkout_session_locked` (payment has started), `checkout_session_conflict` (the session changed concurrently; retry), or `capacity_locked` (a quota lock timed out; retry). Completed zero-total sessions replay successfully within the closed-session read window; after that window client-secret authentication rejects the request.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Completion refused: `payment_required` (the binding quote is non-zero), `buyer_identity_required` (buyer email is missing), `insufficient_capacity` (capacity cannot be issued), `code_not_reservable` (a consumable price effect refused commitment), or `order_quantity_below_minimum`, `order_quantity_above_maximum` or `customer_ticket_limit_exceeded` (the event's checkout limits, re-checked at completion; nothing is issued).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/finalize": { "post": { "tags": [ "Buyer plane" ], "summary": "Finalize the session once its payment has gone through", "description": "Call this as soon as the payment is confirmed in the browser. The engine reads the session's own payment from the provider and, when it has succeeded or is processing, completes the session there and then — the order and its positions exist when this answers — rather than when the provider's webhook arrives. The request has no body and nothing about it is trusted: the payment's status is only ever the provider's own answer. Always answers the buyer session, exactly as a retrieve does: `completed` with `order_id` once issued; `payment_processing` when the money has moved but the session cannot complete here (the webhook settles it, which may still be `payment_refused` with an automatic refund); unchanged when no payment has started. Idempotent and cheap to repeat: a completed session answers without asking the provider. Allowed on a closed session within the closed-session read window (one hour after session expiry), where it reads the session as it stands. Keep polling the retrieve until a final status either way.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "responses": { "200": { "description": "The buyer's view of the session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerCheckoutSession" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/payment_credentials": { "get": { "tags": [ "Buyer plane" ], "summary": "Fetch the credentials the Payment Element needs", "description": "Creates the session's PaymentIntent if the create-time call never landed, and always re-syncs its amount to the session's contractual quote — so a buyer cannot confirm a superseded total.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "responses": { "200": { "description": "Credentials for confirming this session's payment.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerPaymentCredentials" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/identity": { "post": { "tags": [ "Buyer plane" ], "summary": "Attest the Lissen buyer on this session", "description": "Verifies a Lissen identity action token bound to this session and, in one transaction, sets the session's subject to the attested buyer, records the attestation, and re-runs the quote so member pricing and the PaymentIntent follow. Returns the buyer's saved cards. A refused token is 401 `identity_token_rejected` and changes nothing.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "action_token": { "type": "string", "minLength": 1, "maxLength": 8192, "description": "A Lissen identity action token addressed to `ticketing-api`, purpose `checkout`, bound to THIS session by `context_hash`, valid for five minutes and accepted exactly once." } }, "required": [ "action_token" ] } } } }, "responses": { "200": { "description": "The attested buyer and their wallet.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerIdentity" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "delete": { "tags": [ "Buyer plane" ], "summary": "Withdraw the Lissen buyer from this session", "description": "Clears the session's attestation and, in the same transaction, returns the subject to anonymous and re-runs the quote, so member pricing and any saved-card authority end with the sign-in. The buyer's email stays. Idempotent: a session with no attestation answers the same.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "responses": { "200": { "description": "No buyer is attested on the session.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerIdentityCleared" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/enrolment": { "post": { "tags": [ "Buyer plane" ], "summary": "Ask whether an address already pays with Lissen", "description": "One bit, so the checkout can offer Pay with Lissen to a returning buyer. True only for a verified Lissen identity that has at least one saved card; an unknown address, an unverified one, one with no wallet, and a request over the probe budget are all `false`. Nothing else about the person is returned, and no attestation is created.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "email": { "type": "string", "maxLength": 320, "format": "email" } }, "required": [ "email" ] } } } }, "responses": { "200": { "description": "Whether that address is enrolled.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerEnrolment" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/wallet/setup": { "post": { "tags": [ "Buyer plane" ], "summary": "Start entering a new card into the Lissen wallet", "description": "A platform SetupIntent to take a new card. For an attested Lissen buyer it is created on their platform Customer, made here if they have none. For anyone else it is created with no Customer at all — the card entry is on screen from the first paint, and a guest's Customer is made only when they pay. Saving and not saving take this same path: whether the card is kept is decided at pay time.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "responses": { "200": { "description": "Credentials for confirming the platform SetupIntent.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerWalletSetup" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/buyer/checkout_sessions/{id}/wallet/pay": { "post": { "tags": [ "Buyer plane" ], "summary": "Point this session's payment at a wallet card", "description": "Ensures the session's PaymentIntent, attaches the named platform method to a Customer, creates or reuses the organizer's Customer on their connected account, clones the method there and amends the intent to it. For an attested Lissen buyer the platform Customer is their wallet and the method joins it; for a guest it is a Customer created now for this session alone, and the method joins a wallet only if the identity plane later attests who paid (the code on the success screen). Returns the CLONE's id: confirm the intent with that method on the connected-account Stripe.js instance — or send `confirm: \"server\"` and the engine confirms it (on session, with an optional Radar session) and answers `payment_intent_status`. Refuses with 422 `buyer_identity_required` when the session names no address, 403 `reverify_required` for an attested buyer past ninety days, 403 `payment_method_not_owned` for another buyer's card, or — only when the engine confirms — 422 `payment_declined` when the card refuses the payment.", "security": [ { "clientSecretAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "cs_0199c4e9-3d61-7b02-9a44-8e5c1d7f2b30" }, "required": true, "name": "id", "in": "path" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "payment_method_id": { "type": "string", "minLength": 1, "maxLength": 255, "description": "A saved card's id, or the payment method a just-confirmed platform SetupIntent produced." }, "keep": { "type": "boolean", "description": "Whether the buyer asked to save this card with Lissen. Honoured only when the attestation carries the card-reuse consent; without it the card is used once and detached after the payment outcome." }, "confirm": { "type": "string", "enum": [ "server" ], "description": "`server` asks the engine to confirm the payment itself, on the account it is made on and on session, rather than leaving that to Stripe.js in the browser; the answer then carries `payment_intent_status`. Omitted, nothing changes: the browser confirms with the returned clone, as before." }, "radar_session": { "type": "string", "minLength": 1, "maxLength": 255, "description": "With `confirm: \"server\"` only (ignored otherwise): a Radar session the browser made with `stripe.createRadarSession` on the Stripe.js instance for the account the payment is made on (`connected_account_id` from wallet/setup), passed to Stripe as `radar_options.session` so fraud screening still sees the buyer's device. One Stripe refuses is dropped rather than failing the payment." } }, "required": [ "payment_method_id", "keep" ] } } } }, "responses": { "200": { "description": "Credentials for confirming this session's payment.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuyerWalletPayment" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The payment cannot go ahead: `buyer_identity_required` (the session names no address), `payment_declined` (with `confirm: \"server\"`, the card refused the payment; `message` is the card's reason for the buyer, `detail.decline_code` Stripe's code when it gave one, except that a decline Stripe asks be shown as a plain one — `fraudulent`, `lost_card`, `stolen_card`, `merchant_blacklist` — is answered as `generic_decline` with a plain message — the session stays open for another card), `payment_intent_unavailable` or `connect_account_not_onboardable`.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/orders": { "get": { "tags": [ "Orders" ], "summary": "List orders", "description": "Newest first, id-keyset. An order is minted the moment a checkout session settles (optimistic issuance), or by a comp (`issuance.type: comp`): `payment_state` says whether the money has landed. Each order embeds its positions.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "customer_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "checkout_session_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "processing", "paid", "payment_failed", "refund_pending", "refunded" ] }, "required": false, "name": "payment_state", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of orders.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/orders/{id}": { "get": { "tags": [ "Orders" ], "summary": "Retrieve an order", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The order with its positions.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Order" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/positions": { "get": { "tags": [ "Orders" ], "summary": "List positions", "description": "One bought unit each, newest first. `status: live` is what the door admits; a revoked position carries why. Filter by order, item, event, status or current holder.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "order_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "item_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "event_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "live", "revoked" ] }, "required": false, "name": "status", "in": "query" }, { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only positions this customer holds now, whoever bought them: the tickets a holder can see, without the purchaser's other positions." }, "required": false, "description": "Only positions this customer holds now, whoever bought them: the tickets a holder can see, without the purchaser's other positions.", "name": "holder_customer_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of positions.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PositionList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/positions/{id}": { "get": { "tags": [ "Orders" ], "summary": "Retrieve a position", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The position.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Position" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/customers": { "get": { "tags": [ "Orders" ], "summary": "List customers", "description": "The organizer's buyer records, newest first. A customer is minted at checkout from the buyer's email, or from your `external_ref` when you name one; the engine never links customers across organizers.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "format": "email" }, "required": false, "name": "email", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "external_ref", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of customers.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomerList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/customers/{id}": { "get": { "tags": [ "Orders" ], "summary": "Retrieve a customer", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The customer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Customer" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Orders" ], "summary": "Update a customer's contact details", "description": "Changes the customer's current name and email in place. The id, `external_ref`, orders, memberships and positions stay as they are, and an order keeps the `buyer_email` and `buyer_name` it was issued with. Stripe Customers the engine already stores for this customer on the organizer's connected account receive the change, reported by `billing_contact_sync`; the engine never creates or searches for one. An email another customer of this organizer holds answers 409 `customer_email_conflict` and merges nothing.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200, "description": "The customer's current name. `null` clears it." }, "email": { "type": "string", "maxLength": 254, "format": "email", "description": "The customer's current email, stored lower-cased. It cannot be removed, and an email another customer of this organizer holds is refused with `customer_email_conflict`." } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated customer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Customer" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. `customer_email_conflict`: another customer of this organizer already has this email; nothing changed and nothing was merged. `idempotency_key_in_flight` or `idempotency_key_reused`: an idempotency conflict.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/comps": { "post": { "tags": [ "Orders" ], "summary": "Issue complimentary tickets", "description": "Issues `quantity` free positions of an existing item to a recipient in one transaction, as an ordinary paid order totalling zero with no payment, ledger entry or fee. Sale windows and gated or membership unlocks do not apply; an inactive item, or one with no event, is refused, and capacity is checked unless `capacity_override` is true. With `allocation_id` the tickets are also charged to that invitation allocation and its pool, and refused with `invitation_allowance_exceeded` if either lacks room; the capacity override never skips that. The order carries `issuance.type: comp`, and the feed receives `order.created` and one `position.created` per unit. Retrying with the same Idempotency-Key returns the same order.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 100 }, "recipient": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "An existing customer of this organizer, who must have an email. Supply it alone." }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Your reference for the recipient. With an email it finds or creates the customer; alone it must name a customer that already has an email." }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "Where the tickets are delivered. Finds or creates the customer by email when no external_ref is given." }, "name": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 } } }, "capacity_override": { "type": "boolean", "default": false, "description": "Issue even when the item's quotas have no room. The positions still count against every linked quota, and no quota size changes. Defaults to false: capacity is checked as for a sale. It never overrides an invitation allowance." }, "allocation_id": { "type": "string", "pattern": "^iva_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "An invitation allocation of this organizer to charge the issued tickets to, one unit per ticket. It must belong to the item's event. The request is refused with `invitation_allowance_exceeded` unless the allocation, and the pool it joined, both have room for the whole quantity; nothing is consumed by a refusal, and a retry with the same Idempotency-Key never consumes twice. Omit it for an ordinary comp. The engine knows no actor behind an allocation, and the recipient is still the customer named in `recipient`." }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "item_id", "quantity", "recipient" ] } } } }, "responses": { "201": { "description": "The comp order with its positions.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Order" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/membership_benefits/{id}/guest_invitations": { "get": { "tags": [ "Memberships" ], "summary": "List the invitations made under a guest benefit", "description": "Newest first, id-keyset: one row per accepted guest invitation, naming the inviting member, the allowance bucket, the units, the units you have returned and the comp order. This is the benefit's usage and its audit evidence; rows are never rewritten, and the engine never gives a spent unit back by itself. Its `id` is what `POST /v1/invitation_usages/{id}/returns` gives units back of. `not_found` when the id is not a `guest_invitation` benefit of this organizer.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only the invitations made under this membership." }, "required": false, "description": "Only the invitations made under this membership.", "name": "membership_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Only the invitations to this event." }, "required": false, "description": "Only the invitations to this event.", "name": "event_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The invitations made under the benefit.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GuestInvitationUsageList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/guest_allowance": { "get": { "tags": [ "Memberships" ], "summary": "Retrieve a member's guest allowance", "description": "The inviting member's configured limit, units used and units remaining for one `guest_invitation` benefit, in the bucket the clock (and the event, for `per_event`) puts them in: what to show the member before they invite. It reads committed usage and takes no lock, so the answer to an invitation is the decision, not this. It does not judge the membership's eligibility or the benefit's assignment to an event; `POST /v1/guest_invitations` does. `not_found` when the membership does not exist or the benefit is not a guest invitation benefit of its plan.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "A `guest_invitation` benefit of the membership's plan." }, "required": true, "description": "A `guest_invitation` benefit of the membership's plan.", "name": "benefit_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The event the member is inviting to. Required for a `per_event` allowance, whose bucket is the event; optional for `per_period`, whose bucket is shared by every event." }, "required": false, "description": "The event the member is inviting to. Required for a `per_event` allowance, whose bucket is the event; optional for `per_period`, whose bucket is shared by every event.", "name": "event_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The member's allowance in the current bucket.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GuestAllowance" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/guest_invitations": { "post": { "tags": [ "Memberships" ], "summary": "Invite a guest with a member's allowance", "description": "Issues `quantity` free tickets of an item to a recipient, as an ordinary comp order, and spends that many units of the inviting member's guest allowance in one transaction. The allowance, the member's eligibility, the benefit's scope and event capacity are all checked before anything is written, and a refusal consumes nothing: `membership_not_eligible`, `guest_benefit_not_applicable`, `invitation_allowance_exceeded` (`detail.shortfalls` names the limit, usage and remaining units) or `insufficient_capacity`. There is no capacity override. The recipient needs no account: an email finds or creates their customer, who holds the tickets, and the feed receives `order.created` and one `position.created` per ticket for you to deliver. Idempotency-Key is required; retrying with it returns the same invitation and spends nothing twice. The engine never restores an allowance by itself: tickets that are later transferred or canceled keep counting until you give their units back with `POST /v1/invitation_usages/{id}/returns` (`issuance.guest_invitation.usage_id`).", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "membership_id": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The inviting member's membership, as your own authentication has established. It must be of this organizer and give member benefits now (active, or past due inside its benefit grace)." }, "benefit_id": { "type": "string", "pattern": "^mbn_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The `guest_invitation` benefit of the membership's plan whose allowance this spends. It must be assigned to the item's event (and, for an items-scoped assignment, to the item)." }, "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The ticket type the guest receives." }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 100, "default": 1, "description": "Guest tickets to issue. The allowance counts these units, not requests." }, "recipient": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "An existing customer of this organizer, who must have an email. Supply it alone." }, "external_ref": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Your reference for the recipient. With an email it finds or creates the customer; alone it must name a customer that already has an email." }, "email": { "type": "string", "maxLength": 320, "format": "email", "description": "Where the tickets are delivered. Finds or creates the customer by email when no external_ref is given." }, "name": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 200 } } }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "membership_id", "benefit_id", "item_id", "recipient" ] } } } }, "responses": { "201": { "description": "The guest invitation: the issued order, who invited and the member's remaining allowance.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GuestInvitation" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/invitation_usages/{id}/returns": { "post": { "tags": [ "Invitations" ], "summary": "Give back units of an invitation usage", "description": "Gives back some or all of the ticket units one invitation usage took, so the budgets it was charged to can issue them again: an invitation allocation and its pool, or the inviting member's guest allowance in the usage's bucket. The engine never does this by itself: cancelling the tickets (a refund-and-revoke), transferring them or cancelling the event leaves the units counting, and whether they come back is your decision. A return does not change the order or its tickets, and works whether or not they were cancelled. The usage id is `issuance.invitation.usage_id` or `issuance.guest_invitation.usage_id` on the order, or the `id` of a guest invitation usage. A return is checked under the same locks as an issuance against those budgets, so concurrent returns can never give back more than the usage took. A usage with nothing left to return answers `409 invitation_usage_fully_returned`; `units` above what is left answers `409 invitation_return_exceeds_remaining` with `detail.remaining_units`. An unknown usage, or another organizer's, answers `404 not_found`. The feed receives `invitation_return.created`. Idempotency-Key is required; retrying with it returns the same return and gives nothing back twice.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^ivu_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationReturnCreate" } } } }, "responses": { "201": { "description": "The return.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvitationReturn" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/positions/{id}/transfer": { "post": { "tags": [ "Orders" ], "summary": "Transfer a position", "description": "Moves the position to another customer immediately, on behalf of its current holder. The position keeps its id, admission code and QR, price and payment, and its quota use; the purchaser's order still lists it, now with the new `holder_customer_id`. Only the current holder can transfer, so the purchaser cannot take a transferred position back, and a copy of the QR proves nothing. An admitted or revoked position is refused. Requires the organizer's API key: `acting_customer` is your attestation of who is acting, which a signed-in owner or Lissen staff member cannot give; they change a holder with a holder correction instead. The feed receives `position.holder_changed` (and `customer.created` when an email mints the recipient). Retrying with the same Idempotency-Key returns the same result and never transfers twice.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PositionTransferCreate" } } } }, "responses": { "200": { "description": "The position, with its new holder.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Position" } } } }, "400": { "description": "Invalid request. `invalid_reference` when the acting customer or the destination names no customer of this organizer; `missing_idempotency_key` without an Idempotency-Key.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "`not_position_holder`: the acting customer does not hold the position now. Buying it, or having held it before, does not count. `staff_identity_not_permitted`: the request was signed in as an owner or Lissen staff member rather than made with the organizer's API key.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "`not_found`: no such position for this organizer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "`already_checked_in`: the position has been admitted, so it can no longer be transferred (an organizer holder correction still can). `idempotency_key_in_flight` or `idempotency_key_reused` for an idempotency conflict.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "`position_revoked`: the position was revoked (payment failure, refund or dispute) and cannot change holder. `holder_unchanged`: the destination already holds it.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/positions/{id}/holder_correction": { "post": { "tags": [ "Orders" ], "summary": "Correct a position's holder", "description": "The organizer's override for a mistaken holder: moves the position to the destination without the current holder's authority, and records the reason and who made the change. Allowed after admission; check-in records are left exactly as they were. A revoked position is refused. The feed receives `position.holder_changed` with `holder_change.kind: correction`. Retrying with the same Idempotency-Key returns the same result.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PositionHolderCorrectionCreate" } } } }, "responses": { "200": { "description": "The position, with its corrected holder.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Position" } } } }, "400": { "description": "Invalid request. `invalid_reference` when the destination names no customer of this organizer; `missing_idempotency_key` without an Idempotency-Key.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "`not_found`: no such position for this organizer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "`idempotency_key_in_flight` or `idempotency_key_reused` for an idempotency conflict.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "`position_revoked`: the position was revoked (payment failure, refund or dispute) and cannot change holder. `holder_unchanged`: the destination already holds it.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/position_claims": { "post": { "tags": [ "Orders" ], "summary": "Claim positions sent to a verified address", "description": "A ticket transferred to an email is held by the organizer's anonymous customer for that address, because a sender's typing proves nothing. Once you have signed the recipient in and verified that address, claim it for them. If no customer carries your `external_ref` yet, the anonymous customer takes it and keeps everything it holds. If one does, every non-revoked position the anonymous customer holds moves to that customer; each move is a holder change with `kind: claim`, and the feed receives one `position.holder_changed` per position. Orders the anonymous customer placed stay with it: this is not a customer merge. Requires the organizer's API key: the claim is your attestation of who the customer is. `not_found` when no anonymous customer has the address or it holds nothing to claim, which is also what a replayed claim with a new key answers.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PositionClaimCreate" } } } }, "responses": { "200": { "description": "The claimed positions and the customer that holds them.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PositionClaim" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "`staff_identity_not_permitted`: a signed-in owner or Lissen staff member cannot attest a customer's identity; use the organizer's API key.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "`not_found`: no anonymous customer of this organizer has the address, or it holds no position to claim.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/positions/{id}/holder_changes": { "get": { "tags": [ "Orders" ], "summary": "List a position's holder changes", "description": "Every transfer, correction and claim of the position, newest first. Append-only: a change is never edited or removed. A position that never changed holder has an empty list; its first holder is the order's customer.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of holder changes.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PositionHolderChangeList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/attendances": { "get": { "tags": [ "Check-in" ], "summary": "List attendance", "description": "Visits derived from check-ins: one per customer and event, supported by the event's admitted, non-voided check-ins that credit the customer. Supply `customer_id` for the events a customer attended, `event_id` for the customers credited with attending an event, or both to ask whether one customer attended one event (at most one visit). A voided, superseded or rejected scan supports nothing, and a visit disappears when its last supporting admission is voided or its credit is corrected away. Buying a ticket is not attendance. Page with `starting_after` set to the last visit's `event_id` (listing a customer's events) or `customer_id` (listing an event's attendees). The feed reports each change as `attendance.recorded` and `attendance.removed`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^cus_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "List the events this customer attended." }, "required": false, "description": "List the events this customer attended.", "name": "customer_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "List the customers credited with attending this event." }, "required": false, "description": "List the customers credited with attending this event.", "name": "event_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A page of visits.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttendanceList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/checkins/{id}/credit_correction": { "post": { "tags": [ "Check-in" ], "summary": "Correct who an admission credits", "description": "The organizer's audited override for attendance: moves an admitted check-in's credit to another customer, with a reason. The check-in itself (scan time, door pass, outcome) is unchanged; the previous and new customer, the actor and the reason are recorded. The feed receives `checkin.credit_changed`, then `attendance.removed` for the customer who loses their only supporting admission and `attendance.recorded` for the customer who gains the visit. A later correction of the position's holder does not move the credit, so this is the only way to change recorded attendance. A voided, superseded or rejected check-in is refused. Retrying with the same Idempotency-Key returns the same result.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^chk_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckinCreditCorrectionCreate" } } } }, "responses": { "200": { "description": "The check-in, with its corrected credit.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Checkin" } } } }, "400": { "description": "Invalid request. `invalid_reference` when the customer names no customer of this organizer; `missing_idempotency_key` without an Idempotency-Key.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "`checkin_not_found`: no such check-in for this organizer.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "`checkin_not_admitted`: only an admitted check-in credits a customer. `idempotency_key_in_flight` or `idempotency_key_reused` for an idempotency conflict.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "`credit_unchanged`: the customer is already credited with this admission.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/waitlist_entries": { "post": { "tags": [ "Waitlist" ], "summary": "Join an item's waitlist", "description": "Adds an entry to an item-scoped waitlist: an email, with a name when the buyer gave one, and the signed-in customer's external ref when the partner has one. An ordinary item's waitlist opens only when it has no derived availability; an approval-gated item's is open whenever the item is on sale. The request is keyed because it creates a durable entry and sends a notification activity.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "item_id": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "name": { "type": [ "string", "null" ], "minLength": 1, "description": "The buyer's name, when one was given. An entry needs only an email." }, "email": { "type": "string", "format": "email" }, "phone": { "type": [ "string", "null" ], "pattern": "^(?=(?:\\D*\\d){5})\\+?[\\d ()-]{7,25}$" }, "quantity": { "type": "integer", "exclusiveMinimum": 0, "maximum": 100, "description": "Units asked for (default 1). A promotion reserves and invites exactly this many." }, "customer": { "type": "object", "properties": { "external_ref": { "type": "string", "minLength": 1, "maxLength": 255 } }, "required": [ "external_ref" ], "description": "Who is joining, as the partner's own auth attests them: the external ref it stores for the customer, as on a checkout session. Automatic promotion puts the entry ahead of arrival order while that customer holds a membership with a `waitlist_priority` benefit assigned to the item, judged at each promotion. Omit it for a buyer the partner has not signed in; the entry is then served in arrival order." }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "item_id", "email" ] } } } }, "responses": { "201": { "description": "The created waitlist entry.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitlistEntry" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "get": { "tags": [ "Waitlist" ], "summary": "List waitlist entries", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^itm_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "item_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^evt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "event_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "waiting", "invited", "converted", "lapsed", "rejected" ] }, "required": false, "name": "status", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A keyset page of waitlist entries.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitlistEntryList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/waitlist_entries/{id}": { "get": { "tags": [ "Waitlist" ], "summary": "Retrieve a waitlist entry", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^wl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The waitlist entry.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitlistEntry" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/waitlist_entries/{id}/remove": { "post": { "tags": [ "Waitlist" ], "summary": "Remove a waiting entry", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^wl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The waitlist entry.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitlistEntry" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/waitlist_entries/{id}/reject": { "post": { "tags": [ "Waitlist" ], "summary": "Reject a waiting entry", "description": "Records the organiser's refusal of a waiting entry. The entry becomes rejected, takes no capacity, and is never promoted by a later refund.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^wl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The waitlist entry.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitlistEntry" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/waitlist_entries/{id}/promote": { "post": { "tags": [ "Waitlist" ], "summary": "Promote a waitlist entry", "description": "Reserves the entry's quantity of the item's quota footprint and creates an invitation checkout session for the configured invitation window. When the item is approval-gated and the invitation's quote totals zero, the order is issued in the same request and the entry is returned as converted, with no checkout link. An invitee who already holds the event's `max_tickets_per_customer` is refused with 422 `customer_ticket_limit_exceeded` (`param: \"id\"`); the entry stays waiting and no unit is reserved.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^wl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "The waitlist entry.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitlistEntry" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "A conflict. RETRYABLE — the same request may succeed shortly: `idempotency_key_in_flight` (an identical request is still running, or the key is being taken over), `checkout_session_conflict` (the session was modified concurrently) and `capacity_locked` (a quota lock timed out under contention). TERMINAL — retrying is futile and the caller must change something: `idempotency_key_reused` (this key was already used with a different body; use a new key), `checkout_session_locked` (payment has started, so the quote is contractual and the cart can no longer change) and `checkout_session_not_open` (the session has expired or completed; create a new one).", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "The request is well-formed but cannot be satisfied. `code` is one of: `insufficient_capacity` (the cart does not fit; an existing hold is left untouched), `item_not_sellable`, `code_not_reservable`, `fee_schedule_not_found`, `fee_schedule_ambiguous`, `fee_exceeds_charge` (an absorbed platform fee would meet or exceed the amount charged), `payment_intent_unavailable`, `connect_account_not_onboardable` (the organizer has no connected payment account), or an event checkout limit: `order_quantity_below_minimum` or `order_quantity_above_maximum` (the event's tickets in this checkout, counted across its items, are outside its per-order limits) or `customer_ticket_limit_exceeded` (the session's customer would pass the event's per-customer cap); `detail` names the event and the limit. On creation, `checkout_offer_not_applicable` means the `offer` does not fit the cart: no line is covered, it is priced in another currency, or discount pricing is switched off for the organizer; nothing was created.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/refunds": { "post": { "tags": [ "Refunds" ], "summary": "Refund selected positions or a membership payment", "description": "With `membership_charge_id`, returns part of a settled membership payment and nothing else: the membership, its benefits and renewal, and any ticket are left as they are, and the refund is never treated as paying an overdue renewal. Otherwise `refund_and_revoke` (the default) returns each named position's remaining refundable amount, including its booking fee, and revokes the positions immediately. `money_only` returns `amount_minor` against the named live positions and leaves them live. The refund is processing until Stripe confirms it; a request above the remaining refundable balance is refused with `refund_amount_exceeds_refundable`. A `refund_and_revoke` naming a position whose money-only refund is still processing is refused with `position_not_refundable` until that refund settles. An order that took no payment (a comp, a guest invitation or a zero-total checkout) has no money to return: a `refund_and_revoke` cancels its named tickets as a `completed` refund of 0 with no Stripe call, and a `money_only` refund of it is refused with `order_not_refundable`. Cancelling gives back no invitation allocation, pool or guest allowance units the order spent; give them back yourself with `POST /v1/invitation_usages/{id}/returns`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "order_id": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "The order whose positions are refunded. Give exactly one of `order_id` or `membership_charge_id`." }, "position_ids": { "type": "array", "items": { "type": "string", "pattern": "^pos_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "minItems": 1, "description": "Required with `order_id`; refused with `membership_charge_id`." }, "membership_charge_id": { "type": "string", "pattern": "^mch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Refund (part of) a settled membership payment. Needs `amount_minor`; `type` may only be `money_only`. The membership is left exactly as it is: not cancelled, paused or switched, its benefits and renewal schedule unchanged, no ticket revoked. A refund is never treated as paying an overdue renewal." }, "type": { "type": "string", "enum": [ "refund_and_revoke", "money_only" ], "description": "`refund_and_revoke` returns each position's remaining refundable amount and revokes it: the ticket no longer admits. `money_only` returns `amount_minor` against the positions and leaves them live: same ticket, same holder, same capacity. Defaults to `refund_and_revoke` for an order and to `money_only` for a membership charge." }, "amount_minor": { "type": "integer", "exclusiveMinimum": 0, "description": "Required for `money_only` and for a membership charge, refused for `refund_and_revoke`: the money to return, in the order's or charge's currency minor units. It may not exceed the order's `amount_refundable_minor` and what the named positions still hold, or the charge's `amount_refundable_minor`." }, "reason": { "type": "string", "enum": [ "requested_by_customer", "duplicate", "fraudulent" ], "default": "requested_by_customer" }, "metadata": { "type": "object", "additionalProperties": {} } } } } } }, "responses": { "201": { "description": "The processing refund.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Refund" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "get": { "tags": [ "Refunds" ], "summary": "List refunds", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "order_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "membership_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^mch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "membership_charge_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "processing", "completed", "failed" ] }, "required": false, "name": "status", "in": "query" }, { "schema": { "type": "string", "enum": [ "true", "false" ] }, "required": false, "name": "external", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Refunds newest first.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefundList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/memberships/{id}/charges": { "get": { "tags": [ "Memberships" ], "summary": "List a membership's payments", "description": "The settled payments the engine recorded for a membership, newest first, each with what has been refunded and what can still be. Refund a payment with `POST /v1/refunds` and its `membership_charge_id`; the refunds of a payment are listed with `GET /v1/refunds?membership_charge_id=`.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^mbs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The membership's payments.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MembershipChargeList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/refunds/{id}": { "get": { "tags": [ "Refunds" ], "summary": "Retrieve a refund", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^rfd_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The refund.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Refund" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/disputes": { "get": { "tags": [ "Refunds" ], "summary": "List disputes", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "order_id", "in": "query" }, { "schema": { "type": "string", "enum": [ "open", "won", "lost" ] }, "required": false, "name": "status", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Disputes newest first.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DisputeList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/disputes/{id}": { "get": { "tags": [ "Refunds" ], "summary": "Retrieve a dispute", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^dsp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The dispute.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Dispute" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/ledger_entries": { "get": { "tags": [ "Money" ], "summary": "List ledger entries", "description": "Confirmed Stripe money movements, newest first. Amounts are positive; entry_type tells you the direction.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "enum": [ "ticket_sale", "membership_charge", "refund", "platform_fee", "platform_fee_refund", "dispute_debit", "dispute_reversal", "dispute_fee" ] }, "required": false, "name": "entry_type", "in": "query" }, { "schema": { "type": "string", "pattern": "^ord_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": false, "name": "order_id", "in": "query" }, { "schema": { "type": "string", "pattern": "^[A-Z]{3}$" }, "required": false, "name": "currency", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Ledger entries newest first.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LedgerEntryList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/notification_provider": { "get": { "tags": [ "Notification provider" ], "summary": "Retrieve the notification provider connection", "description": "The organizer's single provider connection. Credentials are write-only and are never included in this response.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The provider connection, with credentials redacted.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationProvider" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Notification provider" ], "summary": "Connect or update the notification provider", "description": "Upserts the organizer's single provider connection, emitting notification_provider.created on the first connect and notification_provider.updated afterwards. The messages map is replaced wholesale; an omitted or disabled message type is silent — that is the suppression semantics.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "customerio" ] }, "credentials": { "$ref": "#/components/schemas/NotificationProviderCredentials" }, "messages": { "$ref": "#/components/schemas/NotificationMessagesInput" }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The provider connection, with credentials redacted.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationProvider" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/activities/{id}/notifications": { "get": { "tags": [ "Notification provider" ], "summary": "Retrieve an activity's notification sends", "description": "For each message type the activity's type triggers, in catalog order, whether the engine sends it for this activity and where its send stands in the attempt log. An activity that triggers no message answers an empty list. Send records are kept for about thirty days, so an older activity reads `none`. Never includes a recipient, a payload or a provider error.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^act_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "act_0199c4ea-6f52-7e87-b1d9-2a7c4e0b8f13" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The activity's message types and their send state.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActivityNotificationList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/activities/{id}/notifications/claim": { "post": { "tags": [ "Notification provider" ], "summary": "Claim an activity's notification send", "description": "For an organizer that sends a message itself: claims the one send of this message for this activity in the attempt log the engine's notification sink claims in, before you call your provider. Whichever of the two claims first sends it: the engine steps aside for a send you have claimed, and you must not send one it holds or has settled. Claiming does not consult the wiring; read `GET /v1/activities/{id}/notifications` to decide whether the message is yours to send. A claim not settled within about ten minutes is recorded `ambiguous` and never sent again. A `400` when the activity's type does not trigger the message.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^act_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "act_0199c4ea-6f52-7e87-b1d9-2a7c4e0b8f13" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationSendClaimRequest" } } } }, "responses": { "200": { "description": "Your claim, or who holds or settled the send.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationSendClaim" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/activities/{id}/notifications/settle": { "post": { "tags": [ "Notification provider" ], "summary": "Settle a notification send claim", "description": "Records what became of a send you claimed: `sent`, `released` or `ambiguous`. Answers the message's state afterwards, as the activity's notifications read does. Settling a claim that is no longer yours is a `409` `notification_claim_not_held` and changes nothing.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^act_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "act_0199c4ea-6f52-7e87-b1d9-2a7c4e0b8f13" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationSendSettlement" } } } }, "responses": { "200": { "description": "The message's send state after the settlement.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActivityNotification" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "`notification_claim_not_held`: the claim is not one your own sender holds on this message. It was already settled or given back, it was recorded `ambiguous` after the claim window, or it is the engine's. Read the message's state rather than sending it again.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/entitlement_providers": { "get": { "tags": [ "Entitlement providers" ], "summary": "List entitlement providers", "description": "The external providers registered for the organizer, newest first. In-engine providers (discount codes, memberships) are not listed.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Entitlement providers.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitlementProviderList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Entitlement providers" ], "summary": "Register an entitlement provider", "description": "Registers an external provider for the organizer, active from the start, emitting entitlement_provider.registered. Registration is the organizer's consent to let the provider discount their sales; switch it off again with a PATCH. It does not make the engine call the provider by itself.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitlementProviderCreate" } } } }, "responses": { "201": { "description": "The registered provider.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitlementProvider" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/entitlement_providers/{id}": { "get": { "tags": [ "Entitlement providers" ], "summary": "Retrieve an entitlement provider", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^ep_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "The entitlement provider, with its signing secret redacted.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitlementProvider" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Entitlement providers" ], "summary": "Update an entitlement provider", "description": "Edits the callback URLs, replaces the signing secret, or switches the provider on or off. Switching emits entitlement_provider.registered or entitlement_provider.deregistered; any other edit emits entitlement_provider.updated.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^ep_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "quote_url": { "type": "string", "maxLength": 2048, "format": "uri" }, "commit_url": { "type": [ "string", "null" ], "maxLength": 2048, "format": "uri" }, "signing_secret": { "type": "string", "minLength": 32, "maxLength": 256, "description": "The key the engine signs its callbacks to this provider with. Write-only: choose a random value of at least 32 characters, keep a copy for verifying signatures, and replace it here to rotate. It is stored encrypted and never returned.", "writeOnly": true }, "status": { "type": "string", "enum": [ "active", "disabled" ] }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "The updated provider.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EntitlementProvider" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/webhook_endpoints": { "get": { "tags": [ "Webhooks" ], "summary": "List webhook endpoints", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Webhook endpoints.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEndpointList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "post": { "tags": [ "Webhooks" ], "summary": "Create a webhook endpoint", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Required replay key for this create operation." }, "required": true, "description": "Required replay key for this create operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "enabled_types": { "type": "array", "items": { "type": "string" }, "minItems": 1 }, "status": { "type": "string", "enum": [ "enabled", "disabled" ] }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": [ "url", "enabled_types" ] } } } }, "responses": { "201": { "description": "Webhook endpoint and one-time signing secret.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEndpointCreated" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/webhook_endpoints/{id}": { "get": { "tags": [ "Webhooks" ], "summary": "Retrieve a webhook endpoint", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^we_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "Webhook endpoint.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEndpoint" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "patch": { "tags": [ "Webhooks" ], "summary": "Update a webhook endpoint", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^we_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "enabled_types": { "type": "array", "items": { "type": "string" }, "minItems": 1 }, "status": { "type": "string", "enum": [ "enabled", "disabled" ] }, "metadata": { "type": "object", "additionalProperties": {} } }, "minProperties": 1 } } } }, "responses": { "200": { "description": "Updated webhook endpoint.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEndpoint" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } }, "delete": { "tags": [ "Webhooks" ], "summary": "Delete a webhook endpoint", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^we_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "Deleted webhook endpoint.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEndpoint" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/webhook_endpoints/{id}/rotate": { "post": { "tags": [ "Webhooks" ], "summary": "Rotate a webhook signing secret", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^we_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" }, { "schema": { "type": "string", "minLength": 1, "description": "Optional replay key for this update operation." }, "required": false, "description": "Optional replay key for this update operation.", "name": "Idempotency-Key", "in": "header" } ], "responses": { "200": { "description": "Endpoint and one-time new signing secret.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEndpointCreated" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/connect/onboarding": { "post": { "tags": [ "Connect" ], "summary": "Start hosted onboarding for a new connected account", "description": "Creates the organizer's connected account if it has none, then returns a fresh single-use Stripe onboarding link. Safe to repeat: at most one account is ever created per organizer.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "return_url": { "type": "string", "format": "uri", "description": "Where Stripe returns the organizer after onboarding. Defaults to the engine's own landing page." }, "refresh_url": { "type": "string", "format": "uri", "description": "Where Stripe sends the organizer once the link has expired. Defaults to the engine's own landing page." }, "email": { "type": "string", "format": "email" } } } } } }, "responses": { "201": { "description": "A single-use hosted onboarding link.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConnectOnboardingLink" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/connect/oauth/authorization": { "post": { "tags": [ "Connect" ], "summary": "Build an authorization URL to attach an existing Stripe account", "description": "Returns the Stripe OAuth authorization URL for this organizer. An API key, organizer owner, or dashboard user may start it; the engine's OAuth callback attaches the authorized account, then returns the organizer to return_url. A revoked API-key grant returns 403 organizer_not_granted; revoked owner or staff authorization returns opaque 400 connect_state_invalid because the callback is an unauthenticated browser hop.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "return_url": { "type": "string", "format": "uri", "description": "Where the organizer is sent once the engine has attached the account." }, "email": { "type": "string", "format": "email" } } } } } }, "responses": { "201": { "description": "The authorization URL and the expiry of its signed state.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConnectAuthorization" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/activities": { "get": { "tags": [ "Activities" ], "summary": "List activities", "description": "Reverse-chronological id-keyset feed. Sweep recovery is cursor-free created[gte] overlap re-read, deduplicated by act_ id; cursor plus created[gte] is legal but cannot recover a late commit. Unknown or invalid stored snapshots are returned as an envelope with data.object redacted to its id.", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "required": false, "name": "limit", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "starting_after", "in": "query" }, { "schema": { "type": "string" }, "required": false, "name": "ending_before", "in": "query" }, { "schema": { "type": "string", "description": "An exact activity type or a resource wildcard such as order.*." }, "required": false, "description": "An exact activity type or a resource wildcard such as order.*.", "name": "type", "in": "query" }, { "schema": { "type": "string", "description": "The id of the resource snapshot in data.object." }, "required": false, "description": "The id of the resource snapshot in data.object.", "name": "resource", "in": "query" }, { "schema": { "type": "string", "description": "The actor id in the activity envelope." }, "required": false, "description": "The actor id in the activity envelope.", "name": "actor", "in": "query" }, { "schema": { "type": "string", "format": "date-time", "description": "Inclusive activity creation lower bound for reconciliation overlap re-reads." }, "required": false, "description": "Inclusive activity creation lower bound for reconciliation overlap re-reads.", "name": "created[gte]", "in": "query" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "A reverse-chronological keyset page of organizer-visible activities.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActivityList" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } }, "/v1/activities/{id}": { "get": { "tags": [ "Activities" ], "summary": "Retrieve an activity", "security": [ { "bearerAuth": [] } ], "parameters": [ { "schema": { "type": "string", "pattern": "^act_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "example": "act_0199c4ea-6f52-7e87-b1d9-2a7c4e0b8f13" }, "required": true, "name": "id", "in": "path" }, { "schema": { "type": "string", "pattern": "^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "example": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" }, "required": true, "description": "Required organizer tenant id. There is intentionally no default, even for single-grant keys.", "name": "Ticketing-Organizer", "in": "header" } ], "responses": { "200": { "description": "An organizer-visible activity. Unknown or invalid stored snapshots are returned with data.object redacted to its id.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Activity" } } } }, "400": { "description": "Invalid request", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "401": { "description": "Authentication failed", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "403": { "description": "Organizer grant required", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "404": { "description": "Resource not found", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "409": { "description": "Idempotency conflict", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "422": { "description": "Request is semantically invalid", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "429": { "description": "Rate limited", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "500": { "description": "Internal failure", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } }, "503": { "description": "A dependency is unavailable. `live_payments_not_configured` means the platform operator must complete live Stripe credential setup before retrying; no Stripe request is made for that refusal. On checkout creation, no session or capacity hold is created either. Other transient dependency failures may be retried.", "headers": { "Request-Id": { "description": "Identifier for this API request.", "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } } } } } } }, "webhooks": {} } ```