1.0OAS 3.0

The Work Order REST Service is included within the REVEAL Planning and Scheduling API suite. Integrated customers and partners can use the API to manage work orders within REVEAL. 3rd parties can update a work order’s lifecycle with real-time statuses.

This API is for Reveal Pro Feature only accounts and not related to the Reveal Field product.

This API will use the following unique identifier(s): Work Order Number, Driver Number, Work Order Status Code, Work Order Type Code. Standard REST verbs are applied: GET, POST, PUT.

API Base URL
  • Server 1:https://api.us.vzconnect.com

Work Order API

Operations for creating, retrieving, updating, and tracking the status of work orders for a Reveal account.

Create a work order.

The POST Work Order method enables integration users to create work orders within the REVEAL account. In order to create a Work Order, a Status and Type are required fields. Either the Address components or the coordinates (Latitude/Longitude) must be provided to create a work order; if both are supplied, the coordinates will be used for reference to geocode the work order’s location.

post
https://api.us.vzconnect.com/pas/v1/workorders

Body

application/json

The work order details to create.

WorkOrderRequest

Request body to create a work order. A Work Order Number, Status and Type are required fields, and either the Address components or coordinates must be provided.

ActualDateUtcstring | null

The Actual Date field is used when a PUT is invoked to change the Scheduled Date for a work order.

Example:[ "" ]

ActualDurationSecondsinteger | null

REVEAL will calculate the actual duration value based on the status information provided. If no status information is provided this value may be provided by the work order provider.

Example:null

Addressobject

Address contains the global standards for address components. Address components are not required if the coordinates are provided for the work order. If address components and coordinates are both provided, the work order will be created referencing the coordinates.

Show Child Parameters
ClientCustomerIdboolean | nullDEPRECATED

Boolean field for deprecated service parameter, defaults to Null.

Example:null

Descriptionstring | null

This is not a required field. A string may be provided in order to display instructions or notes about the work order to the technician/driver.

Example:null

DriverNumberstringrequired

The Driver Number is the unique identifier that will be used to reference the driver within the API. The Driver Number is not a mandatory field within the REVEAL account, but is required for the API.

Example:777

Latitudenumber(double)

Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order’s location.

Example:0

Longitudenumber(double)

Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order’s location.

Example:0

OnSiteDurationSecondsinteger

This is not a required field. If there is an estimate for the time that the technician should be on site at the work order the value may be provided in seconds.

Example:0

RadiusInKmstring

The designated radius in kilometers used to create the radius around the work order. Note: the request sample shows this value as a string (e.g. “.322”) whereas the response returns it as a number (e.g. 0.322).

Example:.322

ScheduledDateUtcstring

The Scheduled Date and Time for the work to be started or the technician’s scheduled time to be on site.

Example:2017-01-13Z18:00:00

ScheduledDurationSecondsinteger | null

The Scheduled Duration in Seconds that the work order job is estimated to take. This value will not be overwritten by REVEAL’s calculation and will be used for reporting variances.

Example:null

StatusChangeDateUtcstring | null(date-time)

The date and time when the work order’s status was applied.

Example:null

WorkOrderNumberstringrequired

Work Order Number is a required field for a work order to be created within REVEAL and must be unique within an account.

Example:WO-2518-2029

WorkOrderStatusCodestringrequired

Work Order Status Codes are created using the Planning and Scheduling Work Order Status API. A Status is a required field to create a work order.

Example:InProcess

WorkOrderTypeCodestringrequired

Work Order Type Codes are created using the Planning and Scheduling Work Order Type API. A Type is a required field to create a work order.

Example:ALM

Response

application/json

Work order successfully created.

WorkOrderResponse

The flat work order object returned by the POST Work Order operation.

ActualDateUtcstring | null(date-time)

The Actual Date field is used when a PUT is invoked to change the Scheduled Date for a work order.

Example:2017-01-18T13:15:48.983

ActualDurationSecondsinteger | null

REVEAL will calculate the actual duration value based on the status information provided. If no status information is provided this value may be provided by the work order provider.

Example:0

Addressobject

Address contains the global standards for address components. Address components are not required if the coordinates are provided for the work order. If address components and coordinates are both provided, the work order will be created referencing the coordinates.

Show Child Parameters
AddressResolvedboolean

Boolean field. When retrieving a work order’s details if the work order location was successfully geocoded by Google the flag will be set to true.

Example:true

ClientCustomerIdboolean | nullDEPRECATED

Boolean field for deprecated service parameter, defaults to Null.

Example:null

CreatedDateUtcstring(date-time)

The date and time stamp in UTC that the work order object was created within REVEAL. The default value will be the current date and time stamp when the work order was invoked.

Example:2017-01-18T21:38:28.78

Descriptionstring | null

This is not a required field. A string may be provided in order to display instructions or notes about the work order to the technician/driver.

Example:TECH MUST CLOCK IN

DriverNumberstring

The Driver Number is the unique identifier that will be used to reference the driver within the API. The Driver Number is not a mandatory field within the REVEAL account, but is required for the API.

Example:777

Latitudenumber(double)

Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order’s location.

Example:26.425671

Longitudenumber(double)

Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order’s location.

Example:-81.801965

ModifiedDateUtcstring(date-time)

If the work order object is modified after the creation date, the last modified date will be presented within the response.

Example:2017-01-18T21:38:28.78

OnSiteDurationSecondsinteger

This is not a required field. If there is an estimate for the time that the technician should be on site at the work order the value may be provided in seconds. Following the work order’s completion if status details were provided, this value will be overwritten with the status calculation to determine the on-site duration.

Example:0

RadiusInKmnumber(double)

The designated radius in kilometers used to create the radius around the work order.

Example:0.322

ScheduledDateUtcstring(date-time)

The Scheduled Date and Time for the work to be started or the technician’s scheduled time to be on site.

Example:2017-01-18T16:59:50

ScheduledDurationSecondsinteger | null

The Scheduled Duration in Seconds that the work order job is estimated to take. This value will not be overwritten by REVEAL’s calculation and will be used for reporting variances.

Example:0

StatusChangeDateUtcstring | null(date-time)

The date and time when the work order’s status was applied.

Example:2017-01-18T13:16:47

WorkOrderNumberstring

Work Order Number is a required field for a work order to be created within REVEAL and must be unique within an account.

Example:WO-2518-2021

WorkOrderStatusCodestring

Work Order Status Codes are created using the Planning and Scheduling Work Order Status API. All available work order status codes can be found within REVEAL’s Admin section under Work Order Preferences. A work order status is used to update a work orders lifecycle for tracking purposes.

Example:InProcess

WorkOrderTypeCodestring

Work Order Type Codes are created using the Planning and Scheduling Work Order Type API. All available work order types can be found within REVEAL’s Admin section under Work Order Preferences. A work order code is used to describe or categorize the type of work scheduled, i.e. Trouble Call.

Example:ALM

 
application/json