Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonnywyatt/7fb3d0d56b4c8ded1b38727a26bc8164 to your computer and use it in GitHub Desktop.
Save jonnywyatt/7fb3d0d56b4c8ded1b38727a26bc8164 to your computer and use it in GitHub Desktop.
curl 'https://surfweb.development.travel.theculturetrip.com/api/product-search/cart?timestamp=1559573646647' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:3000/bookable/ibe/passenger?ci=HTL_20190425_20190428_AUS_EAN575868&fc=HTL_201470116:N:N_RO&ex=&pax=2-0-0-0&childDob=&locale=en&currency=GBP' -H 'Origin: http://localhost:3000' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36' -H 'content-type: application/json' --data-binary $'{\n "excludeOnRequest": true,\n "sortBy": null,\n "sortAscending": true,\n "includeFCResults": true,\n "productCode": "TMD",\n "groupAttrs": [\n {\n "name": "resBookingType",\n "value": "STD"\n },\n {\n "name": "comp",\n "value": "CT"\n },\n {\n "name": "div",\n "value": "CT_LON"\n },\n {\n "name": "brd",\n "value": "CT_OL"\n },\n {\n "name": "dchannel",\n "value": "U"\n },\n {\n "name": "adt",\n "value": 2\n },\n {\n "name": "chd",\n "value": 0\n },\n {\n "name": "inf",\n "value": 0\n },\n {\n "name": "usrId",\n "value": 8778\n },\n {\n "name": "client",\n "value": 10000\n },\n {\n "name": "clientGroup",\n "value": "Direct"\n },\n {\n "name": "clientType",\n "value": "DIRECT"\n },\n {\n "name": "currency",\n "value": "GBP"\n },\n {\n "name": "fromDate",\n "value": "20190425"\n },\n {\n "name": "locale",\n "value": "en"\n },\n {\n "name": "expandType",\n "value": "HTL.ALL"\n },\n {\n "name": "roomWise",\n "value": true\n },\n {\n "name": "timeout",\n "value": 900000\n },\n {\n "name": "optionBooking",\n "value": null\n },\n {\n "name": "performLiteSearch",\n "value": false\n },\n {\n "name": "searchFlowType"\n },\n {\n "name": "performHotelAdjustment"\n }\n ],\n "criteriaItems": [\n {\n "ref": null,\n "itemNo": 0,\n "criteriaIndex": null,\n "paxItems": null,\n "productCode": "HTL",\n "criItemAttrs": [\n {\n "name": "city",\n "value": "AUS"\n },\n {\n "name": "fromDate",\n "value": "20190425"\n },\n {\n "name": "duration",\n "value": 4\n },\n {\n "name": "toDate",\n "value": "20190428"\n },\n {\n "name": "supCode",\n "value": "EAN575868"\n },\n {\n "name": "combine_with",\n "value": 0\n }\n ],\n "filterAttributes": [\n {\n "name": "accomRoomType",\n "value": "201470116:N:N"\n },\n {\n "name": "accomRoomMealCode",\n "value": "RO"\n }\n ],\n "criItemAttrsExtras": [\n {\n "name": "pricewithoutS",\n "value": ""\n },\n {\n "name": "srating",\n "value": ""\n },\n {\n "name": "refundable",\n "value": ""\n },\n {\n "name": "accomType",\n "value": "HOT"\n }\n ]\n }\n ],\n "passengers": [\n {\n "infSeatRequird": false,\n "paxNo": 1,\n "roomNo": 0,\n "type": "A",\n "profileType": null,\n "subType": "A",\n "lead": true,\n "title": "",\n "firstName": "",\n "lastName": "",\n "middleName": "",\n "dobEntered": false,\n "sex": "",\n "promoCode": null,\n "activeForBooking": true,\n "profileId": 0,\n "profession": "",\n "primaryCitizenship": "",\n "primaryPpNo": null,\n "primaryPpExpDate": null,\n "secondaryCitizenship": null,\n "secondaryPpNo": null,\n "freqFlyerNos": [],\n "paxAddresses": [\n {\n "addressNo": 0,\n "street": "",\n "city": "",\n "county": null,\n "postalCode": "",\n "country": "",\n "main": true,\n "houseNo": "",\n "addressType": 0,\n "contactCategory": 0,\n "paxContacts": [\n {\n "contactNo": 1,\n "contactType": "Telephone",\n "value": "",\n "main": true,\n "preferred": false\n },\n {\n "contactNo": 2,\n "contactType": "E-mail",\n "value": "",\n "main": true,\n "preferred": false\n }\n ]\n }\n ],\n "memberships": [],\n "emergencyContact": null,\n "paxAttributes": {},\n "occupationCode": 0,\n "dob": {\n "date": 1,\n "month": 0,\n "year": 1994\n }\n },\n {\n "infSeatRequird": false,\n "paxNo": 2,\n "roomNo": 0,\n "type": "A",\n "profileType": null,\n "subType": "A",\n "lead": false,\n "title": "",\n "firstName": "",\n "lastName": "",\n "middleName": "",\n "dobEntered": false,\n "sex": "",\n "promoCode": null,\n "activeForBooking": true,\n "profileId": 0,\n "profession": "",\n "primaryCitizenship": "",\n "primaryPpNo": null,\n "primaryPpExpDate": null,\n "secondaryCitizenship": null,\n "secondaryPpNo": null,\n "freqFlyerNos": [],\n "paxAddresses": [],\n "memberships": [],\n "emergencyContact": null,\n "paxAttributes": {},\n "occupationCode": 0,\n "dob": {\n "date": 1,\n "month": 0,\n "year": 1994\n }\n }\n ],\n "otherInfo": {},\n "productSearchMode": "PKG_DYNAMIC"\n}' --compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment