Possible values are : InvalidStayPeriod, InvalidRateId, InvalidRoomId, InvalidPromoCode, InvalidGuests
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"D-EDGE Docs","description":"API documentation for D-EDGE, the hospitality technology platform. Connectivity, pricing and availability, booking, and guest management APIs for technology partners.","colors":{"primary":"#621692","light":"#00d7b0","dark":"#9b5fc0"},"logo":{"light":"https://mintcdn.com/dedge/aFUJALuxu9HSXZ0w/logo/d-edge-light.svg?fit=max\u0026auto=format\u0026n=aFUJALuxu9HSXZ0w\u0026q=85\u0026s=11939117a758ab11da1cc24574dcee0b","dark":"https://mintcdn.com/dedge/aFUJALuxu9HSXZ0w/logo/d-edge-dark.svg?fit=max\u0026auto=format\u0026n=aFUJALuxu9HSXZ0w\u0026q=85\u0026s=cd987718817feb5c956b0d07cdfd4da2"},"favicon":"https://mintcdn.com/dedge/qh0OMArf4kAaSPdp/favicon.png?fit=max\u0026auto=format\u0026n=qh0OMArf4kAaSPdp\u0026q=85\u0026s=0c61e3180d90fdba57901ea12d8f7604","api":{"playground":{"display":"simple"},"examples":{"languages":["bash","node","python","php","csharp","java"]}},"background":{"color":{"light":"#faf8ff","dark":"#0f0d12"}},"navbar":{"links":[{"icon":"comment-dots","href":"/overview/resources/contact-us","label":"Contact us"}]},"footer":{"socials":{"facebook":"https://www.facebook.com/D.EDGE.Hospitality.Solutions","x":"https://x.com/D_EDGE_Hosp","youtube":"https://www.youtube.com/channel/UC2wG3a8rYx5re8RdB-2FQ9A","instagram":"https://www.instagram.com/d_edge_hospitality","github":"https://github.com/d-edge","linkedin":"https://www.linkedin.com/company/d-edge-hospitality-solutions"}},"seo":{"metatags":{"canonical":"https://docs.d-edge.com","google-site-verification":"DbCZnF7pKm_lrSZjFug9jFzy2-OcwrnY1kHn_oYMQdg"}},"fonts":{"family":"Montserrat"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"instructions":["This site documents the D-EDGE APIs for technology partners (web agencies, OTAs, PMS and RMS vendors, booking and CRM tools). It is written for developers integrating with hotels that use the D-EDGE platform.","Seven APIs, grouped by domain. Connectivity: Channel Manager API (distribute a hotel's inventory to your channel and send bookings back). Pricing \u0026 Availability: Best Price API (best offers to highlight), Quotation API (all bookable offers for a stay), Daily Rates API (daily availability between two dates). Booking: Booking Engine API (a hotel's full direct booking funnel), Gift Shop API (gift vouchers from catalogue to payment). Guest Management: CRM API (guest profiles).","Pick the API by the need: to display prices, use the Best Price API or the Daily Rates API; to quote a specific stay, use the Quotation API; to book, use the Booking Engine API; to sell gift vouchers, use the Gift Shop API; to manage guest profiles, use the CRM API; to receive hotel inventory and send bookings back as a distribution channel, use the Channel Manager API.","Base URLs, hotel identifiers, and credentials are delivered by the D-EDGE partnership team during onboarding. Do not invent base URLs, endpoints, parameters, or example credentials that do not appear on these pages.","Authentication differs per API: OAuth 1.0 for Best Price, Quotation, Daily Rates, and Booking Engine; an X-API-KEY header for Gift Shop; OAuth 2.0 client credentials for CRM; partner-defined credentials carried in the XML message for the Channel Manager API. Read each API's Authentication page before writing code.","A mock environment returns realistic but fictitious data without credentials. The Postman and Insomnia collections on the API collections page target it by default. Use it for exploration and tests, never for production traffic.","Use the official names exactly: D-EDGE, D-EDGE platform, Channel Manager API, partnership team. Do not use Back Office or Extranet.","Each API has a Changelog page. Check it for the current behaviour before relying on an older answer. For questions these pages do not answer, direct the reader to the Contact us page."]},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Become a Partner","icon":"handshake","href":"https://www.d-edge.com/partner-contact/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dedge","hasAudioNarration":false,"actualSubdomain":"dedge","customDomains":["docs.d-edge.com"],"gitSource":{"type":"gitlab","owner":"d-edge/d-edge/product/docs","repo":"d-edge-mintlify-public-docs","projectId":81118478,"deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af30afaee5fde67b0aa986a","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Build","count":119},{"language":"default","tag":"Reference","count":89},{"language":"default","tag":"Booking","count":83},{"language":"default","tag":"Booking Engine API","count":54},{"language":"default","tag":"Pricing \u0026 Availability","count":37},{"language":"default","tag":"Resources","count":36},{"language":"default","tag":"Guest Management","count":30},{"language":"default","tag":"CRM API","count":30},{"language":"default","tag":"Gift Shop API","count":27},{"language":"default","tag":"Guidelines","count":23}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--dedge-purple: #621692;--dedge-purple-tint: rgba(98, 22, 146, 0.1);--dedge-teal: #00d7b0;--dedge-teal-tint: rgba(0, 215, 176, 0.15);--dedge-green: #007a63;--dedge-green-tint: rgba(0, 148, 122, 0.12);--dedge-lilac: #b57edc;--dedge-lilac-tint: rgba(181, 126, 220, 0.15);--dedge-slate: #64748b}.api-badge{position:absolute;top:22px;left:60px;padding:2px 8px;border-radius:4px;background:var(--dedge-purple-tint);color:var(--dedge-purple);font-size:11px;font-weight:600;line-height:16px}html.dark .api-badge{background:var(--dedge-teal-tint);color:var(--dedge-teal)}html[data-current-path^=\"/best-price-api/\"] .eyebrow::before{content:\"Best Price API · \"}html[data-current-path^=\"/quotation-api/\"] .eyebrow::before{content:\"Quotation API · \"}html[data-current-path^=\"/daily-rates-api/\"] .eyebrow::before{content:\"Daily Rates API · \"}html[data-current-path^=\"/booking-engine-api/\"] .eyebrow::before{content:\"Booking Engine API · \"}html[data-current-path^=\"/gift-shop-api/\"] .eyebrow::before{content:\"Gift Shop API · \"}html[data-current-path^=\"/crm-api/\"] .eyebrow::before{content:\"CRM API · \"}html[data-current-path^=\"/channel-manager-api/\"] .eyebrow::before{content:\"Channel Manager API · \"}li[id=\"/channel-manager-api/build/reference/booking-message\"]>a::before{content:\"SCHEMA\";flex-shrink:0;align-self:center;margin-right:6px;padding:2px 4px;border-radius:6px;font-size:0.5rem;font-weight:700;line-height:1.25;letter-spacing:-0.01em;background:var(--dedge-slate);color:#ffffff}html[data-current-path=\"/channel-manager-api/build/reference/get-hotel\"],html[data-current-path=\"/channel-manager-api/build/reference/planning-updates\"],html[data-current-path=\"/channel-manager-api/build/reference/get-bookings\"],html[data-current-path=\"/channel-manager-api/build/reference/confirm-bookings\"]{--hosting-tag: \"Hosted by you\";--hosting-tag-bg: var(--dedge-green-tint);--hosting-tag-fg: var(--dedge-green);--hosting-tag-wrap: nowrap}html[data-current-path=\"/channel-manager-api/build/reference/push-bookings\"]{--hosting-tag: \"Hosted by D-EDGE\";--hosting-tag-bg: var(--dedge-purple-tint);--hosting-tag-fg: var(--dedge-purple);--hosting-tag-wrap: nowrap}html.dark[data-current-path=\"/channel-manager-api/build/reference/get-hotel\"],html.dark[data-current-path=\"/channel-manager-api/build/reference/planning-updates\"],html.dark[data-current-path=\"/channel-manager-api/build/reference/get-bookings\"],html.dark[data-current-path=\"/channel-manager-api/build/reference/confirm-bookings\"]{--hosting-tag-bg: var(--dedge-teal-tint);--hosting-tag-fg: var(--dedge-teal)}html.dark[data-current-path=\"/channel-manager-api/build/reference/push-bookings\"]{--hosting-tag-bg: var(--dedge-lilac-tint);--hosting-tag-fg: var(--dedge-lilac)}html[data-current-path^=\"/channel-manager-api/build/reference/\"] h1#page-title::after{content:var(--hosting-tag, none);display:inline-block;margin-left:12px;padding:3px 10px;border-radius:6px;font-size:12px;font-weight:600;line-height:16px;letter-spacing:0.01em;vertical-align:middle;white-space:nowrap;background:var(--hosting-tag-bg);color:var(--hosting-tag-fg)}@media (min-width: 640px){html[data-current-path^=\"/channel-manager-api/build/reference/\"] h1#page-title{white-space:var(--hosting-tag-wrap, normal)}}@media (min-width: 1280px){html[data-current-path^=\"/channel-manager-api/build/reference/\"] #content-area{width:calc(100% - 24rem)}html[data-current-path^=\"/channel-manager-api/build/reference/\"] #content-container div:has(+#content-area){max-width:24rem}html[data-current-path^=\"/channel-manager-api/build/reference/\"] #content-container div:has(+#content-area)>div{width:24rem}}html[data-current-path^=\"/channel-manager-api/build/reference/\"]:not([data-current-path$=\"/booking-message\"]) .mdx-content{padding-bottom:5rem}html.dark a[href*=\"partner-contact\"]>div{background-color:var(--color-background-dark, #0f0d12)!important}html.dark a[href*=\"partner-contact\"]:hover>div{background-color:var(--dedge-teal-tint)!important}html.dark a[href*=\"partner-contact\"]:hover svg{background-color:var(--dedge-teal)!important;fill:var(--dedge-teal)!important;color:var(--dedge-teal)!important}html[data-current-path=\"/overview/resources/api-collections\"] [data-component-part=\"card-icon\"]:has(>img){display:flex;flex-shrink:0;align-items:center;justify-content:center;width:48px;height:48px}html[data-current-path=\"/overview/resources/api-collections\"] [data-component-part=\"card-icon\"]>img{width:40px;height:40px;max-width:none}html[data-current-path=\"/booking-engine-api/resources/use-cases/last-step-discount\"] table th:nth-child(-n+2),html[data-current-path=\"/booking-engine-api/resources/use-cases/last-step-discount\"] table td:nth-child(-n+2){white-space:nowrap}html[data-current-path=\"/overview/resources/api-collections\"] table th:first-child,html[data-current-path=\"/overview/resources/api-collections\"] table td:first-child{white-space:nowrap}html[data-current-path=\"/channel-manager-api/build/best-practices\"] table th:not(:first-child),html[data-current-path=\"/channel-manager-api/build/best-practices\"] table td:not(:first-child){min-width:0;white-space:nowrap;text-align:left}html[data-current-path=\"/overview/resources/contact-us\"] .card .code-block{margin-top:0.5rem;margin-bottom:0}html[data-current-path=\"/overview/resources/contact-us\"] .card .code-block,html[data-current-path=\"/overview/resources/contact-us\"] .card .code-block div,html[data-current-path=\"/overview/resources/contact-us\"] .card .code-block pre{overflow-x:visible}html[data-current-path=\"/overview/resources/contact-us\"] .card .code-block code,html[data-current-path=\"/overview/resources/contact-us\"] .card .code-block .whitespace-pre{white-space:pre-wrap;overflow-wrap:break-word}.step h2{font-size:1.25rem;line-height:1.75rem}html[data-current-path=\"/overview/resources/api-collections\"] .mdx-content:has(>h2#how-to-import) table:has(td:first-child code) th:first-child,html[data-current-path=\"/overview/resources/api-collections\"] .mdx-content:has(>h2#how-to-import) table:has(td:first-child code) td:first-child{width:1%;min-width:0;white-space:normal}html[data-current-path=\"/overview/resources/api-collections\"] .mdx-content:has(>h2#how-to-import) table td:first-child code{white-space:nowrap}html[data-current-path=\"/overview/resources/api-collections\"] .mdx-content:has(>h2#how-to-import) details>summary+div:not(:has(>.update)){padding-top:0.875rem}html[data-current-path=\"/channel-manager-api/get-certified/test-scenarios\"] .mdx-content:has(>h2#phase-one-basic-behaviour) table th:first-child,html[data-current-path=\"/channel-manager-api/get-certified/test-scenarios\"] .mdx-content:has(>h2#phase-one-basic-behaviour) table td:first-child{width:12%;min-width:0;white-space:nowrap;text-align:left}html[data-current-path=\"/channel-manager-api/get-certified/test-scenarios\"] .mdx-content:has(>h2#phase-one-basic-behaviour) table td:first-child button{vertical-align:0.25em;margin-left:1px}html[data-current-path=\"/overview/resources/api-collections\"] .mdx-content:has(>h2#how-to-import) details>summary+div>.steps{margin-top:0;margin-bottom:0}html[data-current-path=\"/overview/resources/api-collections\"] .mdx-content:has(>h2#how-to-import) details .update>:first-child{position:static}.collection-download{display:block;border-bottom:0;text-decoration:none}.collection-download .card{cursor:pointer}.collection-download:hover .card{border-color:rgb(var(--primary))!important}html.dark .collection-download:hover .card{border-color:rgb(var(--primary-light))!important}.collection-download-icon{position:absolute;top:20px;right:20px;background-color:rgb(var(--gray-400))!important}.collection-download:hover .collection-download-icon{background-color:rgb(var(--primary))!important}html.dark .collection-download:hover .collection-download-icon{background-color:rgb(var(--primary-light))!important}"}],"page":{"pagePath":"booking-engine-api/build/reference/session/post-session","slug":"/booking-engine-api/build/reference/session/post-session","pageMetadata":{"title":"Create a new session","description":"Create a new session","openapi":"booking-engine-api/open-api/booking-engine-api.json POST /v2/session","href":"/booking-engine-api/build/reference/session/post-session"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new session\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a new session","description":"Create a new session","openapi":"booking-engine-api/open-api/booking-engine-api.json POST /v2/session","href":"/booking-engine-api/build/reference/session/post-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Session"],"summary":"Create a new session","description":"Create a new session","operationId":"Session_CreateSession","parameters":["a40e5365-78bb-4e2d-9c90-9d36799e7240","1c551cfe-b1f3-4020-b072-1998c45670a6"],"requestBody":"036786b1-1df5-4937-8551-bdf2c9f68b29","responses":{"200":"1c487d03-4961-42f6-8048-2a0ca6022f46","400":"c18b3816-d1d6-4ceb-be68-4fd6811bedf2","401":"a3a5e2ba-afe2-4666-9388-71fdbda2d463"},"method":"post","type":"path","servers":["ea8c8e69-a2f1-4a6c-841e-98caf5a0daef"],"security":[],"path":"/v2/session","baseUrlOptions":["https://{apiBaseUrl}"],"title":"Create a new session","codeSamples":[],"requestExampleLanguages":["bash","node","python","php","csharp","java"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a40e5365-78bb-4e2d-9c90-9d36799e7240":{"name":"X-AVP-SessionDuration","in":"header","description":"The custom duration of the session.","required":false,"schema":{"type":"string","isRequired":false,"description":"The custom duration of the session.","uniqueKey":"","typeLabel":"string"}},"1c551cfe-b1f3-4020-b072-1998c45670a6":{"name":"X-AVP-Impersonation","in":"header","description":"The impersonation.","required":false,"schema":{"type":"string","isRequired":false,"description":"The impersonation.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"required":["display","context","metadata","engineId","guestSelectionMode"],"type":"object","properties":{"engineId":{"type":"string","description":"The engine for which to create a session. This is the only property that is required to create a session.","isRequired":true,"uniqueKey":"engineId","typeLabel":"string"},"guestSelectionMode":{"type":"string","description":"The guest selection mode (per room or per booking).","enum":["Default","PerRoom","PerBooking"],"isRequired":true,"uniqueKey":"guestSelectionMode","typeLabel":"enum\u003cstring>"},"display":{"type":"object","description":"The desired display context.","default":{},"example":{"culture":"fr-FR","currency":"EUR","countryCode":"FR"},"properties":{"culture":{"description":"The culture name, used to localize results of other endpoints.","type":"string","uniqueKey":"display.culture","typeLabel":"string"},"currency":{"description":"The ISO code of the currency requested, used to configure price in the results.","type":"string","uniqueKey":"display.currency","typeLabel":"string"},"countryCode":{"description":"The country code from client browser.","type":"string","uniqueKey":"display.countryCode","typeLabel":"string"}},"isRequired":true,"uniqueKey":"display","typeLabel":"object"},"context":{"type":"object","description":"This represent the parameters used to configure future call to the service.\r\nIt represents more or less the data entered by the final customer.","default":{"stayPeriod":{"arrivalDate":"0001-01-01","departureDate":"0001-01-01"},"guests":[],"selectedHotelId":"0","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"required":["stayPeriod","guests","selectedHotelId","excludeMixedRates","disableCrossSell","isMobile"],"example":{"stayPeriod":{"arrivalDate":"2026-06-08T00:00:00Z","departureDate":"2026-06-13T00:00:00Z"},"guests":[{"adults":2,"children":0,"infants":0,"position":1,"memberLevel":0}],"selectedHotelId":"10133","selectedRoomCode":"29513","highlightedRateCode":"32643","promoCode":"DISCOUNT","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"properties":{"stayPeriod":{"type":"object","description":"Describe a period of stay by specifying the arrival date and the departure date.","default":{"arrivalDate":"0001-01-01","departureDate":"0001-01-01"},"required":["arrivalDate","departureDate"],"properties":{"arrivalDate":{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"context.stayPeriod.arrivalDate","typeLabel":"string\u003cdate-time>"},"departureDate":{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"context.stayPeriod.departureDate","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"context.stayPeriod","typeLabel":"object"},"guests":{"default":[],"type":"array","items":{"description":"Describes the details of the guests count.","required":["adults","children","infants","position","memberLevel"],"type":"object","properties":{"adults":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].adults","typeLabel":"integer\u003cint32>"},"children":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].children","typeLabel":"integer\u003cint32>"},"infants":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].infants","typeLabel":"integer\u003cint32>"},"position":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].position","typeLabel":"integer\u003cint32>"},"memberLevel":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].memberLevel","typeLabel":"integer\u003cint32>"},"childrenAges":{"type":"array","items":{"format":"int32","type":"integer","uniqueKey":"context.guests.items.[INDEX].childrenAges.items.[INDEX]","typeLabel":"integer\u003cint32>"},"uniqueKey":"context.guests.items.[INDEX].childrenAges","typeLabel":"integer\u003cint32>[]"}},"uniqueKey":"context.guests.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"context.guests","typeLabel":"object[]"},"selectedHotelId":{"type":"string","description":"The currently selected hotel id.\r\nCould be zero when starting a session for a multi hotel booking engine.\r\nAutomatically set when starting a session for a mono hotel booking engine.","isRequired":true,"uniqueKey":"context.selectedHotelId","typeLabel":"string"},"excludeMixedRates":{"description":"Configure whether the search results should include mixed rates or not.","type":"boolean","isRequired":true,"uniqueKey":"context.excludeMixedRates","typeLabel":"boolean"},"disableCrossSell":{"description":"Configure whether the search results should return cross sell configuration when no rooms are available.","type":"boolean","isRequired":true,"uniqueKey":"context.disableCrossSell","typeLabel":"boolean"},"isMobile":{"description":"Configure whether the request came from a mobile or not.","type":"boolean","isRequired":true,"uniqueKey":"context.isMobile","typeLabel":"boolean"},"selectedRoomCode":{"type":"string","uniqueKey":"context.selectedRoomCode","typeLabel":"string"},"selectedRateCode":{"type":"string","uniqueKey":"context.selectedRateCode","typeLabel":"string"},"highlightedRateCode":{"type":"string","uniqueKey":"context.highlightedRateCode","typeLabel":"string"},"highlightedRoomCode":{"type":"string","uniqueKey":"context.highlightedRoomCode","typeLabel":"string"},"highlightedHotelCode":{"type":"string","uniqueKey":"context.highlightedHotelCode","typeLabel":"string"},"promoCode":{"description":"The promo code requested for the session.\r\nIt could be either an OfferCode or a RateCode.","type":"string","uniqueKey":"context.promoCode","typeLabel":"string"},"gpsPosition":{"type":"object","description":"If defined the search results should be based on user's location.","required":["latitude","longitude"],"properties":{"latitude":{"format":"double","type":"number","isRequired":true,"uniqueKey":"context.gpsPosition.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"format":"double","type":"number","isRequired":true,"uniqueKey":"context.gpsPosition.longitude","typeLabel":"number\u003cdouble>"}},"uniqueKey":"context.gpsPosition","typeLabel":"object"}},"isRequired":true,"uniqueKey":"context","typeLabel":"object"},"metadata":{"type":"object","default":{"customTrackingValues":{}},"required":["customTrackingValues"],"properties":{"customTrackingValues":{"description":"Allow the API client to store values that have been provided through URL at the beginning of the booking process.","default":{},"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.customTrackingValues.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"metadata.customTrackingValues","typeLabel":"object"},"application":{"type":"string","uniqueKey":"metadata.application","typeLabel":"string"},"device":{"description":"Allow the API client to store the device type of the end user at the beginning of the booking process.","type":"string","uniqueKey":"metadata.device","typeLabel":"string"},"ipAddress":{"description":"Allow the API client to store the user ip address.","type":"string","uniqueKey":"metadata.ipAddress","typeLabel":"string"}},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"}},"example":{"engineId":"2MIS","guestSelectionMode":"Default","display":{"culture":"fr-FR","currency":"EUR","countryCode":"FR"},"context":{"stayPeriod":{"arrivalDate":"2026-06-08T00:00:00Z","departureDate":"2026-06-13T00:00:00Z"},"guests":[{"adults":2,"children":0,"infants":0,"position":1,"memberLevel":0}],"selectedHotelId":"10133","selectedRoomCode":"29513","highlightedRateCode":"32643","promoCode":"DISCOUNT","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"metadata":{"customTrackingValues":{}}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"engineId":"2MIS","guestSelectionMode":"Default","display":{"culture":"fr-FR","currency":"EUR","countryCode":"FR"},"context":{"stayPeriod":{"arrivalDate":"2026-06-08T00:00:00Z","departureDate":"2026-06-13T00:00:00Z"},"guests":[{"adults":2,"children":0,"infants":0,"position":1,"memberLevel":0}],"selectedHotelId":"10133","selectedRoomCode":"29513","highlightedRateCode":"32643","promoCode":"DISCOUNT","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"metadata":{"customTrackingValues":{}}}}},"exampleType":"generated"},"text/json":{"schema":{"required":["display","context","metadata","engineId","guestSelectionMode"],"type":"object","properties":{"engineId":{"type":"string","description":"The engine for which to create a session. This is the only property that is required to create a session.","isRequired":true,"uniqueKey":"engineId","typeLabel":"string"},"guestSelectionMode":{"type":"string","description":"The guest selection mode (per room or per booking).","enum":["Default","PerRoom","PerBooking"],"isRequired":true,"uniqueKey":"guestSelectionMode","typeLabel":"enum\u003cstring>"},"display":{"type":"object","description":"The desired display context.","default":{},"example":{"culture":"fr-FR","currency":"EUR","countryCode":"FR"},"properties":{"culture":{"description":"The culture name, used to localize results of other endpoints.","type":"string","uniqueKey":"display.culture","typeLabel":"string"},"currency":{"description":"The ISO code of the currency requested, used to configure price in the results.","type":"string","uniqueKey":"display.currency","typeLabel":"string"},"countryCode":{"description":"The country code from client browser.","type":"string","uniqueKey":"display.countryCode","typeLabel":"string"}},"isRequired":true,"uniqueKey":"display","typeLabel":"object"},"context":{"type":"object","description":"This represent the parameters used to configure future call to the service.\r\nIt represents more or less the data entered by the final customer.","default":{"stayPeriod":{"arrivalDate":"0001-01-01","departureDate":"0001-01-01"},"guests":[],"selectedHotelId":"0","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"required":["stayPeriod","guests","selectedHotelId","excludeMixedRates","disableCrossSell","isMobile"],"example":{"stayPeriod":{"arrivalDate":"2026-06-08T00:00:00Z","departureDate":"2026-06-13T00:00:00Z"},"guests":[{"adults":2,"children":0,"infants":0,"position":1,"memberLevel":0}],"selectedHotelId":"10133","selectedRoomCode":"29513","highlightedRateCode":"32643","promoCode":"DISCOUNT","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"properties":{"stayPeriod":{"type":"object","description":"Describe a period of stay by specifying the arrival date and the departure date.","default":{"arrivalDate":"0001-01-01","departureDate":"0001-01-01"},"required":["arrivalDate","departureDate"],"properties":{"arrivalDate":{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"context.stayPeriod.arrivalDate","typeLabel":"string\u003cdate-time>"},"departureDate":{"format":"date-time","type":"string","isRequired":true,"uniqueKey":"context.stayPeriod.departureDate","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"context.stayPeriod","typeLabel":"object"},"guests":{"default":[],"type":"array","items":{"description":"Describes the details of the guests count.","required":["adults","children","infants","position","memberLevel"],"type":"object","properties":{"adults":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].adults","typeLabel":"integer\u003cint32>"},"children":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].children","typeLabel":"integer\u003cint32>"},"infants":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].infants","typeLabel":"integer\u003cint32>"},"position":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].position","typeLabel":"integer\u003cint32>"},"memberLevel":{"format":"int32","type":"integer","isRequired":true,"uniqueKey":"context.guests.items.[INDEX].memberLevel","typeLabel":"integer\u003cint32>"},"childrenAges":{"type":"array","items":{"format":"int32","type":"integer","uniqueKey":"context.guests.items.[INDEX].childrenAges.items.[INDEX]","typeLabel":"integer\u003cint32>"},"uniqueKey":"context.guests.items.[INDEX].childrenAges","typeLabel":"integer\u003cint32>[]"}},"uniqueKey":"context.guests.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"context.guests","typeLabel":"object[]"},"selectedHotelId":{"type":"string","description":"The currently selected hotel id.\r\nCould be zero when starting a session for a multi hotel booking engine.\r\nAutomatically set when starting a session for a mono hotel booking engine.","isRequired":true,"uniqueKey":"context.selectedHotelId","typeLabel":"string"},"excludeMixedRates":{"description":"Configure whether the search results should include mixed rates or not.","type":"boolean","isRequired":true,"uniqueKey":"context.excludeMixedRates","typeLabel":"boolean"},"disableCrossSell":{"description":"Configure whether the search results should return cross sell configuration when no rooms are available.","type":"boolean","isRequired":true,"uniqueKey":"context.disableCrossSell","typeLabel":"boolean"},"isMobile":{"description":"Configure whether the request came from a mobile or not.","type":"boolean","isRequired":true,"uniqueKey":"context.isMobile","typeLabel":"boolean"},"selectedRoomCode":{"type":"string","uniqueKey":"context.selectedRoomCode","typeLabel":"string"},"selectedRateCode":{"type":"string","uniqueKey":"context.selectedRateCode","typeLabel":"string"},"highlightedRateCode":{"type":"string","uniqueKey":"context.highlightedRateCode","typeLabel":"string"},"highlightedRoomCode":{"type":"string","uniqueKey":"context.highlightedRoomCode","typeLabel":"string"},"highlightedHotelCode":{"type":"string","uniqueKey":"context.highlightedHotelCode","typeLabel":"string"},"promoCode":{"description":"The promo code requested for the session.\r\nIt could be either an OfferCode or a RateCode.","type":"string","uniqueKey":"context.promoCode","typeLabel":"string"},"gpsPosition":{"type":"object","description":"If defined the search results should be based on user's location.","required":["latitude","longitude"],"properties":{"latitude":{"format":"double","type":"number","isRequired":true,"uniqueKey":"context.gpsPosition.latitude","typeLabel":"number\u003cdouble>"},"longitude":{"format":"double","type":"number","isRequired":true,"uniqueKey":"context.gpsPosition.longitude","typeLabel":"number\u003cdouble>"}},"uniqueKey":"context.gpsPosition","typeLabel":"object"}},"isRequired":true,"uniqueKey":"context","typeLabel":"object"},"metadata":{"type":"object","default":{"customTrackingValues":{}},"required":["customTrackingValues"],"properties":{"customTrackingValues":{"description":"Allow the API client to store values that have been provided through URL at the beginning of the booking process.","default":{},"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.customTrackingValues.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"metadata.customTrackingValues","typeLabel":"object"},"application":{"type":"string","uniqueKey":"metadata.application","typeLabel":"string"},"device":{"description":"Allow the API client to store the device type of the end user at the beginning of the booking process.","type":"string","uniqueKey":"metadata.device","typeLabel":"string"},"ipAddress":{"description":"Allow the API client to store the user ip address.","type":"string","uniqueKey":"metadata.ipAddress","typeLabel":"string"}},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"}},"example":{"engineId":"2MIS","guestSelectionMode":"Default","display":{"culture":"fr-FR","currency":"EUR","countryCode":"FR"},"context":{"stayPeriod":{"arrivalDate":"2026-06-08T00:00:00Z","departureDate":"2026-06-13T00:00:00Z"},"guests":[{"adults":2,"children":0,"infants":0,"position":1,"memberLevel":0}],"selectedHotelId":"10133","selectedRoomCode":"29513","highlightedRateCode":"32643","promoCode":"DISCOUNT","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"metadata":{"customTrackingValues":{}}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"engineId":"2MIS","guestSelectionMode":"Default","display":{"culture":"fr-FR","currency":"EUR","countryCode":"FR"},"context":{"stayPeriod":{"arrivalDate":"2026-06-08T00:00:00Z","departureDate":"2026-06-13T00:00:00Z"},"guests":[{"adults":2,"children":0,"infants":0,"position":1,"memberLevel":0}],"selectedHotelId":"10133","selectedRoomCode":"29513","highlightedRateCode":"32643","promoCode":"DISCOUNT","excludeMixedRates":false,"disableCrossSell":false,"isMobile":false},"metadata":{"customTrackingValues":{}}}}},"exampleType":"generated"}},"description":"The request.","required":true,"exampleType":"generated"},"responses":{"1c487d03-4961-42f6-8048-2a0ca6022f46":{"description":"Indicates that the session was created correctly","content":{"application/json":{"schema":{"required":["warnings","sessionId"],"type":"object","properties":{"sessionId":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"sessionId","typeLabel":"string\u003cuuid>"},"warnings":{"description":"Possible values are : InvalidStayPeriod, InvalidRateId, InvalidRoomId, InvalidPromoCode, InvalidGuests","default":[],"type":"array","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"response":{"title":"response","value":{"sessionId":"924f66dc-1706-4f13-968f-4a35293e8d2b","warnings":[]}}},"exampleType":"examples"},"text/json":{"schema":{"required":["warnings","sessionId"],"type":"object","properties":{"sessionId":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"sessionId","typeLabel":"string\u003cuuid>"},"warnings":{"description":"Possible values are : InvalidStayPeriod, InvalidRateId, InvalidRoomId, InvalidPromoCode, InvalidGuests","default":[],"type":"array","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"response":{"title":"response","value":{"sessionId":"924f66dc-1706-4f13-968f-4a35293e8d2b","warnings":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"c18b3816-d1d6-4ceb-be68-4fd6811bedf2":{"description":"Some parameters are invalid or missing, check the error code value for more details","content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"description":"Machine-readable error code returned by the Hub API when a request cannot be fulfilled. Integrators should switch on this value to decide how to recover (retry, adjust input, show a message, etc.).\n\n- **InvalidHotelId** — The provided hotel identifier does not exist.\n- **EngineConfigNotFound** — No engine configuration was found for the requested hotel.\n- **InvalidBasket** — The basket referenced by the request is invalid or has been discarded.\n- **InvalidPromoCode** — The promotional code is unknown or not applicable to the current context.\n- **InvalidPromoCodeBookingPeriod** — The promotional code is not valid for the booking date range.\n- **InvalidPromoCodeStayPeriod** — The promotional code is not valid for the requested stay period.\n- **InvalidPromoCodeDevice** — The promotional code is not valid for the current device or channel.\n- **InvalidRateId** — The provided rate identifier does not exist.\n- **InvalidRoomId** — The provided room identifier does not exist.\n- **InvalidGuestPosition** — The provided guest position is invalid (out of range or malformed).\n- **InvalidRoomQuantity** — The requested room quantity is invalid (typically zero, negative or above the allowed maximum).\n- **InvalidSessionCulture** — The session culture (language) is not supported.\n- **InvalidSessionCurrency** — The session currency is not supported.\n- **InvalidSessionId** — The session identifier is unknown or expired.\n- **InvalidSessionFilter** — The session filter is invalid or inconsistent with the session context.\n- **UnavailableRoom** — The requested room is not available for the given search context.\n- **InvalidStayPeriod** — The requested stay period is invalid (e.g. arrival after departure, past dates, out of window).\n- **InvalidExtraId** — The provided extra identifier does not exist.\n- **UnavailableExtra** — The requested extra is not available for the given search context.\n- **InvalidSessionUpdate** — The session update payload is invalid.\n- **InvalidSessionDuration** — The session duration is invalid (typically outside the configured min/max).\n- **InvalidOccupancyId** — The provided occupancy identifier does not exist.\n- **UnavailableQuantity** — The requested quantity is not available in inventory.\n- **InvalidQuote** — The quote referenced by the request is invalid or has expired.\n- **InvalidGuests** — The guest declaration is invalid (missing, inconsistent with the room, etc.).\n- **InvalidAcceptQuoteRequest** — The accept-quote request is invalid; see HubInvalidAcceptQuoteRequestException.ValidationErrors for the list of offending fields.\n- **InvalidSessionCountryCode** — The session country code is invalid or not supported.\n- **InvalidSearchParameter** — A search parameter has an invalid value.\n- **InvalidLoyaltySession** — The loyalty session is invalid or expired.\n- **InvalidBeddingConfigurationId** — The provided bedding configuration identifier does not exist.\n- **InvalidGuestsChildrenNotSupported** — The request includes children but the hotel does not accept children.\n- **InvalidGuestsInfantsNotSupported** — The request includes infants but the hotel does not accept infants.\n- **LoyaltyProviderGenericError** — The loyalty provider returned a generic error not mapped to a specific code.\n- **LoyaltyProviderTokenExpired** — The loyalty provider token has expired; the caller must re-authenticate the loyalty session.\n- **InvalidRoomCapacity** — The room capacity constraint is violated by the requested guest count.\n- **InvalidGuestsChildrenAges** — One or more children ages fall outside the hotel's accepted range.\n- **InvalidGuestsInfantsAges** — One or more infants ages fall outside the hotel's accepted range.","enum":["InvalidHotelId","EngineConfigNotFound","InvalidBasket","InvalidPromoCode","InvalidPromoCodeBookingPeriod","InvalidPromoCodeStayPeriod","InvalidPromoCodeDevice","InvalidRateId","InvalidRoomId","InvalidGuestPosition","InvalidRoomQuantity","InvalidSessionCulture","InvalidSessionCurrency","InvalidSessionId","InvalidSessionFilter","UnavailableRoom","InvalidStayPeriod","InvalidExtraId","UnavailableExtra","InvalidSessionUpdate","InvalidSessionDuration","InvalidOccupancyId","UnavailableQuantity","InvalidQuote","InvalidGuests","InvalidAcceptQuoteRequest","InvalidSessionCountryCode","InvalidSearchParameter","InvalidLoyaltySession","InvalidBeddingConfigurationId","InvalidGuestsChildrenNotSupported","InvalidGuestsInfantsNotSupported","LoyaltyProviderGenericError","LoyaltyProviderTokenExpired","InvalidRoomCapacity","InvalidGuestsChildrenAges","InvalidGuestsInfantsAges"],"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"response":{"title":"response","value":{"code":"InvalidHotelId"}}},"exampleType":"examples"},"text/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"description":"Machine-readable error code returned by the Hub API when a request cannot be fulfilled. Integrators should switch on this value to decide how to recover (retry, adjust input, show a message, etc.).\n\n- **InvalidHotelId** — The provided hotel identifier does not exist.\n- **EngineConfigNotFound** — No engine configuration was found for the requested hotel.\n- **InvalidBasket** — The basket referenced by the request is invalid or has been discarded.\n- **InvalidPromoCode** — The promotional code is unknown or not applicable to the current context.\n- **InvalidPromoCodeBookingPeriod** — The promotional code is not valid for the booking date range.\n- **InvalidPromoCodeStayPeriod** — The promotional code is not valid for the requested stay period.\n- **InvalidPromoCodeDevice** — The promotional code is not valid for the current device or channel.\n- **InvalidRateId** — The provided rate identifier does not exist.\n- **InvalidRoomId** — The provided room identifier does not exist.\n- **InvalidGuestPosition** — The provided guest position is invalid (out of range or malformed).\n- **InvalidRoomQuantity** — The requested room quantity is invalid (typically zero, negative or above the allowed maximum).\n- **InvalidSessionCulture** — The session culture (language) is not supported.\n- **InvalidSessionCurrency** — The session currency is not supported.\n- **InvalidSessionId** — The session identifier is unknown or expired.\n- **InvalidSessionFilter** — The session filter is invalid or inconsistent with the session context.\n- **UnavailableRoom** — The requested room is not available for the given search context.\n- **InvalidStayPeriod** — The requested stay period is invalid (e.g. arrival after departure, past dates, out of window).\n- **InvalidExtraId** — The provided extra identifier does not exist.\n- **UnavailableExtra** — The requested extra is not available for the given search context.\n- **InvalidSessionUpdate** — The session update payload is invalid.\n- **InvalidSessionDuration** — The session duration is invalid (typically outside the configured min/max).\n- **InvalidOccupancyId** — The provided occupancy identifier does not exist.\n- **UnavailableQuantity** — The requested quantity is not available in inventory.\n- **InvalidQuote** — The quote referenced by the request is invalid or has expired.\n- **InvalidGuests** — The guest declaration is invalid (missing, inconsistent with the room, etc.).\n- **InvalidAcceptQuoteRequest** — The accept-quote request is invalid; see HubInvalidAcceptQuoteRequestException.ValidationErrors for the list of offending fields.\n- **InvalidSessionCountryCode** — The session country code is invalid or not supported.\n- **InvalidSearchParameter** — A search parameter has an invalid value.\n- **InvalidLoyaltySession** — The loyalty session is invalid or expired.\n- **InvalidBeddingConfigurationId** — The provided bedding configuration identifier does not exist.\n- **InvalidGuestsChildrenNotSupported** — The request includes children but the hotel does not accept children.\n- **InvalidGuestsInfantsNotSupported** — The request includes infants but the hotel does not accept infants.\n- **LoyaltyProviderGenericError** — The loyalty provider returned a generic error not mapped to a specific code.\n- **LoyaltyProviderTokenExpired** — The loyalty provider token has expired; the caller must re-authenticate the loyalty session.\n- **InvalidRoomCapacity** — The room capacity constraint is violated by the requested guest count.\n- **InvalidGuestsChildrenAges** — One or more children ages fall outside the hotel's accepted range.\n- **InvalidGuestsInfantsAges** — One or more infants ages fall outside the hotel's accepted range.","enum":["InvalidHotelId","EngineConfigNotFound","InvalidBasket","InvalidPromoCode","InvalidPromoCodeBookingPeriod","InvalidPromoCodeStayPeriod","InvalidPromoCodeDevice","InvalidRateId","InvalidRoomId","InvalidGuestPosition","InvalidRoomQuantity","InvalidSessionCulture","InvalidSessionCurrency","InvalidSessionId","InvalidSessionFilter","UnavailableRoom","InvalidStayPeriod","InvalidExtraId","UnavailableExtra","InvalidSessionUpdate","InvalidSessionDuration","InvalidOccupancyId","UnavailableQuantity","InvalidQuote","InvalidGuests","InvalidAcceptQuoteRequest","InvalidSessionCountryCode","InvalidSearchParameter","InvalidLoyaltySession","InvalidBeddingConfigurationId","InvalidGuestsChildrenNotSupported","InvalidGuestsInfantsNotSupported","LoyaltyProviderGenericError","LoyaltyProviderTokenExpired","InvalidRoomCapacity","InvalidGuestsChildrenAges","InvalidGuestsInfantsAges"],"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"response":{"title":"response","value":{"code":"InvalidHotelId"}}},"exampleType":"examples"}},"exampleType":"examples"},"a3a5e2ba-afe2-4666-9388-71fdbda2d463":{"description":"Authentication header is invalid or does not give access to the operation","content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"description":"Category of security failure returned when authentication or authorization is rejected.","enum":["InvalidUserAuthentication","InvalidUserRoles","InvalidPermissions"],"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"InvalidUserAuthentication","message":"\u003cstring>"}}},"exampleType":"generated"},"text/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"description":"Category of security failure returned when authentication or authorization is rejected.","enum":["InvalidUserAuthentication","InvalidUserRoles","InvalidPermissions"],"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"InvalidUserAuthentication","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"ea8c8e69-a2f1-4a6c-841e-98caf5a0daef":{"url":"https://{apiBaseUrl}","variables":{"apiBaseUrl":{"default":"api.example.com","description":"Base URL delivered by D-EDGE during partnership setup"}}}}},"originalFileLocation":"booking-engine-api/open-api/booking-engine-api.json"},"subdomain":"dedge","siteName":"D-EDGE Docs","title":"Create a new session - D-EDGE Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T07:02:10.312Z","originalFileLocation":"booking-engine-api/build/reference/session/post-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new session\">\u003cmeta data-mint-head name=\"application-name\" content=\"D-EDGE Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new session - D-EDGE Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new session\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"D-EDGE Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dedge.mintlify.site/_mintlify/api/og/v2?division=Session\u0026amp;title=Create+a+new+session\u0026amp;description=Create+a+new+session\u0026amp;theme=c60d83f72403f78042883f39\u0026amp;signature=641c10ce4a3d97635be927c6f05758d144177f9bb8f43c8623a1bc87db8c39fc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a new session - D-EDGE Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new session\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dedge.mintlify.site/_mintlify/api/og/v2?division=Session\u0026amp;title=Create+a+new+session\u0026amp;description=Create+a+new+session\u0026amp;theme=c60d83f72403f78042883f39\u0026amp;signature=641c10ce4a3d97635be927c6f05758d144177f9bb8f43c8623a1bc87db8c39fc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dedge/m9_yJ4QqW37ObfU6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"D-EDGE Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#621692\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"DbCZnF7pKm_lrSZjFug9jFzy2-OcwrnY1kHn_oYMQdg\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/booking-engine-api/build/reference/session/post-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.d-edge.com/#organization\",\"name\":\"D-EDGE Docs\",\"url\":\"https://docs.d-edge.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dedge/aFUJALuxu9HSXZ0w/logo/d-edge-light.svg?fit=max\u0026auto=format\u0026n=aFUJALuxu9HSXZ0w\u0026q=85\u0026s=11939117a758ab11da1cc24574dcee0b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.d-edge.com#website\",\"name\":\"D-EDGE Docs\",\"url\":\"https://docs.d-edge.com\",\"publisher\":{\"@id\":\"https://docs.d-edge.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session#webpage\",\"url\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session\",\"name\":\"Create a new session\",\"description\":\"Create a new session\",\"dateModified\":\"2026-09-28T07:02:10.312Z\",\"isPartOf\":{\"@id\":\"https://docs.d-edge.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Build\",\"item\":\"https://docs.d-edge.com/booking-engine-api/build/guidelines/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a new session\",\"item\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session#apireference\",\"headline\":\"Create a new session\",\"name\":\"Create a new session\",\"description\":\"Create a new session\",\"url\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.d-edge.com/booking-engine-api/build/reference/session/post-session#webpage\"},\"dateModified\":\"2026-09-28T07:02:10.312Z\",\"publisher\":{\"@id\":\"https://docs.d-edge.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.d-edge.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"D-EDGE Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"D-EDGE Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/booking-engine-api/build/reference/session/post-session.md","siteName":"D-EDGE Docs","nav":{"global":{"anchors":[{"anchor":"Become a Partner","icon":"handshake","href":"https://www.d-edge.com/partner-contact/"}]},"tabs":[{"tab":"Overview","icon":"book-open","pages":[{"title":"Overview","href":"/overview/get-started/start-building-with-d-edge"}]},{"tab":"Connectivity","icon":"network-wired","menu":[{"item":"Channel Manager API","icon":"tower-broadcast","pages":[{"title":"Channel Manager API","href":"/channel-manager-api/get-started/introduction"}]}],"pages":[{"title":"Connectivity","href":"/channel-manager-api/get-started/introduction"}]},{"tab":"Pricing \u0026 Availability","icon":"chart-line","menu":[{"item":"Best Price API","icon":"tag","pages":[{"title":"Best Price API","href":"/best-price-api/get-started/introduction"}]},{"item":"Quotation API","icon":"rectangle-list","pages":[{"title":"Quotation API","href":"/quotation-api/get-started/introduction"}]},{"item":"Daily Rates API","icon":"calendar-days","pages":[{"title":"Daily Rates API","href":"/daily-rates-api/get-started/introduction"}]}],"pages":[{"title":"Pricing \u0026 Availability","href":"/best-price-api/get-started/introduction"}]},{"tab":"Booking","icon":"bell-concierge","menu":[{"item":"Booking Engine API","icon":"cart-shopping","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Introduction","href":"/booking-engine-api/get-started/introduction"},{"title":"Quick start","href":"/booking-engine-api/get-started/quick-start"}]},{"group":"Build","icon":"wrench","pages":[{"group":"Guidelines","pages":[{"title":"Authentication","href":"/booking-engine-api/build/guidelines/authentication"},{"title":"Requests","href":"/booking-engine-api/build/guidelines/requests"},{"title":"Responses","description":"JSON bodies, with 204 on state updates","href":"/booking-engine-api/build/guidelines/responses"}]},{"group":"Reference","pages":[{"group":"Session","pages":[{"title":"Create a new session","openapi":"booking-engine-api/open-api/booking-engine-api.json POST /v2/session","href":"/booking-engine-api/build/reference/session/post-session"},{"title":"Get an existing session","description":"Get an existing session","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/session","href":"/booking-engine-api/build/reference/session/get-session"},{"title":"Get the session scope","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/session/scope","href":"/booking-engine-api/build/reference/session/get-session-scope"},{"title":"Returns the session metadata","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/session/metadata","href":"/booking-engine-api/build/reference/session/get-session-metadata"},{"title":"Update the search context","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/session/context","href":"/booking-engine-api/build/reference/session/patch-session-context"},{"title":"Update the user display options","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/session/display","href":"/booking-engine-api/build/reference/session/patch-session-display"},{"title":"Update the search filters for rooms","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/session/filters/rooms","href":"/booking-engine-api/build/reference/session/patch-session-filters-rooms"},{"title":"Update the search filters for hotels","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/session/filters/hotels","href":"/booking-engine-api/build/reference/session/patch-session-filters-hotels"},{"title":"Update the user sorting preferences","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/session/sortOrder/rooms","href":"/booking-engine-api/build/reference/session/patch-session-sortorder-rooms"},{"title":"Update the user sorting preferences for hotels","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/session/sortOrder/hotels","href":"/booking-engine-api/build/reference/session/patch-session-sortorder-hotels"},{"title":"Delete the user session","openapi":"booking-engine-api/open-api/booking-engine-api.json DELETE /v2/{sessionId}/session","href":"/booking-engine-api/build/reference/session/delete-session"}]},{"group":"Search","pages":[{"title":"Provides hotels availabilities","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/search/hotels","href":"/booking-engine-api/build/reference/search/get-search-hotels"},{"title":"Provides rooms availabilities","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/search/rooms","href":"/booking-engine-api/build/reference/search/get-search-rooms"},{"title":"Provides extra availabilities","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/search/extras","href":"/booking-engine-api/build/reference/search/get-search-extras"}]},{"group":"Description","pages":[{"title":"Gets hotels descriptions","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/hotels","href":"/booking-engine-api/build/reference/description/get-description-hotels"},{"title":"Get the hotel description","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/hotels/{hotelId}","href":"/booking-engine-api/build/reference/description/get-description-hotels-hotelid"},{"title":"Gets rooms descriptions","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/rooms","href":"/booking-engine-api/build/reference/description/get-description-rooms"},{"title":"Gets the room description","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/rooms/{roomId}","href":"/booking-engine-api/build/reference/description/get-description-rooms-roomid"},{"title":"Gets rates descriptions","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/rates","href":"/booking-engine-api/build/reference/description/get-description-rates"},{"title":"Gets the rate descriptions","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/rates/{rateId}","href":"/booking-engine-api/build/reference/description/get-description-rates-rateid"},{"title":"Gets extras descriptions","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/extras","href":"/booking-engine-api/build/reference/description/get-description-extras"},{"title":"Gets the extra descriptions","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/description/extras/{extraId}","href":"/booking-engine-api/build/reference/description/get-description-extras-extraid"}]},{"group":"Promotion","pages":[{"title":"Provides an ongoing promotion","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/promotion","href":"/booking-engine-api/build/reference/promotion/get-promotion"}]},{"group":"Loyalty","pages":[{"title":"Retrieve the available loyalty program config","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/loyalty/config","href":"/booking-engine-api/build/reference/loyalty/get-loyalty-config"},{"title":"Patch logged in loyalty member","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/loyalty/login","href":"/booking-engine-api/build/reference/loyalty/patch-loyalty-login"},{"title":"Retrieve the loyalty member information","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/loyalty/member","href":"/booking-engine-api/build/reference/loyalty/get-loyalty-member"},{"title":"Patch logged out loyalty member","openapi":"booking-engine-api/open-api/booking-engine-api.json PATCH /v2/{sessionId}/loyalty/logout","href":"/booking-engine-api/build/reference/loyalty/patch-loyalty-logout"}]},{"group":"Basket","pages":[{"title":"Add a room to the session's basket","openapi":"booking-engine-api/open-api/booking-engine-api.json POST /v2/{sessionId}/basket/rooms","href":"/booking-engine-api/build/reference/basket/post-basket-rooms"},{"title":"Add an extra to the session's basket","openapi":"booking-engine-api/open-api/booking-engine-api.json POST /v2/{sessionId}/basket/extras","href":"/booking-engine-api/build/reference/basket/post-basket-extras"},{"title":"Retrieve the content of the basket","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/basket","href":"/booking-engine-api/build/reference/basket/get-basket"},{"title":"Get a quote for the basket","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/quote","href":"/booking-engine-api/build/reference/basket/get-quote"},{"title":"Accept a quote","openapi":"booking-engine-api/open-api/booking-engine-api.json POST /v2/{sessionId}/quote","href":"/booking-engine-api/build/reference/basket/post-quote"},{"title":"Get sales terms","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/terms","href":"/booking-engine-api/build/reference/basket/get-terms"},{"title":"Clear the session's basket","openapi":"booking-engine-api/open-api/booking-engine-api.json DELETE /v2/{sessionId}/basket","href":"/booking-engine-api/build/reference/basket/delete-basket"}]},{"group":"Booking","pages":[{"title":"Create a booking access token","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/booking/{bookingReference}/token","href":"/booking-engine-api/build/reference/booking/get-booking-token"},{"title":"Get the confirmation of a booking","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/booking/{sessionId}/confirmation","href":"/booking-engine-api/build/reference/booking/get-booking-confirmation"}]},{"group":"Configuration","pages":[{"title":"Gets the engine theme","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/configuration/theme","href":"/booking-engine-api/build/reference/configuration/get-configuration-theme"},{"title":"Gets the engine configuration","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/configuration/engine","href":"/booking-engine-api/build/reference/configuration/get-configuration-engine"},{"title":"Gets the plugins configuration","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/configuration/plugins","href":"/booking-engine-api/build/reference/configuration/get-configuration-plugins"}]},{"group":"Resources","pages":[{"title":"Get countries and their corresponding phone constraints","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/resources/countries","href":"/booking-engine-api/build/reference/resources/get-resources-countries"},{"title":"Get currencies","openapi":"booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/resources/currencies","href":"/booking-engine-api/build/reference/resources/get-resources-currencies"}]}]},{"title":"Best practices","tag":"★","href":"/booking-engine-api/build/best-practices"}]},{"group":"Resources","icon":"toolbox","pages":[{"group":"Use cases","pages":[{"title":"Conversational booking agent","href":"/booking-engine-api/resources/use-cases/conversational-booking-agent"},{"title":"Alternative availability","href":"/booking-engine-api/resources/use-cases/alternative-availability"},{"title":"Promotional campaigns","href":"/booking-engine-api/resources/use-cases/promotional-campaigns"},{"title":"Last-step discount","href":"/booking-engine-api/resources/use-cases/last-step-discount"},{"title":"Abandoned booking recovery","href":"/booking-engine-api/resources/use-cases/abandoned-booking-recovery"},{"title":"Branded confirmation page","href":"/booking-engine-api/resources/use-cases/branded-confirmation-page"}]},{"title":"API collections","tag":"★","href":"/overview/resources/api-collections"},{"title":"Changelog","href":"/booking-engine-api/resources/changelog"}]}]},{"item":"Gift Shop API","icon":"gift","pages":[{"title":"Gift Shop API","href":"/gift-shop-api/get-started/introduction"}]}]},{"tab":"Guest Management","icon":"users","menu":[{"item":"CRM API","icon":"address-book","pages":[{"title":"CRM API","href":"/crm-api/get-started/introduction"}]}],"pages":[{"title":"Guest Management","href":"/crm-api/get-started/introduction"}]}]},"basePath":"","title":"Create a new session - D-EDGE Docs","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BgGj2PGS.js","utils-BhNOqRKb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BAgRNUZo.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CGkb0TPw.js","snippetPresets-ChLkL1a6.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Ef10Jrbx.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DlVCnjU8.js","shallow-BA55zJxQ.js","getApiPlaygroundDisplay-DR09dKtp.js","CodeSnippet-BZ8J8Kll.js","CodeSnippets-CcguVheG.js","Page-C7x-eUfk.js","getPastedJson-D5UqeqBp.js","icon-DpD0l99C.js","MethodPill-Wg2NXsp_.js","DuplicateIcon-CCSyX8lh.js","createIcon-C4Ukv9HX.js","DynamicMarkdown-RhjEuCHC.js","SectionHeading-DL1MykRq.js","axios-vUo_bRtp.js","Markdown-BwQ4RMdp.js","dist-CiVXVcSh.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-Dic2Jtb2.js"]}