OrderCreate - without 3-D-Secure
When you send an OrderCreateRQ and 3-D-Secure is not required for the payment card, we will charge the card and create the booking. If everything is successful the response will be an OrderViewRS with a booking reference.
If we are unable to create the booking for some reason the payment will be canceled, and the amount will be refunded to the card.
API flow
Examples
1. Request: OrderCreateRQ
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: 2346
Host: services.norwegian.com.dev.nas.dev
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><OrderCreateRQ xmlns="http://www.iata.org/IATA/EDIST/2017.2" xmlns:ns2="http://services.norwegian.com/retail/ndc/extensions" TimeStamp="2024-11-22T16:02:46.78499+01:00" Target="Test" Version="17.2" TransactionIdentifier="bbbb-444a-85b7" CorrelationID="d4dabb70-c89b-4698-a572-9c9583abd296"><PointOfSale><Location><CountryCode>GB</CountryCode></Location></PointOfSale><Document/><Party><Sender><TravelAgencySender><Name>Zeus Travel</Name><AgencyID>DYAPI-LFPL</AgencyID></TravelAgencySender></Sender><Participants xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><Recipient xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/></Party><OrderCreateParameters><Alerts><Alert><SecurePaymentAlert><URLs><FailURL>https://client.com/failure</FailURL><TermURL>https://client.com/success</TermURL></URLs><Details><CustomerDevice><IP_Address>198.22.22.11</IP_Address><BrowserUserAgentHeader>Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405</BrowserUserAgentHeader></CustomerDevice></Details></SecurePaymentAlert></Alert></Alerts></OrderCreateParameters><Query><Order><Offer OfferID="of53ce0f0d50ae40ac9c721a1245e03a4b" Owner="DY" ResponseID="re884db67a917048c098432faec84637e4"><TotalOfferPrice Code="EUR">485.5</TotalOfferPrice><OfferItem OfferItemID="oi8ad6475e603a428aad11953e9b210385"><PassengerRefs>PAX__ADT01</PassengerRefs></OfferItem></Offer></Order><Payments><Payment><Type>CC</Type><Method><Voucher><Number>60D6C14E3DB04AC69501FB5F2E87168F</Number></Voucher></Method><Amount Code="EUR">485.5</Amount></Payment></Payments><DataLists><PassengerList><Passenger PassengerID="PAX__ADT01"><PTC>ADT</PTC><Individual><Birthdate>1974-12-12</Birthdate><NameTitle>MR</NameTitle><GivenName>MagHf</GivenName><Surname>YXhMCTest</Surname></Individual><ContactInfoRef>CI__PAX__ADT01</ContactInfoRef></Passenger></PassengerList><ContactList><ContactInformation ContactID="CI__PAX__ADT01"><ContactProvided><Phone><CountryDialingCode>47</CountryDialingCode><PhoneNumber>99887766</PhoneNumber></Phone></ContactProvided><ContactProvided><EmailAddress><EmailAddressValue>[email protected]</EmailAddressValue></EmailAddress></ContactProvided></ContactInformation></ContactList></DataLists></Query></OrderCreateRQ>
2. Response: OrderViewRS
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:46 GMT
Keep-Alive: timeout=60
Connection: keep-alive
Content-Length: 12304
<?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:46.842266+01:00" Target="Test" Version="17.2" TransactionIdentifier="bbbb-444a-85b7" CorrelationID="d4dabb70-c89b-4698-a572-9c9583abd296">
<Document/>
<Success/>
<Response>
<Order OrderID="o31e44cc1f0204432b992758102d1a5dc" Owner="DY" WebAddressID="http://portal.dev.norwegian.com/en/start/booking/details?pnr=TB43PR&pnrName=YXHMCTEST">
<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="oid84ab7999e414866bd58a4ecd3272cd2" 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>MagHf</GivenName>
<Surname>YXhMCTest</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>