put
https://api.referral-factory.com/api/v3/leads/goal
This endpoint marks a goal as reached or not reached for a specific lead. Rewards linked to the goal are calculated automatically, and your campaign webhooks fire when a goal is reached.
There are 3 possible ways to find the lead.
- Using the lead unique identifier:
id. - Using the lead unique code:
code. - Using the lead email address and campaign identifier:
emailandcampaign_id.
Qualification works the same way: its goal id is the negative campaign id, and marking it qualifies or unqualifies the lead.
Only leads can reach goals, and the goal must belong to the lead's campaign. Sending the state the lead already has changes nothing.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…