API Access Token

v1_booking API

/**
 * REST API end-points for interacting with the 'booking', and related, resources.
 * 
 */
Booking Equipment HTTP GET request

Returns information about the 'booking_equipment' resource filterable by the fields described below. This resource describes vehicles that are assigned to bookings.
Requires 'Booking Read Access' and 'Equipment Read Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return array of resources. Returns a single record if the booking_id and equipment_id is provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
  

Booking Person HTTP DELETE request

Deletes the specified booking person.
Requires 'Booking Write Access' to be enabled in the 'Permissions' section of your Third Party Integration
UNKNOWN
Field Description
(required)
(required)
  

Booking Person HTTP GET request

Returns information about the 'booking_person' resource filterable by the fields described below. This resource provides additional
information about a person in the context of a booking. Results are ordered by booking_start_time and limited to 2000.
Requires 'Booking Read Access' and 'Person Read Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return array of resources. Returns a single record if the person_id and booking_id values provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
The unique ID of the booking that the resource belongs to. If both person_id and booking_id are provided, a single record is returned.
A datetime indicating the lower range of the starting datetime of a resource. Returns all resources which have a starting time greater than the datetime provided.
A datetime indicating the upper range of the starting datetime of a resource. Returns all resources which have a starting time less than the datetime provided.
A unique ID of a depot to which the booking belongs.
Flag indicating if the resource is deleted or not. 0 = not deleted, 1 = deleted.
A datetime of which the resource was last modified in the format of YYYY-MM-DD HH:mm:ss. Returns records with a last_modified datetime value greater that the datetime provided.
The unique ID of the person that the resource belongs to. If both person_id and booking_id are provided, a single record is returned.
  

Booking Person HTTP PUT request

Updates an existing booking person, and if successful returns information about the updated booking person.
Requires 'Booking Write Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return ARRAY
Field Description
(required)
(YYYY-MM-DD HH:mm:ss) used if the person is to finish at a time different form the start time of the booking
(YYYY-MM-DD HH:mm:ss) used if the person is to start at a time different form the start time of the booking
[1 or 0]
(required) [1 or 0] used if the person is to drive the vehicle. (otherwise they will be a passenger)
[1 or 0] if 1 then this will not be included in invoicing
(required) [1 or 0] (straight to site) if 1 then the person is to meet at site, rather than the depot. The default setting for this is a configuration setting. the default configuration setting will be used if this value is not supplied
[1 or 0] Note: only one person can be team leader
(required)
this determines the specialisation that person will perform on site
used if the person is a passenger or driver
  


Removes an existing booking requirement
Requires 'Booking Write Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return ARRAY
Field Description
(required)
(required)
  

Booking Requirement HTTP GET request

Returns information about the 'booking_requirements' resource filterable by the fields described below.
Requires 'Booking Read Access' to be enabled in the 'Permissions' section of your Third Party Integration

The requirements of a booking are listed as quantities of item classification.
Each item classification is a group of resources. eg:a '3 TC crew' which would include three traffic controllers and one vehicle
so 2 x '3 TC crew' would be 6 traffic controllers and 2 vehicles
sample output
[{
"booking_id": "1223",
"item_classification_id": "1",
"booking_requirement_quantity": "1", (quantity of this item classification)
"item_classification_name": "Traffic Controller",
"item_classification_code": null,
"added_to_agreement": "1", (if the item is on the billing agreement, then this value will be 1)
"contains_docs_or_stock": "0", (items that are not vehicles, equipment or people)
"contains_allocatables": "1",
"number_of_people": "1", ( number of people: this field may be removed in the future as it is a legacy field)
"number_of_vehicles": null, ( number of vehicles: this field may be removed in the future as it is a legacy field)
"number_of_equipment": null, ( number of equipment: (arrow boards, vms boards etc) this field may be removed in the future as it is a legacy field)
"number_of_arrow_boards": null, ( number of arrowboards (specific type of equipment): this field may be removed in the future as it is a legacy field)
"number_of_tmas": null, ( number of Truck mounted atenuators (specific type of vehicle): this field may be removed in the future as it is a legacy field)
"booking_start_time": "2019-05-13 05:00:00",
"approx_booking_end_time": "2019-05-13 13:00:00",
"is_deleted": "0",
"created_on": "2017-04-07 00:55:06",
"created_by": "25",
"last_modified": "2017-04-07 00:55:06",
"modified_by": "25",
"max_last_modified": "2023-11-13 04:42:26.7571"
}]
@return Array of booking requirements.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
will return any booking that starts after or overlaps this time
limits to any booking that starts before or overlaps this time
(1 or 0)
comma separated of integers eg: '1,3,56'
(YYYY-MM-DD HH:mm:ss), if supplied, only records modified more recent than this datetime will be returned
  

