OrderRetrieve API
POST
|
|
GET
|
|
The Order Retrieve API is used to retrieve an order.
Examples
Retrieve an order by orderId
Retrieve an order by orderId
HTTP Request
[show]
POST /retail/orders HTTP/1.1
Authorization: Basic dXNlcjp1RXpyUlFXeEZSdXQyVHBMd1RocHh4dFY=
Accept-Encoding:
Accept: application/vnd.nas.ndc.v17.2+xml;charset=UTF-8
Content-Type: application/vnd.nas.ndc.v17.2+xml;charset=UTF-8
Content-Length: 962
Host: services.norwegian.com.dev.nas.dev
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><OrderRetrieveRQ xmlns="http://www.iata.org/IATA/EDIST/2017.2" xmlns:ns2="http://services.norwegian.com/retail/ndc/extensions" TimeStamp="2024-11-22T16:02:15.394254+01:00" Target="Test" Version="17.2" TransactionIdentifier="uH67HzR46KhRhQEh4lrNi3KNofVDR84w" CorrelationID="test7d80a1ffaf694eceb6940211527f0487"><PointOfSale><Location><CountryCode>NO</CountryCode></Location></PointOfSale><Document/><Party><Sender><TravelAgencySender><Name>Zeus Travel</Name><AgencyID>DYAPIZ9</AgencyID></TravelAgencySender></Sender><Participants><Participant><AggregatorParticipant SequenceNumber="1"><Name>JR TECHNOLOGIES</Name><AggregatorID>88888888</AggregatorID></AggregatorParticipant></Participant></Participants><Recipient xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/></Party><Query><Filters><OrderID Owner="DY">oa04199a3ba5d492eb176556200559d93</OrderID></Filters></Query></OrderRetrieveRQ>
Success
HTTP Response
[show]
HTTP/1.1 200 OK
vary: accept-encoding
Content-Encoding: gzip
Content-Type: application/vnd.nas.ndc.v17.2+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 22 Nov 2024 15:02:15 GMT
Keep-Alive: timeout=60
Connection: keep-alive
Content-Length: 7061
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><OrderViewRS xmlns="http://www.iata.org/IATA/EDIST/2017.2" xmlns:ns2="http://services.norwegian.com/retail/ndc/extensions" TimeStamp="2024-11-22T16:02:15.405103+01:00" Target="Test" Version="17.2" TransactionIdentifier="uH67HzR46KhRhQEh4lrNi3KNofVDR84w" CorrelationID="test7d80a1ffaf694eceb6940211527f0487"><Document/><Success/><Response><Order OrderID="oa04199a3ba5d492eb176556200559d93" Owner="DY" WebAddressID="http://portal.dev.norwegian.com/en/start/booking/details?pnr=TB43PR&pnrName=ITFWPTEST"><BookingReferences><BookingReference><ID>TB43PR</ID><AirlineID>DY</AirlineID></BookingReference></BookingReferences><TotalOrderPrice><SimpleCurrencyPrice Code="EUR">485.5</SimpleCurrencyPrice></TotalOrderPrice><Status><StatusCode>OK</StatusCode></Status><Payments><Payment><Type>CC</Type><Amount><SimpleCurrencyPrice Code="EUR">485.5</SimpleCurrencyPrice></Amount><Method><VoucherMethod><Number>60D6C14E3DB04AC69501FB5F2E87168F</Number></VoucherMethod></Method></Payment></Payments><OrderItems><OrderItem OrderItemID="oi74d09468a7b645d0a8ef14c8903e1cdc" Owner="DY"><PriceDetail><BaseAmount Code="EUR">424.2</BaseAmount><Taxes><Total Code="EUR">61.3</Total></Taxes></PriceDetail><Service ServiceID="SERVICE__PAX__ADT01-SD__BNDL_PLUS-LFPL-SGME9793B82B0A5C352543976169630DDF3"><PassengerRef>PAX__ADT01</PassengerRef><ServiceDefinitionRef>SD__BNDL_PLUS-LFPL-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef></Service><Service ServiceID="SERVICE__PAX__ADT01-SGME9793B82B0A5C352543976169630DDF3"><PassengerRef>PAX__ADT01</PassengerRef><SegmentRef>SGME9793B82B0A5C352543976169630DDF3</SegmentRef></Service></OrderItem></OrderItems></Order><Commission><Amount Code="EUR">34.0</Amount></Commission><DataLists><PassengerList><Passenger PassengerID="PAX__ADT01"><PTC>ADT</PTC><Individual><Birthdate>1974-12-12</Birthdate><NameTitle>MR</NameTitle><GivenName>CDxie</GivenName><Surname>itFWPTest</Surname></Individual><ContactInfoRef>CI__PAX__ADT01</ContactInfoRef></Passenger></PassengerList><ContactList><ContactInformation ContactID="CI__PAX__ADT01"><ContactProvided><EmailAddress><EmailAddressValue>[email protected]</EmailAddressValue></EmailAddress></ContactProvided><ContactProvided><Phone><CountryDialingCode>47</CountryDialingCode><PhoneNumber>99887766</PhoneNumber></Phone></ContactProvided></ContactInformation></ContactList><BaggageAllowanceList><BaggageAllowance BaggageAllowanceID="BAGGAGE_ALLOWANCE__CHECKED-OSL-JFK-LFPL"><BaggageCategory>Checked</BaggageCategory><PieceAllowance><ApplicableParty>Traveler</ApplicableParty><TotalQuantity>2</TotalQuantity><PieceMeasurements Quantity="1"><PieceWeightAllowance><MaximumWeight><Value>23.0</Value><UOM>K</UOM></MaximumWeight><ApplicableBag>YN1</ApplicableBag></PieceWeightAllowance></PieceMeasurements><PieceMeasurements Quantity="1"><PieceWeightAllowance><MaximumWeight><Value>23.0</Value><UOM>K</UOM></MaximumWeight><ApplicableBag>YN2</ApplicableBag></PieceWeightAllowance></PieceMeasurements></PieceAllowance></BaggageAllowance></BaggageAllowanceList><FlightSegmentList><FlightSegment SegmentKey="SGME9793B82B0A5C352543976169630DDF3"><Departure refs="COUNTRY-NO"><AirportCode>OSL</AirportCode><Date>2017-07-20</Date><Time>18:05</Time><AirportName>Oslo-Gardermoen</AirportName></Departure><Arrival refs="COUNTRY-US"><AirportCode>JFK</AirportCode><Date>2017-07-20</Date><Time>20:05</Time><AirportName>New York-JFK</AirportName></Arrival><MarketingCarrier><AirlineID>DY</AirlineID><Name>Norwegian Air Shuttle</Name><FlightNumber>7001</FlightNumber></MarketingCarrier><OperatingCarrier><AirlineID>DY</AirlineID><Name>Norwegian Air Shuttle</Name><FlightNumber>7001</FlightNumber></OperatingCarrier><Equipment><AircraftCode>789</AircraftCode></Equipment><FlightDetail><FlightDuration><Value>PT8H</Value></FlightDuration></FlightDetail></FlightSegment></FlightSegmentList><FlightList><Flight FlightKey="FJF1C558066F60616DF5C3B7B382D0392D"><Journey><Time>PT8H</Time></Journey><SegmentReferences>SGME9793B82B0A5C352543976169630DDF3</SegmentReferences></Flight></FlightList><OriginDestinationList><OriginDestination OriginDestinationKey="OD__OSL_JFK"><DepartureCode>OSL</DepartureCode><ArrivalCode>JFK</ArrivalCode><FlightReferences>FJF1C558066F60616DF5C3B7B382D0392D</FlightReferences></OriginDestination></OriginDestinationList><PriceClassList><PriceClass PriceClassID="PC__LFPL"><Name>LowFare+</Name><Code>LFPL</Code></PriceClass></PriceClassList><ServiceDefinitionList><ServiceDefinition ServiceDefinitionID="SD__BNDL_PLUS-LFPL-SGME9793B82B0A5C352543976169630DDF3"><Name>BNDL_PLUS</Name><ServiceBundle><ServiceDefinitionRef>SD__SPML_STANDARD-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef><ServiceDefinitionRef>SD__XST-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef><ServiceDefinitionRef>SD__YN-1-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef></ServiceBundle><Encoding><Code>BNDL_PLUS</Code></Encoding><Descriptions><Description><Text>Checked baggage</Text></Description><Description><Text>Classic Menu</Text></Description><Description><Text>Seat reservation</Text></Description></Descriptions></ServiceDefinition><ServiceDefinition ServiceDefinitionID="SD__SPML_STANDARD-SGME9793B82B0A5C352543976169630DDF3"><Name>SPML_STANDARD</Name><Encoding><Code>SPML_STANDARD</Code></Encoding><Descriptions><Description><Text>Classic Menu</Text></Description></Descriptions></ServiceDefinition><ServiceDefinition ServiceDefinitionID="SD__XST-SGME9793B82B0A5C352543976169630DDF3"><Name>XST</Name><Encoding><Code>XST</Code></Encoding><Descriptions><Description><Text>Seat reservation</Text></Description></Descriptions></ServiceDefinition><ServiceDefinition ServiceDefinitionID="SD__YN-1-SGME9793B82B0A5C352543976169630DDF3"><Name>YN</Name><BaggageAllowanceRef>BAGGAGE_ALLOWANCE__CHECKED-OSL-JFK-LFPL</BaggageAllowanceRef><Encoding><Code>YN1</Code></Encoding><Descriptions><Description><Text>Checked baggage</Text></Description></Descriptions></ServiceDefinition></ServiceDefinitionList></DataLists><Metadata><Other><OtherMetadata><LanguageMetadatas><LanguageMetadata MetadataKey="LANG-9CFEFED8FB9497BAA5CD519D7D2BB5D7"><Code_ISO>en</Code_ISO><Code_NLS>en</Code_NLS><Name>English</Name></LanguageMetadata></LanguageMetadatas></OtherMetadata><OtherMetadata><CountryMetadatas><CountryMetadata MetadataKey="COUNTRY-NO"><ICAO_Code>NO</ICAO_Code><Name>Norway</Name></CountryMetadata><CountryMetadata MetadataKey="COUNTRY-US"><ICAO_Code>US</ICAO_Code><Name>USA</Name></CountryMetadata></CountryMetadatas></OtherMetadata><OtherMetadata><CityMetadatas><CityMetadata MetadataKey="CITY-NYCALL"><AugmentationPoint><AugPoint Key="NYCALL"><ns2:City><ns2:Code>NYCALL</ns2:Code><ns2:Name>New York</ns2:Name></ns2:City></AugPoint></AugmentationPoint></CityMetadata><CityMetadata MetadataKey="CITY-OSLALL"><AugmentationPoint><AugPoint Key="OSLALL"><ns2:City><ns2:Code>OSLALL</ns2:Code><ns2:Name>Oslo</ns2:Name></ns2:City></AugPoint></AugmentationPoint></CityMetadata></CityMetadatas></OtherMetadata></Other></Metadata></Response></OrderViewRS>
Failure
HTTP Response
[show]
HTTP/1.1 200 OK
Content-Type: application/vnd.nas.ndc.v17.2+xml;charset=UTF-8
Content-Length: 544
Date: Fri, 22 Nov 2024 15:02:17 GMT
Keep-Alive: timeout=60
Connection: keep-alive
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><OrderViewRS xmlns="http://www.iata.org/IATA/EDIST/2017.2" xmlns:ns2="http://services.norwegian.com/retail/ndc/extensions" TimeStamp="2024-11-22T16:02:17.769919+01:00" Target="Test" Version="17.2" TransactionIdentifier="uH67HzR46KhRhQEh4lrNi3KNofVDR84w" CorrelationID="test94a4d35b8342491e8800042013f23a13"><Document/><Errors><Error ShortText="Item/data not found or data not existing in processing host" Code="913" Status="Complete">Order could not be found</Error></Errors></OrderViewRS>
Retrieve an order by shoppingResponseId
Retrieve an order by shoppingResponseId. The shoppingResponseId is the response id for the offer that was used to create the order.
HTTP Request
[show]
GET /retail/orders?shoppingResponseId=re4459db1783a146758c4c1b4e82c564fa&agencyID=DYAPIZ9 HTTP/1.1
X-Correlation-Id: test1bd2b42a5e074887a01841ada26085bd
X-TransactionIdentifier: uH67HzR46KhRhQEh4lrNi3KNofVDR84w
Authorization: Basic dXNlcjp1RXpyUlFXeEZSdXQyVHBMd1RocHh4dFY=
Accept: application/vnd.nas.ndc.v17.2+xml;charset=UTF-8
Host: services.norwegian.com.dev.nas.dev
Success
HTTP Response
[show]
HTTP/1.1 200 OK
ETag: "05af23167594d7fab9eca452730637524"
Content-Type: application/vnd.nas.ndc.v17.2+xml;charset=UTF-8
Content-Length: 7061
Date: Fri, 22 Nov 2024 15:02:20 GMT
Keep-Alive: timeout=60
Connection: keep-alive
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><OrderViewRS xmlns="http://www.iata.org/IATA/EDIST/2017.2" xmlns:ns2="http://services.norwegian.com/retail/ndc/extensions" TimeStamp="2024-11-22T16:02:20.230164+01:00" Target="Test" Version="17.2" TransactionIdentifier="uH67HzR46KhRhQEh4lrNi3KNofVDR84w" CorrelationID="test1bd2b42a5e074887a01841ada26085bd"><Document/><Success/><Response><Order OrderID="o3997a9cc91014cc6b04bcfcfdb689eae" Owner="DY" WebAddressID="http://portal.dev.norwegian.com/en/start/booking/details?pnr=TB43PR&pnrName=EAGOCTEST"><BookingReferences><BookingReference><ID>TB43PR</ID><AirlineID>DY</AirlineID></BookingReference></BookingReferences><TotalOrderPrice><SimpleCurrencyPrice Code="EUR">485.5</SimpleCurrencyPrice></TotalOrderPrice><Status><StatusCode>OK</StatusCode></Status><Payments><Payment><Type>CC</Type><Amount><SimpleCurrencyPrice Code="EUR">485.5</SimpleCurrencyPrice></Amount><Method><VoucherMethod><Number>60D6C14E3DB04AC69501FB5F2E87168F</Number></VoucherMethod></Method></Payment></Payments><OrderItems><OrderItem OrderItemID="oi3e61f2fd5a484833b4cf6e17f9cf8ae9" Owner="DY"><PriceDetail><BaseAmount Code="EUR">424.2</BaseAmount><Taxes><Total Code="EUR">61.3</Total></Taxes></PriceDetail><Service ServiceID="SERVICE__PAX__ADT01-SD__BNDL_PLUS-LFPL-SGME9793B82B0A5C352543976169630DDF3"><PassengerRef>PAX__ADT01</PassengerRef><ServiceDefinitionRef>SD__BNDL_PLUS-LFPL-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef></Service><Service ServiceID="SERVICE__PAX__ADT01-SGME9793B82B0A5C352543976169630DDF3"><PassengerRef>PAX__ADT01</PassengerRef><SegmentRef>SGME9793B82B0A5C352543976169630DDF3</SegmentRef></Service></OrderItem></OrderItems></Order><Commission><Amount Code="EUR">34.0</Amount></Commission><DataLists><PassengerList><Passenger PassengerID="PAX__ADT01"><PTC>ADT</PTC><Individual><Birthdate>1974-12-12</Birthdate><NameTitle>MR</NameTitle><GivenName>UgCfG</GivenName><Surname>eAgoCTest</Surname></Individual><ContactInfoRef>CI__PAX__ADT01</ContactInfoRef></Passenger></PassengerList><ContactList><ContactInformation ContactID="CI__PAX__ADT01"><ContactProvided><EmailAddress><EmailAddressValue>[email protected]</EmailAddressValue></EmailAddress></ContactProvided><ContactProvided><Phone><CountryDialingCode>47</CountryDialingCode><PhoneNumber>99887766</PhoneNumber></Phone></ContactProvided></ContactInformation></ContactList><BaggageAllowanceList><BaggageAllowance BaggageAllowanceID="BAGGAGE_ALLOWANCE__CHECKED-OSL-JFK-LFPL"><BaggageCategory>Checked</BaggageCategory><PieceAllowance><ApplicableParty>Traveler</ApplicableParty><TotalQuantity>2</TotalQuantity><PieceMeasurements Quantity="1"><PieceWeightAllowance><MaximumWeight><Value>23.0</Value><UOM>K</UOM></MaximumWeight><ApplicableBag>YN1</ApplicableBag></PieceWeightAllowance></PieceMeasurements><PieceMeasurements Quantity="1"><PieceWeightAllowance><MaximumWeight><Value>23.0</Value><UOM>K</UOM></MaximumWeight><ApplicableBag>YN2</ApplicableBag></PieceWeightAllowance></PieceMeasurements></PieceAllowance></BaggageAllowance></BaggageAllowanceList><FlightSegmentList><FlightSegment SegmentKey="SGME9793B82B0A5C352543976169630DDF3"><Departure refs="COUNTRY-NO"><AirportCode>OSL</AirportCode><Date>2017-07-20</Date><Time>18:05</Time><AirportName>Oslo-Gardermoen</AirportName></Departure><Arrival refs="COUNTRY-US"><AirportCode>JFK</AirportCode><Date>2017-07-20</Date><Time>20:05</Time><AirportName>New York-JFK</AirportName></Arrival><MarketingCarrier><AirlineID>DY</AirlineID><Name>Norwegian Air Shuttle</Name><FlightNumber>7001</FlightNumber></MarketingCarrier><OperatingCarrier><AirlineID>DY</AirlineID><Name>Norwegian Air Shuttle</Name><FlightNumber>7001</FlightNumber></OperatingCarrier><Equipment><AircraftCode>789</AircraftCode></Equipment><FlightDetail><FlightDuration><Value>PT8H</Value></FlightDuration></FlightDetail></FlightSegment></FlightSegmentList><FlightList><Flight FlightKey="FJF1C558066F60616DF5C3B7B382D0392D"><Journey><Time>PT8H</Time></Journey><SegmentReferences>SGME9793B82B0A5C352543976169630DDF3</SegmentReferences></Flight></FlightList><OriginDestinationList><OriginDestination OriginDestinationKey="OD__OSL_JFK"><DepartureCode>OSL</DepartureCode><ArrivalCode>JFK</ArrivalCode><FlightReferences>FJF1C558066F60616DF5C3B7B382D0392D</FlightReferences></OriginDestination></OriginDestinationList><PriceClassList><PriceClass PriceClassID="PC__LFPL"><Name>LowFare+</Name><Code>LFPL</Code></PriceClass></PriceClassList><ServiceDefinitionList><ServiceDefinition ServiceDefinitionID="SD__BNDL_PLUS-LFPL-SGME9793B82B0A5C352543976169630DDF3"><Name>BNDL_PLUS</Name><ServiceBundle><ServiceDefinitionRef>SD__SPML_STANDARD-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef><ServiceDefinitionRef>SD__XST-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef><ServiceDefinitionRef>SD__YN-1-SGME9793B82B0A5C352543976169630DDF3</ServiceDefinitionRef></ServiceBundle><Encoding><Code>BNDL_PLUS</Code></Encoding><Descriptions><Description><Text>Checked baggage</Text></Description><Description><Text>Classic Menu</Text></Description><Description><Text>Seat reservation</Text></Description></Descriptions></ServiceDefinition><ServiceDefinition ServiceDefinitionID="SD__SPML_STANDARD-SGME9793B82B0A5C352543976169630DDF3"><Name>SPML_STANDARD</Name><Encoding><Code>SPML_STANDARD</Code></Encoding><Descriptions><Description><Text>Classic Menu</Text></Description></Descriptions></ServiceDefinition><ServiceDefinition ServiceDefinitionID="SD__XST-SGME9793B82B0A5C352543976169630DDF3"><Name>XST</Name><Encoding><Code>XST</Code></Encoding><Descriptions><Description><Text>Seat reservation</Text></Description></Descriptions></ServiceDefinition><ServiceDefinition ServiceDefinitionID="SD__YN-1-SGME9793B82B0A5C352543976169630DDF3"><Name>YN</Name><BaggageAllowanceRef>BAGGAGE_ALLOWANCE__CHECKED-OSL-JFK-LFPL</BaggageAllowanceRef><Encoding><Code>YN1</Code></Encoding><Descriptions><Description><Text>Checked baggage</Text></Description></Descriptions></ServiceDefinition></ServiceDefinitionList></DataLists><Metadata><Other><OtherMetadata><LanguageMetadatas><LanguageMetadata MetadataKey="LANG-9CFEFED8FB9497BAA5CD519D7D2BB5D7"><Code_ISO>en</Code_ISO><Code_NLS>en</Code_NLS><Name>English</Name></LanguageMetadata></LanguageMetadatas></OtherMetadata><OtherMetadata><CountryMetadatas><CountryMetadata MetadataKey="COUNTRY-NO"><ICAO_Code>NO</ICAO_Code><Name>Norway</Name></CountryMetadata><CountryMetadata MetadataKey="COUNTRY-US"><ICAO_Code>US</ICAO_Code><Name>USA</Name></CountryMetadata></CountryMetadatas></OtherMetadata><OtherMetadata><CityMetadatas><CityMetadata MetadataKey="CITY-NYCALL"><AugmentationPoint><AugPoint Key="NYCALL"><ns2:City><ns2:Code>NYCALL</ns2:Code><ns2:Name>New York</ns2:Name></ns2:City></AugPoint></AugmentationPoint></CityMetadata><CityMetadata MetadataKey="CITY-OSLALL"><AugmentationPoint><AugPoint Key="OSLALL"><ns2:City><ns2:Code>OSLALL</ns2:Code><ns2:Name>Oslo</ns2:Name></ns2:City></AugPoint></AugmentationPoint></CityMetadata></CityMetadatas></OtherMetadata></Other></Metadata></Response></OrderViewRS>
Failure
HTTP Response
[show]
HTTP/1.1 200 OK
ETag: "00b55fa2e7b8915a0e5c9327ebd53297d"
Content-Type: application/vnd.nas.ndc.v17.2+xml;charset=UTF-8
Content-Length: 526
Date: Fri, 22 Nov 2024 15:02:22 GMT
Keep-Alive: timeout=60
Connection: keep-alive
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><OrderViewRS xmlns="http://www.iata.org/IATA/EDIST/2017.2" xmlns:ns2="http://services.norwegian.com/retail/ndc/extensions" TimeStamp="2024-11-22T16:02:22.589441+01:00" Target="Test" Version="17.2" TransactionIdentifier="bbbb-444a-85b7" CorrelationID="7jhuy765-ac21-444a-85b7-bdffc4e77e5e"><Document/><Errors><Error ShortText="Item/data not found or data not existing in processing host" Code="913" Status="Complete">Order could not be found</Error></Errors></OrderViewRS>