Contract 4d1e0ad · updated 2026-11-11
Lissen Ticketing
GuidesInvitations

Invitation allocations and pools

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 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.

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" }'
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:

FieldMeaning
limit_unitsThe maximum you set.
used_unitsTickets issued against it so far, less the units you gave back.
remaining_unitslimit_units minus used_units, never below zero.
available_unitsOn 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.

Issue a guest's tickets

Send the comp as usual and add allocation_id:

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:

{
  "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 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:

{
  "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 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 if the guest is not coming.

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" } }'
{
  "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:

AnswerWhen
409 invitation_return_exceeds_remainingunits is more than the usage has left to give back. detail.remaining_units is what is left.
409 invitation_usage_fully_returnedEvery unit of the usage was already given back.
404 not_foundNo 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.

On this page