1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

events → Update a Pretix Ticket by id

AI-generated

Overview

This node updates a Pretix ticket by its ID within the "events" resource. It allows you to modify attendee information for a specific ticket in a given event and organizer context on the Pretix platform. This is useful for automating attendee data corrections, updating contact details, or managing ticket holder information programmatically.

Common scenarios:

  • Correcting attendee names or emails after purchase.
  • Updating company or address information for attendees.
  • Integrating with CRM systems to keep ticket data synchronized.

Example:
Automatically update an attendee's email address if it changes in your user database.


Properties

Name Meaning
Organizer The slug field of the organizer whose event/ticket you want to modify. Required.
Event The slug field of the event containing the ticket to update. Required.
Ticket code The unique code identifying the ticket to update. Required.
API Token Your Pretix API token for authentication. Required.
Attendee Data Input Mode Choose how to provide attendee data:
- Expression
- Manual
Attendee Data (Expression) JSON object specifying fields to update for the attendee. Only provided fields will be updated. Required if using "Expression" mode.
Attendee Data (Manual) Collection of fields to update for the attendee. Only provided fields will be updated. Required if using "Manual" mode.
Options include:
- Email
- Name
- Company
- Street
- ZIP
- City
- Country
- State

Output

  • json:
    • On success: Contains the updated attendee/ticket data as returned by the Pretix API.
    • On error: Contains an error field with the error message or details.

Example output (success):

{
  "json": {
    "id": 123,
    "code": "ABCDEF",
    "attendee_name": "Jane Doe",
    "attendee_email": "jane@example.com",
    ...
  }
}

Example output (error):

{
  "json": {
    "error": "Invalid ticket code"
  }
}

Dependencies

  • Pretix API: Requires a valid API token for authentication.
  • n8n Credentials: You must configure the "1001fxApi" credential in n8n with your Pretix API token.

Troubleshooting

Common issues:

  • Invalid API Token: If the API token is missing or incorrect, you'll receive an authentication error. Double-check your credentials.
  • Ticket Not Found: If the ticket code does not exist, the output will contain an error message such as "Invalid ticket code".
  • Missing Required Fields: If required properties (Organizer, Event, Ticket code, Attendee Data) are not provided, the node will throw an error.
  • Incorrect Attendee Data Format: Ensure that the attendee data matches the expected structure, especially when using "Expression" mode.

Error messages and resolutions:

  • "Invalid ticket code": Verify the ticket code exists for the specified event and organizer.
  • "Authentication failed": Check your API token and permissions.
  • "Missing required property": Make sure all required fields are filled in the node configuration.

Links and References

Discussion