The pretix API enables seamless integration of your event management tasks by automating ticket sales, attendee management, and event analytics. With Pipedream's capabilities, you can build custom workflows that respond to various pretix events, synchronize attendee data with other services, or analyze sales patterns for actionable insights.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pretix: {
type: "app",
app: "pretix",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://pretix.eu/api/v1/me`,
headers: {
Authorization: `Bearer ${this.pretix.$auth.oauth_access_token}`,
},
})
},
})
Synchronize Attendee Data with CRM Systems: Automatically update contact lists in your CRM whenever new attendees register for an event on pretix. This can ensure that your sales team has the latest information and can follow up with personalized communication.
Real-time Notification on Ticket Sales: Set up notifications to be sent via Slack, email, or SMS when a certain number of tickets are sold or when a ticket for a high-demand event is purchased. This helps you stay informed about sales milestones and inventory.
Post-Event Feedback Collection: After an event concludes, trigger a workflow to send out surveys via email or another platform to gather feedback from attendees. Use the responses to improve future event planning and attendee satisfaction.
Returns information on one order, identified by its order code. See the documentation
pretix uses OAuth authentication. When you connect your pretix account, Pipedream will open a popup window where you can sign into pretix and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any pretix API.
Pipedream requests the following authorization scopes when you connect your account:
read write
profile
GET
https://pretix.eu/api/v1/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://pretix.eu/api/v1/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://pretix.eu/api/v1/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}