Skip to content
Pickcell
Menu

Events API

Create events and follow every booking

Create events and ticket types from your own systems, publish them for booking, read the orders that come in and hear about every sale, ticket and check-in through signed webhooks.

Key concepts

Event
Something people book tickets for. It starts as a DRAFT and opens for booking once you publish it. It can later be ARCHIVED or CANCELLED.
Ticket type
What a buyer chooses, such as General admission. It has a price in cents, a three-letter currency and a quantity on sale.
Order
One booking. It starts as a DRAFT while the tickets are held, then becomes PAID, and FULFILLED once the tickets are emailed. It can also end REFUNDED, EXPIRED or CANCELLED.
Ticket
One seat on a paid order, with a reference shaped TIX- and six letters or digits, checked in at the door.
Key roles
Give the key an EVENTS role of EVENT_MANAGER or EVENT_OWNER. Refunds, payouts and door scanning are a person's act, so an API key cannot call them.

Every call below needs a bearer token from your API key - see the quickstart. accountId means different things on different events. On order.placed and order.paid it is the buyer’s account, kept for older receivers: use organizerAccountId for your account and buyerAccountId for the buyer’s, which is null for a guest checkout. On ticket.issued and ticket.checked-in it is your account, the organiser’s, as is organizerAccountId. On order.refunded it is your account.

Each task shows curl, fetch and the SDK (npm i @pickcell/sdk). The SDK examples use one client, made with your API key and account address; it exchanges the key for a token itself:

import { Stagedoor } from '@pickcell/sdk/stagedoor';

const stagedoor = new Stagedoor({
  baseUrl: 'https://api.pickcell.io',
  apiKey: process.env.PICKCELL_API_KEY,
  accountIdentifier: process.env.PICKCELL_ACCOUNT_ADDRESS,
});

Create an event

An event starts as a draft, so nothing is on sale until you publish it. Give it a name, start and end times, a time zone, a venue and a capacity. The venue’s country is a two-letter code, and lat and lng may be null.

curl -X POST https://api.pickcell.io/v1/stagedoor/events \
  -H "Authorization: Bearer $PICKCELL_TOKEN" \
  -H "content-type: application/json" \
  -d '{
    "name": "Winter Gala",
    "startsAt": "2027-06-12T18:00:00+10:00",
    "endsAt": "2027-06-12T23:00:00+10:00",
    "timezone": "Australia/Sydney",
    "venue": {
      "name": "Town Hall",
      "addressLine1": "483 George St",
      "city": "Sydney",
      "country": "AU",
      "lat": null,
      "lng": null
    },
    "capacity": 300
  }'
const res = await fetch('https://api.pickcell.io/v1/stagedoor/events', {
  method: 'POST',
  headers: { Authorization: `Bearer ${accessToken}`, 'content-type': 'application/json' },
  body: JSON.stringify({
    name: 'Winter Gala',
    startsAt: '2027-06-12T18:00:00+10:00',
    endsAt: '2027-06-12T23:00:00+10:00',
    timezone: 'Australia/Sydney',
    venue: { name: 'Town Hall', addressLine1: '483 George St', city: 'Sydney', country: 'AU', lat: null, lng: null },
    capacity: 300,
  }),
});
const { event } = await res.json();
const event = await stagedoor.events.create({
  name: 'Winter Gala',
  startsAt: '2027-06-12T18:00:00+10:00',
  endsAt: '2027-06-12T23:00:00+10:00',
  timezone: 'Australia/Sydney',
  venue: { name: 'Town Hall', addressLine1: '483 George St', city: 'Sydney', country: 'AU', lat: null, lng: null },
  capacity: 300,
});

The response is 201 with the new event under event, including its id and status DRAFT.

Add a ticket type

Price in cents with a three-letter currency. A ticket type can be added while the event is a draft or already published, but not once it is archived or cancelled (409).

curl -X POST https://api.pickcell.io/v1/stagedoor/events/<event id>/ticket-types \
  -H "Authorization: Bearer $PICKCELL_TOKEN" \
  -H "content-type: application/json" \
  -d '{ "name": "General admission", "priceCents": 4500, "currency": "AUD", "quantity": 250 }'
const res = await fetch(`https://api.pickcell.io/v1/stagedoor/events/${eventId}/ticket-types`, {
  method: 'POST',
  headers: { Authorization: `Bearer ${accessToken}`, 'content-type': 'application/json' },
  body: JSON.stringify({ name: 'General admission', priceCents: 4500, currency: 'AUD', quantity: 250 }),
});
const { ticketType } = await res.json();
const ticketType = await stagedoor.ticketTypes.create({
  eventId,
  name: 'General admission',
  priceCents: 4500,
  currency: 'AUD',
  quantity: 250,
});

The response is 201 with the ticket type under ticketType. A buyer may take up to 10 per order unless you set maxPerOrder; send null for no limit.

Publish the event

Publishing opens the event for booking and sends event.published.

curl -X POST https://api.pickcell.io/v1/stagedoor/events/<event id>/publish \
  -H "Authorization: Bearer $PICKCELL_TOKEN"
