{"info":{"_postman_id":"f0ba06f7-13f0-4c0d-a288-b60e8050d657","name":"AirGateway NDC JSON API examples","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3049972","collectionId":"f0ba06f7-13f0-4c0d-a288-b60e8050d657","publishedId":"SVmpZ3TP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-09-10T06:10:09.000Z"},"item":[{"name":"v1.1","item":[{"name":"Flow #1: OneWay (2 adults)","item":[{"name":"AirShopping","event":[{"listen":"prerequest","script":{"id":"9c7d84b8-a78f-43bc-8455-2f534ecaa513","exec":["Date.prototype.addDays = function(days) {","    var dat = new Date(this.valueOf());","    dat.setDate(dat.getDate() + days);","    return dat;","}","date = new Date()","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('flight_date', year+\"-\"+month+\"-\"+day);","//{{flight_date}}","","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('return_flight_date', year+\"-\"+month+\"-\"+day);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"2670f975-578c-4679-9120-3fbaba6ba9b9","exec":["// Check response is correct and set AGProvider and AGOfferID environment variables","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'result' key exists\", function () {","    pm.expect(jsonData.result);","});","","var providerKey = \"AG-Provider\";","var offerKey = \"AG-OfferID\";","","pm.environment.unset(providerKey);","pm.environment.unset(offerKey);","","jsonData.result.forEach(function(offer) {","    if (typeof offer.offerID === 'undefined') {","        return","    }","    if (typeof pm.environment.get(offerKey) === 'undefined') {","        tests[\"Set \" + offerKey + \" = \" + offer.offerID] = true;","        tests[\"Set \" + providerKey + \" = \" + offer.owner] = true;","        pm.environment.set(offerKey, offer.offerID);","        pm.environment.set(providerKey, offer.owner);","    }","});",""],"type":"text/javascript"}}],"id":"dbf8707d-3a71-4cc1-a8bd-69e5e13ab369","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"BA","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n    \"country\": \"DE\",\n    \"currency\": \"EUR\",\n    \"locale\": \"de_DE\"\n  },\n  \"originDestinations\": [\n    {\n      \"departure\": {\n        \"airportCode\": \"LHR\",\n        \"date\": \"{{flight_date}}\"\n      },\n      \"arrival\": {\n        \"airportCode\": \"MAD\"\n      }\n    }\n  ],\n  \"preferences\": {\n    \"cabin\": [\"2\"],\n    \"nonStop\": false\n  },\n  \"travelers\": {\n    \"ADT\": 2,\n    \"CHD\": 0,\n    \"INF\": 0\n  }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirShopping","urlObject":{"protocol":"https","path":["v1.1","AirShopping"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"dbf8707d-3a71-4cc1-a8bd-69e5e13ab369"},{"name":"OfferPrice","event":[{"listen":"test","script":{"id":"037b1080-84cc-4f28-8914-8f520b9301e3","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'shoppingResponseID' key is a string\", function () {","    pm.expect(jsonData.shoppingResponseID).to.be.a('string');","});","pm.test(\"Check 'offerID' key is a string\", function () {","    pm.expect(jsonData.offerID).to.be.a('string');","});","tests[\"Set ShoppingResponseID = \" + jsonData.shoppingResponseID] = true;","pm.environment.set(\"ShoppingResponseID\", jsonData.shoppingResponseID);",""],"type":"text/javascript"}}],"id":"ca26543e-918a-46c5-8945-0f3b831ea4e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OfferPrice","urlObject":{"protocol":"https","path":["v1.1","OfferPrice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca26543e-918a-46c5-8945-0f3b831ea4e0"},{"name":"SeatAvailability","event":[{"listen":"test","script":{"id":"2e56e1d7-8fff-487b-b350-28d963bdce83","exec":[""],"type":"text/javascript"}}],"id":"56c2baf7-47ec-4a89-bd2d-653be61114db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n  \"shoppingResponseID\": \"{{ShoppingResponseID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/SeatAvailability","urlObject":{"protocol":"https","path":["v1.1","SeatAvailability"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"56c2baf7-47ec-4a89-bd2d-653be61114db"},{"name":"OrderCreate","event":[{"listen":"test","script":{"id":"ad8400d7-3e6b-4603-af1b-98bbae67af75","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","tests[\"Set AGOrderID = \" + jsonData.id] = true;","pm.environment.set(\"AGOrderID\", jsonData.id);","tests[\"Set BookingReferenceID = \" + jsonData.bookingReference.ID] = true;","pm.environment.set(\"BookingReferenceID\", jsonData.bookingReference.ID);",""],"type":"text/javascript"}}],"id":"031a97c8-68b8-49ce-a221-8db36f9c36b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shoppingResponseID\": \"{{ShoppingResponseID}}\",\n    \"passengers\": [\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233245A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1982-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Female\",\n                \"middle\": \"Meyer\",\n                \"nameGiven\": \"John\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Smith\"\n            }\n        },\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233246A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1983-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Male\",\n                \"middle\": \"\",\n                \"nameGiven\": \"Mary\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Jones\"\n            }\n        }\n    ]\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderCreate","urlObject":{"protocol":"https","path":["v1.1","OrderCreate"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"031a97c8-68b8-49ce-a221-8db36f9c36b1"},{"name":"AirDocIssue (card)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"97038869-57de-4c5d-a697-76c1efdd07f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"97038869-57de-4c5d-a697-76c1efdd07f0"},{"name":"AirDocIssue (cash)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"bf98f527-a3b1-4184-8a40-6e0aa7dd5545","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf98f527-a3b1-4184-8a40-6e0aa7dd5545"},{"name":"OrderRetrieve","event":[{"listen":"test","script":{"id":"268dc2b4-e53c-4423-b078-fd21de24ef72","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","","","","",""],"type":"text/javascript"}}],"id":"a213da88-ee3c-45eb-a0e4-5e4d2ae8b57f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"},{"key":"AG-Include-History","value":"1","type":"text"},{"key":"AG-No-Cache-OR","value":"1","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderRetrieve","urlObject":{"protocol":"https","path":["v1.1","OrderRetrieve"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"a213da88-ee3c-45eb-a0e4-5e4d2ae8b57f"},{"name":"ServiceList","event":[{"listen":"test","script":{"id":"d7269d17-331a-4bf4-a018-908885c7e59b","exec":[""],"type":"text/javascript"}}],"id":"06cb3d34-1e61-4527-9514-3519df96b49a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/ServiceList","urlObject":{"protocol":"https","path":["v1.1","ServiceList"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"06cb3d34-1e61-4527-9514-3519df96b49a"},{"name":"OrderReShop (cancel/create)","event":[{"listen":"test","script":{"id":"13ff64f3-6663-4905-bf6b-78a238c999c1","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","pm.test(\"Check 'offerID' key exists\", function () {","    pm.expect(jsonData.offers[0]);","});","pm.environment.set(\"AG-OfferID\", jsonData.offers[0].offerID);"],"type":"text/javascript"}}],"id":"a173b357-2ad4-4657-83d7-388ed6ca391d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"originDestinations\": [\n\t\t{\n\t\t\t\"departure\": {\n\t\t\t\t\"airportCode\": \"LHR\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t},\n\t\t\t\"arrival\": {\n\t\t\t\t\"airportCode\": \"MAD\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t}\n\t\t}\n\t]\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshop","urlObject":{"protocol":"https","path":["v1.1","OrderReshop"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"a173b357-2ad4-4657-83d7-388ed6ca391d"},{"name":"OrderReshop (reprice)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"24ec5778-13f3-4b54-abed-31a9cf75555b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshopReprice","urlObject":{"protocol":"https","path":["v1.1","OrderReshopReprice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"24ec5778-13f3-4b54-abed-31a9cf75555b"},{"name":"OrderChange (card)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"beb4320b-f2eb-4e61-abc5-3f4da750f6f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"IB","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"},{"key":"AG-Trace","value":"1","type":"text"},{"key":"ag-session-id","value":"d226eda2ebf5406ebd2ba0abc4740fd8","type":"text"},{"key":"AG-Agency","value":"airgateway","type":"text"},{"key":"AG-Agent","value":"eugene","type":"text"},{"key":"AG-Version","value":"1.2","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"beb4320b-f2eb-4e61-abc5-3f4da750f6f1"},{"name":"OrderChange (cash)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"527a9070-96d3-4490-8e9a-4442b7ead6fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"527a9070-96d3-4490-8e9a-4442b7ead6fb"}],"id":"529af9bd-e033-40da-871a-3c0f44a0cc5b","description":"<ul>\n<li>Select Airline Offers from all providers</li>\n<li>Get Flight Price for 2 different airlines</li>\n<li>Get SeatAvailability</li>\n<li>Perform Order Create</li>\n</ul>\n","_postman_id":"529af9bd-e033-40da-871a-3c0f44a0cc5b"},{"name":"Flow #2: OneWay (2 adults + 1 child)","item":[{"name":"AirShopping","event":[{"listen":"prerequest","script":{"id":"9c7d84b8-a78f-43bc-8455-2f534ecaa513","exec":["Date.prototype.addDays = function(days) {","    var dat = new Date(this.valueOf());","    dat.setDate(dat.getDate() + days);","    return dat;","}","date = new Date()","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('flight_date', year+\"-\"+month+\"-\"+day);","//{{flight_date}}","","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('return_flight_date', year+\"-\"+month+\"-\"+day);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"2670f975-578c-4679-9120-3fbaba6ba9b9","exec":["// Check response is correct and set AGProvider and AGOfferID environment variables","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'result' key exists\", function () {","    pm.expect(jsonData.result);","});","","var providerKey = \"AG-Provider\";","var offerKey = \"AG-OfferID\";","","pm.environment.unset(providerKey);","pm.environment.unset(offerKey);","","jsonData.result.forEach(function(offer) {","    if (typeof offer.offerID === 'undefined') {","        return","    }","    if (typeof pm.environment.get(offerKey) === 'undefined') {","        tests[\"Set \" + offerKey + \" = \" + offer.offerID] = true;","        tests[\"Set \" + providerKey + \" = \" + offer.owner] = true;","        pm.environment.set(offerKey, offer.offerID);","        pm.environment.set(providerKey, offer.owner);","    }","});",""],"type":"text/javascript"}}],"id":"3df3deab-32e5-4e6a-81a8-2ab754efc1c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n    \"country\": \"DE\",\n    \"currency\": \"EUR\",\n    \"locale\": \"de_DE\"\n  },\n  \"originDestinations\": [\n    {\n      \"departure\": {\n        \"airportCode\": \"LHR\",\n        \"date\": \"{{flight_date}}\"\n      },\n      \"arrival\": {\n        \"airportCode\": \"MAD\"\n      }\n    }\n  ],\n  \"preferences\": {\n    \"cabin\": [\"5\"],\n    \"nonStop\": false\n  },\n  \"travelers\": {\n    \"ADT\": 2,\n    \"CHD\": 1,\n    \"INF\": 0\n  }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirShopping","urlObject":{"protocol":"https","path":["v1.1","AirShopping"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"3df3deab-32e5-4e6a-81a8-2ab754efc1c1"},{"name":"OfferPrice","event":[{"listen":"test","script":{"id":"037b1080-84cc-4f28-8914-8f520b9301e3","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'shoppingResponseID' key is a string\", function () {","    pm.expect(jsonData.shoppingResponseID).to.be.a('string');","});","pm.test(\"Check 'offerID' key is a string\", function () {","    pm.expect(jsonData.offerID).to.be.a('string');","});","tests[\"Set ShoppingResponseID = \" + jsonData.shoppingResponseID] = true;","pm.environment.set(\"ShoppingResponseID\", jsonData.shoppingResponseID);",""],"type":"text/javascript"}}],"id":"d59af71c-06ec-444d-a3b1-1a2c715869a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OfferPrice","urlObject":{"protocol":"https","path":["v1.1","OfferPrice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"d59af71c-06ec-444d-a3b1-1a2c715869a0"},{"name":"SeatAvailability","event":[{"listen":"test","script":{"id":"2e56e1d7-8fff-487b-b350-28d963bdce83","exec":[""],"type":"text/javascript"}}],"id":"d7e0a7b0-41d5-485e-bdc8-f90a5ca5d93b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n  \"shoppingResponseID\": \"{{ShoppingResponseID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/SeatAvailability","urlObject":{"protocol":"https","path":["v1.1","SeatAvailability"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7e0a7b0-41d5-485e-bdc8-f90a5ca5d93b"},{"name":"OrderCreate","event":[{"listen":"test","script":{"id":"ad8400d7-3e6b-4603-af1b-98bbae67af75","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","tests[\"Set AGOrderID = \" + jsonData.id] = true;","pm.environment.set(\"AGOrderID\", jsonData.id);","tests[\"Set BookingReferenceID = \" + jsonData.bookingReference.ID] = true;","pm.environment.set(\"BookingReferenceID\", jsonData.bookingReference.ID);",""],"type":"text/javascript"}}],"id":"ef536d64-5d0b-4921-8247-aca33b53b2d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shoppingResponseID\": \"{{ShoppingResponseID}}\",\n    \"passengers\": [\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233245A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1982-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Female\",\n                \"middle\": \"Meyer\",\n                \"nameGiven\": \"John\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Smith\"\n            }\n        },\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233246A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1983-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Male\",\n                \"middle\": \"\",\n                \"nameGiven\": \"Mary\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Jones\"\n            }\n        },\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115133246A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"2008-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Male\",\n                \"middle\": \"\",\n                \"nameGiven\": \"Dorian\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"CHD\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Cook\"\n            }\n        }\n    ]\n}\n"},"url":"https://proxy.airgateway.net/v1.1/OrderCreate","urlObject":{"protocol":"https","path":["v1.1","OrderCreate"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef536d64-5d0b-4921-8247-aca33b53b2d0"},{"name":"AirDocIssue (card)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"e0bff7dc-cb7e-4ae3-9214-3bead2d31471","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"e0bff7dc-cb7e-4ae3-9214-3bead2d31471"},{"name":"AirDocIssue (cash)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"95e29f62-ffd1-4d5a-9a75-d8e6dc9b0ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"95e29f62-ffd1-4d5a-9a75-d8e6dc9b0ad3"},{"name":"OrderRetrieve","event":[{"listen":"test","script":{"id":"268dc2b4-e53c-4423-b078-fd21de24ef72","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","","","","",""],"type":"text/javascript"}}],"id":"6cd273ee-01cb-4dc3-9264-8f28d435cec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"},{"key":"AG-Include-History","value":"1","type":"text"},{"key":"AG-No-Cache-OR","value":"1","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderRetrieve","urlObject":{"protocol":"https","path":["v1.1","OrderRetrieve"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cd273ee-01cb-4dc3-9264-8f28d435cec1"},{"name":"ServiceList","event":[{"listen":"test","script":{"id":"d7269d17-331a-4bf4-a018-908885c7e59b","exec":[""],"type":"text/javascript"}}],"id":"36688258-a9ad-4437-b417-8a41b143ff46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/ServiceList","urlObject":{"protocol":"https","path":["v1.1","ServiceList"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"36688258-a9ad-4437-b417-8a41b143ff46"},{"name":"OrderReShop (cancel/create)","event":[{"listen":"test","script":{"id":"13ff64f3-6663-4905-bf6b-78a238c999c1","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","pm.test(\"Check 'offerID' key exists\", function () {","    pm.expect(jsonData.offers[0]);","});","pm.environment.set(\"AG-OfferID\", jsonData.offers[0].offerID);"],"type":"text/javascript"}}],"id":"13d05a30-1a91-476d-9413-5df071e48a7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"originDestinations\": [\n\t\t{\n\t\t\t\"departure\": {\n\t\t\t\t\"airportCode\": \"LHR\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t},\n\t\t\t\"arrival\": {\n\t\t\t\t\"airportCode\": \"MAD\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t}\n\t\t}\n\t]\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshop","urlObject":{"protocol":"https","path":["v1.1","OrderReshop"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"13d05a30-1a91-476d-9413-5df071e48a7d"},{"name":"OrderReshop (reprice)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"883af73e-cf8a-4145-a5ba-27cce0e25069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshopReprice","urlObject":{"protocol":"https","path":["v1.1","OrderReshopReprice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"883af73e-cf8a-4145-a5ba-27cce0e25069"},{"name":"OrderChange (card)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"e0729822-e74b-43de-9a3f-a4b7e8c64123","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"AG-Providers","type":"text","value":"IB"},{"key":"Authorization","type":"text","value":"{{AG-Authorization}}"},{"key":"AG-Trace","type":"text","value":"1"},{"key":"ag-session-id","type":"text","value":"d226eda2ebf5406ebd2ba0abc4740fd8"},{"key":"AG-Agency","type":"text","value":"airgateway"},{"key":"AG-Agent","type":"text","value":"eugene"},{"key":"AG-Version","type":"text","value":"1.2"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"e0729822-e74b-43de-9a3f-a4b7e8c64123"},{"name":"OrderChange (cash)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"9ab3f583-a009-47d0-959e-131b89f1c437","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ab3f583-a009-47d0-959e-131b89f1c437"}],"id":"0548f8db-e1cd-4dbc-ae94-8bb75f117a14","description":"<ul>\n<li>Select Airline Offers from all providers</li>\n<li>Get Flight Price for 2 different airlines</li>\n<li>Get SeatAvailability</li>\n<li>Perform Order Create</li>\n</ul>\n","_postman_id":"0548f8db-e1cd-4dbc-ae94-8bb75f117a14"},{"name":"Flow #3: RoundTrip (2 adults)","item":[{"name":"AirShopping","event":[{"listen":"prerequest","script":{"id":"9c7d84b8-a78f-43bc-8455-2f534ecaa513","exec":["Date.prototype.addDays = function(days) {","    var dat = new Date(this.valueOf());","    dat.setDate(dat.getDate() + days);","    return dat;","}","date = new Date()","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('flight_date', year+\"-\"+month+\"-\"+day);","//{{flight_date}}","","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('return_flight_date', year+\"-\"+month+\"-\"+day);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"2670f975-578c-4679-9120-3fbaba6ba9b9","exec":["// Check response is correct and set AGProvider and AGOfferID environment variables","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'result' key exists\", function () {","    pm.expect(jsonData.result);","});","","var providerKey = \"AG-Provider\";","var offerKey = \"AG-OfferID\";","","pm.environment.unset(providerKey);","pm.environment.unset(offerKey);","","jsonData.result.forEach(function(offer) {","    if (typeof offer.offerID === 'undefined') {","        return","    }","    if (typeof pm.environment.get(offerKey) === 'undefined') {","        tests[\"Set \" + offerKey + \" = \" + offer.offerID] = true;","        tests[\"Set \" + providerKey + \" = \" + offer.owner] = true;","        pm.environment.set(offerKey, offer.offerID);","        pm.environment.set(providerKey, offer.owner);","    }","});",""],"type":"text/javascript"}}],"id":"0abd0448-964e-4f3a-a846-00a858f0015a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n    \"country\": \"DE\",\n    \"currency\": \"EUR\",\n    \"locale\": \"de_DE\"\n  },\n  \"originDestinations\": [\n    {\n      \"departure\": {\n        \"airportCode\": \"LHR\",\n        \"date\": \"{{flight_date}}\"\n      },\n      \"arrival\": {\n        \"airportCode\": \"MAD\"\n      }\n    },\n    {\n      \"departure\": {\n        \"airportCode\": \"MAD\",\n        \"date\": \"{{return_flight_date}}\"\n      },\n      \"arrival\": {\n        \"airportCode\": \"LHR\"\n      }\n    }\n  ],\n  \"preferences\": {\n    \"cabin\": [\"5\"],\n    \"nonStop\": false\n  },\n  \"travelers\": {\n    \"ADT\": 2,\n    \"CHD\": 0,\n    \"INF\": 0\n  }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirShopping","urlObject":{"protocol":"https","path":["v1.1","AirShopping"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"0abd0448-964e-4f3a-a846-00a858f0015a"},{"name":"OfferPrice","event":[{"listen":"test","script":{"id":"037b1080-84cc-4f28-8914-8f520b9301e3","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'shoppingResponseID' key is a string\", function () {","    pm.expect(jsonData.shoppingResponseID).to.be.a('string');","});","pm.test(\"Check 'offerID' key is a string\", function () {","    pm.expect(jsonData.offerID).to.be.a('string');","});","tests[\"Set ShoppingResponseID = \" + jsonData.shoppingResponseID] = true;","pm.environment.set(\"ShoppingResponseID\", jsonData.shoppingResponseID);",""],"type":"text/javascript"}}],"id":"d8a1b504-5418-40f4-8583-a0b37f9cfe66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OfferPrice","urlObject":{"protocol":"https","path":["v1.1","OfferPrice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8a1b504-5418-40f4-8583-a0b37f9cfe66"},{"name":"SeatAvailability","event":[{"listen":"test","script":{"id":"2e56e1d7-8fff-487b-b350-28d963bdce83","exec":[""],"type":"text/javascript"}}],"id":"9215aa35-f67b-42ab-89c9-2c59c376edfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n  \"shoppingResponseID\": \"{{ShoppingResponseID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/SeatAvailability","urlObject":{"protocol":"https","path":["v1.1","SeatAvailability"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"9215aa35-f67b-42ab-89c9-2c59c376edfc"},{"name":"OrderCreate","event":[{"listen":"test","script":{"id":"ad8400d7-3e6b-4603-af1b-98bbae67af75","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","tests[\"Set AGOrderID = \" + jsonData.id] = true;","pm.environment.set(\"AGOrderID\", jsonData.id);","tests[\"Set BookingReferenceID = \" + jsonData.bookingReference.ID] = true;","pm.environment.set(\"BookingReferenceID\", jsonData.bookingReference.ID);",""],"type":"text/javascript"}}],"id":"f31c31df-e22f-4ed5-8134-c4d5b3bc0813","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shoppingResponseID\": \"{{ShoppingResponseID}}\",\n    \"passengers\": [\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233245A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1982-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Female\",\n                \"middle\": \"Meyer\",\n                \"nameGiven\": \"John\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Smith\"\n            }\n        },\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233246A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1983-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Male\",\n                \"middle\": \"\",\n                \"nameGiven\": \"Mary\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Jones\"\n            }\n        }\n    ]\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderCreate","urlObject":{"protocol":"https","path":["v1.1","OrderCreate"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"f31c31df-e22f-4ed5-8134-c4d5b3bc0813"},{"name":"AirDocIssue (card)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"17a9cf5a-dbdd-4c97-9caa-808a1d585d0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"17a9cf5a-dbdd-4c97-9caa-808a1d585d0a"},{"name":"AirDocIssue (cash)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"86297b62-a258-45f3-809b-2df668005dc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"86297b62-a258-45f3-809b-2df668005dc0"},{"name":"OrderRetrieve","event":[{"listen":"test","script":{"id":"268dc2b4-e53c-4423-b078-fd21de24ef72","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","","","","",""],"type":"text/javascript"}}],"id":"9e5431db-6452-424c-8426-8fce4054683b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"},{"key":"AG-Include-History","value":"1","type":"text"},{"key":"AG-No-Cache-OR","value":"1","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderRetrieve","urlObject":{"protocol":"https","path":["v1.1","OrderRetrieve"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e5431db-6452-424c-8426-8fce4054683b"},{"name":"ServiceList","event":[{"listen":"test","script":{"id":"d7269d17-331a-4bf4-a018-908885c7e59b","exec":[""],"type":"text/javascript"}}],"id":"e3d2513e-4b1f-444e-9d54-1bd6cc93125a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/ServiceList","urlObject":{"protocol":"https","path":["v1.1","ServiceList"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3d2513e-4b1f-444e-9d54-1bd6cc93125a"},{"name":"OrderReShop (cancel/create)","event":[{"listen":"test","script":{"id":"13ff64f3-6663-4905-bf6b-78a238c999c1","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","pm.test(\"Check 'offerID' key exists\", function () {","    pm.expect(jsonData.offers[0]);","});","pm.environment.set(\"AG-OfferID\", jsonData.offers[0].offerID);"],"type":"text/javascript"}}],"id":"acd22f5f-7693-4703-a025-0c6499290ef0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"originDestinations\": [\n\t\t{\n\t\t\t\"departure\": {\n\t\t\t\t\"airportCode\": \"LHR\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t},\n\t\t\t\"arrival\": {\n\t\t\t\t\"airportCode\": \"MAD\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"departure\": {\n\t\t\t\t\"airportCode\": \"MAD\",\n\t\t\t\t\"date\": \"{{reshop_return_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t},\n\t\t\t\"arrival\": {\n\t\t\t\t\"airportCode\": \"LHR\",\n\t\t\t\t\"date\": \"{{reshop_return_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t}\n\t\t}\n\t]\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshop","urlObject":{"protocol":"https","path":["v1.1","OrderReshop"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"acd22f5f-7693-4703-a025-0c6499290ef0"},{"name":"OrderReshop (reprice)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"0426b7f2-73d6-4bff-82b2-20031d36699b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshopReprice","urlObject":{"protocol":"https","path":["v1.1","OrderReshopReprice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"0426b7f2-73d6-4bff-82b2-20031d36699b"},{"name":"OrderChange (card)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"2a6abaf2-edcf-4de0-8bc3-53144d252322","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"AG-Providers","type":"text","value":"IB"},{"key":"Authorization","type":"text","value":"{{AG-Authorization}}"},{"key":"AG-Trace","type":"text","value":"1"},{"key":"ag-session-id","type":"text","value":"d226eda2ebf5406ebd2ba0abc4740fd8"},{"key":"AG-Agency","type":"text","value":"airgateway"},{"key":"AG-Agent","type":"text","value":"eugene"},{"key":"AG-Version","type":"text","value":"1.2"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a6abaf2-edcf-4de0-8bc3-53144d252322"},{"name":"OrderChange (cash)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"2f01597a-fd8f-46ba-843a-2c91316b6660","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f01597a-fd8f-46ba-843a-2c91316b6660"}],"id":"86d3bbe8-c68a-4461-9773-4180ea59efd0","description":"<ul>\n<li>Select Airline Offers from all providers</li>\n<li>Get Flight Price for 2 different airlines</li>\n<li>Get SeatAvailability</li>\n<li>Perform Order Create</li>\n</ul>\n","_postman_id":"86d3bbe8-c68a-4461-9773-4180ea59efd0"},{"name":"Flow #4: RoundTrip (2 adults + 1 child)","item":[{"name":"AirShopping","event":[{"listen":"prerequest","script":{"id":"9c7d84b8-a78f-43bc-8455-2f534ecaa513","exec":["Date.prototype.addDays = function(days) {","    var dat = new Date(this.valueOf());","    dat.setDate(dat.getDate() + days);","    return dat;","}","date = new Date()","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('flight_date', year+\"-\"+month+\"-\"+day);","//{{flight_date}}","","date = date.addDays(15)","day = date.getDate()","if(day<=9)","    day = \"0\"+day","month = date.getMonth()+1;","if(month<=9)","    month = \"0\"+month","year = date.getFullYear()","","postman.setEnvironmentVariable('return_flight_date', year+\"-\"+month+\"-\"+day);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"2670f975-578c-4679-9120-3fbaba6ba9b9","exec":["// Check response is correct and set AGProvider and AGOfferID environment variables","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'result' key exists\", function () {","    pm.expect(jsonData.result);","});","","var providerKey = \"AG-Provider\";","var offerKey = \"AG-OfferID\";","","pm.environment.unset(providerKey);","pm.environment.unset(offerKey);","","jsonData.result.forEach(function(offer) {","    if (typeof offer.offerID === 'undefined') {","        return","    }","    if (typeof pm.environment.get(offerKey) === 'undefined') {","        tests[\"Set \" + offerKey + \" = \" + offer.offerID] = true;","        tests[\"Set \" + providerKey + \" = \" + offer.owner] = true;","        pm.environment.set(offerKey, offer.offerID);","        pm.environment.set(providerKey, offer.owner);","    }","});",""],"type":"text/javascript"}}],"id":"d4c6f70e-3bf6-418c-a44b-039fa2851660","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n    \"country\": \"DE\",\n    \"currency\": \"EUR\",\n    \"locale\": \"de_DE\"\n  },\n  \"originDestinations\": [\n    {\n      \"departure\": {\n        \"airportCode\": \"LHR\",\n        \"date\": \"{{flight_date}}\"\n      },\n      \"arrival\": {\n        \"airportCode\": \"MAD\"\n      }\n    },\n    {\n      \"departure\": {\n        \"airportCode\": \"MAD\",\n        \"date\": \"{{return_flight_date}}\"\n      },\n      \"arrival\": {\n        \"airportCode\": \"LHR\"\n      }\n    }\n  ],\n  \"preferences\": {\n    \"cabin\": [\"5\"],\n    \"nonStop\": false\n  },\n  \"travelers\": {\n    \"ADT\": 2,\n    \"CHD\": 1,\n    \"INF\": 0\n  }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirShopping","urlObject":{"protocol":"https","path":["v1.1","AirShopping"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4c6f70e-3bf6-418c-a44b-039fa2851660"},{"name":"OfferPrice","event":[{"listen":"test","script":{"id":"037b1080-84cc-4f28-8914-8f520b9301e3","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'shoppingResponseID' key is a string\", function () {","    pm.expect(jsonData.shoppingResponseID).to.be.a('string');","});","pm.test(\"Check 'offerID' key is a string\", function () {","    pm.expect(jsonData.offerID).to.be.a('string');","});","tests[\"Set ShoppingResponseID = \" + jsonData.shoppingResponseID] = true;","pm.environment.set(\"ShoppingResponseID\", jsonData.shoppingResponseID);",""],"type":"text/javascript"}}],"id":"502ea10a-d465-4b45-8575-d469ae34c164","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OfferPrice","urlObject":{"protocol":"https","path":["v1.1","OfferPrice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"502ea10a-d465-4b45-8575-d469ae34c164"},{"name":"SeatAvailability","event":[{"listen":"test","script":{"id":"2e56e1d7-8fff-487b-b350-28d963bdce83","exec":[""],"type":"text/javascript"}}],"id":"7b9736d0-724b-4f4c-8903-0c84fcd40f60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n  \"shoppingResponseID\": \"{{ShoppingResponseID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/SeatAvailability","urlObject":{"protocol":"https","path":["v1.1","SeatAvailability"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b9736d0-724b-4f4c-8903-0c84fcd40f60"},{"name":"OrderCreate","event":[{"listen":"test","script":{"id":"ad8400d7-3e6b-4603-af1b-98bbae67af75","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","tests[\"Set AGOrderID = \" + jsonData.id] = true;","pm.environment.set(\"AGOrderID\", jsonData.id);","tests[\"Set BookingReferenceID = \" + jsonData.bookingReference.ID] = true;","pm.environment.set(\"BookingReferenceID\", jsonData.bookingReference.ID);",""],"type":"text/javascript"}}],"id":"b585246b-bd32-4491-bf0e-3735ca7cfa86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shoppingResponseID\": \"{{ShoppingResponseID}}\",\n    \"passengers\": [\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233245A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1982-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Female\",\n                \"middle\": \"Meyer\",\n                \"nameGiven\": \"John\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Smith\"\n            }\n        },\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115233246A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"1983-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Male\",\n                \"middle\": \"\",\n                \"nameGiven\": \"Mary\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"ADT\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Jones\"\n            }\n        },\n        {\n            \"document\": {\n                \"birthCountry\": \"Spain\",\n                \"documentID\": \"115133246A\",\n                \"documentType\": \"PP\",\n                \"expirationDate\": \"2018-02-19\",\n                \"issueDate\": \"2018-02-19\",\n                \"residenceCountry\": \"UK\"\n            },\n            \"passenger\": {\n                \"birthdate\": \"2008-02-10\",\n                \"emailContact\": \"smith@airgateway.net\",\n                \"gender\": \"Male\",\n                \"middle\": \"\",\n                \"nameGiven\": \"Dorian\",\n                \"nameTitle\": \"MR\",\n                \"passengerType\": \"CHD\",\n                \"phone\": {\n                    \"areaCode\": \"34\",\n                    \"countryCode\": \"34\",\n                    \"number\": \"666123123\"\n                },\n                \"address\": {\n                  \"street\": \"test\",\n                  \"postalCode\": \"test\",\n                  \"countryCode\": \"GB\"\n                },\n                \"surname\": \"Cook\"\n            }\n        }\n    ]\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderCreate","urlObject":{"protocol":"https","path":["v1.1","OrderCreate"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"b585246b-bd32-4491-bf0e-3735ca7cfa86"},{"name":"AirDocIssue (card)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"e8aedf0f-868c-41d3-a9d1-8353f99964c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8aedf0f-868c-41d3-a9d1-8353f99964c8"},{"name":"AirDocIssue (cash)","event":[{"listen":"test","script":{"id":"33f7d9c1-9aff-4879-8931-b49888e8cbce","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"83ed97ad-93d3-4101-a778-97abd3d15065","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/AirDocIssue","urlObject":{"protocol":"https","path":["v1.1","AirDocIssue"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"83ed97ad-93d3-4101-a778-97abd3d15065"},{"name":"OrderRetrieve","event":[{"listen":"test","script":{"id":"268dc2b4-e53c-4423-b078-fd21de24ef72","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key is a string\", function () {","    pm.expect(jsonData.orderID).to.be.a('string');","});","tests[\"Set OrderID = \" + jsonData.orderID] = true;","pm.environment.set(\"OrderID\", jsonData.orderID);","","","","",""],"type":"text/javascript"}}],"id":"18d9aeec-ed61-408d-87e3-19ec88117136","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"{{AG-Provider}}","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"},{"key":"AG-Include-History","value":"1","type":"text"},{"key":"AG-No-Cache-OR","value":"1","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderRetrieve","urlObject":{"protocol":"https","path":["v1.1","OrderRetrieve"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"18d9aeec-ed61-408d-87e3-19ec88117136"},{"name":"ServiceList","event":[{"listen":"test","script":{"id":"d7269d17-331a-4bf4-a018-908885c7e59b","exec":[""],"type":"text/javascript"}}],"id":"4c0804e8-720d-4706-b198-dcbc80343b8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"AG-Providers","value":"{{AG-Provider}}"},{"key":"Authorization","value":"{{AG-Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/ServiceList","urlObject":{"protocol":"https","path":["v1.1","ServiceList"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c0804e8-720d-4706-b198-dcbc80343b8f"},{"name":"OrderReShop (cancel/create)","event":[{"listen":"test","script":{"id":"13ff64f3-6663-4905-bf6b-78a238c999c1","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","pm.test(\"Check 'offerID' key exists\", function () {","    pm.expect(jsonData.offers[0]);","});","pm.environment.set(\"AG-OfferID\", jsonData.offers[0].offerID);"],"type":"text/javascript"}}],"id":"d70aa3e2-2a6f-4c00-a7ff-d2a278492646","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"originDestinations\": [\n\t\t{\n\t\t\t\"departure\": {\n\t\t\t\t\"airportCode\": \"LHR\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t},\n\t\t\t\"arrival\": {\n\t\t\t\t\"airportCode\": \"MAD\",\n\t\t\t\t\"date\": \"{{reshop_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"departure\": {\n\t\t\t\t\"airportCode\": \"MAD\",\n\t\t\t\t\"date\": \"{{reshop_return_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t},\n\t\t\t\"arrival\": {\n\t\t\t\t\"airportCode\": \"LHR\",\n\t\t\t\t\"date\": \"{{reshop_return_flight_date}}\",\n\t\t\t\t\"terminalName\": \"\",\n\t\t\t\t\"time\": \"\"\n\t\t\t}\n\t\t}\n\t]\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshop","urlObject":{"protocol":"https","path":["v1.1","OrderReshop"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"d70aa3e2-2a6f-4c00-a7ff-d2a278492646"},{"name":"OrderReshop (reprice)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"86808099-a52c-435b-9d60-c8ccfb1e7ceb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"offerID\": \"{{AG-OfferID}}\"\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderReshopReprice","urlObject":{"protocol":"https","path":["v1.1","OrderReshopReprice"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"86808099-a52c-435b-9d60-c8ccfb1e7ceb"},{"name":"OrderChange (card)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"90bd8c49-07f4-44b4-a5f4-1c54f2739115","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"AG-Providers","type":"text","value":"IB"},{"key":"Authorization","type":"text","value":"{{AG-Authorization}}"},{"key":"AG-Trace","type":"text","value":"1"},{"key":"ag-session-id","type":"text","value":"d226eda2ebf5406ebd2ba0abc4740fd8"},{"key":"AG-Agency","type":"text","value":"airgateway"},{"key":"AG-Agent","type":"text","value":"eugene"},{"key":"AG-Version","type":"text","value":"1.2"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n    \t\"method\": \"card\",\n        \"cardType\": \"VI\",\n        \"cardCode\": \"VI\",\n        \"cardNumber\": \"4548819407777774\",\n        \"seriesCode\": \"407\",\n        \"cardHolderName\": \"Manuel\",\n        \"street1\": \"Ibiza 21\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"stateProv\": \"28\",\n        \"postalCode\": \"28900\",\n        \"countryCode\": \"ES\",\n        \"effective\": \"0217\",\n        \"expiration\": \"0220\",\n        \"cardHolderSurname\": \"Martinez\",\n        \"cardHolderTitle\": \"TitleTest\",\n        \"cardHolderEmail\": \"accept@accept.com\",\n        \"emailContact\": \"accept@accept.com\",\n        \"nameGiven\": \"Manuel\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"\",\n            \"number\": \"646666621\"\n        },\n        \"surname\": \"Martinez\",\n        \"nameTitle\": \"MR\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"90bd8c49-07f4-44b4-a5f4-1c54f2739115"},{"name":"OrderChange (cash)","event":[{"listen":"test","script":{"id":"48768f53-55f0-4876-b011-816d5e8636fc","exec":["// Check response is correct and set AGFlightPriceID environment variable","var jsonData = pm.response.json();","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Check 'orderID' key exists\", function () {","    pm.expect(jsonData.orderID);","});","",""],"type":"text/javascript"}}],"id":"65cf0235-4d33-4999-ba61-516a4d16e3ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"AG-Providers","value":"LH","type":"text"},{"key":"Authorization","value":"{{AG-Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{AGOrderID}}\",\n    \"reshopOfferID\": \"{{AG-OfferID}}\",\n\n    \"payment\": {\n        \"cardHolderEmail\": \"test.cash@gmail.com\",\n        \"cardHolderName\": \"John\",\n        \"cardHolderSurname\": \"Cash\",\n        \"cardHolderTitle\": \"MR\",\n        \"method\": \"cash\",\n        \"phone\": {\n            \"areaCode\": \"\",\n            \"countryCode\": \"34\",\n            \"number\": \"666123123\"\n        },\n        \"postalCode\": \"03780\",\n        \"seriesCode\": \"407\",\n        \"stateProv\": \"28\",\n        \"street1\": \"TEST\",\n        \"street2\": \"Test\",\n        \"cityName\": \"MAD\",\n        \"countryCode\": \"ES\",\n        \"emailContact\": \"accept@accept.com\"\n    }\n}"},"url":"https://proxy.airgateway.net/v1.1/OrderChange","urlObject":{"protocol":"https","path":["v1.1","OrderChange"],"host":["proxy","airgateway","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"65cf0235-4d33-4999-ba61-516a4d16e3ed"}],"id":"0a9e89cf-2843-4b97-af72-22668d4f9d83","description":"<ul>\n<li>Select Airline Offers from all providers</li>\n<li>Get Flight Price for 2 different airlines</li>\n<li>Get SeatAvailability</li>\n<li>Perform Order Create</li>\n</ul>\n","_postman_id":"0a9e89cf-2843-4b97-af72-22668d4f9d83"}],"id":"d0b2658a-a7fa-4592-9ab3-38996f150e67","_postman_id":"d0b2658a-a7fa-4592-9ab3-38996f150e67","description":""}],"event":[{"listen":"prerequest","script":{"id":"fadf1ba6-0b4a-46a8-8996-9d9e1df2c741","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f8d9d584-5829-4621-bf9a-b8c872754bba","type":"text/javascript","exec":[""]}}]}