Skip to content

Instantly share code, notes, and snippets.

@derhuerst
Last active March 23, 2017 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derhuerst/410d79ce2a8158705d7878e8af096577 to your computer and use it in GitHub Desktop.
Save derhuerst/410d79ce2a8158705d7878e8af096577 to your computer and use it in GitHub Desktop.
Locomore API requests
POST /oauth/v2/token HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 93
Pragma: no-cache
Cache-Control: no-cache
authorization: Basic XzR6a3FmdDJ3cm8wOHc0a2tzMGdzMGs4d3c0b2c4MGc0c2M4NGtzMDh3azR3czRrb3dnOjRnaXF6YzB2aDh1ODRjZ3NndzgwczRrMGswZ3dnb3Nna2dvMGtnb2drNGtzMDRvb2Mw
Origin: https://booking.locomore.com
accept-language: de-DE
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/deep-link?target=routes&origin=8003231&destination=8005637&outboundDate=2017-03-30&passengers[0][type]=A
Accept-Encoding: gzip, deflate, br
{"grant_type":"https://com.sqills.s3.oauth.public","code":"xw4Irmc9RvOFV13vh02x5ZC205PAOc11"}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-store, private
Pragma: no-cache
Date: Tue, 21 Mar 2017 16:54:47 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"access_token":"NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw","expires_in":1800,"token_type":"bearer","scope":null,"refresh_token":"MWFmZmQ4MjMwNGM0NTJkZmY0Y2MwYzE1M2ZiNTE2OTQxZGFjZmFmMjg0ZTNhODgwMDZkODk2MzM5NDg4ZmQwZA"}
GET /api/stations?max_transfers=0 HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
accept: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
accept-language: de-DE
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/deep-link?target=routes&origin=8003231&destination=8005637&outboundDate=2017-03-30&passengers[0][type]=A
Accept-Encoding: gzip, deflate, sdch, br
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 16:54:47 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
[{"synonyms":[],"_u_i_c_station_code":"8014021","short_code":"RH","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8005365","8013050","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8005637"],"name":"Heidelberg Hbf"},{"synonyms":["Berlin Central Station","Berlin Hauptbahnhof"],"_u_i_c_station_code":"8065969","short_code":"BLS","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8013017","8029034","8011051","8013552","8005365","8013050","8011065","8005637","8014021","8011336","8029009"],"name":"Berlin Hbf"},{"synonyms":[],"_u_i_c_station_code":"8029034","short_code":"TS","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8011051","8013552","8005365","8013050","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"Stuttgart Hbf"},{"synonyms":[],"geo_data":{"latitude":"50.1215357","longitude":"8.929685999999947","zoom":12},"_u_i_c_station_code":"8011051","short_code":"FH","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8013552","8005365","8013050","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"Hanau Hbf"},{"synonyms":[],"_u_i_c_station_code":"8013552","short_code":"HH","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8005365","8013050","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"Hannover Hbf"},{"synonyms":[],"_u_i_c_station_code":"8005365","short_code":"FKW","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8013050","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"Kassel-Wilhelmsh\u00f6he"},{"synonyms":[],"_u_i_c_station_code":"8013050","short_code":"HG","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8005365","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"G\u00f6ttingen"},{"synonyms":[],"geo_data":{"latitude":"50.07605700000001","longitude":"8.670040900000004","zoom":13},"_u_i_c_station_code":"8011065","short_code":"FFS","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8005365","8013050","8003231","8011336","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"Frankfurt (Main) S\u00fcd"},{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8013017","8029034","8011051","8013552","8005365","8013050","8011065","8005637","8014021","8011336","8029009"],"name":"Berlin-Lichtenberg"},{"synonyms":[],"_u_i_c_station_code":"8011336","short_code":"FD","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8005365","8013050","8011065","8003231","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"Darmstadt Hbf"},{"synonyms":[],"geo_data":{"latitude":"48.949902240227324","longitude":"8.954800341452938","zoom":14},"_u_i_c_station_code":"8029009","short_code":"TV","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8005365","8013050","8011065","8003231","8011336","8013017","8003004","8003036","8005637","8014021"],"name":"Vaihingen (Enz)"},{"synonyms":[],"_u_i_c_station_code":"8013017","short_code":"HWOB","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8005365","8013050","8011065","8003231","8011336","8029009","8003004","8003036","8005637","8014021"],"name":"Wolfsburg Hbf"},{"synonyms":[],"_u_i_c_station_code":"8003004","short_code":"BHF","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8013017","8029034","8011051","8013552","8005365","8013050","8011065","8005637","8014021","8011336","8029009"],"name":"Berlin Ostbahnhof"},{"synonyms":[],"_u_i_c_station_code":"8003036","short_code":"BZOO","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8013017","8029034","8011051","8013552","8005365","8013050","8011065","8005637","8014021","8011336","8029009"],"name":"Berlin Zoologischer Garten"},{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8029034","8011051","8013552","8005365","8013050","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8014021"],"name":"Fulda"}]
POST /api/journey-search HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 205
Pragma: no-cache
Cache-Control: no-cache
authorization: Bearer YmY1M2FkMjI5YmEyMzk2MzJiNDM1NTZjMTAzZjFhYWE1Nzg3YWFmYjk3NzJjMjQ5Yzk1M2Q5NGRhZjc1MjgyNA
Origin: https://booking.locomore.com
accept-language: en-GB
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/en-GB/orientation/journey-search?origin=8065969&destination=8029034&outboundDate=2017-03-30&inboundDate=2017-03-31&passengers[0][type]=A
Accept-Encoding: gzip, deflate, br
{"departure_date":"2017-03-30","return_date":"2017-03-31","currency":"EUR","origin_station":"8065969","destination_station":"8029034","passengers":[{"type":"A","disability_type":"NH","discount_cards":[]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Thu, 23 Mar 2017 13:18:44 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"journey_search":{"id":"dc34501cfd2618725a064f741d57bae0","origin_station":"8065969","destination_station":"8029034","departure_date":"2017-03-30T00:00:00Z","return_date":"2017-03-31T00:00:00Z","passengers":[{"type":"A","disability_type":"NH","discount_cards":[]}],"currency":"EUR","product_families":[]},"offer":{"travels":[{"best_bundle_ids":["bundle-s1819_2017-03-30_BLS_TS--1254544598"],"best_route_ids":["s1819_2017-03-30_BLS_TS"],"best_bundle_id":"bundle-s1819_2017-03-30_BLS_TS--1254544598","best_route_id":"s1819_2017-03-30_BLS_TS","id":"travel_1","origin":"8065969","destination":"8029034","departure_date":"2017-03-30T00:00:00+0200","direction":"outward","routes":[{"best_bundle_id":"bundle-s1819_2017-03-30_BLS_TS--1254544598","best_bundle_ids":["bundle-s1819_2017-03-30_BLS_TS--1254544598"],"id":"s1819_2017-03-30_BLS_TS","travel_time":"PT6H26M","legs":[{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8065969","short_code":"BLS","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin Hbf","departure_platform":"13","departure_timestamp":"2017-03-30T14:54:00+0200"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8029034","short_code":"TS","timezone":"Europe\/Berlin","connected_stations":[],"name":"Stuttgart Hbf","arrival_platform":"7","arrival_timestamp":"2017-03-30T21:20:00+0200"},"id":"s1819_2017-03-30_BLS_TS-s1819_2017-03-30_BLS_TS","service_name":"1819","service_schedule_date":"2017-03-30T00:00:00+0200","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"service_identifier":"1819|2017-03-30","availability":[{"inventory_class":"BA","physical":265},{"inventory_class":"BU","physical":13},{"inventory_class":"BP","physical":2}],"service_properties":[]}],"transfers":[],"bundles":[{"product_family_id":"product-family-BASIC","id":"bundle-s1819_2017-03-30_BLS_TS--1254544598","unique_id":"28cc0c9ddf7f39e72740821b3034ff478b0618e4","price":42,"required_products":[{"name":"Basic","description":"Basic","id":"product-BAS","type":"ST","code":"BAS","meta_data":[],"after_sales_rule_sets":[],"product_family_id":"product-family-BASIC","leg_refs":["s1819_2017-03-30_BLS_TS-s1819_2017-03-30_BLS_TS"],"valid_days":1,"valid_trips":1,"comfort_zone":{"name":"Basic","id":"Basic","code":"Basic","sequence_number":"1"},"tariffs":[{"passenger_id":"passenger_1","tariff_code":"BASIC5"}]}],"additional_products_summaries":[{"product_type":"BK","lowest_price":12},{"product_type":"DG","lowest_price":11},{"product_type":"PR","lowest_price":0}],"passenger_prices":[{"id":"passenger_1","price":42}],"availability":4},{"product_family_id":"product-family-BUSIN","id":"bundle-s1819_2017-03-30_BLS_TS--882442707","unique_id":"9593dd0f085e5605a74f1df7585e2eb14d9aad90","price":98,"required_products":[{"name":"Business","description":"Business","id":"product-BUS","type":"ST","code":"BUS","meta_data":[],"after_sales_rule_sets":[],"product_family_id":"product-family-BUSIN","leg_refs":["s1819_2017-03-30_BLS_TS-s1819_2017-03-30_BLS_TS"],"valid_days":1,"valid_trips":1,"comfort_zone":{"name":"Business","id":"Business","code":"Business","sequence_number":"2"},"tariffs":[{"passenger_id":"passenger_1","tariff_code":"BUSINESS9"}]}],"additional_products_summaries":[{"product_type":"BK","lowest_price":12},{"product_type":"DG","lowest_price":11}],"passenger_prices":[{"id":"passenger_1","price":98}],"availability":7}]}]},{"best_bundle_ids":["bundle-s1818_2017-03-31_TS_BLS--2146865951"],"best_route_ids":["s1818_2017-03-31_TS_BLS"],"best_bundle_id":"bundle-s1818_2017-03-31_TS_BLS--2146865951","best_route_id":"s1818_2017-03-31_TS_BLS","id":"travel_2","origin":"8029034","destination":"8065969","departure_date":"2017-03-31T00:00:00+0200","direction":"return","routes":[{"best_bundle_id":"bundle-s1818_2017-03-31_TS_BLS--2146865951","best_bundle_ids":["bundle-s1818_2017-03-31_TS_BLS--2146865951"],"id":"s1818_2017-03-31_TS_BLS","travel_time":"PT6H44M","legs":[{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8029034","short_code":"TS","timezone":"Europe\/Berlin","connected_stations":[],"name":"Stuttgart Hbf","departure_platform":"4","departure_timestamp":"2017-03-31T06:21:00+0200"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8065969","short_code":"BLS","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin Hbf","arrival_platform":"11","arrival_timestamp":"2017-03-31T13:05:00+0200"},"id":"s1818_2017-03-31_TS_BLS-s1818_2017-03-31_TS_BLS","service_name":"1818","service_schedule_date":"2017-03-31T00:00:00+0200","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"service_identifier":"1818|2017-03-31","availability":[{"inventory_class":"BA","physical":156},{"inventory_class":"BU","physical":9},{"inventory_class":"BP","physical":0}],"service_properties":[]}],"transfers":[],"bundles":[{"product_family_id":"product-family-BASIC","id":"bundle-s1818_2017-03-31_TS_BLS--2146865951","unique_id":"7131b1c2cd6f5225124db7641b39de70c9bea31c","price":47,"required_products":[{"name":"Basic","description":"Basic","id":"product-BAS","type":"ST","code":"BAS","meta_data":[],"after_sales_rule_sets":[],"product_family_id":"product-family-BASIC","leg_refs":["s1818_2017-03-31_TS_BLS-s1818_2017-03-31_TS_BLS"],"valid_days":1,"valid_trips":1,"comfort_zone":{"name":"Basic","id":"Basic","code":"Basic","sequence_number":"1"},"tariffs":[{"passenger_id":"passenger_1","tariff_code":"BASIC6"}]}],"additional_products_summaries":[{"product_type":"DG","lowest_price":11}],"passenger_prices":[{"id":"passenger_1","price":47}],"availability":4},{"product_family_id":"product-family-BUSIN","id":"bundle-s1818_2017-03-31_TS_BLS--216470988","unique_id":"162a48955e30171e9f6eaf84df890ff2ad7cea76","price":98,"required_products":[{"name":"Business","description":"Business","id":"product-BUS","type":"ST","code":"BUS","meta_data":[],"after_sales_rule_sets":[],"product_family_id":"product-family-BUSIN","leg_refs":["s1818_2017-03-31_TS_BLS-s1818_2017-03-31_TS_BLS"],"valid_days":1,"valid_trips":1,"comfort_zone":{"name":"Business","id":"Business","code":"Business","sequence_number":"2"},"tariffs":[{"passenger_id":"passenger_1","tariff_code":"BUSINESS9"}]}],"additional_products_summaries":[{"product_type":"DG","lowest_price":11}],"passenger_prices":[{"id":"passenger_1","price":98}],"availability":8}]}]}],"passengers":[{"discount_cards":[],"disability_type":"NH","id":"passenger_1","type":"A"}],"comfort_zones":[{"name":"Basic","id":"Basic","code":"Basic","sequence_number":"1"},{"name":"Business","id":"Business","code":"Business","sequence_number":"2"}],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"product-family-BASIC","code":"BASIC","sequence_number":1},{"attributes":[],"name":"Business","description":"???description of #product-family-key [2, BUSIN]???","id":"product-family-BUSIN","code":"BUSIN","sequence_number":2},{"attributes":[],"name":"Basic Stand","description":"Basic Stand","id":"product-family-STAND","code":"STAND","sequence_number":3},{"attributes":[],"name":"Group J","description":"Group J","id":"product-family-GRO_J","code":"GRO_J","sequence_number":4},{"attributes":[],"name":"Group N","description":"Group N","id":"product-family-GRO_N","code":"GRO_N","sequence_number":5},{"attributes":[],"name":"Kirchentag","description":"Kirchentag","id":"product-family-DEKT","code":"DEKT","sequence_number":6}],"origin_station":{"synonyms":["Berlin Central Station","Berlin Hauptbahnhof"],"_u_i_c_station_code":"8065969","short_code":"BLS","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8013017","8029034","8011051","8013552","8005365","8013050","8011065","8005637","8014021","8011336","8029009"],"name":"Berlin Hbf"},"destination_station":{"synonyms":[],"_u_i_c_station_code":"8029034","short_code":"TS","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":["8065969","8011051","8013552","8005365","8013050","8011065","8003231","8011336","8029009","8013017","8003004","8003036","8005637","8014021"],"name":"Stuttgart Hbf"}}},"messages":[]}
GET /api/cheapest-price-search?origin_station=8003231&destination_station=8005637&passengers%5B0%5D%5Btype%5D=A&&currency=EUR&travels%5B0%5D%5Bid%5D=outbound-20170328&travels%5B0%5D%5Bdirection%5D=outward&travels%5B0%5D%5Bdate%5D=2017-03-28&travels%5B1%5D%5Bid%5D=outbound-20170329&travels%5B1%5D%5Bdirection%5D=outward&travels%5B1%5D%5Bdate%5D=2017-03-29&travels%5B2%5D%5Bid%5D=outbound-20170330&travels%5B2%5D%5Bdirection%5D=outward&travels%5B2%5D%5Bdate%5D=2017-03-30&travels%5B3%5D%5Bid%5D=outbound-20170331&travels%5B3%5D%5Bdirection%5D=outward&travels%5B3%5D%5Bdate%5D=2017-03-31&travels%5B4%5D%5Bid%5D=outbound-20170401&travels%5B4%5D%5Bdirection%5D=outward&travels%5B4%5D%5Bdate%5D=2017-04-01 HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
accept: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
accept-language: de-DE
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/journey-search?origin=8003231&destination=8005637&outboundDate=2017-03-30&passengers[0][type]=A
Accept-Encoding: gzip, deflate, sdch, br
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 16:54:48 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"cheapest_price_search":{"origin_station":"8003231","destination_station":"8005637","passengers":[{"type":"A","discount_cards":[]}],"currency":"EUR","travels":[{"id":"outbound-20170328","date":"2017-03-28T00:00:00Z","direction":"outward"},{"id":"outbound-20170329","date":"2017-03-29T00:00:00Z","direction":"outward"},{"id":"outbound-20170330","date":"2017-03-30T00:00:00Z","direction":"outward","price":19},{"id":"outbound-20170331","date":"2017-03-31T00:00:00Z","direction":"outward","price":19},{"id":"outbound-20170401","date":"2017-04-01T00:00:00Z","direction":"outward","price":19}]}},"messages":[]}
GET /api/journey-details?service_identifiers%5B0%5D=1819%7C2017-03-30 HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
accept: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
accept-language: de-DE
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/journey-search?origin=8003231&destination=8005637&outboundDate=2017-03-30&passengers[0][type]=A
Accept-Encoding: gzip, deflate, sdch, br
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:00:44 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"services":[{"name":"1819","schedule_date":"2017-03-30","via_stations":[{"synonyms":[],"_u_i_c_station_code":"8003004","short_code":"BHF","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin Ostbahnhof","arrival_platform":"7","departure_platform":"7","departure_timestamp":"2017-03-30T14:42:00+0200","arrival_timestamp":"2017-03-30T14:41:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8065969","short_code":"BLS","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin Hbf","arrival_platform":"13","departure_platform":"13","departure_timestamp":"2017-03-30T14:54:00+0200","arrival_timestamp":"2017-03-30T14:53:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8003036","short_code":"BZOO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin Zoologischer Garten","arrival_platform":"3","departure_platform":"3","departure_timestamp":"2017-03-30T15:01:00+0200","arrival_timestamp":"2017-03-30T15:00:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8013017","short_code":"HWOB","timezone":"Europe\/Berlin","connected_stations":[],"name":"Wolfsburg Hbf","arrival_platform":"1","departure_platform":"1","departure_timestamp":"2017-03-30T16:11:00+0200","arrival_timestamp":"2017-03-30T16:10:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8013552","short_code":"HH","timezone":"Europe\/Berlin","connected_stations":[],"name":"Hannover Hbf","arrival_platform":"7","departure_platform":"7","departure_timestamp":"2017-03-30T16:46:00+0200","arrival_timestamp":"2017-03-30T16:43:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8013050","short_code":"HG","timezone":"Europe\/Berlin","connected_stations":[],"name":"G\u00f6ttingen","arrival_platform":"11","departure_platform":"11","departure_timestamp":"2017-03-30T17:42:00+0200","arrival_timestamp":"2017-03-30T17:41:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8005365","short_code":"FKW","timezone":"Europe\/Berlin","connected_stations":[],"name":"Kassel-Wilhelmsh\u00f6he","arrival_platform":"2","departure_platform":"2","departure_timestamp":"2017-03-30T18:04:00+0200","arrival_timestamp":"2017-03-30T18:03:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda","arrival_platform":"4","departure_platform":"4","departure_timestamp":"2017-03-30T18:40:00+0200","arrival_timestamp":"2017-03-30T18:39:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8011051","short_code":"FH","timezone":"Europe\/Berlin","connected_stations":[],"name":"Hanau Hbf","arrival_platform":"5","departure_platform":"5","departure_timestamp":"2017-03-30T19:20:00+0200","arrival_timestamp":"2017-03-30T19:19:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8011065","short_code":"FFS","timezone":"Europe\/Berlin","connected_stations":[],"name":"Frankfurt (Main) S\u00fcd","arrival_platform":"7","departure_platform":"7","departure_timestamp":"2017-03-30T19:37:00+0200","arrival_timestamp":"2017-03-30T19:35:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8011336","short_code":"FD","timezone":"Europe\/Berlin","connected_stations":[],"name":"Darmstadt Hbf","arrival_platform":"10","departure_platform":"10","departure_timestamp":"2017-03-30T19:54:00+0200","arrival_timestamp":"2017-03-30T19:53:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8014021","short_code":"RH","timezone":"Europe\/Berlin","connected_stations":[],"name":"Heidelberg Hbf","arrival_platform":"8","departure_platform":"8","departure_timestamp":"2017-03-30T20:33:00+0200","arrival_timestamp":"2017-03-30T20:31:00+0200"},{"synonyms":[],"_u_i_c_station_code":"8029009","short_code":"TV","timezone":"Europe\/Berlin","connected_stations":[],"name":"Vaihingen (Enz)","arrival_platform":"2","departure_platform":"2","departure_timestamp":"2017-03-30T21:03:00+0200","arrival_timestamp":"2017-03-30T21:02:00+0200"}],"service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"service_properties":[],"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg","departure_platform":"16","departure_timestamp":"2017-03-30T14:28:00+0200"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8029034","short_code":"TS","timezone":"Europe\/Berlin","connected_stations":[],"name":"Stuttgart Hbf","arrival_platform":"7","arrival_timestamp":"2017-03-30T21:20:00+0200"}}]},"messages":[]}
POST /api/select-bundle HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 129
Pragma: no-cache
Cache-Control: no-cache
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
Origin: https://booking.locomore.com
accept-language: de-DE
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/journey-search?origin=8003231&destination=8005637&outboundDate=2017-03-30&passengers[0][type]=A
Accept-Encoding: gzip, deflate, br
{"journey_id":"8890101c008c9a1fe2d0b72f4a3ff5b2","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","travel_id":"travel_1"}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:01:10 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"selected_bundles":[{"route_id":"s1819_2017-03-30_BLO_FFU","travel_id":"travel_1","id":"bundle-s1819_2017-03-30_BLO_FFU--931206168"}],"orientation_booking_specification":{"required_products":[{"legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"travel_id":"travel_1","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-BAS-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","passenger_id":"passenger_1","tariff_id":"tariff-BASIC2","tariff_code":"BASIC2","tariff_name":"Locomore","product_id":"product-BAS","product_code":"BAS","product_name":"Basic","quantity":1,"price":19,"original_price":19,"discounts":[],"product_family_id":"product-family-BASIC"}],"additional_products":[],"selected_seats":[],"seat_preferences":[],"outbound_booking_journey_segments":[{"leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"inbound_booking_journey_segments":[],"passengers":[{"type":"A","discount_cards":[]}],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"product-family-BASIC","code":"BASIC","sequence_number":1}],"outbound_product_family_id":"product-family-BASIC","total_price":19,"seat_selection_available":true,"additional_products_available":true}},"messages":[]}
POST /api/booking HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 49
Pragma: no-cache
Cache-Control: no-cache
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
Origin: https://booking.locomore.com
accept-language: de-DE
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/journey-search?origin=8003231&destination=8005637&outboundDate=2017-03-30&passengers[0][type]=A
Accept-Encoding: gzip, deflate, br
{"journey_id":"8890101c008c9a1fe2d0b72f4a3ff5b2"}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:01:48 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"booking_number":"IQ3YKUT2","sales_channel_code":"INTERNET","payments":[],"fulfillment_methods":[{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"}],"booking_fulfillment_method":{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"},"passengers":[{"discount_cards":[],"disability_type":"NH","id":"passenger_1","type":"A","first_name":"","last_name":"","protect_privacy":false,"ref_id":676009}],"outbound_booking_tariff_segments":[{"validity_intervals":[{"start":"Thu","end":"Thu"}],"has_new_main_products":true,"travel_info":[],"travel_info_extended":[],"id":"segment_1","travel_date":"2017-03-30","validity_start_date":"2017-03-30","validity_end_date":"2017-03-30","validity_service":"1819","tariff_group_code":"LM-TG","arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Fulda"},"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Berlin-Lichtenberg"},"booking_journey_segments":[{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"required_products":[{"can_be_rebooked":true,"has_rebook_fee":true,"can_be_cancelled":true,"can_be_refunded":true,"has_refund_fee":true,"can_change_seat":true,"can_change_name":true,"name":"Basic","description":"Basic","code":"BAS","tariff_code":"BASIC2","passenger_id":"passenger_1","product_family_id":"productFamily_1","item_id":"item_1","item_ref":1028331,"after_sales_rules":[{"active":false,"type":"REBOOK","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":false,"type":"CANCEL","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"SEATCHANGE","valid_until":"2017-03-30T14:18:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"NAMECHANGE","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false}],"price":19,"price_unconverted":19,"original_price":19,"original_price_unconverted":19,"currency":"EUR","cancelled":false,"seat":{"carriage":"8","number":"15"},"provisional":true,"type":"ST","ticket_number":"IQ3YKUT2-001","validations":[],"discounts":[]}],"additional_products":[],"fees":[],"comfort_zone_code":"Basic"}],"inbound_booking_tariff_segments":[],"expiry_timestamp":"2017-03-21T18:31:48+0100","ticket_documents":[],"vouchers":[],"related_vouchers":[],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"productFamily_1","code":"BASIC","sequence_number":1}],"currency":"EUR","total_vat":3.03,"total_price":19,"total_vat_unconverted":3.03,"total_price_unconverted":19,"total_price_paid":0,"total_price_to_be_paid":19,"notes":[],"can_be_upgraded":true,"outbound_product_family_id":"productFamily_1","additional_details":[]},"messages":[]}
GET /api/seat-selection-options/8890101c008c9a1fe2d0b72f4a3ff5b2 HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
accept: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
accept-language: de-DE
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/journey-preferences
Accept-Encoding: gzip, deflate, sdch, br
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:01:49 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"journey_id":"8890101c008c9a1fe2d0b72f4a3ff5b2","options":[{"leg":{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg","departure_platform":"16","departure_timestamp":"2017-03-30T14:28:00+0200"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda","arrival_platform":"4","arrival_timestamp":"2017-03-30T18:39:00+0200"},"id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","service_name":"1819","service_schedule_date":"2017-03-30T00:00:00+0200","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"service_identifier":"1819|2017-03-30","availability":[{"inventory_class":"BA","physical":293},{"inventory_class":"BU","physical":13},{"inventory_class":"BP","physical":3}],"service_properties":[]},"status":"SEAT_SELECTION_AVAILABLE","selected_seats":[{"seat_number":"15","carriage_number":"8","passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"}]}]}
GET /api/additional-products/8890101c008c9a1fe2d0b72f4a3ff5b2 HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
accept: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
accept-language: de-DE
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/journey-preferences
Accept-Encoding: gzip, deflate, sdch, br
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:01:49 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
[{"lowest_price":12,"id":"product-BIK","name":"Fahrrad","description":"Fahrrad","type":"BK","price_specifications":[{"origin":"Berlin-Lichtenberg","destination":"Fulda","legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","travel_id":"travel_1","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-BIK-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","fare_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU-product-BIK-0BIKE2","passengers":[{"id":"passenger_1","type":"A","price":12}]}]},{"lowest_price":9.5,"id":"product-DOG","name":"Hund","description":"Hund","type":"DG","price_specifications":[{"origin":"Berlin-Lichtenberg","destination":"Fulda","legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","travel_id":"travel_1","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-DOG-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","fare_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU-product-DOG-0DOG2","passengers":[{"id":"passenger_1","type":"A","price":9.5}]}]},{"lowest_price":0,"id":"product-PRA","name":"Kinderwagen","description":"KInderwagen","type":"PR","comfort_zone_code":"Basic","price_specifications":[{"origin":"Berlin-Lichtenberg","destination":"Fulda","legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","travel_id":"travel_1","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-PRA-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","fare_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU-product-PRA-0PRAM1","passengers":[{"id":"passenger_1","type":"A","price":0}]}]}]
GET /api/seat-selection-options/8890101c008c9a1fe2d0b72f4a3ff5b2 HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
accept: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
accept-language: de-DE
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/seat-selector/s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU
Accept-Encoding: gzip, deflate, sdch, br
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:03:16 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"journey_id":"8890101c008c9a1fe2d0b72f4a3ff5b2","options":[{"leg":{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg","departure_platform":"16","departure_timestamp":"2017-03-30T14:28:00+0200"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda","arrival_platform":"4","arrival_timestamp":"2017-03-30T18:39:00+0200"},"id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","service_name":"1819","service_schedule_date":"2017-03-30T00:00:00+0200","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"service_identifier":"1819|2017-03-30","availability":[{"inventory_class":"BA","physical":293},{"inventory_class":"BU","physical":13},{"inventory_class":"BP","physical":3}],"service_properties":[]},"status":"SEAT_SELECTION_AVAILABLE","selected_seats":[{"seat_number":"15","carriage_number":"8","passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"}]}]}
PUT /api/select-bundle HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 328
Pragma: no-cache
Cache-Control: no-cache
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
Origin: https://booking.locomore.com
accept-language: de-DE
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/seat-selector/s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU
Accept-Encoding: gzip, deflate, sdch, br
{"journey_id":"8890101c008c9a1fe2d0b72f4a3ff5b2","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","travel_id":"travel_1","additional_products":[],"selected_seats":[{"passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","carriage_number":"8","seat_number":"73"}],"seat_preferences":[]}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:04:06 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"booking":{"booking_number":"IQ3YKUT2","sales_channel_code":"INTERNET","payments":[],"fulfillment_methods":[{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"}],"booking_fulfillment_method":{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"},"passengers":[{"discount_cards":[],"disability_type":"NH","id":"passenger_1","type":"A","first_name":"","last_name":"","protect_privacy":false,"ref_id":676009}],"outbound_booking_tariff_segments":[{"validity_intervals":[{"start":"Thu","end":"Thu"}],"has_new_main_products":true,"travel_info":[],"travel_info_extended":[],"id":"segment_1","travel_date":"2017-03-30","validity_start_date":"2017-03-30","validity_end_date":"2017-03-30","validity_service":"1819","tariff_group_code":"LM-TG","arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Fulda"},"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Berlin-Lichtenberg"},"booking_journey_segments":[{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"required_products":[{"can_be_rebooked":true,"has_rebook_fee":true,"can_be_cancelled":true,"can_be_refunded":true,"has_refund_fee":true,"can_change_seat":true,"can_change_name":true,"name":"Basic","description":"Basic","code":"BAS","tariff_code":"BASIC2","passenger_id":"passenger_1","product_family_id":"productFamily_1","item_id":"item_1","item_ref":1028331,"after_sales_rules":[{"active":false,"type":"REBOOK","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":false,"type":"CANCEL","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"SEATCHANGE","valid_until":"2017-03-30T14:18:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"NAMECHANGE","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false}],"price":19,"price_unconverted":19,"original_price":19,"original_price_unconverted":19,"currency":"EUR","cancelled":false,"seat":{"carriage":"8","number":"73"},"provisional":true,"type":"ST","ticket_number":"IQ3YKUT2-001","validations":[],"discounts":[]}],"additional_products":[],"fees":[],"comfort_zone_code":"Basic"}],"inbound_booking_tariff_segments":[],"expiry_timestamp":"2017-03-21T18:34:05+0100","ticket_documents":[],"vouchers":[],"related_vouchers":[],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"productFamily_1","code":"BASIC","sequence_number":1}],"currency":"EUR","total_vat":3.03,"total_price":19,"total_vat_unconverted":3.03,"total_price_unconverted":19,"total_price_paid":0,"total_price_to_be_paid":19,"notes":[],"can_be_upgraded":true,"outbound_product_family_id":"productFamily_1","additional_details":[]},"orientation_booking_specification":{"required_products":[{"legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"travel_id":"travel_1","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-BAS-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","passenger_id":"passenger_1","tariff_id":"tariff-BASIC2","tariff_code":"BASIC2","tariff_name":"Locomore","product_id":"product-BAS","product_code":"BAS","product_name":"Basic","quantity":1,"price":19,"original_price":19,"discounts":[],"product_family_id":"product-family-BASIC"}],"additional_products":[],"selected_seats":[{"seat_number":"73","carriage_number":"8","passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"}],"seat_preferences":[],"outbound_booking_journey_segments":[{"leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"inbound_booking_journey_segments":[],"passengers":[{"type":"A","discount_cards":[]}],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"product-family-BASIC","code":"BASIC","sequence_number":1}],"outbound_product_family_id":"product-family-BASIC","total_price":19,"seat_selection_available":true,"additional_products_available":true}},"messages":[]}
PUT /api/select-bundle HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 328
Pragma: no-cache
Cache-Control: no-cache
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
Origin: https://booking.locomore.com
accept-language: de-DE
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/seat-selector/s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU
Accept-Encoding: gzip, deflate, sdch, br
{"journey_id":"8890101c008c9a1fe2d0b72f4a3ff5b2","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","travel_id":"travel_1","additional_products":[],"selected_seats":[{"passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","carriage_number":"8","seat_number":"73"}],"seat_preferences":[]}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:04:06 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"booking":{"booking_number":"IQ3YKUT2","sales_channel_code":"INTERNET","payments":[],"fulfillment_methods":[{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"}],"booking_fulfillment_method":{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"},"passengers":[{"discount_cards":[],"disability_type":"NH","id":"passenger_1","type":"A","first_name":"","last_name":"","protect_privacy":false,"ref_id":676009}],"outbound_booking_tariff_segments":[{"validity_intervals":[{"start":"Thu","end":"Thu"}],"has_new_main_products":true,"travel_info":[],"travel_info_extended":[],"id":"segment_1","travel_date":"2017-03-30","validity_start_date":"2017-03-30","validity_end_date":"2017-03-30","validity_service":"1819","tariff_group_code":"LM-TG","arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Fulda"},"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Berlin-Lichtenberg"},"booking_journey_segments":[{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"required_products":[{"can_be_rebooked":true,"has_rebook_fee":true,"can_be_cancelled":true,"can_be_refunded":true,"has_refund_fee":true,"can_change_seat":true,"can_change_name":true,"name":"Basic","description":"Basic","code":"BAS","tariff_code":"BASIC2","passenger_id":"passenger_1","product_family_id":"productFamily_1","item_id":"item_1","item_ref":1028331,"after_sales_rules":[{"active":false,"type":"REBOOK","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":false,"type":"CANCEL","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"SEATCHANGE","valid_until":"2017-03-30T14:18:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"NAMECHANGE","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false}],"price":19,"price_unconverted":19,"original_price":19,"original_price_unconverted":19,"currency":"EUR","cancelled":false,"seat":{"carriage":"8","number":"73"},"provisional":true,"type":"ST","ticket_number":"IQ3YKUT2-001","validations":[],"discounts":[]}],"additional_products":[],"fees":[],"comfort_zone_code":"Basic"}],"inbound_booking_tariff_segments":[],"expiry_timestamp":"2017-03-21T18:34:05+0100","ticket_documents":[],"vouchers":[],"related_vouchers":[],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"productFamily_1","code":"BASIC","sequence_number":1}],"currency":"EUR","total_vat":3.03,"total_price":19,"total_vat_unconverted":3.03,"total_price_unconverted":19,"total_price_paid":0,"total_price_to_be_paid":19,"notes":[],"can_be_upgraded":true,"outbound_product_family_id":"productFamily_1","additional_details":[]},"orientation_booking_specification":{"required_products":[{"legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"travel_id":"travel_1","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-BAS-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","passenger_id":"passenger_1","tariff_id":"tariff-BASIC2","tariff_code":"BASIC2","tariff_name":"Locomore","product_id":"product-BAS","product_code":"BAS","product_name":"Basic","quantity":1,"price":19,"original_price":19,"discounts":[],"product_family_id":"product-family-BASIC"}],"additional_products":[],"selected_seats":[{"seat_number":"73","carriage_number":"8","passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"}],"seat_preferences":[],"outbound_booking_journey_segments":[{"leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"inbound_booking_journey_segments":[],"passengers":[{"type":"A","discount_cards":[]}],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"product-family-BASIC","code":"BASIC","sequence_number":1}],"outbound_product_family_id":"product-family-BASIC","total_price":19,"seat_selection_available":true,"additional_products_available":true}},"messages":[]}
PUT /api/select-bundle HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 493
Pragma: no-cache
Cache-Control: no-cache
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
Origin: https://booking.locomore.com
accept-language: de-DE
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/de-DE/orientation/journey-preferences
Accept-Encoding: gzip, deflate, sdch, br
{"journey_id":"8890101c008c9a1fe2d0b72f4a3ff5b2","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","travel_id":"travel_1","additional_products":[{"item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-BIK-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","passenger_id":"passenger_1","quantity":1}],"selected_seats":[{"seat_number":"73","carriage_number":"8","passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"}],"seat_preferences":[]}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:05:15 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"booking":{"booking_number":"IQ3YKUT2","sales_channel_code":"INTERNET","payments":[],"fulfillment_methods":[{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"}],"booking_fulfillment_method":{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"},"passengers":[{"discount_cards":[],"disability_type":"NH","id":"passenger_1","type":"A","first_name":"","last_name":"","protect_privacy":false,"ref_id":676009}],"outbound_booking_tariff_segments":[{"validity_intervals":[{"start":"Thu","end":"Thu"}],"has_new_main_products":true,"travel_info":[],"travel_info_extended":[],"id":"segment_1","travel_date":"2017-03-30","validity_start_date":"2017-03-30","validity_end_date":"2017-03-30","validity_service":"1819","tariff_group_code":"LM-TG","arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Fulda"},"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Berlin-Lichtenberg"},"booking_journey_segments":[{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"required_products":[{"can_be_rebooked":true,"has_rebook_fee":true,"can_be_cancelled":true,"can_be_refunded":true,"has_refund_fee":true,"can_change_seat":true,"can_change_name":true,"name":"Basic","description":"Basic","code":"BAS","tariff_code":"BASIC2","passenger_id":"passenger_1","product_family_id":"productFamily_1","item_id":"item_1","item_ref":1028331,"after_sales_rules":[{"active":false,"type":"REBOOK","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":false,"type":"CANCEL","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"SEATCHANGE","valid_until":"2017-03-30T14:18:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"NAMECHANGE","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false}],"price":19,"price_unconverted":19,"original_price":19,"original_price_unconverted":19,"currency":"EUR","cancelled":false,"seat":{"carriage":"8","number":"73"},"provisional":true,"type":"ST","ticket_number":"IQ3YKUT2-001","validations":[],"discounts":[]}],"additional_products":[{"can_be_rebooked":true,"has_rebook_fee":false,"can_be_cancelled":true,"can_be_refunded":true,"has_refund_fee":false,"can_change_seat":false,"can_change_name":true,"name":"Fahrrad","description":"Fahrrad","code":"BIK","tariff_code":"BIKE2","passenger_id":"passenger_1","item_id":"item_2","item_ref":1028333,"after_sales_rules":[{"active":true,"type":"REBOOK","valid_until":"2017-03-29T14:28:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-29T14:28:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"SEATCHANGE","valid_until":"2017-03-21T18:20:15+0100","vat":0,"price":0,"fee_calculation_type":"BOOKING","downsell_only":false},{"active":true,"type":"NAMECHANGE","valid_until":"2017-03-21T18:20:15+0100","vat":0,"price":0,"fee_calculation_type":"BOOKING","downsell_only":false}],"price":12,"price_unconverted":12,"original_price":12,"original_price_unconverted":12,"currency":"EUR","cancelled":false,"seat":{"carriage":"5","number":"B4"},"provisional":true,"type":"BK","ticket_number":"IQ3YKUT2-002","validations":[],"discounts":[]}],"fees":[],"comfort_zone_code":"Basic"}],"inbound_booking_tariff_segments":[],"expiry_timestamp":"2017-03-21T18:35:14+0100","ticket_documents":[],"vouchers":[],"related_vouchers":[],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"productFamily_1","code":"BASIC","sequence_number":1}],"currency":"EUR","total_vat":4.95,"total_price":31,"total_vat_unconverted":4.95,"total_price_unconverted":31,"total_price_paid":0,"total_price_to_be_paid":31,"notes":[],"can_be_upgraded":true,"outbound_product_family_id":"productFamily_1","additional_details":[]},"orientation_booking_specification":{"required_products":[{"legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"travel_id":"travel_1","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-BAS-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","passenger_id":"passenger_1","tariff_id":"tariff-BASIC2","tariff_code":"BASIC2","tariff_name":"Locomore","product_id":"product-BAS","product_code":"BAS","product_name":"Basic","quantity":1,"price":19,"original_price":19,"discounts":[],"product_family_id":"product-family-BASIC"}],"additional_products":[{"legs":["s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"],"travel_id":"travel_1","bundle_id":"bundle-s1819_2017-03-30_BLO_FFU--931206168","item_id":"item-bundle-s1819_2017-03-30_BLO_FFU--931206168-product-BIK-s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","passenger_id":"passenger_1","tariff_id":"tariff-BIKE2","tariff_code":"BIKE2","tariff_name":"???title of BIKE2???","product_id":"product-BIK","product_code":"BIK","product_name":"Fahrrad","quantity":1,"price":12,"original_price":12,"discounts":[]}],"selected_seats":[{"seat_number":"73","carriage_number":"8","passenger_id":"passenger_1","leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU"}],"seat_preferences":[],"outbound_booking_journey_segments":[{"leg_id":"s1819_2017-03-30_BLO_FFU-s1819_2017-03-30_BLO_FFU","departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"inbound_booking_journey_segments":[],"passengers":[{"type":"A","discount_cards":[]}],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"product-family-BASIC","code":"BASIC","sequence_number":1}],"outbound_product_family_id":"product-family-BASIC","total_price":31,"seat_selection_available":true,"additional_products_available":true}},"messages":[]}
PUT /api/booking HTTP/1.1
Host: booking.locomore.com
Connection: keep-alive
Content-Length: 355
Pragma: no-cache
Cache-Control: no-cache
authorization: Bearer NjgzMjA1MDIxMjdiMWI2YTMwN2IyMGJjYmQyY2ViMDBlYmE1ZjVkZjAzYWExNWUzOTQ1ZjFkN2E4YzZhMzU1Yw
Origin: https://booking.locomore.com
accept-language: de-DE
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2890.0 Safari/537.36
content-type: application/json
accept: application/json
DNT: 1
Referer: https://booking.locomore.com/de-DE/booking/details
Accept-Encoding: gzip, deflate, sdch, br
{"booking_number":"IQ3YKUT2","fulfillment_method_code":"HP_E","customer":{"first_name":"Foo","last_name":"Bar","address":{"postal_code":"12345","street":"Foostraße","house_number":"1","city":"Baz","country_code":"DE"},"email":"foo@bar.baz","phone_number":""},"passengers":[{"id":"passenger_1","first_name":"Foo","last_name":"Bar","email":"foo@bar.baz"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Cache-Control: no-cache
Date: Tue, 21 Mar 2017 17:06:41 GMT
Strict-Transport-Security: max-age=2592000;preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
{"data":{"booking_number":"IQ3YKUT2","sales_channel_code":"INTERNET","customer":{"first_name":"Foo","last_name":"Bar","email":"foo@bar.baz","phone_number":"","address":{"street":"Foostra\u00dfe","house_number":"1","postal_code":"12345","city":"Baz","country_code":"DE"}},"payments":[],"fulfillment_methods":[{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"}],"booking_fulfillment_method":{"name":"Email Print at Home eticket (PDF)","description":"You will recieve your Print at Home eticket (PDF) by email","code":"HP_E"},"passengers":[{"discount_cards":[],"disability_type":"NH","id":"passenger_1","type":"A","first_name":"Foo","last_name":"Bar","email":"foo@bar.baz","protect_privacy":false,"ref_id":676009}],"outbound_booking_tariff_segments":[{"validity_intervals":[{"start":"Thu","end":"Thu"}],"has_new_main_products":true,"travel_info":[],"travel_info_extended":[],"id":"segment_1","travel_date":"2017-03-30","validity_start_date":"2017-03-30","validity_end_date":"2017-03-30","validity_service":"1819","tariff_group_code":"LM-TG","arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Fulda"},"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","country_code":"DEU","connected_stations":[],"name":"Berlin-Lichtenberg"},"booking_journey_segments":[{"departure_station":{"synonyms":[],"_u_i_c_station_code":"8003231","short_code":"BLO","timezone":"Europe\/Berlin","connected_stations":[],"name":"Berlin-Lichtenberg"},"arrival_station":{"synonyms":[],"_u_i_c_station_code":"8005637","short_code":"FFU","timezone":"Europe\/Berlin","connected_stations":[],"name":"Fulda"},"service_name":"1819","service_type":{"name":"Locomore","code":"LOC","modality":"HIGHSPEED_RAIL"},"departure_date_time":"2017-03-30T14:28:00+0200","arrival_date_time":"2017-03-30T18:39:00+0200","departure_platform":"16","arrival_platform":"4"}],"required_products":[{"can_be_rebooked":true,"has_rebook_fee":true,"can_be_cancelled":true,"can_be_refunded":true,"has_refund_fee":true,"can_change_seat":true,"can_change_name":true,"name":"Basic","description":"Basic","code":"BAS","tariff_code":"BASIC2","passenger_id":"passenger_1","product_family_id":"productFamily_1","item_id":"item_1","item_ref":1028331,"after_sales_rules":[{"active":false,"type":"REBOOK","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"REBOOK","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":false,"type":"CANCEL","valid_until":"2017-03-17T00:00:00+0100","vat":0,"price":3,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-24T00:00:00+0100","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":7,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"SEATCHANGE","valid_until":"2017-03-30T14:18:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"NAMECHANGE","valid_until":"2017-03-30T00:00:00+0200","vat":0,"price":5,"fee_calculation_type":"TICKET","downsell_only":false}],"price":19,"price_unconverted":19,"original_price":19,"original_price_unconverted":19,"currency":"EUR","cancelled":false,"seat":{"carriage":"8","number":"73"},"provisional":true,"type":"ST","ticket_number":"IQ3YKUT2-001","validations":[],"discounts":[]}],"additional_products":[{"can_be_rebooked":true,"has_rebook_fee":false,"can_be_cancelled":true,"can_be_refunded":true,"has_refund_fee":false,"can_change_seat":false,"can_change_name":true,"name":"Fahrrad","description":"Fahrrad","code":"BIK","tariff_code":"BIKE2","passenger_id":"passenger_1","item_id":"item_2","item_ref":1028333,"after_sales_rules":[{"active":true,"type":"REBOOK","valid_until":"2017-03-29T14:28:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"CANCEL","valid_until":"2017-03-29T14:28:00+0200","vat":0,"price":0,"fee_calculation_type":"TICKET","downsell_only":false},{"active":true,"type":"SEATCHANGE","valid_until":"2017-03-21T18:21:41+0100","vat":0,"price":0,"fee_calculation_type":"BOOKING","downsell_only":false},{"active":true,"type":"NAMECHANGE","valid_until":"2017-03-21T18:21:41+0100","vat":0,"price":0,"fee_calculation_type":"BOOKING","downsell_only":false}],"price":12,"price_unconverted":12,"original_price":12,"original_price_unconverted":12,"currency":"EUR","cancelled":false,"seat":{"carriage":"5","number":"B4"},"provisional":true,"type":"BK","ticket_number":"IQ3YKUT2-002","validations":[],"discounts":[]}],"fees":[],"comfort_zone_code":"Basic"}],"inbound_booking_tariff_segments":[],"expiry_timestamp":"2017-03-21T18:36:41+0100","ticket_documents":[],"vouchers":[],"related_vouchers":[],"product_families":[{"attributes":[],"name":"Basic","description":"Basic","id":"productFamily_1","code":"BASIC","sequence_number":1}],"currency":"EUR","total_vat":4.95,"total_price":31,"total_vat_unconverted":4.95,"total_price_unconverted":31,"total_price_paid":0,"total_price_to_be_paid":31,"notes":[],"can_be_upgraded":true,"outbound_product_family_id":"productFamily_1","additional_details":[]},"messages":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment