Update work order status.

The POST Work Order Status method enables integration users to update a work order’s status to track the lifecycle of the work order. Work orders need to minimally have IN PROCESS and COMPLETED statuses for REVEAL to calculate reporting metrics and match the work order to vehicle location information.

post
https://api.us.vzconnect.com/pas/v1/workorders/{workordernumber}/status

Path Parameters

workordernumberstringrequired

The unique Work Order Number identifying the work order.

Example:WO-2518-2029

Body

application/json

The new status to apply to the work order.

WorkOrderStatus

The current status of a work order. Used as both the GET Current Work Order Status response and the POST Work Order Status request body.

StatusChangeDateUtcstring(date-time)

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

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

WorkOrderStatusCodestring

Work Order Status Codes are created using the Planning and Scheduling Work Order Status API. A work order status is used to update a work orders lifecycle for tracking purposes.

Example:InProcess

WorkOrderStatusDescriptionstring

When creating work order statuses within a REVEAL account there is an optional field for a Description to be provided. If the status was created with a Description the GET method for a work orders current status will return the description field.

Example:InProcess Work Order.

WorkOrderStatusTypestring

Work Order Status Types provide additional context to the associated Work Order Status Type Code used to calculate work order durations within REVEAL.

Example:InProcess

Response

application/json

Work order status successfully updated.

 
application/json

WorkOrderResponse

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

ActualDateUtcstring(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

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.

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

ClientCustomerIdbooleanDEPRECATED

Boolean field for deprecated service parameter, defaults to 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

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.

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

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.

StatusChangeDateUtcstring(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

Example

WorkOrderUpdateRequest

object

Request body to update an existing work order’s meta data. The PUT method cannot be used to update a work order’s status.

ActualDateUtcstring

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

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
ClientCustomerIdbooleanDEPRECATED

Boolean field for deprecated service parameter, defaults to Null.

Descriptionstring

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.

DriverNumberstring

The Driver Number is the unique identifier that will be used to reference the driver within the API.

Example:777

Latitudenumber(double)

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

Longitudenumber(double)

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

OnSiteDurationSecondsinteger

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.

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

The Scheduled Duration in Seconds that the work order job is estimated to take.

WorkOrderNumberstring

Work Order Number is a required field and must be unique within an account.

Example:WO-2518-2029

WorkOrderTypeCodestring

Work Order Type Codes are created using the Planning and Scheduling Work Order Type API.

Example:ALM

Example

Address

object

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.

AddressLine1string

Location specific identification such as a house number.

Example:4444 East Ridgewood Drive

AddressLine2string

Additional information to identify location such as an apartment number.

Localitystring

City, town, etc.

Example:Seven Hills

AdministrativeAreastring

State, province, etc.

Example:Ohio

PostalCodestring

Postal code.

Example:44131

Countrystring

Country.

Example:USA

Example

WorkOrderStatus

object

The current status of a work order. Used as both the GET Current Work Order Status response and the POST Work Order Status request body.

StatusChangeDateUtcstring(date-time)

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

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

WorkOrderStatusCodestring

Work Order Status Codes are created using the Planning and Scheduling Work Order Status API. A work order status is used to update a work orders lifecycle for tracking purposes.

Example:InProcess

WorkOrderStatusDescriptionstring

When creating work order statuses within a REVEAL account there is an optional field for a Description to be provided. If the status was created with a Description the GET method for a work orders current status will return the description field.

Example:InProcess Work Order.

WorkOrderStatusTypestring

Work Order Status Types provide additional context to the associated Work Order Status Type Code used to calculate work order durations within REVEAL.

Example:InProcess

Example