Add booking requests

This commit is contained in:
Marty Oehme 2025-08-11 21:45:50 +02:00
parent c1b34eb2c1
commit 3cf51b35de
Signed by: Marty
GPG key ID: 4E535BC19C61886E
3 changed files with 75 additions and 2 deletions

View file

@ -199,6 +199,31 @@ curl 'https://www.nightjet.com/nj-booking-ocp/offer/get' \
--data-raw '{"njFrom":8011160,"njDep":1760461680000,"njTo":8700011,"maxChanges":0,"connections":1,"filter":{"njTrain":"NJ 40424","njDeparture":1760461680000},"objects":[{"type":"person","birthDate":"1995-08-11","cards":[]}],"relations":[],"lang":"en"}'
```
request data
```json
{
"njFrom": 8011160,
"njDep": 1760461680000,
"njTo": 8700011,
"maxChanges": 0,
"connections": 1,
"filter": {
"njTrain": "NJ 40424",
"njDeparture": 1760461680000
},
"objects": [
{
"type": "person",
"birthDate": "1995-08-11",
"cards": []
}
],
"relations": [],
"lang": "en"
}
```
### booking response
```json