Saltar al contenido principal
GET
/
v1
/
maintenance
/
workOrders
/
{workOrderReference}
/
labor
/
cost
Get the cost of the labor of a work order by its reference
curl --request GET \
  --url https://api.bold-factory.com/v1/maintenance/workOrders/{workOrderReference}/labor/cost \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "workOrderId": "<string>",
      "timeEntryId": "<string>",
      "employeeId": "<string>",
      "employee": {
        "id": "<string>",
        "externalReference": "<string>",
        "fullName": "<string>",
        "code": "<string>",
        "hourlyCost": {
          "amount": 123,
          "currency": "<string>"
        }
      },
      "hours": 123,
      "costPerHour": {
        "amount": 123,
        "currency": "<string>"
      },
      "totalCost": {
        "amount": 123,
        "currency": "<string>"
      }
    }
  ],
  "totalCount": 123
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

workOrderReference
string
requerido

Respuesta

OK

results
object[]
requerido
totalCount
integer<int32>
requerido