Getting the orders for a particular event
Using one of the event IDs from the previous query, you can get a list of attendees, what timeslots they are purchased tickets for, as well as the any checkout questions info they provided:
query {
event(id: "<event_id>") {
attendees {
nodes {
id,
firstName,
lastName,
email,
rate {
name
},
event {
title
},
order {
state,
id
},
answers {
question {
question
type
},
value
}
}
}
}
If you also need to get the order breakdown information, you can use the following query:
query {
event(id: "587cfe33127e72004ec6b394") {
orders {
nodes {
id,
buyer {
firstName,
lastName,
email
}
orderItems{
nodes{
amount,
costBreakdown{
currency
fee
discount
},
rate {
name,
price,
salesAmount
}
}
}
costBreakdown {
commission
commissionIncluded
discount
fee
fulfillment
payment
planFee
price
subtotal
taxesTotal
voidedCommission
voidedCommissionIncluded
voidedDiscount
voidedFee
voidedPayment
voidedPlanFee
voidedPrice
voidedSubtotal
voidedTaxesTotal
}
}
}
}
}
Updated almost 6 years ago