Skip to content

Weeztix

Andreas Michael edited this page Nov 30, 2026 · 2 revisions

Weeztix Integration

The ESN Membership Manager can automatically push Weeztix Coupons for every assigned ESNcard and (optionally) every approved Free Pass. This enables members to use their ESNcard number or Free Pass token as a promo code to receive automatic discounts on events hosted on the Weeztix ticketing platform.

Prerequisites

  • A Weeztix Organizer Account.
  • One or two created Coupon Lists (Campaigns) in Weeztix:
    • An ESNcard Coupon List (Required when Weeztix is enabled).
    • A Pass Coupon List (Optional, if you also want Free Pass holders to receive coupon codes).

1. Create an OAuth Client

In order for ESN Membership Manager to communicate with Weeztix, an OAuth client must be created.

  1. Go to the Weeztix Dashboard.
  2. Open the OAuth Clients menu (Company settings > OAuth Clients).
  3. Click Create and configure:
    • Name: ESN Membership Manager (suggested)
    • Redirect URL: https://your-domain.com/admin/config/system/esn-membership-manager/weeztix-auth-callback
  4. Copy the generated Client ID and Client Secret.

2. Module Configuration

  1. Navigate to the module settings: /admin/config/system/esn-membership-manager.
  2. Under Enable / Disable Features > Ticketing, check Enable Weeztix Integration.
  3. In the Weeztix Settings section, fill in:
    • Client ID: Your Weeztix OAuth Client ID.
    • Client Secret: Your Weeztix OAuth Client Secret.
    • Pass Coupon List ID / Campaign ID (Optional): The list ID where Free Pass tokens will be pushed upon application approval.
    • ESNcard Coupon List ID / Campaign ID (Required): The list ID where ESNcard numbers will be pushed upon card assignment.
  4. Click Save configuration.

3. Authorization

Once you have entered and saved your credentials, authorise the module to access your Weeztix account:

  1. After saving, a button will appear in the Weeztix section: Authorise with Weeztix.
  2. Click this button. You will be redirected to Weeztix to log in and approve the connection.
  3. Upon success, you will be redirected back to the settings page with a green banner: "Connected to Weeztix API."

Important

You must define the exact Redirect URI in your Weeztix Dashboard to match your site's callback URL. The settings page displays the exact URL you need to register:

https://your-domain.com/admin/config/system/esn-membership-manager/weeztix-auth-callback

How Coupons Are Synced

  • On Application Approval: If a Pass Coupon List ID is configured, the member's 32-character Free Pass token is automatically added via PUT https://api.weeztix.com/coupon/{listID}/codes with applies_to_count: 1 and usage_count: 5.
  • On ESNcard Assignment: The assigned ESNcard number is automatically added to the ESNcard Coupon List ID with applies_to_count: 1 and usage_count: 5.
  • Access tokens are stored in Drupal State and refreshed automatically when they approach expiry.

Clone this wiki locally