---
title: "WorkOrderRequest"
url: "https://developers.vzconnect.com/apis/work-order-api-1/versions/e15c746c-6eb5-4df9-a8e1-a1a16e4d9576/schemas/WorkOrderRequest"
---

> Full API specification: https://developers.vzconnect.com/apis/work-order-api-1/versions/e15c746c-6eb5-4df9-a8e1-a1a16e4d9576.md

# 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.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Work Order API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    Address:
      type: object
      description: 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.
      properties:
        AddressLine1:
          type: string
          description: Location specific identification such as a house number.
          example: 4444 East Ridgewood Drive
        AddressLine2:
          type: string
          nullable: true
          description: Additional information to identify location such as an apartment
            number.
          example: null
        Locality:
          type: string
          description: City, town, etc.
          example: Seven Hills
        AdministrativeArea:
          type: string
          description: State, province, etc.
          example: Ohio
        PostalCode:
          type: string
          description: Postal code.
          example: "44131"
        Country:
          type: string
          description: Country.
          example: USA
    WorkOrderRequest:
      type: object
      description: 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.
      properties:
        ActualDateUtc:
          type: string
          nullable: true
          description: The Actual Date field is used when a PUT is invoked to change the
            Scheduled Date for a work order.
          example: ""
        ActualDurationSeconds:
          type: integer
          nullable: true
          description: 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
        Address:
          $ref: "#/components/schemas/Address"
        ClientCustomerId:
          type: boolean
          nullable: true
          description: Boolean field for deprecated service parameter, defaults to Null.
          deprecated: true
          example: null
        Description:
          type: string
          nullable: true
          description: 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
        DriverNumber:
          type: string
          description: 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"
        Latitude:
          type: number
          format: double
          description: 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
        Longitude:
          type: number
          format: double
          description: 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
        OnSiteDurationSeconds:
          type: integer
          description: 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
        RadiusInKm:
          type: string
          description: '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"
        ScheduledDateUtc:
          type: string
          description: 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
        ScheduledDurationSeconds:
          type: integer
          nullable: true
          description: 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
        StatusChangeDateUtc:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the work order's status was applied.
          example: null
        WorkOrderNumber:
          type: string
          description: 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
        WorkOrderStatusCode:
          type: string
          description: 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
        WorkOrderTypeCode:
          type: string
          description: 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
      required:
        - WorkOrderNumber
        - WorkOrderStatusCode
        - WorkOrderTypeCode
        - DriverNumber
```
