The new student class registration trigger returns information about a User’s registration to a new group, payment metadata, and other related fields.
payment: Contains payment metadata.
meta: Contains miscellaneous attributes and metadata.
{
"event": {
"type": "student.course.registration.succeeded",
"sent_time": "2014-10-30T15:36:10.062347"
},
"id": 94658,
"user": {
"username": "john_doe",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"membership": {
"membership_type": "Student",
"can_manage_school": false,
"is_school_admin": false,
"can_create_course": false
},
"id": 52047
},
"school": {
"id": 828,
"name": "Online Academy"
},
"class_section": {
"id": 14607,
"name": "My Group"
},
"course": {
"id": 2791,
"name": "Algebra 1"
},
"registration": {
"role": "Student",
"id": 94658
},
"payment": {
"id": 95011,
"amount": 0,
"discount_code": "DISCOUNT_CODE_HERE",
"discount_amount": 590.1
},
"meta": {
"is_users_first_registration": true
}
}