Shift Ended for Driver

The Shift Ended For Driver callback occurs when a user (driver) ends a shift. This callback returns information identifying the user (driver), the UTC time the user's (driver's) shift ended, the user's (driver's) geolocation, and any forms or notes completed when ending the shift.

The Shift Ended For Driver callback returns the same record Id as the Shift Started For Driver callback when the same driver started the shift, updated and containing the end of shift UTC time and date.

📘

Registering Your URL for the Shift Ended For Driver Webhook

For information describing how to register your URL for a webhook, see Bringg Webhooks.

Response

{
"id": 4250127,
"user_id": 334626,
"start_shift": "2020-08-10T06:21:37.193Z",
"end_shift": "2020-08-10T06:22:40.511Z",
"lat": 31.9641707,
"lng": 34.7948816,
"user_external_id": "1509239",
"notes":[],
"forms":[]
}

Output Params

id

Int32

The unique Id of the driver shift record.

user_id

Int32

The unique Id of this user (driver).

start_shift

datetime

The date and time this user (driver) started the shift. This is in UTC and is in the format is " %Y-%m-%dT%H:%M:%S%z".

end_shift

datetime

The date and time this user (driver) ended the shift. This is in UTC and is in the format is " %Y-%m-%dT%H:%M:%S%z".

lat

double

The geoposition latitude of this user (driver) when ending a shift.

lng

double

The geoposition longitude of this user (driver) when ending a shift.

user_external_id

Int32

The unique external Id of this user (driver).

notes

Mixed

Information describing the note and the note content. See note was added to task callback.

forms

Mixed

Information describing the form and the form content. See form was added to task callback.