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

# POST /trips/{trip_id}/cancel_train

`POST /trips/{trip_id}/cancel_train`

## Request

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

## Request body

- CancelTrainParameters
  - `booking_segments_ids` integer[]

## Response `202`

Request accepted, processing continues off-line

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