Skip to main content

List of Loyalty Events

EventTriggered WhenNote
loyalty.prize.createda new prize has been createdThis event is triggered only if loyalty_points_collection community option is true
loyalty.prize.updateda prize has been updatedThis event is triggered only if loyalty_points_collection community option is true
loyalty.prize_request.createda new request of a prize has been createdThis event is triggered only if loyalty_points_collection community option is true
loyalty.prize_request.updateda request of a prize has been updated (status)This event is triggered only if loyalty_points_collection community option is true
  • loyalty.prize.created
  • loyalty.prize.updated
{
"event_id": 0,
"type": "string",
"created": 1625471209.139224,
"data": {
"id": 1,
"active": true,
"created_by": {
"id": 1,
"username": "string",
"real_name": "string",
"email": "user@example.com",
"description": "string",
"avatar": "string"
},
"title": "string",
"description": "string",
"points": 200,
"link": "https://example.com",
"image": "string",
"created_at": "2021-06-07T10:36:29.850060+02:00",
"lastmod_datetime": "2021-06-07T10:36:29.850136+02:00"
}
}
  • loyalty.prize_request.created
  • loyalty.prize_request.updated
{
"event_id": 0,
"type": "string",
"created": 1625471209.139224,
"data": {
"id": 1,
"user": {
"id": 1,
"username": "string",
"real_name": "string",
"email": "user@example.com",
"description": "string",
"avatar": "string"
},
"pending_at": "2021-06-07T11:11:06.148633+02:00",
"prize": {
"id": 2,
"active": true,
"title": "string",
"description": "string",
"points": 1,
"link": "https://example.com",
"image": "string"
},
"prize_points": 1,
"status": 0,
"status_description": "string"
}
}