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.