Skip to main content

Find all

ParameterDefaultValues / Description
filter[eventId]*number
filter[status]paid refunded pending-invoice sent-invoice paid-invoice cancelled-invoice paid refunded pending-invoice sent-invoice paid-invoice cancelled-invoice
page[size]50Maximum number of results
page[number]1Page number
const Confetti = require('confetti')

const confetti = new Confetti({ apiKey: 'your-key' })
const tickets = await confetti.payments.findAll({
filter: {
eventId: 16969
},
page: {
size: 10,
number: 3
}
})
Result
[
{
"name": "Foo Bar",
"email": "foo@bar.com",
"company": "The Company",
"amount": 13,
"vat": 3,
"vatPercentage": 30,
"token": "2447b4acef764836169b53c4",
"currency": "SEK",
"status": "paid",
"paidAt": "2020-03-09T20:05:10.000Z",
"commission": "5.65",
"commissionVat": "1.13",
"customer": {
"other": "Extra information"
},
"id": "288298",
"type": "payment"
},
{
"name": "Foo Bar",
"email": "foo@bar.com",
"company": "The Company",
"amount": 13,
"vat": 3,
"vatPercentage": 30,
"token": "2447b4acef764836169b53c4",
"currency": "SEK",
"status": "paid",
"paidAt": "2020-03-09T20:05:10.000Z",
"commission": "5.65",
"commissionVat": "1.13",
"customer": {
"other": "Extra information"
},
"id": "288298",
"type": "payment"
}
]