Skip to content

Events & Payloads

When an event triggers a webhook, Mobiledock sends an HTTP POST request to your configured URL with a JSON payload.

The types array in the payload indicates which events triggered this webhook. A single payload can contain multiple event types.

Event TypeDescription
CreatedA new booking was created
FlowStatusUpdateThe booking’s status changed through the normal flow
AssignedSpaceA space was assigned to the booking
RequestedTimeUpdateThe booking’s requested time was changed
TasksChangeThe booking’s tasks were modified
VehicleChangeThe booking’s vehicle was changed
PropertyTypeDescription
eventTriggeredAtstringISO 8601 timestamp of the event
createdAtstringWhen the booking was created
modifiedAtstringWhen the booking was last modified
typesstring[]Event types that triggered this webhook
idstringBooking code (e.g. MDB-24-8X4K-7G5J)
pinstringBooking PIN
locationOrganisationThe location organisation
carrierOrganisationThe carrier organisation
carrierCoreCoreDetailsCarrier’s Core ID details
areaAreaThe booking area
spaceSpaceThe assigned space
requestedTimestringISO 8601 requested booking time
bookedTimestringISO 8601 booked time
durationnumberDuration in minutes
vehicleVehicleThe vehicle
tasksTask[]Array of tasks on the booking
statusStatusCurrent booking status
bookingHistoryHistory[]Booking history (if enabled)
fieldDataFieldData[]Custom field values
driverDriverDriver information
bookingTypestringBooking type (e.g. Standard)
commentsComment[]Booking comments (if enabled)
PropertyTypeDescription
idstringOrganisation UUID
namestringOrganisation name
connectionAttributesobjectKey-value connection attributes
timezonestringIANA timezone identifier
addressAddressOrganisation address
PropertyTypeDescription
idstringTask code
senderOrganisationSender organisation
senderCoreCoreDetailsSender’s Core ID details
receiverOrganisationReceiver organisation
receiverCoreCoreDetailsReceiver’s Core ID details
directionstringInbound or Outbound
loadsLoad[]Array of load quantities
bookingOptionsBookingOption[]Booking options
documentDocumentAssociated document
documentIdstringDocument ID
PropertyTypeDescription
idsstring[]Array of Core IDs
namestringCore name
{
"eventTriggeredAt": "2024-08-20T02:35:30Z",
"createdAt": "2024-08-20T02:35:30Z",
"modifiedAt": "2024-08-20T02:35:30Z",
"types": ["FlowStatusUpdate", "Created", "AssignedSpace"],
"id": "MDB-24-8X4K-7G5J",
"pin": "10523",
"location": {
"id": "c875c903-7d98-4ee5-852e-2c8a7b435484",
"name": "My Organisation",
"timezone": "Australia/Melbourne",
"address": {
"address1": "123 Main St",
"city": "Melbourne",
"postal": "3000",
"country": "Australia"
}
},
"carrier": {
"id": "c875c903-7d98-4ee5-852e-2c8a7b435484",
"name": "My Organisation"
},
"area": {
"id": "28177157-9615-49a0-8327-3d0fbb8g40c6",
"name": "West Dock"
},
"space": {
"id": "2187c155-cc57-4cca-8838-db72a4e98bb9",
"name": "Bay 01"
},
"requestedTime": "2024-08-20T02:35:00Z",
"bookedTime": "2024-08-20T02:35:00Z",
"duration": 60,
"vehicle": {
"id": "b9ce5dcf-83f7-4548-8d38-ca2be7f073b0",
"name": "Van"
},
"tasks": [
{
"id": "MDT-01-DP0Y-9F2L",
"sender": {
"id": "5br33d6r-2e40-4hdd-a5ac-628w44fef74f",
"name": "Supplier 1"
},
"receiver": {
"id": "c875c903-7d98-4ee5-852e-2c8a7b435484",
"name": "My Organisation"
},
"receiverCore": {
"ids": ["00000123"],
"name": "Vendor #123"
},
"direction": "Inbound",
"loads": [
{
"id": "99746ak5-417d-4f4p-9f74-1c74af80eb5d",
"name": "Pallets",
"quantity": 10,
"loadTag": null
}
],
"document": {
"id": "PO1234",
"description": "",
"attributes": {},
"status": null,
"type": null
},
"documentId": "PO1234"
}
],
"status": {
"id": "6eedi425-8a84-40i5-8f3d-6544da943644",
"name": "Approved",
"type": "Approved"
},
"bookingType": "Standard",
"driver": null,
"comments": null,
"bookingHistory": null,
"fieldData": [
{
"field": { "id": "715b4fe4-86cc-4202-b469-0da7bd891ccc", "name": "Field 1" },
"value": null
}
]
}