Cost

Get total fuel cost for all jobs.

Securitybearer
Request
query Parameters
startDate
string or null <date-time>

Optional. If specified, totals will reflect all costs submitted after startDate, inclusive.

endDate
string or null <date-time>

Optional. If specified, totals will reflect all costs submitted prior to endDate, inclusive.

jobCode
string or null

Optional. If specified, totals will reflect all costs submitted filtered by job code.

businessUnitId
string or null

Optional. If specified, totals will reflect all costs submitted filtered by business unit. The business unit guid.

Responses
200

Success

404

Endpoint Not Found. This response may occur if the on-premises E360 service does not exist or is not currently running.

get/api/v1/costs/fuel
Request samples
Response samples
[
  {
    "jobId": "48f8ba5d-a39b-4188-9cac-500ca34a56e4",
    "jobCode": "Pasadena Underpass",
    "totalFuelCost": 8221.25
  },
  {
    "jobId": "eacbaf91-7a2f-49b0-8643-c2f5c3ad7e2b",
    "jobCode": "Garden Road Expansion - Phase A",
    "totalFuelCost": 2193.73
  }
]

Gets work order costs for all jobs.

Securitybearer
Request
query Parameters
businessUnitId
string <uuid>

Required. The business unit guid.

jobCode
string or null

Optional. If specified, totals will reflect all work order costs associated with the specified job code.

equipmentId
string or null <uuid>

Optional. If specified, totals will reflect all work order costs associated with the specified equipment id.

tag
string or null

Optional. If specified, totals will reflect all work order costs where work orders are tagged with the specified tag.

Responses
200

Success

404

Endpoint Not Found. This response may occur if the on-premises E360 service does not exist or is not currently running.

get/api/v1/costs/workOrders
Request samples
Response samples
{
  "jobCode": "West Loop - Phase A",
  "laborCost": 12352,
  "estimatedLaborCost": 12352,
  "partCost": 6789.63,
  "estimatedPartCost": 6789.63,
  "otherCost": 575,
  "estimatedOtherCost": 575,
  "totalCost": 19716.63,
  "estimatedTotalCost": 19716.63
}

Gets work order costs with extended details.

Securitybearer
Request
query Parameters
businessUnitId
string <uuid>

Required. The business unit guid.

jobCode
string or null

Optional. If specified, totals will reflect all work order costs associated with the specified job code.

equipmentId
string or null <uuid>

Optional. If specified, totals will reflect all work order costs associated with the specified equipment id.

tag
string or null

Optional. If specified, totals will reflect all work order costs where work orders are tagged with the specified tag.

count
integer or null <int32>

The total number of records to return. Default: 100. Limit: 1000.

cursor
integer or null <int32>

The point at which to start pagination.

Responses
200

Success

404

Endpoint Not Found. This response may occur if the on-premises E360 service does not exist or is not currently running.

get/api/v1/costs/workOrdersExtended
Request samples
Response samples
{
  "count": 2,
  "prev": 6,
  "next": 10,
  "timestamp": 1590769189,
  "data": [
    {
      "workOrderNumber": 25,
      "workOrderDescription": "Oil change. The works.",
      "workOrderCreatedDate": "2022-06-27T00:00:00Z",
      "workOrderStatusCode": "Open",
      "hasWorkOrderDamageTag": false,
      "jobCode": "Hanbury Shop",
      "laborCost": 65.3,
      "partCost": 172.35,
      "otherCost": 0,
      "totalCost": 237.65,
      "estimatedLaborCost": 65.3,
      "estimatedPartCost": 172.35,
      "estimatedOtherCost": 0,
      "estimatedTotalCost": 237.65
    },
    {
      "workOrderNumber": 26,
      "workOrderDescription": "Battery theft. Requires replacement. Seat fabric also torn.",
      "workOrderCreatedDate": "2022-05-22T00:00:00Z",
      "workOrderStatusCode": "Closed",
      "hasWorkOrderDamageTag": true,
      "jobCode": "Darkwood Underpass",
      "laborCost": 45,
      "partCost": 112.17,
      "otherCost": 0,
      "totalCost": 157.17,
      "estimatedLaborCost": 45,
      "estimatedPartCost": 112.17,
      "estimatedOtherCost": 0,
      "estimatedTotalCost": 157.17
    }
  ]
}