v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Expenses > Mileage

Reads a single Mileage

Reads a single Mileage

get/api/2026-07-01/resources/expenses/mileages/{id}

Path parameters

idstring required

Response

OK

idstring required

Unique identifier for the mileage

employee_idstring

The ID of the employee that owns the mileage

company_idstring required

The ID of the company that owns the mileage

expenses_expensable_idstring

The ID of the expensable associated with this mileage

categoryobject

The category of the mileage

subcategorystring

The subcategory of the mileage

category_idstring

The ID of the category

amountinteger

The amount in cents

currencystring required

The currency code in ISO 4217 format

reimbursable_amountinteger

The amount to be reimbursed for the mileage in cents.

reimbursable_currencystring

The currency for the reimbursable amount.

statusstring required

The status of the mileage

mileageinteger

The distance travelled, expressed in units

unitsstring

The distance unit mileage is expressed in (e.g. km)

ratestring

The reimbursement rate per distance unit, in currency

fromstring

The origin location

tostring

The destination location

descriptionstring

The description of the mileage

effective_onstring

The date when the mileage was effective

review_request_atstring

The date when the mileage was requested for review

paid_atstring

The date when the mileage was paid

payment'reimbursable' | 'not_reimbursable' required

The payment method

ledger_account_idstring

The ID of the ledger account

round_tripboolean

Indicates if the mileage is a round trip

origin_longitudestring

The longitude of the origin of the mileage

origin_latitudestring

The latitude of the origin of the mileage

destination_longitudestring

The longitude of the destination of the mileage

destination_latitudestring

The latitude of the destination of the mileage

calculated_mileageinteger

The calculated mileage between origin and destination in decameters/10-milers

budget_idstring

The id of the budget associated with this mileage

project_idstring

The id of the project associated with this mileage

cost_center_idsstring[] required

Array of cost center IDs associated with this mileage

Example response

{
  "id": "1",
  "employee_id": "1",
  "company_id": "1",
  "expenses_expensable_id": "1",
  "subcategory": "client_visit",
  "category_id": "1",
  "amount": 1000,
  "currency": "EUR",
  "reimbursable_amount": 250,
  "reimbursable_currency": "USD",
  "status": "approved",
  "mileage": 100,
  "units": "km",
  "from": "Madrid",
  "to": "Barcelona",
  "description": "Client meeting",
  "effective_on": "2024-06-06T12:00:00.000Z",
  "review_request_at": "2024-06-06T12:00:00.000Z",
  "paid_at": "2024-06-06T12:00:00.000Z",
  "payment": "reimbursable",
  "ledger_account_id": "1",
  "round_trip": true,
  "calculated_mileage": 62700,
  "budget_id": "2",
  "project_id": "3",
  "cost_center_ids": [
    "4",
    "5"
  ]
}