Fahrt v2 /api/v2/:principal_slug/business/logbook/entries

Überblick

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

/api/v2/:principal_slug/business/logbook/entries

Parameter

Query Parameter

Schlüssel
business_usage optional

Geschäftliche Fahrt

charchable optional

Verrechenbar

charging_id optional

Business::Logbook::EntryCharging ID

completed optional

Abgeschlossen

intern optional

Intern

not_charchable optional

Nicht verrechenbar

private_usage optional

Private Fahrt

uncompleted optional

Nicht abgeschlossen

vehicle_id optional

Business::Vehicle 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

Beispiel Rückgabe

{
  "data" : [
    {
      "id"           : "581f2c1656820b7c3737edc4",
      "label"        : "An- und Rückfahrt Einrichtung SSL Zertifikat",
      "description"  : "",
      "date"         : "2016-11-06",
      "distance"     : 0,
      "milage_start" : 43340,
      "milage_end"   : null,
      "charging"     : {"id" : "54d5fe5f6f726976d9050000","key" : "intern","label" : "Intern"},
      "client"       : {
        "id"                     : "547ec0b4726f727326270000",
        "_type"                  : "Business::Partner::Client::BusinessClient",
        "name"                   : "Krolop & Gerst Photography",
        "backend_application_id" : null,
        "foreign_id"             : null
      },
      "project"      : {
        "id"              : "56a1276793e2e52871000236",
        "label"           : "Redesign 2016",
        "number"          : 503,
        "abbreviation"    : "KG_2016_503",
        "date"            : "2016-01-21",
        "due_date"        : "2016-07-22",
        "type"            : "Business::Project::AtCost",
        "type_translated" : "Projekt nach Aufwand"
      },
      "employee"     : {
        "id"        : "560a5ecb6f726964ad000000",
        "firstname" : "Priscilla",
        "lastname"  : "Schneider",
        "email"     : "schneider@squibble.me"
      },
      "vehicle"      : {
        "id"           : "562b8a0d6f72697d38660000",
        "label"        : "OPEL Insignia 2.8T OPC 4WD",
        "number_plate" : "TG 167 570"
      }
    },
    {
      "id"           : "581c4b7156820b2f52ab74fa",
      "label"        : "An- und Rückfahrt Luftaufnahmen Thalwil",
      "description"  : "",
      "date"         : "2016-11-04",
      "distance"     : 124,
      "milage_start" : 5227,
      "milage_end"   : 5351,
      "charging"     : {
        "id"    : "54d5fe5f6f726976d9030000",
        "key"   : "charchable",
        "label" : "Verrechenbar"
      },
      "client"       : {
        "id"                     : "581a089556820b1c5a912b76",
        "_type"                  : "Business::Partner::Client::BusinessClient",
        "name"                   : "Virtual Design Unit GmbH",
        "backend_application_id" : null,
        "foreign_id"             : null
      },
      "project"      : {
        "id"              : "581c808556820b2f58ab75ba",
        "label"           : "Luftaufnahmen: Thalwil Hafen",
        "number"          : 294,
        "abbreviation"    : "VIRT_2016_294",
        "date"            : "2016-11-04",
        "due_date"        : null,
        "type"            : "Business::Project::AtCost",
        "type_translated" : "Projekt nach Aufwand"
      },
      "employee"     : {
        "id"        : "560a5ea66f726964b3000000",
        "firstname" : "Patrick",
        "lastname"  : "Lehmann",
        "email"     : "lehmann@squibble.me"
      },
      "vehicle"      : {
        "id"           : "5788da6656820b1ba101028a",
        "label"        : "Mercedes Benz C43 AMG",
        "number_plate" : "TG 198833"
      }
    }
  ],
  "meta" : {
    "resource_class" : "Business::Logbook::Entry",
    "max_updated_at" : "2016-11-06T13:11:50.917Z",
    "page"           : 1,
    "per"            : 2,
    "total_pages"    : 148,
    "total_count"    : 295
  }
}