Add a railcard

Create a railcard for the authenticated traveler. The card number is required only when the selected type requires one.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request body for POST /v1/profile/railcards.

Always creates a railcard for the authenticated caller — there is no
on-behalf target (see mercury.services.profile._railcards's module
docstring for why). number is conditionally required by the
selected type; that requirement is validated dynamically against the
type's catalog entry, not at this schema layer, since it depends on
typeId. typeId is the public id returned by
GET /v1/profile/railcard-types.

uuid
required

Railcard type id from the catalog.

string
required

Traveler-facing name for the saved card.

string
required
string
required

Card number, when required.

Responses

401

Missing or invalid authentication token

403

Provider refused the request (resolved deny)

404

Railcard type not found

422

Validation failed

502

Railcard type catalog could not be read

503

Railcard service is temporarily unavailable

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json