trainline-python icon indicating copy to clipboard operation
trainline-python copied to clipboard

SNCF requires (young) card number

Open gwenaskell opened this issue 5 years ago • 0 comments

What I Did

When executing a search for a SNCF connection with a young card, the Trainline server now returns:

{"errors":{"passengers":["La carte Carte Avantage Jeune n’est pas valide : Le numéro de carte doit être rempli(e)"]}}

Seems that SNCF is now requesting the card number as well (as I saw on their website). I manually added a "number" field to the card stored in the Passenger object, as it is done for TGV MAX card, which solved the problem.

gwenaskell avatar Oct 15 '20 08:10 gwenaskell