The new student subscription trigger returns information about a User’s subscription to a school’s subscription plan.
gifted_subscription: Extra information about a subscription that was gifted. Only set if the subscription was gifted.
subscription: Information about the subscription that comes from Stripe.
subscription_plan: Information about the plan that the User subscribed to.
Monthly
or Yearly
, depending on billing frequency.is_canceled_at_cycle_end
and cycle_end_dtime
.{
"event": {
"type": "student.subscription.succeeded",
"sent_time": "2014-11-06T18:27:54.482456+00:00"
},
"id": 14519,
"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": 32253,
"name": "Online Academy"
},
"gifted_subscription": {
"gifted_subscription_cycles": 3,
"gift_code": "GIFT-CODE"
},
"discount_code": null,
"subscription": {
"id": 14519,
"subscription_plan": {
"id": 7,
"amount": 27,
"interval": "Monthly",
"trial_period_days": 0
},
"trial_end_dtime": null,
"canceled_dtime": null,
"cycle_start_dtime": "2014-11-05T10:52:58Z",
"cycle_end_dtime": "2014-12-05T10:52:58Z",
"card_last_4": "5678",
"paused_until_dtime": null,
"is_canceled_at_cycle_end": false,
"is_delinquent": false,
"cancellation_reason": 0
}
}