Booking Requirement HTTP PUT request

Updates an existing booking requirement, and if successful returns information about the updated booking person.
Requires 'Booking Write Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return ARRAY
Field Description
(required)
(1 or 0)
(required)
  

Booking Status HTTP GET request

Returns information about the 'booking_status' resource (referred to as 'resource' below) filterable by the fields described below.
The booking_status resource is mostly static and cannot be modified by the end user via the interface.
Requires 'Booking Read Access' to be enabled in the 'Permissions' section of your Third Party Integration
Resource response fields:
- 'booking_status_id' (primary key, number):
- 'booking_status_name' (string): The human readable name of the resource.
- 'booking_status_description' (string): The human readable description of the resource.
@return array of resources. Returns a single record if the booking_status_id is provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
The unique ID of the desired resource. Returns a single record if it exists. Other filters do not apply.
  

Booking Vehicle HTTP GET request

Returns information about the 'booking_vehicle' resource filterable by the fields described below. This resource describes vehicles that are assigned to bookings.
Requires 'Booking Read Access' and 'Vehicle Read Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return array of resources. Returns a single record if the booking_id and vehicle_id is provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
  

Booking Vehicle HTTP PUT request

Updates an existing booking vehicle, and if successful returns information about the updated booking vehicle.
If equipment ID is set, then this equipment will be removed from any other vehicle that has it in this booking.
Requires 'Booking Write Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return ARRAY
Field Description
(required)
(1 or 0)
(required)
  

Booking HTTP GET request

Returns information about the 'booking' resource filterable by the fields described below. Results are ordered by booking_start_time and limited to 2000.
Requires 'Booking Read Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return array of resources. Returns a single record if the booking_id or job_number is provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
The unique ID of the desired resource. Returns a single record if it exists. Other filters do not apply.
The unique ID of the status that the resource is currently in.
The unique ID of the client to which the resource belongs.
A datetime indicating the lower range of the starting datetime of a booking. Returns all bookings which have a starting time greater than the datetime provided.
A datetime indicating the upper range of the starting datetime of a booking. Returns all bookings which have a starting time less than the datetime provided.
A unique ID of a depot to which the booking belongs.
Flag indicating if the resource is deleted or not. 0 = not deleted, 1 = deleted.
A job reference number unique to the related depot. Returns a single record if it exists. Other filters do not apply.
A datetime of which the resource was last modified in the format of YYYY-MM-DD HH:mm:ss. Returns records with a last_modified datetime value greater that the datetime provided.
The unique ID of the project to which the resource belongs.
  

Booking HTTP POST request

Creates a new booking, and if successful returns information about the created booking.
Requires 'Booking Write Access' to be enabled in the 'Permissions' section of your Third Party Integration
@return ARRAY
Field Description
format: [YYYY-MM-DD HH:mm:ss]
[YYYY-MM-DD HH:mm:ss] local time that the call was first booked. (can cause subsequent changes to payroll and invoicing).
1 or 0 If the latitude and longitude is exact, then set this to 1 Default is 0
can be quite detailed and long
1 or 0 If the booking will have roving sites, then set this to 1. Default is 0
[1 or 0] default is 0
latitude of address location
longitude of address location
format: [YYYY-MM-DD HH:mm:ss]
(required) 1: unconfirmed, 2: confirmed
(optional) limited to 255 characters
limited to 50 characters
(required) array of integers. each ID refers to a client_contact_id
limited to 255 characters
(required) the depot that booking will be delivered from
[HH:mm:ss]
Additional information used to find the location
refers to a client_contact_id
(required) the project that this booking belongs to. A project belongs to a client
refers to a client_contact_id
[HH:mm:ss]
eg: 12 smith st, Collingwood
array of integers. each ID refers to a tag_id