Repository navigation
Weeztix
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.
- 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).
In order for ESN Membership Manager to communicate with Weeztix, an OAuth client must be created.
- Go to the Weeztix Dashboard.
- Open the OAuth Clients menu (Company settings > OAuth Clients).
- Click Create and configure:
-
Name:
ESN Membership Manager(suggested) -
Redirect URL:
https://your-domain.com/admin/config/system/esn-membership-manager/weeztix-auth-callback
-
Name:
- Copy the generated Client ID and Client Secret.
- Navigate to the module settings:
/admin/config/system/esn-membership-manager. - Under Enable / Disable Features > Ticketing, check Enable Weeztix Integration.
- 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.
- Click Save configuration.
Once you have entered and saved your credentials, authorise the module to access your Weeztix account:
- After saving, a button will appear in the Weeztix section: Authorise with Weeztix.
- Click this button. You will be redirected to Weeztix to log in and approve the connection.
- 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
-
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}/codeswithapplies_to_count: 1andusage_count: 5. -
On ESNcard Assignment: The assigned ESNcard number is automatically added to the ESNcard Coupon List ID with
applies_to_count: 1andusage_count: 5. - Access tokens are stored in Drupal State and refreshed automatically when they approach expiry.