verifyRequirement([payload,])
Attempts to verify a requirement for the user
On success, if the requirement belongs to a program/campaign objective, ChainVine will asynchronously check whether the user has completed enough requirements to mark an objective as completed.
Params
Field | Required | Type | Description |
---|---|---|---|
campaign.id | required | String | the id of the program/campaign the requirement belongs to Note: this campaign/program must belong to your account |
id | required | String | the referral program/campaign requirement id |
Response
UserRequirementResponse
Field | Type | Description |
---|---|---|
id | String | the referral program/campaign requirement id |
completed | Boolean | a boolean representing if the user has completed the requirement or not |
Examples
In this approach, we complete a requirement ad-hoc for a user, by passing in a referrer_id if one has been captured by a referral link beforehand.
If the referrer id is passed into the request, and no referral has ever been made between this user and any referrer, then a Referral will be created.
Last updated