loyalteez_track_event
Fire any event type, predefined or custom, to authenticate users, check eligibility, and deliver rewards from balance in your loyalty program.
Instructions
Fire any event. Works for ANY event type - predefined or custom. The backend handles: check auth (brandId) → check eligibility → reward from balance.
See also: loyalteez://docs/api/rest-api
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Your website domain (required for web events). Must match configured domain in Partner Portal. If not provided, extracted from sourceUrl or Origin header. | |
| brandId | No | Your brand wallet address. If not provided, uses LOYALTEEZ_BRAND_ID environment variable. | |
| metadata | No | Additional event data | |
| channelId | No | Discord channel ID or name where event occurred (for Discord events with channel constraints). If event has channel constraints configured, this must match an allowed channel. | |
| eventType | Yes | Event type (any string - predefined or custom) | |
| sourceUrl | No | URL where event occurred (must be HTTP/HTTPS, max 2048 chars) | |
| userIdentifier | Yes | User identification |