Zeiterfassung v2 /api/v2/:principal_slug/business/rapport/works

Überblick

Klasse / Datentyp
Zeiterfassung
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
false
HTTP Methode
GET
Zuletzt aktualisiert

/api/v2/:principal_slug/business/rapport/works

Parameter

Query Parameter

Schlüssel
charging_id optional

Business::Rapport::Charging ID

principal_slug Pflicht

Backend::Principal Slug / ID

page optional

Seite Definition der darzustellenden Seite. Standardwert: 1

per optional

Anzahl Datensätze pro Seite Definition der darzustellenden Datensätze pro Seite.

accounting_year_id optional

Business::AccountingYear ID

client_id optional

Business::Partner::Client ID

employee_id optional

Business::Employee ID

period_id optional

Business::Period ID

project_id optional

Business::Project ID

task_id optional

Business::Task ID

Beispiel Rückgabe

{
  "data" : [
    {
      "id"                : "123123123123",
      "label"             : "Issue #526: Workshop Abrechnung fehlgeschlagen",
      "description"       : "Bugfix",
      "date"              : "2016-12-12",
      "duration_in_hours" : 0.8833333333333333,
      "start_time"        : "2016-12-12T09:39:00.000+01:00",
      "end_time"          : "2016-12-12T10:32:00.000+01:00",
      "charging"          : {
        "id"    : "12312315123123",
        "key"   : "intern",
        "label" : "Intern",
        "color" : "#EF4836"
      },
      "client"            : {
        "id"                     : "547ca1a6726f72731d120000",
        "_type"                  : "Business::Partner::Client::BusinessClient",
        "name"                   : "Squibble GmbH",
        "backend_application_id" : null,
        "foreign_id"             : null
      },
      "project"           : {
        "id"              : "1232134123123123",
        "label"           : "Backend: 2016",
        "number"          : 503,
        "abbreviation"    : "SQUI_2016_503",
        "date"            : "2016-01-04",
        "due_date"        : null,
        "type"            : "Business::Project::AtCost",
        "type_translated" : "Projekt nach Aufwand"
      },
      "task"              : {
        "id"       : "1231245123213",
        "label"    : "Umsetzung / Entwicklung",
        "date"     : "2016-01-31",
        "due_date" : null
      },
      "employee"          : {
        "id"           : "12345678900",
        "abbreviation" : "cle",
        "firstname"    : "Claude Olivier",
        "lastname"     : "Lehmann",
        "email"        : "claude.lehmann@squibble.me"
      },
      "employment"        : {
        "id"                           : "1234567890000",
        "job_title"                    : "",
        "percentage"                   : 100,
        "expected_daily_working_hours" : 8.5,
        "valid_from"                   : "2018-01-01",
        "valid_till"                   : null
      }
    },
    {
      "id"                : "584e621456820b4f567e98dc",
      "label"             : "Daily mit cle",
      "description"       : "",
      "date"              : "2016-12-12",
      "duration_in_hours" : 0.3,
      "start_time"        : "2016-12-12T09:20:00.000+01:00",
      "end_time"          : "2016-12-12T09:38:00.000+01:00",
      "charging"          : {
        "id"    : "5444fba1726f727320240100",
        "key"   : "intern",
        "label" : "Intern",
        "color" : "#EF4836"
      },
      "client"            : {
        "id"                     : "345243123123123",
        "_type"                  : "Business::Partner::Client::BusinessClient",
        "name"                   : "Squibble GmbH",
        "backend_application_id" : null,
        "foreign_id"             : null
      },
      "project"           : null,
      "task"              : null,
      "employee"          : {
        "id"           : "5543523513123123",
        "abbreviation" : "ple",
        "firstname"    : "Patrick",
        "lastname"     : "Lehmann",
        "email"        : "lehmann@squibble.me"
      }
    }
  ],
  "meta" : {
    "resource_class" : "Business::Rapport::Work",
    "max_updated_at" : "2016-12-12T09:33:39.606Z",
    "page"           : 1,
    "per"            : 2,
    "total_pages"    : 3172,
    "total_count"    : 6344
  }
}