---
title: "GET /admin/reports/rails"
method: GET
path: "/admin/reports/rails"
tags: ["admin"]
---

# GET /admin/reports/rails

`GET /admin/reports/rails`

## Request

- Base URL: `https://app.getgoing.com`
- URL: `https://app.getgoing.com/admin/reports/rails`
- Auth: API key in header `Authorization`

## Query parameters

- `start_date` string, date
- `end_date` string, date
- `country_id` integer
- `department` string
- `invoice_profile_id` integer
- `employee_id` string
- `group_id` integer
- `office` string
- `cost_center` string
- `trip_purpose` string
- `accounting_unit` string
- `action_code` string
- `billable` string
- `internal_account` string
- `out_of_policy_reason` string
- `project_code` string
- `purchase_order_number` string
- `custom_field_1` string
- `custom_field_2` string
- `custom_field_3` string
- `trip_type` 'one_way' | 'round_trip' | 'multi_destination'
- `trip_path` string

## Response `200`

Request fulfilled, document follows

- DetailedRailStatsWithNestedSchema[]
  - `key` string
  - `avg_ticket_price` number
  - `booked_in_advance` number
  - `cabin_class` object
  - `seat_price` number
  - `num_travelers` integer
  - `route_travelers` integer
  - `num_trips` integer
  - `total_rail_spend` number
  - `start_date` string, date
  - `end_date` string, date
  - `open_return_valid_until` string, date
  - `trips_by_path` DetailedRailStats[] (unresolved $ref)

## Other responses

- `422`: Success

---

[API](https://skmtc.dev/getgoing/apis/getgoing-api.md) - [All operations](https://skmtc.dev/getgoing/apis/getgoing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getgoing/apis/getgoing-api/revisions/7546f102cf69?raw)
