---
title: "POST /trips/{trip_id}/cancel_trip"
method: POST
path: "/trips/{trip_id}/cancel_trip"
tags: ["trips"]
---

# POST /trips/{trip_id}/cancel_trip

`POST /trips/{trip_id}/cancel_trip`

## Request

- Base URL: `https://app.getgoing.com`
- URL: `https://app.getgoing.com/trips/{trip_id}/cancel_trip`
- Auth: API key in header `Authorization`

## Request body

- CancelTripParameters
  - `rail_segments_to_cancel` integer[], nullable
  - `reason` string, nullable

## Response `200`

Request fulfilled, document follows

- CancelTripResponse
  - `segments_to_cancel` integer[]

## 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)
