Skip to content

Instantly share code, notes, and snippets.

@mattapayne
Created February 1, 2019 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattapayne/4d51d024f12f9e38cdea85b3d8f06064 to your computer and use it in GitHub Desktop.
Save mattapayne/4d51d024f12f9e38cdea85b3d8f06064 to your computer and use it in GitHub Desktop.
Thinkific Enrollment Webhook Payloads
General webhook docs:
[Help article](https://help.thinkific.com/support/solutions/articles/228892-webhooks) and
[API Docs](https://platform.thinkific.com/documentation/api/webhooks)
Enrollment Created:
{
"id":"20190131191810790022472",
"resource":"enrollment",
"action":"created",
"tenant_id":"59",
"created_at":"2014-02-01T00:18:10.768Z",
"payload":{
"activated_at":"2014-02-01T00:18:10.768Z",
"completed_at":"2014-02-01T00:18:10.767Z",
"course":{
"id":68,
"name":"[TEST] lorem ipsum"
},
"course_id":68,
"created_at":"2014-02-01T00:18:10.767Z",
"expiry_date":"2014-02-01T00:18:10.767Z",
"free_trial":false,
"id":3,
"percentage_completed":"0",
"started_at":"2014-02-01T00:18:10.768Z",
"updated_at":"2014-02-01T00:18:10.768Z",
"user":{
"email":"[TEST] john@doe.com",
"first_name":"[TEST] John",
"id":94,
"last_name":"Doe"
}
}
}
Enrollment Progress:
{
"id":"20190131192004041953291",
"resource":"enrollment",
"action":"progress",
"tenant_id":"59",
"created_at":"2014-02-01T00:20:04.019Z",
"payload":{
"activated_at":"2014-02-01T00:20:04.019Z",
"completed_at":"2014-02-01T00:20:04.019Z",
"course":{
"id":25,
"name":"[TEST] lorem ipsum"
},
"course_id":25,
"created_at":"2014-02-01T00:20:04.019Z",
"expiry_date":"2014-02-01T00:20:04.019Z",
"free_trial":false,
"id":4,
"percentage_completed":"24.0",
"started_at":"2014-02-01T00:20:04.019Z",
"updated_at":"2014-02-01T00:20:04.019Z",
"user":{
"email":"[TEST] john@doe.com",
"first_name":"[TEST] John",
"id":95,
"last_name":"Doe"
}
}
}
Enrollment Completed:
{
"id":"20190131192005552012814",
"resource":"enrollment",
"action":"completed",
"tenant_id":"59",
"created_at":"2014-02-01T00:20:05.522Z",
"payload":{
"activated_at":"2014-02-01T00:20:05.522Z",
"completed_at":"2014-02-01T00:20:05.522Z",
"course":{
"id":48,
"name":"[TEST] lorem ipsum"
},
"course_id":48,
"created_at":"2014-02-01T00:20:05.521Z",
"expiry_date":"2014-02-01T00:20:05.522Z",
"free_trial":false,
"id":75,
"percentage_completed":"100.0",
"started_at":"2014-02-01T00:20:05.522Z",
"updated_at":"2014-02-01T00:20:05.522Z",
"user":{
"email":"[TEST] john@doe.com",
"first_name":"[TEST] John",
"id":56,
"last_name":"Doe"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment