get
https://platform.nector.io/api/v2/merchant/triggers
Fetches the aggregated earning rules of your loyalty program, i.e. the triggers through which a customer can earn (signup, purchase, review, referral, birthday, social follows and so on).
- Only triggers that are active and visible are returned, ordered by their position as configured on the dashboard
- Pass content_types to fetch only earn or only social triggers
- Pass lead_id to also get activities, the number of times that customer has already completed each trigger (useful to show completed / pending state in the UI)
- Triggers of reward_type offer carry the linked offer object so the reward coupon can be rendered without an extra call
- Use this API along with Fetch Aggreegated Details (program settings) and Fetch Aggreegated Offers (redemption rules) to render the complete loyalty program on your app or website
- Prefer cachefront.nector.io for this call
Response data contains
- items: array of triggers (_id, slug, name, content_type, reward_type, rule_type, render_type, reward, rule, content, position, is_open, is_override, offer)
- count: total number of matching triggers
- activities: array of { trigger_id, count } for the given lead_id (empty array when lead_id is not passed)
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
