Toggle Sidebar

Services

Services allow you to categorize work hours by the type of work you do for your clients. A service can be anything from web design, software development, journalism,to writing, translation or wedding photography.

Available Endpoints

Parameters

Type Parameter Description Required
Integer id Read only
String name A human readable identifier UNIQUE
Boolean is_archived Indicates whether a service is archived or not. Default: false NO
String worked_hours The total number of hours worked for customers that consumed this service. Read only

JSON Object

  {
    "name": "Web Development",
    "worked_hours": 222.45,
    "loc_worked_hours": "222:27",
    "id": 2407,
    "created_at": "2014-06-12 19:48:12",
    "updated_at": "2014-06-12 19:48:24"
  }

Available Endpoints

List Services

List all account services


Endpoint

https://app.trackingtime.co/api/v4/services

Parameters

Type Parameter Description Required
String filter [ALL | ACTIVE | ARCHIVED]. Default = ACTIVE NO
String include_billing Set to 'true' to include billing data in the server response. Default = true NO

Permissions

  • Only admins and project managers can view services

Get Service

Retrieve the service with the given id.

Endpoint

https://app.trackingtime.co/api/v4/services/:id

Parameters

Type Parameter Description Required
String include_billing Set to 'true' to include billing data in the server response.Default = true NO

Permissions

  • Only admins and project managers can view services

Add Service

Add a new service. You must enter all required parameters.


Endpoint

https://app.trackingtime.co/api/v4/services/add


Permissions

  • Only admins and project managers can add new services

Update Service

Update an existing service.


Endpoint

https://app.trackingtime.co/api/v4/services/update/:id


Permissions

  • Only admins and project managers can edit services

Delete Service

Delete an existing service.


Endpoint

https://app.trackingtime.co/api/v4/services/delete/:id


Permissions

  • Only admins and project managers can delete services

Archive / Re-activate Service

You can archive an re-open your services any time.


Endpoint

https://app.trackingtime.co/api/v4/services/close/:id to archive the service with the given id

https://app.trackingtime.co/api/v4/services/open/:id to re-activate the service with the given id

Permissions

  • Only admins and project managers can archive and re-open services