1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3114],{2335:e=>{e.exports={"gradient-graphics":"GradientGraphics_gradient-graphics__vllUm","gradient-graphics--dark":"GradientGraphics_gradient-graphics--dark__s2zCo","gradient-graphics--light":"GradientGraphics_gradient-graphics--light__3qzWt","gradient-graphics--pure":"GradientGraphics_gradient-graphics--pure__P9vgE","gradient-graphics--blue":"GradientGraphics_gradient-graphics--blue__M7mxI","gradient-graphics--protection":"GradientGraphics_gradient-graphics--protection__C2sw7","gradient-graphics--green":"GradientGraphics_gradient-graphics--green__C4fpE","gradient-graphics--links":"GradientGraphics_gradient-graphics--links__cpuvY","gradient-graphics--orange":"GradientGraphics_gradient-graphics--orange__bOKNY","gradient-graphics--pink":"GradientGraphics_gradient-graphics--pink__2tgmQ","gradient-graphics--purple":"GradientGraphics_gradient-graphics--purple__BQhmE","gradient-graphics--flights":"GradientGraphics_gradient-graphics--flights__1j6Go","gradient-graphics--yellow":"GradientGraphics_gradient-graphics--yellow__3V1TS","gradient-graphics--stays":"GradientGraphics_gradient-graphics--stays__dQqUd","gradient-graphics--border-radius-xsmall":"GradientGraphics_gradient-graphics--border-radius-xsmall__4XPry","gradient-graphics--border-radius-small":"GradientGraphics_gradient-graphics--border-radius-small__qAwTj","gradient-graphics--border-radius-regular":"GradientGraphics_gradient-graphics--border-radius-regular__tlMTo","gradient-graphics--border-radius-large":"GradientGraphics_gradient-graphics--border-radius-large__2jdck"}},5264:(e,r,a)=>{"use strict";a.d(r,{Kw:()=>h});var t=a(18914),i=a(72655),s=a(65970),o=a(2335),n=a.n(o),c=a(62429),d=a.n(c),l=a(68826),g=["className","type","color","product","backgroundCSSProperties","borderRadius"];function p(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function u(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?p(Object(a),!0).forEach(function(r){(0,t.A)(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}var h=s.forwardRef(function(e,r){var a=e.className,s=e.type,o=e.color,c=e.product,p=e.backgroundCSSProperties,h=e.borderRadius,m=(0,i.A)(e,g),f=d()(n()["gradient-graphics"],n()["gradient-graphics--".concat(s)],a,(0,t.A)((0,t.A)((0,t.A)({},n()["gradient-graphics--".concat(o)],o&&"pure"===s),n()["gradient-graphics--".concat(c)],c&&"pure"===s),n()["gradient-graphics--".concat(h)],h)),_="url(".concat("https://assets.duffel.com/img/design-system/gradients","/").concat(s,"/").concat(null!=o?o:c,".png)");return(0,l.jsx)("figure",u(u({},m),{},{className:f,ref:r,style:u(u({},m.style),{},{backgroundImage:_},p),children:m.children}))})},13114:(e,r,a)=>{"use strict";a.r(r),a.d(r,{GUIDES_TOP_NAV:()=>W,__N_SSG:()=>V,default:()=>U});var t=a(60780);a(65970);var i=a(18914),s=a(72566),o=a(30854),n=a(7371),c=a(79827),d=a(84531),l=a.n(d),g=a(29126),p=a(70037),u=a.n(p),h=a(3803),m=a(5264),f=a(68826);function _(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}var y=function(e){var r=e.title,a=e.description,t=e.link,d=e.image,p=e.backgroundColor,y=e.isPreview,b=(0,g.useRouter)();return(0,f.jsx)("button",{onClick:function(){return b.push(t.href,t.as).then(function(){return window.scrollTo(0,0)})},className:u()["guide-card__container"],children:(0,f.jsxs)(h.V,{space:"space-150",className:u()["guide-card"],children:[(0,f.jsx)(m.Kw,{className:u()["guide-card__image-container"],type:"light",color:void 0===p?"purple":p,borderRadius:"border-radius-small",children:(0,f.jsx)(o._,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};
1r%2?_(Object(a),!0).forEach(function(r){(0,i.A)(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}({className:u()["guide-card__image"]},d))}),(0,f.jsxs)(h.V,{space:"space-50",className:u()["guide-card__description"],children:[(0,f.jsxs)("div",{className:u()["guide-card__header"],children:[(0,f.jsx)(n.E,{color:"purple-900",asElement:"h3",typeStyle:"heading4",fontWeight:"medium",children:r}),y&&(0,f.jsx)(n.E,{typeStyle:"captionSmall",color:"pink-400",asElement:"span",className:u()["ff-menu-item__label__preview-tag"],children:"preview"})]}),(0,f.jsx)(n.E,{color:"grey-700",typeStyle:"bodySmall",children:a})]}),(0,f.jsx)(l(),{href:t.href,as:t.as,passHref:!0,legacyBehavior:!0,children:(0,f.jsx)(s.Mz,{colorVariant:"secondary-dark",arrowPositionVariant:"trailing",onPress:function(){return(0,c.sx)("hq_docs_guides_guide_card_clicked",{event_type:"interaction",guide:r})},children:t.text})})]})})},b="https://assets.duffel.com/img/docs/guides/guide-card-mockups",x=function(e){var r=e.guide,a=e.isPreview;switch(r){case"adding-extra-bags":return(0,f.jsx)(y,{title:"Adding Extra Bags",description:"We'll walk you through the changes you'll need to make to your booking flow to be able to add extra bags at the time of your booking.",link:{text:"Learn more",href:"/docs/guides/adding-extra-bags"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for adding extra bags"},backgroundColor:"green"});case"adding-post-booking-bags":return(0,f.jsx)(y,{title:"Adding Bags to a Pre-Existing Order",description:"We'll walk you through the changes you'll need to make to add post-booking bags to a pre-existing order.",link:{text:"Learn more",href:"/docs/guides/adding-post-booking-bags"},image:{srcPrimary:"".concat(b,"/adding-extra-bags.webp"),alt:"User interface for adding post-booking bags"},backgroundColor:"green"});case"adding-cancel-for-any-reason":return(0,f.jsx)(y,{title:"Adding Cancel For Any Reason",description:"We'll walk you through the changes you'll need to make to add a Cancel For Any Reason service to an order at booking time.",link:{text:"Learn more",href:"/docs/guides/adding-cancel-for-any-reason"},image:{srcPrimary:"".concat(b,"/cancelling-an-order.webp"),alt:"Adding Cancel For Any Reason to an order"},isPreview:void 0!==a&&a,backgroundColor:"pink"});case"cancelling-an-order":return(0,f.jsx)(y,{title:"Cancelling an Order",description:"We'll explain how to get a refund quote for an order cancellation and what you'll need to proceed with cancelling an order.",link:{text:"Learn more",href:"/docs/guides/cancelling-an-order"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for cancelling an order"},backgroundColor:"pink"});case"adding-seats":return(0,f.jsx)(y,{title:"Adding Seats",description:"We'll show you what steps you'll need to include in your booking flow to be able to book seats for passengers at the time of your booking.",link:{text:"Learn more",href:"/docs/guides/adding-seats"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for seat selection"},backgroundColor:"purple"});
1case"receiving-webhooks":return(0,f.jsx)(y,{title:"Receiving Webhooks",description:"We'll set up webhooks so you can automatically take action when events happen in your account - for example schedule changes to your orders.",link:{text:"Learn more",href:"/docs/guides/receiving-webhooks"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for webhooks"},backgroundColor:"orange"});case"holding-orders-and-paying-later":return(0,f.jsx)(y,{title:"Holding Orders and Paying Later",description:"We'll take you through holding an order and then paying for it at a later time.",link:{text:"Learn more",href:"/docs/guides/holding-orders-and-paying-later"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for holding orders"},backgroundColor:"yellow"});case"offer-and-order-conditions":return(0,f.jsx)(y,{title:"Offer and Order Conditions",description:"We'll take you through upgrading your integration to tell your customers before and after they book whether they can change or cancel their flights, and if so, what fees apply.",link:{text:"Learn more",href:"/docs/guides/offer-and-order-conditions"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for offer and order conditions"},backgroundColor:"purple"});case"paying-with-customer-cards":return(0,f.jsx)(y,{title:"Paying with Customer Cards",de
1scription:"We'll take you through how to accept customer cards to pay for online bookings, including capturing cards on your checkout, authenticating with 3DS, and paying the travel supplier.",link:{text:"Learn more",href:"/docs/guides/paying-with-customer-cards"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for collecting card payments"},backgroundColor:"orange"});case"paying-with-cards-in-corporate-booking-tools":return(0,f.jsx)(y,{title:"Paying with cards in corporate booking tools",description:"We'll take you through how to accept customer cards to pay for online bookings in corporate booking tools",link:{text:"Learn more",href:"/docs/guides/paying-with-cards-in-corporate-booking-tools"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for collecting card payments"},backgroundColor:"purple"});case"changing-an-order":return(0,f.jsx)(y,{title:"Changing an Order",description:"We'll show you how to create an integration to give you and your customers the ability to change existing orders.",link:{text:"Learn more",href:"/docs/guides/changing-an-order"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for changing orders"},backgroundColor:"blue"});case"adding-loyalty-programme-accounts":return(0,f.jsx)(y,{title:"Adding Loyalty Programme Accounts",description:"We'll cover how to add Loyalty Programme Accounts to your Offer Requests and Offers.",link:{text:"Learn more",href:"/docs/guides/adding-loyalty-programme-accounts"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User interface for accepting Loyalty Programme Accounts"},backgroundColor:"green"});case"search-best-practices":return(0,f.jsx)(y,{title:"Search Best Practices",description:"We'll walk you through some options for improving speed and filtering offers to only those which are relevant.",link:{text:"Learn more",href:"/docs/guides/search-best-practices"},image:{srcPrimary:"".concat(b,"/").concat(r,".webp"),alt:"User Interface for Search"},backgroundColor:"purple"})}},w=a(76198),j=a(74967),k=a(47274),v=a(38712),P=a.n(v),O=function(e){var r=e.title,a=e.description,t=e.link,i=e.icon;return(0,f.jsx)(l(),{href:t.href,as:t.as,passHref:!0,className:P()["resource-card__container"],legacyBehavior:!0,children:(0,f.jsxs)(h.V,{space:"space-150",className:P()["resource-card"],children:[(0,f.jsxs)(h.V,{space:"space-100",className:P()["resource-card__content"],children:[(0,f.jsxs)(j.X,{space:"space-50",className:P()["resource-card__title"],children:[(0,f.jsx)(n.E,{asElement:"a",color:"purple-900",children:(0,f.jsx)(k.z,{name:i,color:w.lm["purple-700"],size:20})}),(0,f.jsx)(n.E,{color:"purple-900",typeStyle:"heading4",children:r})]}),(0,f.jsx)(n.E,{color:"grey-700",typeStyle:"label",children:a})]}),(0,f.jsx)(l(),{href:t.href,as:t.as,passHref:!0,legacyBehavior:!0,children:(0,f.jsx)(s.Mz,{asElement:"a",arrowPositionVariant:"trailing",children:t.text})})]})})},C=a(41002),S=a.n(C),G=a(69762),E=a(74449),L=a(42406),A=a(97150),N=a.n(A);let R=function(e){var r=e.href,a=e.product,t=e.baseColor,i=e.title,s=e.copy,o=e.features,n="".concat(t,"-900");return(0,f.jsx)(l(),{href:r,onClick:function(){return(0,c.sx)("hq_docs_guides_home_start_clicked",{event_type:"interaction",product:a})},children:(0,f.jsxs)(m.Kw,{type:"pure",product:a,className:N()["product-card"],children:[(0,f.jsxs)(h.V,{space:"space-100",children:[(0,f.jsx)(L.J,{variant:a}),(0,f.jsx)(h.V,{space:"space-200",children:(0,f.jsxs)(h.V,{space:"space-50",children:[(0,f.jsx)(E.EY,{typeStyle:"bodyLarge",fontWeight:"bold",asElement:"h2",color:n,children:i}),(0,f.jsx)(E.EY,{color:n,typeStyle:"bodySmall",children:s})]})})]}),(0,f.jsxs)(h.V,{space:"space-50",children:[(0,f.jsx)(E.EY,{color:n,fontWeight:"bold",asElement:"h3",typeStyle:"bodySmall",children:"What's inside"}),(0,f.jsx)(h.V,{asElement:"ul",space:"space-50",children:o.map(function(e){return(0,f.jsxs)(j.X,{asElement:"li",space:"space-50",children:[(0,f.jsx)(G.In,{size:16,name:"arrow_forward",color:"".concat(t,"-600")}),(0,f.jsx)(E.EY,{color:n,children:e})]},e)})})]})]})})};var D=a(92159),V=!0,W=[{label:"Guides",href:"/docs",isActive:!0},{label:"API",href:"/docs/api",isActive:!1}];let U=function(e){var r=e.menu;return(0,f.jsx)(t.B,{pageTitle:"Overview",layout:"guides-overview",topNav:W,sideMenu:r,children:(0,f.jsxs)(h.V,{space:"space-300",className:S()["guides-home-page-view"],children:[(0,f.jsxs)(h.V,{space:"space-100",children:[(0,f.jsx)(h.V,{space:"space-50",children:(0,f.jsx)(E.EY,{c
1olor:"purple-900",typeStyle:"heading2",asElement:"h1",children:"Guides"})}),(0,f.jsx)(E.EY,{typeStyle:"bodyRegular",color:"grey-700",className:S()["guides-home-page-view__description"],children:"Learn how to use Duffel to get the power of a full-stack travel agency at your fingertips."})]}),(0,f.jsxs)("div",{className:S()["guides-home-page-view__product-cards"],children:[(0,f.jsx)(R,{href:"/docs/guides/getting-started-with-flights",product:"flights",baseColor:"purple",title:"Get started with Flights",copy:"Effortlessly connect to our Flights API with our step-by-step integration guide.",features:["Setting up a request","Searching for flights","Booking a trip"]}),(0,f.jsx)(R,{product:"stays",href:"/docs/guides/getting-started-with-stays",baseColor:"orange",title:"Get started with Stays",copy:"Get up and running with our Stays API in a flash thanks to our comprehensive integration guide.",features:["Setting up a request","Searching for stays","Booking accommodation"]})]}),(0,f.jsx)(D.c,{}),(0,f.jsxs)(h.V,{space:"space-150",children:[(0,f.jsx)(E.EY,{typeStyle:"heading3",color:"grey-900",children:"Implementation Guides"}),(0,f.jsxs)("div",{className:S()["guides-home-page-view__guides"],children:[(0,f.jsx)(x,{guide:"search-best-practices",showLabel:!1}),(0,f.jsx)(x,{guide:"adding-extra-bags",showLabel:!1}),(0,f.jsx)(x,{guide:"adding-post-booking-bags",showLabel:!1}),(0,f.jsx)(x,{guide:"cancelling-an-order",showLabel:!1}),(0,f.jsx)(x,{guide:"adding-seats",showLabel:!1}),(0,f.jsx)(x,{guide:"holding-orders-and-paying-later",showLabel:!1}),(0,f.jsx)(x,{guide:"offer-and-order-conditions",showLabel:!1}),(0,f.jsx)(x,{guide:"receiving-webhooks",showLabel:!1}),(0,f.jsx)(x,{guide:"changing-an-order",showLabel:!1}),(0,f.jsx)(x,{guide:"adding-loyalty-programme-accounts",showLabel:!1})]})]}),(0,f.jsx)(D.c,{}),(0,f.jsxs)(h.V,{space:"space-150",children:[(0,f.jsx)(E.EY,{typeStyle:"captionRegular",color:"purple-900",children:"Resources"}),(0,f.jsxs)("div",{className:S()["guides-home-page-view__resources"],children:[(0,f.jsx)(O,{title:"API Reference",description:"View all the information required to work with the Duffel API.",link:{text:"View our API reference",href:"/docs/api/overview/welcome",as:"/docs/api/overview/welcome"},icon:"api-reference"}),(0,f.jsx)(O,{title:"Help Centre",description:"Fix a problem and get answers to your questions.",link:{text:"Visit the help centre",href:"https://help.duffel.com/"},icon:"help"}),(0,f.jsx)(O,{title:"Status Page",description:"Real-time and historical data updates on system performance.",link:{text:"View status page",href:"https://www.duffelstatus.com/"},icon:"status"})]})]})]})})}},15700:e=>{e.exports={rounded:"Images_rounded__9pCG8"}},30854:(e,r,a)=>{"use strict";a.d(r,{_:()=>l});var t=a(91801),i=a(62429),s=a.n(i),o=a(65970),n=a(15700),c=a.n(n),d=a(68826),l=function(e){var r=e.id,a=e.srcPrimary,i=e.className,n=e.srcFallback,l=e.alt,g=e.rounded,p=e.onClick,u=e.width,h=e.height,m=o.useState(a),f=(0,t.A)(m,2),_=f[0],y=f[1];return(0,d.jsx)("img",{id:r,src:_,onError:function(){_===a&&y(n)},className:s()(i,g&&c().rounded),onClick:p,width:u,height:h,alt:l||""})}},38712:e=>{e.exports={"resource-card__container":"ResourceCard_resource-card__container__DEWkj","resource-card":"ResourceCard_resource-card__my04n","resource-card__content":"ResourceCard_resource-card__content__yk0kL","resource-card__title":"ResourceCard_resource-card__title__HIMCL"}},41002:e=>{e.exports={"guides-home-page-view__guides":"guides-index-page_guides-home-page-view__guides__lEWym","guides-home-page-view__resources":"guides-index-page_guides-home-page-view__resources__iNYQb","guides-home-page-view__description":"guides-index-page_guides-home-page-view__description__YX2dx","guides-home-page-view__product-cards":"guides-index-page_guides-home-page-view__product-cards__exZAD"}},42406:(e,r,a)=>{"use strict";a.d(r,{J:()=>l});var t=a(18914);a(65970);var i=a(56191),s=a(73737),o=a(68826);function n(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function c(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};
1r%2?n(Object(a),!0).forEach(function(r){(0,t.A)(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}var d={links:{copy:"Links",backgroundColor:"green-100"},"flights-api":{copy:"Flights",backgroundColor:"purple-100"},flights:{copy:"Flights",backgroundColor:"purple-100"},cars:{copy:"Cars",backgroundColor:"blue-100",imageStyle:{marginInline:"-4px",marginBlock:"4px",height:"28px"}},stays:{copy:"Stays",backgroundColor:"yellow-100",imageStyle:{marginRight:"-8px",marginLeft:"-4px",marginBlock:"2px",height:"28px"},textStyle:{paddingTop:"1px"}}},l=function(e){var r=e.variant,a=e.hideText,t=c(c({},i.B[r]),d[r]);return a&&delete t.copy,(0,o.jsx)(s.v,c(c({},t),{},{typeStyle:"captionLarge"}))}},56191:(e,r,a)=>{"use strict";a.d(r,{B:()=>t});var t={flights:{imageAltText:"Duffel Flights API logo",imageURL:"https://assets.duffel.com/img/hq-assets/product-logos/flights-api.svg"},"flights-api":{imageAltText:"Duffel Flights API logo",imageURL:"https://assets.duffel.com/img/hq-assets/product-logos/flights-api.svg"},links:{imageAltText:"Duffel Links logo",imageURL:"https://assets.duffel.com/img/hq-assets/product-logos/links.svg"},protection:{imageAltText:"Duffel Protection logo",imageURL:"https://assets.duffel.com/img/hq-assets/product-logos/protection.svg"},stays:{imageAltText:"Duffel Stays logo",imageURL:"https://assets.duffel.com/img/hq-assets/product-logos/stays.svg"},cars:{imageAltText:"Duffel Cars logo",imageURL:"https://assets.duffel.com/img/hq-assets/product-logos/cars.svg"}}},70037:e=>{e.exports={"guide-card__container":"BaseGuideCard_guide-card__container__EjIM3","guide-card":"BaseGuideCard_guide-card__4HuvF","guide-card__image-container":"BaseGuideCard_guide-card__image-container__f_twq","guide-card__image":"BaseGuideCard_guide-card__image__VcOlb","guide-card__header":"BaseGuideCard_guide-card__header__1SGQk","guide-card__label":"BaseGuideCard_guide-card__label__cCELA","guide-card__description":"BaseGuideCard_guide-card__description__7Nejc"}},73737:(e,r,a)=>{"use strict";a.d(r,{v:()=>l});var t=a(74967),i=a(7371);a(65970);var s=a(86770),o=a.n(s),n=a(46164),c=a.n(n),d=a(68826),l=function(e){var r=e.backgroundColor,a=e.copy,s=e.imageAltText,n=e.imageStyle,l=e.imageURL,g=e.textColor,p=e.typeStyle,u=e.textStyle;return(0,d.jsxs)(t.X,{asElement:"span",space:"space-50",className:o().container,style:{backgroundColor:"var(--".concat(r,")")},children:[(0,d.jsx)(c(),{alt:s,src:l,className:o().image,style:n,width:40,height:40}),a&&(0,d.jsx)(i.E,{color:void 0===g?"purple-900":g,typeStyle:void 0===p?"captionRegular":p,style:u,children:a})]})}},86770:e=>{e.exports={container:"StampWithImage_container__HVo9r",image:"StampWithImage_image__D5WQb"}},97150:e=>{e.exports={"product-card":"ProductCard_product-card__bL1Rj"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.