Skip to main content

Create

ParameterTypeValues / Description
eventId*number
ticketBatchIdnumberRequired for ticket events
firstNamestring
lastNamestring
email*string
status*stringattending invited
phonestringMobile phone number with country code. Example: +46701234567
commentstring
sendEmailConfirmation*booleanIf set to true, an email confirmation will be sent to the attendee / invitee.
const Confetti = require('confetti')

const confetti = new Confetti({ apiKey: 'your-key' })
const data = await confetti.tickets.create({
eventId: 16969,
ticketBatchId: 16090,
firstName: 'Foo',
lastName: 'Bar',
phone: '+46700000000',
status: 'attending',
email: 'foo@bar.com',
comment: 'Foo and bar',
sendEmailConfirmation: true,
})