Back to Mileage Registration

GET Method Details for GetAll.

Get all mileage registration for the user

Definition

https://app[x].timelog.com/[account name]/api/v{version}/mileage-registration

Parameters

  • version string The requested API version

Returns

  • [200] A list of mileage registration belong to the user
    • Car object Gets or sets the car.
    • CarID integer Gets or sets the car identifier.
    • Date string Gets or sets the date.
    • Distance integer Gets or sets the distance.
    • EndAddress string Gets or sets the end address.
    • ID string Gets or sets the identifier.
    • InterfaceCreated integer Gets or sets the interface created.
    • InterfaceModified integer Gets or sets the interface modified.
    • IsApproved boolean Gets or sets a value indicating whether this instance is approved.
    • IsBillable boolean Gets or sets a value indicating whether this instance is billable.
    • IsInvoiced boolean Gets or sets a value indicating whether this instance is invoiced.
    • IsRoundtrip boolean Gets or sets a value indicating whether this instance is roundtrip.
    • MileageRate object Gets or sets the mileage rate.
    • MileageRatesID integer Gets or sets the mileage rates identifier.
    • MileageRegistrationID integer Gets or sets the mileage registration identifier.
    • OdometerEnd integer Gets or sets the odometer end.
    • OdometerStart integer Gets or sets the odometer start.
    • Project object Gets or sets the project.
    • ProjectID integer Gets or sets the project identifier.
    • Purpose string Gets or sets the purpose.
    • StartAddress string Gets or sets the start address.
    • TotalDistance number Gets or sets the total distance.
    • TravelTimeRegistration object Gets or sets the travel time registration.
    • UnitType integer Gets or sets the type of the unit.
    • UserID integer Gets or sets the user identifier.
    {
      "CarID": 0,
      "Date": "2024-03-28T00:00:00+00:00",
      "Distance": 0,
      "EndAddress": "",
      "ID": "00000000-0000-0000-0000-000000000000",
      "InterfaceCreated": 0,
      "InterfaceModified": 0,
      "IsApproved": false,
      "IsBillable": false,
      "IsInvoiced": false,
      "IsRoundtrip": false,
      "MileageRatesID": 0,
      "MileageRegistrationID": 0,
      "OdometerEnd": 0,
      "OdometerStart": 0,
      "ProjectID": 0,
      "Purpose": "",
      "StartAddress": "",
      "TotalDistance": 0.0,
      "UnitType": 0,
      "UserID": 0
    }
  • [401] Invalid authentication token
  • [500] Unable to retrieve MileageRegistrations for the user
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }