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

Orders, positions and customers

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

The order

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

StateMeaning
processingIssued optimistically on a delayed method (a bank debit). The tickets are valid; the money is on its way.
paidThe money landed. Card payments arrive here directly.
payment_failedThe money never came. Every position was revoked and the capacity returned.
refund_pendingA refund is in progress.
refundedEvery 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; 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 or an organizer's holder correction 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.

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

StatusMeaning
not_linkedThe engine holds no Stripe Customer for this customer, so there is nothing to update.
pendingThe 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.
syncedNothing is outstanding: every linked Stripe Customer has the details the engine last sent.
failedThe 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.

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

ResultMeaning
403 not_position_holderThe acting customer does not hold the position now. Nothing changed.
403 staff_identity_not_permittedThe request was a dashboard sign-in, not the organizer's API key.
409 already_checked_inThe position has been admitted. An organizer can still correct the holder.
422 position_revokedThe position was revoked.
422 holder_unchangedThe destination already holds the position.
400 invalid_referenceThe acting customer or the destination names no customer of this organizer; param says which.
404 not_foundNo 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:

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

{
  "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 (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.

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).
  • 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 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 of and the returned_units you have. capacity_override never passes an allowance. See Invitation allocations and pools.

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.

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.

ResultMeaning
400 invalid_referenceitem_id or recipient.id is not one of this organizer's.
400 invalid_footprintThe item draws on no quota.
422 item_not_sellableThe item is inactive, or has no event.
422 insufficient_capacityThere is no room for the whole quantity. detail.shortfalls names each short quota; nothing was issued.
400 invalid_referenceAlso: allocation_id is not this organizer's, or belongs to another event than the item.
422 invitation_allowance_exceededWith 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_requiredThe recipient has no email to deliver to. Send recipient.email.
409 capacity_lockedA 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. 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 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.

On this page