Skip to content

Guides

Transfers in your own site

Send a ticket to someone else, accept it on your own page, or move it directly.

View as Markdown

A transfer moves one ticket from its holder to someone else. When it is accepted the new holder has the ticket, the ticket's version goes up by one, and the old QR code stops working. The holder pages already have a Send button; this page is for doing it from your own site or an agent.

The two ways#

  • An offer. The recipient gets an email or a text with a link to an accept page (transfer.url, on our site). They accept there with their name, and the ticket is theirs. The offer expires at the event's transfer cutoff. In test mode the email reaches only members of your organization, so test with a colleague's address, or read it with GET /v1/test_helpers/mail (test mode).
  • Direct. An organizer moves the ticket at once, with no accept step, and says why (direct: { reason }). Use it to fix a mistake or to move a comp.

Transfers are allowed or not by the event's settings (transfers_allowed, transfer_cutoff_minutes, max_transfers_per_ticket). A refusal comes back as transfers_not_allowed, transfer_cutoff_passed, transfer_limit_reached, transfer_pending (one at a time per ticket) or ticket_checked_in (a ticket already scanned in today cannot move).

Check first#

dry_run: true runs every rule and changes nothing.

TypeScript
const mine = await tickets.orders.retrieve(order.id);
const ticket = mine.tickets[0]!;

const preview = await tickets.transfers.create({ ticket: ticket.id, to: { email: 'sam@example.com', name: 'Sam Rivera' }, dry_run: true });
console.log(preview.object, preview.status); // transfer_preview pending

Offer a ticket#

TypeScript
const offer = await tickets.transfers.create({
  ticket: ticket.id,
  to: { email: 'sam@example.com', name: 'Sam Rivera' },
  message: 'See you there',
});
if (offer.object !== 'transfer') throw new Error('expected a transfer');
console.log(offer.status, offer.version_before); // pending 1

to needs an email or a phone. notify (true unless you say otherwise) tells the people involved, as the order's own email and text settings allow. With notify: false nobody is told and you send your own message with offer.url.

Accept it in your own page#

If you would rather the recipient accept on your site than ours, take their name and call accept for them. The ticket is theirs and its version goes up by one.

TypeScript
const accepted = await tickets.transfers.accept(offer.id, { name: 'Sam Rivera' });
console.log(accepted.status, accepted.version_after); // accepted 2

const moved = await tickets.tickets.retrieve(ticket.id);
console.log(moved.version, moved.holder.email); // 2 sam@example.com

Take back an offer that has not been accepted with tickets.transfers.cancel(id). The ticket stays with its holder, unchanged. A transfer that nobody accepts expires (transfer.expired).

Move it directly#

TypeScript
const second = mine.tickets[1]!;
const direct = await tickets.transfers.create({
  ticket: second.id,
  to: { email: 'lee@example.com', name: 'Lee Park' },
  direct: { reason: 'Maria asked us to put it in her friend\'s name' },
});
if (direct.object !== 'transfer') throw new Error('expected a transfer');
console.log(direct.status, direct.direct); // accepted true

What your site should do#

  • Treat the old QR as dead the moment a transfer is accepted. Show the new holder's ticket from GET /v1/tickets/{id}, never from a copy you kept.
  • Listen for transfer.created, transfer.accepted, transfer.cancelled and transfer.expired and ticket.transferred on a webhook to keep your own records in step.
  • A Wallet pass moves with the ticket: the old holder's pass says it moved, and the new holder gets a pass of their own (Wallet).