---
title: "POST /travel_profile/{user_id}/rail_card"
method: POST
path: "/travel_profile/{user_id}/rail_card"
tags: ["travel_profile"]
---

# POST /travel_profile/{user_id}/rail_card

`POST /travel_profile/{user_id}/rail_card`

## Request

- Base URL: `https://app.getgoing.com`
- URL: `https://app.getgoing.com/travel_profile/{user_id}/rail_card`
- Auth: API key in header `Authorization`

## Request body

- AddTravelerRailCardParameters
  - `id` string, uuid
  - `user_id` integer
  - `card_type_id` string, uuid, nullable
  - `card_number` '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
  - `expiration_date` string, date, nullable
  - `is_preferred` boolean
  - `card_type_name` 'BAHN_CARD' | 'BAHN_BONUS_BUSINESS' | 'SNCF'

## Response `200`

Rail card was added to traveler profile

- DetailedTravelerRailCardSchema
  - `id` string, uuid
  - `user_id` integer
  - `card_type_id` string, uuid, nullable
  - `card_number` '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
  - `expiration_date` string, date, nullable
  - `is_preferred` boolean, required
  - `card_type` RailCardListResponse (unresolved $ref)
  - `card_type_name` 'BAHN_CARD' | 'BAHN_BONUS_BUSINESS' | 'SNCF'

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