Each event has a similar JSON schema, but a unique payload
object that is determined by its event type.
Note: Some of these events may not be rendered in TruControl, they're only created for various internal and webhook purposes.
Triggered when a Clocking record is created, updated or deleted.
clocking
{
"action": "created",
"clocking": {
"id": "CLOCKING-ID-123",
"driverId": "DRIVER-ID-123",
"clockingTimeStamp": "2018-01-01T09:01:53",
"isClockIn": true
}
}
Triggered when a webhook is created or updated.
ping
{
"action": "created",
"hook": {
"id": "WEBHOOK-ID-123",
"payloadUrl": "http://www.example.com/api/listener",
"active": true,
"events": [{
"clocking"
}]
}
}