Caused by

  • A student registering to a group in a resource (course).

Result object

The new student class registration trigger returns information about a User’s registration to a new group, payment metadata, and other related fields.

  • event: Describes an Event object detailing the type and time of the event being sent to Zapier.
  • id: The ID of the Registration object.
  • user: Describes a User object, namely the User who registered for a group.
  • school: Describes a School object, namely the school in which the group was.
  • class_section: Describes an Offering object, namely the group to which the User was registered.
  • course: Describes a Resource object, namely the course or lesson to which the User was registered.
  • registration: Describes a Registration object, namely the User’s registration to the course and group.
  • payment: Contains payment metadata.

    • id: The payment’s unique ID
    • amount: The net amount, a decimal number, that was charged to the user.
    • discount_code: The discount code, if any, that was used for the payment.
    • discount_amount: The total amount discounted on this purchase.
  • meta: Contains miscellaneous attributes and metadata.

    • is_users_first_registration: Whether or not this is a user’s first registration in the school.

Example object

{
    "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
    }
}