Pricing & 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. |
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", inapplied_effects) carriessource— where the discount came from, in words you can show a buyer. - A teaser (
state: "unapplied", inunapplied_effects) carriesrequiresinstead — 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.
{
"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.
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 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) 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 percentage, which is never stackable: a plan's own percentage, which covers every position, or a membership benefit, 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.
- 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.
- 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/quotescurl -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" }
}'{
"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_basketsand 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.
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 isinvalid_reference.{"external_ref": "member-8814"}— your own identifier, as shown above.- Omit
customerentirely 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. Eachitem_idmay appear at most once — a repeat is a400. Usequantityinstead.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.createdandcheckout_session.updatedcarry the binding quote in their snapshot.price_effect.committed,price_effect.refusedanddiscount_code.redeemedrecord the moment a consumable is actually spent or given back. They arrive with orders & issuance.
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, notunit_list_price_minor. The list price is there so you can strike it through; the charged price is the other one. total_minoralready includes the booking fee and excludes the platform fee. Addingplatform_fee_minortototal_minordouble-counts on apassed_onschedule.- A quote with
sellable: falselines still returns200. 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:
{
"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: 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:
{ "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.