{"swagger":"2.0","info":{"description":"Initial documentation for abandoned cart API","version":"1.0.0","title":"AbandonedCart API"},"host":"checkout-abandonedcart.travix.com","basePath":"/v1","paths":{"/abandonedcarts/{customerHash}":{"put":{"tags":["AbandonedCart"],"summary":"Send information about an abandoned session","description":"","operationId":"saveAbandonedCart","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"customerHash","in":"path","description":"Email hash using SHA-256","required":true,"type":"string","format":"hash"},{"in":"body","name":"body","description":"AbandonedCart information","required":true,"schema":{"$ref":"#/definitions/AbandonedCart"}}],"responses":{"200":{"description":"Ok"},"400":{"description":"Invalid data"}}}}},"definitions":{"AbandonedCart":{"type":"object","properties":{"airlineCode":{"type":"string","format":"IATA Code","example":"HV"},"affiliate":{"type":"string","format":"Affiliate code","example":"CH"},"channel":{"type":"string","format":"Channel","example":"skyscanner"},"firstInformation":{"type":"string","example":"Amsterdam (Schiphol), AMS, Nederland||AMS||07:00||Londen (Luton), LTN, Groot-Brittannië||07:15||LTN||0||01:15  This set-up was due to technical limitations of Tripolis.  Origin (City, IATA, Country) || Origin IATA || Departure Time || Destination (City, IATA, Country) || Arrival time || destination IATA || Total stops || Flight Duration"},"firstArrivalAirportCode":{"type":"string","format":"IATA Code","example":"LON"},"firstDepartureAirportCode":{"type":"string","format":"IATA Code","example":"AMS"},"firstDepartureDate":{"type":"number","format":"Timestamp","example":1506463200},"secondInformation":{"type":"string","example":"Amsterdam (Schiphol), AMS, Nederland||AMS||07:00||Londen (Luton), LTN, Groot-Brittannië||07:15||LTN||0||01:15  This set-up was due to technical limitations of Tripolis.  Origin (City, IATA, Country) || Origin IATA || Departure Time || Destination (City, IATA, Country) || Arrival time || destination IATA || Total stops || Flight Duration"},"secondArrivalAirportCode":{"type":"string","format":"IATA Code","example":"LON"},"secondDepartureAirportCode":{"type":"string","format":"IATA Code","example":"AMS"},"secondDepartureDate":{"type":"number","format":"Timestamp","example":1506463200},"thirdInformation":{"type":"string","example":"Amsterdam (Schiphol), AMS, Nederland||AMS||07:00||Londen (Luton), LTN, Groot-Brittannië||07:15||LTN||0||01:15  This set-up was due to technical limitations of Tripolis.  Origin (City, IATA, Country) || Origin IATA || Departure Time || Destination (City, IATA, Country) || Arrival time || destination IATA || Total stops || Flight Duration"},"thirdArrivalAirportCode":{"type":"string","format":"IATA Code","example":"LON"},"thirdDepartureAirportCode":{"type":"string","format":"IATA Code","example":"AMS"},"thirdDepartureDate":{"type":"number","format":"Timestamp","example":1506463200},"step":{"type":"number","format":"Value between 1 and 5","example":"CH"},"totalPrice":{"type":"number","format":"Only numbers allowed","example":613.95},"language":{"type":"string","format":"Language code","example":"EN"},"flightResultUrl":{"type":"string","format":"affiliate url","example":"https://www.vliegwinkel.nl/vluchtresultaten?out0_dep_all=false&out0_dep=AMS&out0_arr_all=false&out0_arr=TPE&in0_date=2017-09-08&out0_date=2017-08-27&adt=1&chd=0&inf=0&cls=Y&utm_source=newsletter&utm_medium=email&utm_campaign=ascemail1"}}}}}