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

Ü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/:id

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Logbook::Entry ID

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                       : "581b0c7256820b4978b56dbc",
    "label"                    : "An- und Rückfahrt",
    "description"              : "",
    "date"                     : "2016-11-03",
    "distance"                 : 34,
    "milage_start"             : 5193,
    "milage_end"               : 5227,
    "internal_description"     : "",
    "is_private"               : false,
    "accounting_year"          : {"id" : "5640f7df93e2e504f700008f","code" : "2016","label" : "2016"},
    "charging"                 : {
      "id"    : "54d5fe5f6f726976d9040000",
      "key"   : "not_charchable",
      "label" : "Nicht verrechenbar"
    },
    "client"                   : {
      "id"                     : "55de1a856f72695dd4010000",
      "_type"                  : "Business::Partner::Client::BusinessClient",
      "name"                   : "Noser Engineering AG",
      "backend_application_id" : null,
      "foreign_id"             : null
    },
    "period"                   : {
      "id"    : "5640f7df93e2e504f700009a",
      "code"  : "2016-11",
      "label" : "November 2016"
    },
    "project"                  : {
      "id"              : "581855f356820b0e6754e19d",
      "label"           : "B2B: Günther Audio Systems AG Calculation (November 2016)",
      "number"          : 292,
      "abbreviation"    : "NOSE_2016_292",
      "date"            : "2016-11-01",
      "due_date"        : "2016-11-01",
      "type"            : "Business::Project::AtCost",
      "type_translated" : "Projekt nach Aufwand"
    },
    "employee"                 : {
      "id"        : "560a5ea66f726964b3000000",
      "firstname" : "Patrick",
      "lastname"  : "Lehmann",
      "email"     : "lehmann@squibble.me"
    },
    "intangible_good"          : {
      "id"             : "54fd986a6f72696dd0000000",
      "article_number" : "fahrtkosten",
      "label"          : "Fahrtkosten",
      "resource_class" : "Business::Product::IntangibleGood"
    },
    "internal_intangible_good" : {
      "id"             : "54fd986a6f72696dd0000000",
      "article_number" : "fahrtkosten",
      "label"          : "Fahrtkosten",
      "resource_class" : "Business::Product::IntangibleGood"
    },
    "price"                    : {"id" : "581b0c7356820b4978b56dbe","value" : 55.08},
    "internal_price"           : {"id" : "582731571f513a6058a1e90f","value" : 0},
    "vehicle"                  : {
      "id"           : "5788da6656820b1ba101028a",
      "label"        : "Mercedes Benz C43 AMG",
      "number_plate" : "TG 198833"
    },
    "next"                     : {
      "id"           : "581c4b7156820b2f52ab74fa",
      "date"         : "2016-11-04",
      "distance"     : 124,
      "milage_start" : 5227,
      "milage_end"   : 5351
    },
    "previous"                 : {
      "id"           : "581b0c6256820b497bb56dba",
      "date"         : "2016-11-01",
      "distance"     : 99,
      "milage_start" : 5094,
      "milage_end"   : 5193
    }
  },
  "meta" : {
    "resource_class" : "Business::Logbook::Entry",
    "id"             : "581b0c7256820b4978b56dbc",
    "created_at"     : "2016-11-03T11:07:47.017+01:00",
    "updated_at"     : "2016-11-03T14:04:06.858+01:00",
    "principal"      : {"id" : "53db7cb4993a7aefa50001e1","to_param" : "squibble"}
  }
}