EZTIX
Back

Zapier Integration

Setting Up EZTIX Order Triggers in Zapier
Follow this step-by-step guide to create a Zap that triggers when new orders are placed on EZTIX

Step 1: Set Up Email Forwarding in EventCube

  1. Log in to your EventCube account and navigate to Settings > Notifications
  2. Ensure that Order Confirmation Emails are enabled for your events
  3. Create a dedicated email address that will receive copies of all order confirmations (e.g., orders@yourdomain.com)
  4. Set up email forwarding to automatically forward all order confirmation emails to this dedicated address

Step 2: Create a New Zap in Zapier

  1. Log in to your Zapier account at zapier.com
  2. Click the Create Zap button in the top-left corner
  3. For the trigger app, search for and select Email by Zapier or Gmail (depending on your email provider)

    Selecting Email trigger in Zapier
  4. Select New Email as the trigger event
  5. Connect your email account and follow the authentication steps

Step 3: Configure the Email Trigger

  1. Set up a filter to only trigger on EventCube order confirmation emails. Look for options like:

    • From Address: Enter the EventCube notification email (e.g., notifications@eventcube.io)
    • Subject Contains: Enter "Order Confirmation" or the specific subject line used by EventCube
    Configuring email filters in Zapier
  2. Click Continue and test the trigger to make sure it works
  3. For testing, you may need to forward a sample EventCube order confirmation email to your connected email account

Step 4: Set Up Email Parsing

  1. Add a Formatter by Zapier step to extract order information from the email

    Select Text as the transformer and Extract Pattern as the transformation type

    Setting up Formatter in Zapier
  2. Create extraction patterns for the key order information. You'll need to examine an EventCube order confirmation email to identify the patterns. Common fields to extract:

    • Order ID: Look for patterns like "Order #123456" or "Order ID: 123456"
    • Event Name: The title of the event
    • Customer Name: The purchaser's name
    • Customer Email: The purchaser's email address
    • Ticket Type(s): Names of purchased tickets
    • Quantity: Number of tickets purchased
    • Total Amount: The order total
  3. Test the extraction to ensure it correctly pulls the data from your sample email

Step 5: Set Up the Webhook Action

  1. Add a Webhook by Zapier action step

    Select POST as the action event

    Setting up Webhook in Zapier
  2. Enter your application's webhook URL:

    https://your-app.com/api/zapier/order-completed
  3. Set up the payload format as JSON with the following structure, mapping the extracted fields from the previous step:

    { "order_id": "{{extracted_order_id}}", "event_id": "{{extracted_event_id}}", "status": "completed", "customer": { "name": "{{extracted_customer_name}}", "email": "{{extracted_customer_email}}" }, "items": [ { "id": "item1", "event_name": "{{extracted_event_name}}", "ticket_name": "{{extracted_ticket_type}}", "quantity": {{extracted_quantity}}, "price": {{extracted_price}} } ], "total_amount": {{extracted_total_amount}} }
  4. Add a Secret Key header for security:
    • Header Key: X-Webhook-Secret
    • Header Value: your_secret_key_here

Step 6: Test and Activate Your Zap

  1. Click Test & Continue to test your webhook action
  2. Check your application logs to ensure the webhook was received correctly
  3. If the test is successful, click Publish to activate your Zap

Troubleshooting

If you encounter issues with your Zap, check the following:

  • Email Filtering: Make sure your email filter correctly identifies EventCube order confirmation emails
  • Extraction Patterns: Verify that your patterns correctly extract data from the emails
  • Webhook URL: Ensure your webhook URL is correct and your server is accessible from the internet
  • Payload Format: Check that the JSON payload structure matches what your application expects
  • Zapier Task History: Review the task history in Zapier to see detailed logs of each execution