Offering Registered Event Webhook Example

The following is an example of a JSON representation of an Offering Registered event. This illustrates how this event will be represented in the callback to your server.

{
  "event" : "offering_registered",
  "date" : "2014-04-18T00:43:07Z",
  "source" : "SELF",
  "user" : {
    "id" : "a0fbd5acd2214401a132221bd61fd412",
    "firstName" : "Vilhelmina",
    "lastName" : "Tocco",
    "username" : "vil_tocco@hotmail.com",
    "email" : "vil_tocco@hotmail.com",
    "locale" : "en"
  },
  "registration" : {
    "id" : "69bb175e4fee404e83bb8615dd4a2df9"
  },
  "offering" : {
    "id" : "63d626ac771c4be59440264c0ef4fdc3",
    "title" : "Sample Course"
  }
}

Property Details

Property JSON Data Type Description
event string This is the event type that is being sent to this callback. If you are using the same callback URL for all events, you can use this to segement them within your application.
date string The date and time when this event occurred. For more information on the format, see the Date/Time Format documentation.
source string The source indicates how this offering was triggered as registered. If students register for their own courses the source will be set to SELF. In the case that the instructor manually registers the student through the gradebook or some other means, the source will appear as ADMIN.
user object The user that was registered for the offering.
user.id object The id of the user. This uniquely identifies the user and can be used to query our API for more information about the user.
user.firstName string The first name of the user.
user.lastName string The last name of the user.
user.email string The email address of the user.
user.username string This is the username for this user. If an organization uses username instead of email for login, this can be different than the email address.
user.locale string This is the locale preference set on the user’s account
registration object The registration object holds information that is unique to this user and offering.
registration.id string The ID of this registration. This uniquely identifies the registration and can be used to query our API for more information about the registration.
offering object The offering into which the user was registered.
offering.id string The ID of the offering. This uniquely identifies the offering and can be used to query our API for more information about the offering.
offering.title string The title of the offering