Skip to content
LA CRYPTADOCS / 01

Tickets, gifts, and transfers

Personal inventory, states, expiry, and safe transfers.

Tickets, gifts, and transfers

Tickets and gifts share the items model. This makes ownership, history, and state visible under the same rules without confusing an issued ticket with an attendee registration.

Personal inventory

GET /api/organizations/{organizationSlug}/me/items lists items visible to the signed-in person. Main states are:

StateMeaning
availableMay be presented, transferred, or consumed depending on type
claimedAlready used or claimed
revokedInvalidated by the organization
expiredPast its expiry

A ticket normally has quantity 1, an Event, ticket type, code, and number. A gift uses a benefit key and may allow a larger quantity. Tickets expire when the Event ends; gift expiry depends on configuration.

Transfer an item

The owner can transfer an eligible item from .../me/items/{itemId}/transfer by entering the recipient’s email or npub. The operation:

  1. checks ownership, state, expiry, and item rules;
  2. finds or creates a pending identity for the recipient;
  3. changes ownership atomically;
  4. appends an immutable transfer-history record;
  5. preserves the earliest applicable expiry.

After a successful transfer, the item no longer appears for the sender. The recipient must sign in with the specified identity to see it; a different email or pubkey creates another identity and does not recover it automatically.

Confirm recipient and item before sending. Do not automatically repeat a transfer after an uncertain response: query current inventory first.

Receive and claim gifts

.../me/gifts shows benefits associated with the identity, including those that still require a claim. .../me/gifts/claim applies a valid allocation token or code and prevents claiming the same benefit twice.

At an Event, a gift may also be linked to a ticket code. Reading it shows available quantities; consumption deducts atomically. Requesting more than available returns 409 without changing the balance.

Team actions

Managers query and operate tenant inventory under .../items: they can inspect an item, cancel or revoke it, check it in, and resend its email when supported. An organization administrator can also perform an assisted transfer, which is audited.

Do not use these actions to “correct” an identity without evidence. Review current owner, history, order, Event, and intended recipient before intervening.

Privacy and security

  • Do not include full ticket or claim codes in logs, shared URLs, or analytics.
  • Show only the final characters when support needs to distinguish codes.
  • Do not use an email address as sufficient proof of ownership when a verified Nostr identity exists.
  • Export histories only for a legitimate operational need.
  • Revocation does not erase history; it explains why the item is no longer valid.