const res = await fetch(`https://api.pickcell.io/v1/stagedoor/events/${eventId}/publish`, {
  method: 'POST',
  headers: { Authorization: `Bearer ${accessToken}` },
});
const { event } = await res.json();
const event = await stagedoor.events.publish(eventId);

Only a draft can be published; anything else answers 409. If your plan does not include publishing events, the call answers 402.

List an event’s orders

curl "https://api.pickcell.io/v1/stagedoor/events/<event id>/orders?page=1&limit=50" \
  -H "Authorization: Bearer $PICKCELL_TOKEN"
const res = await fetch(`https://api.pickcell.io/v1/stagedoor/events/${eventId}/orders?page=1&limit=50`, {
  headers: { Authorization: `Bearer ${accessToken}` },
});
const { orders, pagination } = await res.json();
const orders = await stagedoor.orders.listForEvent(eventId, { page: 1, limit: 50 });

The orders come back under orders, with pagination beside them. Each carries the buyer’s details, its status, totalCents and currency, so treat the response as personal data. To act on a booking as it happens rather than poll for it, subscribe to order.paid.

Events

Delivered to the endpoints on your Pickcell events application, wrapped in the delivery envelope. The webhooks guide covers filters, signatures and retries.

  • event.publishedAn event was published and is open for booking.
    Example data
    {
      "eventId": "<event id>",
      "accountId": "<your account id>",
      "name": "Winter Gala",
      "publishedAt": "2026-11-23T01:02:03.000Z"
    }
  • event.cancelledAn event was cancelled and its tickets stop scanning at once. With refundOnCancel true every paid order is refunded in full, each with its own order.refunded; with false, no refunds follow.
    Example data
    {
      "eventId": "<event id>",
      "accountId": "<your account id>",
      "name": "Winter Gala",
      "cancelledAt": "2026-11-23T01:02:03.000Z",
      "refundOnCancel": true
    }
  • order.placedA buyer started an order and its tickets are held. It may still expire, so count bookings from order.paid.
    Example data
    {
      "orderId": "<order id>",
      "eventId": "<event id>",
      "accountId": null,
      "organizerAccountId": "<your account id>",
      "buyerAccountId": null,
      "buyerEmail": "sam@example.com",
      "buyerName": "Sam Lee",
      "totalCents": 9000,
      "currency": "AUD",
      "ticketCount": 2
    }
  • order.paidAn order's payment settled. When the event asks registration questions, answers carries them.
    Example data
    {
      "orderId": "<order id>",
      "eventId": "<event id>",
      "accountId": null,
      "organizerAccountId": "<your account id>",
      "buyerAccountId": null,
      "buyerEmail": "sam@example.com",
      "pspChargeRef": "<payment reference>",
      "totalCents": 9000,
      "currency": "AUD",
      "paidAt": "2026-11-23T01:02:03.000Z"
    }
  • ticket.purchasedOne ticket was created on a paid order. Sent with order.paid, once per ticket.
    Example data
    {
      "ticketId": "<ticket id>",
      "orderId": "<order id>",
      "eventId": "<event id>",
      "ticketTypeId": "<ticket type id>",
      "attendeeEmail": "sam@example.com",
      "externalRef": "TIX-7K2M9Q"
    }
  • order.fulfilledA paid order's tickets were emailed to the buyer.
    Example data
    {
      "orderId": "<order id>",
      "eventId": "<event id>",
      "organizerAccountId": "<your account id>",
      "buyerAccountId": null,
      "buyerEmail": "sam@example.com",
      "ticketCount": 2,
      "attachmentsOmitted": false,
      "fulfilledAt": "2026-11-23T01:02:03.000Z"
    }
  • ticket.issuedA ticket was issued and delivered to its attendee.
    Example data
    {
      "ticketId": "<ticket id>",
      "orderId": "<order id>",
      "eventId": "<event id>",
      "accountId": "<your account id>",
      "organizerAccountId": "<your account id>",
      "ticketTypeId": "<ticket type id>",
      "attendeeName": "Sam Lee",
      "attendeeEmail": "sam@example.com",
      "externalRef": "TIX-7K2M9Q",
      "deliveredAt": "2026-11-23T01:02:03.000Z"
    }
  • ticket.checked-inA ticket was checked in at the door. Sent on its first scan only.
    Example data
    {
      "ticketId": "<ticket id>",
      "eventId": "<event id>",
      "accountId": "<your account id>",
      "organizerAccountId": "<your account id>",
      "externalRef": "TIX-7K2M9Q",
      "attendeeName": "Sam Lee",
      "scannedAt": "2026-11-23T01:02:03.000Z",
      "gateId": null,
      "scannedByEmail": null
    }
  • order.refundedAn order was refunded. refundedAmountCents is what went back to the buyer. Fees are kept on a BUYER or ORGANISER refund, so it can be less than the total; an EVENT_CANCELLATION refunds it all.
    Example data
    {
      "orderId": "<order id>",
      "eventId": "<event id>",
      "accountId": "<your account id>",
      "buyerEmail": "sam@example.com",
      "refundRef": "<refund reference>",
      "refundedAmountCents": 8640,
      "currency": "AUD",
      "reason": null,
      "initiatedBy": "BUYER"
    }

Ready to build?

Create an account, then make your first API key in the console.