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"                : "584e6eda56820b6a10a8cfdb",
      "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"    : "5444fba1726f727320240100",
        "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"              : "568ab27c93e2e538ae000043",
        "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"       : "56ae5ceb93e2e52ac85e8966",
        "label"    : "Umsetzung / Entwicklung",
        "date"     : "2016-01-31",
        "due_date" : null
      },
      "employee"          : {
        "id"           : "560a5fce6f726964a7000000",
        "abbreviation" : "cle",
        "firstname"    : "Claude Olivier",
        "lastname"     : "Lehmann",
        "email"        : "claude.lehmann@squibble.me"
      }
    },
    {
      "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"                     : "547ca1a6726f72731d120000",
        "_type"                  : "Business::Partner::Client::BusinessClient",
        "name"                   : "Squibble GmbH",
        "backend_application_id" : null,
        "foreign_id"             : null
      },
      "project"           : null,
      "task"              : null,
      "employee"          : {
        "id"           : "560a5ea66f726964b3000000",
        "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
  }
}