Update Activity
Use this endpoint to inform us about a change to an activity.
For example, if you track a review activity which defaults to pending
and your
moderator then approves the review, you can send LoyaltyLion an update informing
us it has been approved.
To update an activity you’ll need the activity name (for example, review) and the merchant_id you sent to LoyaltyLion when you first tracked the activity.
Difference between void
and decline
Pending activities can be declined, while approved activities can be voided.
If you aren’t sure if an activity is pending or approved, you should update the
state to declined
. This will be treated as void
if the activity is approved.
Path Parameters
A built-in or custom activity rule name. If you’re tracking a custom rule, this should be the rule identifier; if you’re tracking a built-in activity, the name must be prefixed with a $
, for example, $signup
1
The unique ID provided when you initially tracked this activity
1
Body
The new state of this activity
approved
, declined
, void
Response
The response is of type enum<string>
.