Definitions
Address
Address
Properties
| Name | Description |
|---|---|
address1String! | The first line of an address. |
address2String | The second line of an address. |
cityString | The city or town the address is located within. |
postalString | A region specific postal identifier, such as a postal code or ZIP code. |
regionString | The state, province, or other region the address is located within. |
countryString! | The country the address is located within. |
Area
A logical area, within an organisation.
Properties
| Name | Description |
|---|---|
idUUID | The id of the area. |
nameString | The name of the area. |
descriptionString | The description of the area. |
AttributeMatch
The attribute match is used to reference an organisation by connection attributes. Because it is not possible for an organisation to have a connection with itself, attributes cannot be used to reference one's own organisation.
Properties
| Name | Description |
|---|---|
keyString! | The key of the attribute to match. |
valueString! | The value of the attribute to match. |
BookingOption
A booking option.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking option. |
nameString | The name of the booking option. |
BookingOptionIdentifier
The BookingOptionIdentifier is a flexible way to reference a booking option in a document. If the Mobiledock UUID is known, this is the most reliable way to reference the booking option. If it is not known, the booking option can be referenced by name (exact match). At least one property must be provided.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking option to reference. |
nameString | The name of the booking option to reference. |
Comment
A comment.
Properties
| Name | Description |
|---|---|
contentString | The content of the comment. |
userString | The name of the user who made the comment. |
organisationOrganisation | The organisation of the user who made the comment. |
timestampTimestamp | The time the user made the comment. |
CoreDetails
The core details associated with a connection.
Properties
| Name | Description |
|---|---|
ids[ID!] | Custom IDs associated with the connected organisation. |
nameString | A custom name for the connected organisation. |
DateRange
A date range. Times should be a UTC timestamp.
Properties
| Name | Description |
|---|---|
beginString | The begin time. |
endString | The end time. |
Document
The Document is the interface used when creating or updating a document.
Properties
| Name | Description |
|---|---|
idString! | The id of the document. The id is unique (to your organisation). |
descriptionString | A description of the document. This document is displayed when being booked. |
directionDirection! | The direction of the document. |
carrierOrganisation | The carrier for the document. |
occupantOrganisation | The occupant for the document. This organisation is the receiver if the document direction is inbound. If the document direction is outbound, this organisation is the sender. |
offsiteOrganisation | The offsite for the document. This organisation is the sender if the document direction is inbound. If the document direction is outbound, this organisation is the receiver. |
loads[LoadQuantity!]! | The loads for the document. |
bookingOptions[BookingOption!] | The booking options for the document. |
validDatesDateRange | The date range for which this document can be booked for. |
preferredDatesDateRange | The date range for which this document is preferred. |
settingsDocumentSettings! | The settings for the document. |
attributesObject! | Attributes that have been assigned to the document in the form of an object with key/value pairs. |
statusDocumentStatus | The status of the document. |
typeDocumentType | The type of the document. |
DocumentInput
The DocumentInput is the interface used when creating or updating a document.
Properties
| Name | Description |
|---|---|
idString! | The id of the document. The id must be unique (to your organisation). |
descriptionString | A description of the document. This document is displayed when being booked. |
directionDirection! | The direction of the document. |
carrierOrganisationIdentifier | The carrier for the document. |
occupantOrganisationIdentifier | The occupant for the document. This organisation is the receiver if the document direction is inbound. If the document direction is outbound, this organisation is the sender. |
offsiteOrganisationIdentifier | The offsite for the document. This organisation is the sender if the document direction is inbound. If the document direction is outbound, this organisation is the receiver. |
loads[LoadQuantityInput!]! | The loads for the document. If document mode is `Fixed`, at least one load must be specified. |
bookingOptions[BookingOptionIdentifier!] | The booking options for the document. |
validDatesDateRange | The date range for which this document can be booked for. |
settingsDocumentSettings! | The settings for the document. |
attributesObject | Attributes to be assigned to the document in the form of an object with key/value pairs. |
statusDocumentStatusIdentifier | The status of the document. |
typeDocumentTypeIdentifier | The type of the document. |
DocumentQuery
Document Search return type. Contains subsection of documents and information about total documents.
Properties
| Name | Description |
|---|---|
pageNumberInt! | The page number of the documents returned. Page numbers begin at index 1. |
pageSizeInt! | The number of documents fetched on the current page. |
totalPagesInt! | The total amount of pages required at the current page size. |
totalRecordsInt! | The total number of documents. |
data[Document!]! | A list of documents |
DocumentSettings
The settings for the document.
Properties
| Name | Description |
|---|---|
modeDocumentMode! | The mode for the document. |
maxUsesInt | The maximum number of times this document can be booked with before it is no longer valid. If the value is null, it can be used an infinite amount of times. |
DocumentStatus
A document status.
Properties
| Name | Description |
|---|---|
idUUID | The id of the document status. |
nameString | The name of the document status. |
DocumentStatusIdentifier
The DocumentStatusIdentifier is a flexible way to reference a document status in a document. If the Mobiledock UUID is known, this is the most reliable way to reference the document status. If it is not known, the document status can be referenced by name (exact match). At least one property must be provided.
Properties
| Name | Description |
|---|---|
idUUID | The id of the document status to reference. |
nameString | The name of the document status to reference. |
DocumentType
A document type.
Properties
| Name | Description |
|---|---|
idUUID | The id of the document type. |
nameString | The name of the document type. |
DocumentTypeIdentifier
The DocumentTypeIdentifier is a flexible way to reference a document type in a document. If the Mobiledock UUID is known, this is the most reliable way to reference the document type. If it is not known, the document type can be referenced by name (exact match). At least one property must be provided.
Properties
| Name | Description |
|---|---|
idUUID | The id of the document type to reference. |
nameString | The name of the document type to reference. |
Driver
The person who will be making the delivery.
Properties
| Name | Description |
|---|---|
idUUID! | The id of the driver. |
nameString | The name of the driver. |
Field
A field is an extra, custom piece of data captured some time in a booking.
Properties
| Name | Description |
|---|---|
idUUID | The id of the field. |
nameString | The name of the field. |
FieldData
A custom field and the data associated with it.
Properties
| Name | Description |
|---|---|
fieldField | The field. |
valueString | The data from the field. |
FieldHistory
An event that captures a change in the fields of a booking.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking history event. |
timeTimestamp | The time this event was captured. |
userString | The name of the user who caused this event. May be null, which represents an event caused by Mobiledock itself. If user is null but organisation has a value, then the event was caused by an organisation token. |
organisationOrganisation | The organisation of the user who caused this event. Will only be null when user is null. |
typeHistoryType | The type of history event. |
fields[FieldData!] | The fields captured in this event. |
History
Changes to a booking's state is recorded in the booking history. The booking history is always sorted by the capture time.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking history event. |
timeTimestamp | The time this event was captured. |
userString | The name of the user who caused this event. May be null, which represents an event caused by Mobiledock itself. If user is null but organisation has a value, then the event was caused by an organisation token. |
organisationOrganisation | The organisation of the user who caused this event. Will only be null when user is null. |
typeHistoryType | The type of history event. |
LoadQuantity
A load and quantity pair object.
Properties
| Name | Description |
|---|---|
idUUID! | The id of the load. |
nameString! | The name of the load. |
quantityInt! | The number of the specified load units. |
loadTagString! | Custom field to store specific information about the load. |
LoadQuantityInput
A load and quantity pair.
Properties
| Name | Description |
|---|---|
idUUID | The id of the load to reference. Required if name not provided. |
nameString | The name of the load to reference. Required if id not provided. |
quantityInt! | The number of the specified load units. |
loadTagString | Custom field to store specific information about the load. |
Organisation
An organisation.
Properties
| Name | Description |
|---|---|
idUUID! | The id of the organisation. |
nameString! | The name of the organisation. |
timezoneString! | The timezone of the organisation. |
addressAddress! | The address of the organisation. |
connectionAttributesObject! | Connection attributes that have been assigned to the referenced organisation. This takes the form of an object with key/value pairs. If the organisation is self-referenced, the object will always be empty. |
OrganisationIdentifier
The OrganisationIdentifier is a flexible way to reference an organisation in a document. If the Mobiledock UUID is known, this is the most reliable way to reference the organisation. If it is not known, organisations can be referenced either by name (exact match) or by connection attributes. At least one of the properties in OrganisationIdentifier must be provided.
Properties
| Name | Description |
|---|---|
idUUID | The id of the organisation to reference. |
nameString | The name of the organisation to reference. |
coreNameString | A custom name for the connected organisation to reference. |
coreIdID | A custom ID for the connected organisation to reference. |
attributeAttributeMatch | The attribute match is used to reference an organisation by connection attributes. Because it is not possible for an organisation to have a connection with itself, attributes cannot be used to reference one's own organisation. |
Pass
Represents a pass for authorising entities such as drivers or vehicles.
Properties
| Name | Description |
|---|---|
idID! | Unique identifier for the pass. |
attributesObject! | Key-value pairs containing relevant information about the pass holder (e.g., driver name, vehicle registration). |
validityDateRange! | Date range defining the validity of the pass. |
urlString! | A URL for additional details or documentation related to the pass. |
RequestHistory
An event that captures a change in the requested time of a booking.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking history event. |
timeTimestamp | The time this event was captured. |
userString | The name of the user who caused this event. May be null, which represents an event caused by Mobiledock itself. If user is null but organisation has a value, then the event was caused by an organisation token. |
organisationOrganisation | The organisation of the user who caused this event. Will only be null when user is null. |
typeHistoryType | The type of history event. |
requestedTimeTimestamp | The requested date and time. |
requestedDurationInt | The time requested for the booking in minutes. |
requestedAreaArea | The area requested. Will only be present if the location required the selection of areas at time of request. |
Space
A space - the smallest subdivision that can be booked against.
Properties
| Name | Description |
|---|---|
idUUID | The id of the space. |
nameString | The name of the space. |
SpaceHistory
An event that captures a change in the space of a booking.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking history event. |
timeTimestamp | The time this event was captured. |
userString | The name of the user who caused this event. May be null, which represents an event caused by Mobiledock itself. If user is null but organisation has a value, then the event was caused by an organisation token. |
organisationOrganisation | The organisation of the user who caused this event. Will only be null when user is null. |
typeHistoryType | The type of history event. |
bookedTimeTimestamp | The time the booking was assigned to. |
bookedDurationInt | The time allocated to the booking in minutes. |
bookedSpaceSpace | The space the booking was assigned to. |
bookedAreaArea | The area the booking was assigned to. |
automaticallyAssignedBoolean | Whether this space assignment was automatic or manual. |
Status
A booking status.
Properties
| Name | Description |
|---|---|
idUUID | The id of the status. |
nameString | The name of the status. |
typeStatusType | The type of the status. |
StatusHistory
An event that captures a change in the status of a booking.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking history event. |
timeTimestamp | The time this event was captured. |
userString | The name of the user who caused this event. May be null, which represents an event caused by Mobiledock itself. If user is null but organisation has a value, then the event was caused by an organisation token. |
organisationOrganisation | The organisation of the user who caused this event. Will only be null when user is null. |
typeHistoryType | The type of history event. |
statusStatus | The status transitioned into. |
Task
A task represents a core unit of work for a booking.
Properties
| Name | Description |
|---|---|
idID | The id of the task. The ID will always be in the format of 'MDT-XX-XXXX-XXXX' where the first two XX after MDT are the last two digits of the year the task was created in. |
senderOrganisation | The organisation that has been assigned as sender of the task. |
senderCoreCoreDetails | The core details associated with the sender on the task. |
receiverOrganisation | The organisation that has been assigned as receiver of the task. |
receiverCoreCoreDetails | The core details associated with the receiver on the task. |
directionDirection | The direction the task is going, inbound or outbound. |
loads[LoadQuantity!] | A list of load quantities on the task. |
bookingOptions[BookingOption!] | A list of booking options associated with the task. |
documentIdID | If the task was booked against a document, the id of the document will be present. |
TaskHistory
An event that captures a change in the tasks on a booking.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking history event. |
timeTimestamp | The time this event was captured. |
userString | The name of the user who caused this event. May be null, which represents an event caused by Mobiledock itself. If user is null but organisation has a value, then the event was caused by an organisation token. |
organisationOrganisation | The organisation of the user who caused this event. Will only be null when user is null. |
typeHistoryType | The type of history event. |
addedTaskIds[UUID!] | The ids of the tasks that have been added to the booking. |
deletedTaskIds[UUID!] | The ids of the tasks that have been removed from the booking. |
Vehicle
A vehicle that represents the vehicle the booking will be using.
Properties
| Name | Description |
|---|---|
idUUID | The id of the vehicle. |
nameString | The name of the vehicle. |
VehicleHistory
An event that captures a change in the vehicle on a booking.
Properties
| Name | Description |
|---|---|
idUUID | The id of the booking history event. |
timeTimestamp | The time this event was captured. |
userString | The name of the user who caused this event. May be null, which represents an event caused by Mobiledock itself. If user is null but organisation has a value, then the event was caused by an organisation token. |
organisationOrganisation | The organisation of the user who caused this event. Will only be null when user is null. |
typeHistoryType | The type of history event. |
vehicleVehicle | The new vehicle on the booking. |
Enums
BookingType
Values
| Name | Description |
|---|---|
| Standard | A standard booking was created with the standard flow. |
| Instant | An instant booking was created as instant by the location, and bypassed the booking engine. |
| Recurring | A recurring type booking was created by a recurring booking configured by the location. |
| API | An API booking was created as instant or standard, but by an organisation token. |
Direction
Values
| Name | Description |
|---|---|
| Inbound | If a task or document is marked as `Inbound`, then offsites are the sender and occupants are the receiver. |
| Outbound | If a task or document is marked as `Outbound`, then occupants are the sender and offsites are the receiver. |
DocumentMode
Values
| Name | Description |
|---|---|
| Fixed | If a document is marked as `Fixed`, the loads or quantities defined cannot be modified when booking the document. |
| Free | If a document is marked as `Free`, the loads and quantities defined may be modified when booking the document. |
HistoryType
Values
| Name | Description |
|---|---|
| StatusHistory | A change in status for the booking. |
| FieldHistory | A change in the field data for the booking. |
| SpaceHistory | A change in the space the booking has been assigned to. |
| RequestHistory | A change in the requested time for the booking. |
| TaskHistory | A change in the tasks for the booking. |
| VehicleHistory | A change in the vehicle for the booking. |
StatusType
Values
| Name | Description |
|---|---|
| Submitted | The Submitted status is always the first status in the booking. It is a default status and cannot be removed. |
| Approved | The Approved status is the status that follows Submitted. It marks being assigned a space and time. It is a default status and cannot be removed. |
| Completed | The completed status is the last status in all bookings that complete successfully. It is a default status and cannot be removed. |
| OnHold | The on hold status is a special flow status for booking that are on hold. It is a default status and cannot be removed. |
| Cancelled | The Cancelled status is an exception status for a generic 'failed' booking/ It is a default status and cannot be removed. |
| Flow | Flow statuses represent normal statuses for a booking to be in. Flow statuses are user-defined. |
| Exception | Exception statuses represent specific failure states of a booking. Exception statuses are user-defined. |
WebhookType
Values
WARNING: Whilst this type is defined as an enum, addional webhook types may be added in future without warning. For this reason, we suggest treating this type as a string.
| Name | Description |
|---|---|
| Created | Indicates the booking has been created. |
| FlowStatusUpdate | Indicates the booking has had an update to a flow status. |
| ExceptionStatusUpdate | Indicates the booking has had an update to an exception status. |
| FieldDataUpdate | Indicates the booking has had an update to its fields. |
| AssignedSpace | Indicates the booking has had an update to its assigned space. |
| RequestedTimeUpdate | Indicates the booking has had an update to its requested time. |
| TasksChange | Indicates the booking has had an update to its tasks. |
| VehicleChange | Indicates the booking has had an update to its vehicle. |