{"componentChunkName":"component---src-templates-simple-markdown-js","path":"/api/booking-flow/product/dates/","matchPath":"","result":{"data":{"markdownRemark":{"html":"<h1 style=\"position:relative;\"><a href=\"#dates\" aria-label=\"dates permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"dates\"></div>Dates</h1>\n<p>Once you have dealt with <a href=\"/api/booking-flow/product/pickups/\">pickup points</a> for an activity, it's time to search for dates. The API does not show dates if they are no longer available due to closures or no vacancies - you only see what is <em>available</em>.</p>\n<p>To search for dates in a specific activity, make the following request:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"85250497407114330000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`curl -X GET '{baseUrl}/activities/{activityUuid}/dates' \\\\\n-H 'X-Musement-Application: {applicationValue}' \\\\\n-H 'X-Musement-Version: 3.4.0' \\\\\n-H 'Authorization: Bearer {accessToken}'`, `85250497407114330000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-85250497407114330000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> GET <span class=\"token string\">'{baseUrl}/activities/{activityUuid}/dates'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'X-Musement-Application: {applicationValue}'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'X-Musement-Version: 3.4.0'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'Authorization: Bearer {accessToken}'</span></code></pre></div>\n      </div>\n<p>For activities with pickup points, you must include the selected pickup in the request:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"21478680884734260000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`curl -X GET '{baseUrl}/activities/{activityUuid}/dates?pickup={pickupUuid}' \\\\\n-H 'X-Musement-Application: {applicationValue}' \\\\\n-H 'X-Musement-Version: 3.4.0' \\\\\n-H 'Authorization: Bearer {accessToken}'`, `21478680884734260000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-21478680884734260000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> GET <span class=\"token string\">'{baseUrl}/activities/{activityUuid}/dates?pickup={pickupUuid}'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'X-Musement-Application: {applicationValue}'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'X-Musement-Version: 3.4.0'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'Authorization: Bearer {accessToken}'</span></code></pre></div>\n      </div>\n<p>The response contains an array of available dates, if any:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"35454186331975078000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`[\n\t{\n\t\t&quot;day&quot;: &quot;2021-06-13&quot;,\n\t\t&quot;sold_out&quot;: false\n\t},\n\t[...]\n\t{\n\t\t&quot;day&quot;: &quot;2021-06-14&quot;,\n\t\t&quot;sold_out&quot;: false\n\t},\n\t[...]\n\t{\n\t\t&quot;day&quot;: &quot;2021-06-15&quot;,\n\t&quot;sold_out&quot;: false\n\t},\n\t[...]\n]`, `35454186331975078000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-35454186331975078000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">[</span>\n\t<span class=\"token punctuation\">{</span>\n\t\t<span class=\"token property\">\"day\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"2021-06-13\"</span><span class=\"token punctuation\">,</span>\n\t\t<span class=\"token property\">\"sold_out\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">false</span>\n\t<span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n\t<span class=\"token punctuation\">[</span>...<span class=\"token punctuation\">]</span>\n\t<span class=\"token punctuation\">{</span>\n\t\t<span class=\"token property\">\"day\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"2021-06-14\"</span><span class=\"token punctuation\">,</span>\n\t\t<span class=\"token property\">\"sold_out\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">false</span>\n\t<span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n\t<span class=\"token punctuation\">[</span>...<span class=\"token punctuation\">]</span>\n\t<span class=\"token punctuation\">{</span>\n\t\t<span class=\"token property\">\"day\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"2021-06-15\"</span><span class=\"token punctuation\">,</span>\n\t<span class=\"token property\">\"sold_out\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">false</span>\n\t<span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n\t<span class=\"token punctuation\">[</span>...<span class=\"token punctuation\">]</span>\n<span class=\"token punctuation\">]</span></code></pre></div>\n      </div>\n<p>You can limit results to specific date ranges using the <code class=\"language-text\">date_from</code> and <code class=\"language-text\">date_to</code> query parameters:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"42436742811045590000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`curl -X GET '{baseUrl}/activities/{activityUuid}/dates?date_from={startDate}&date_to={endDate}' \\\\\n-H 'X-Musement-Application: {applicationValue}' \\\\\n-H 'X-Musement-Version: 3.4.0' \\\\\n-H 'Authorization: Bearer {accessToken}'`, `42436742811045590000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-42436742811045590000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> GET <span class=\"token string\">'{baseUrl}/activities/{activityUuid}/dates?date_from={startDate}&amp;date_to={endDate}'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'X-Musement-Application: {applicationValue}'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'X-Musement-Version: 3.4.0'</span> <span class=\"token punctuation\">\\</span>\n<span class=\"token parameter variable\">-H</span> <span class=\"token string\">'Authorization: Bearer {accessToken}'</span></code></pre></div>\n      </div>\n<p>If no <code class=\"language-text\">date_from</code> query parameter is present, today's date is used.</p>\n<p>Pay attention to the dates you use for the query parameters. If you accidentally swap the start and end dates, the API will return a 400 error status:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"43339375805754040000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`{\n\t&quot;code&quot;: &quot;1440&quot;,\n\t&quot;message&quot;: &quot;End date cannot be before start date.&quot;\n}`, `43339375805754040000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-43339375805754040000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n\t<span class=\"token property\">\"code\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"1440\"</span><span class=\"token punctuation\">,</span>\n\t<span class=\"token property\">\"message\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"End date cannot be before start date.\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n      </div>\n<p>This can also happen when no <code class=\"language-text\">date_from</code> parameter is specified, but the <code class=\"language-text\">date_to</code> parameter contains a date before today's date.</p>\n<p>Be aware of activity cutoff and confirmation times as well. Dates which fall into either of these time ranges will not be returned by the API.</p>\n<p>In the example below, taken from the <code class=\"language-text\">/activities/{activityUuid}</code> endpoint, the activity doesn't have a confirmation time, but it does have a cutoff of seven days:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"47382813464617930000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`{\n\t[...]\n\t&quot;max_confirmation_time&quot;: &quot;P0D&quot;,\n\t&quot;cutoff_time&quot;: &quot;P7D&quot;,\n\t[...]\n}`, `47382813464617930000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-47382813464617930000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n\t<span class=\"token punctuation\">[</span>...<span class=\"token punctuation\">]</span>\n\t<span class=\"token property\">\"max_confirmation_time\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"P0D\"</span><span class=\"token punctuation\">,</span>\n\t<span class=\"token property\">\"cutoff_time\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"P7D\"</span><span class=\"token punctuation\">,</span>\n\t<span class=\"token punctuation\">[</span>...<span class=\"token punctuation\">]</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n      </div>\n<p>Setting date query parameters to dates within the <code class=\"language-text\">cutoff_time</code> period will result in an empty array response:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"6815409976968234000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`[]`, `6815409976968234000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-6815409976968234000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">[</span><span class=\"token punctuation\">]</span></code></pre></div>\n      </div>\n<p>For more information about the <code class=\"language-text\">cutoff_time</code> property, refer to the <a href=\"/api/catalog/activities/cutoff-and-confirmation-times/\">page dedicated to cutoff and confirmation times</a>.</p>","headings":[{"value":"Dates","depth":1}]},"contentItem":{"data":{"lastModified":"2025-12-18T16:31:42.000Z","enableToc":null,"disableLastModified":null,"tocMaxDepth":null,"requestLogin":false}},"siteConfig":{"enableToc":false,"disableLastModified":false,"tocMaxDepth":4}},"pageContext":{"matchPath":"","id":"3cb98c60-4fb5-5345-8bd7-d86350c9af66__redocly content/api/booking-flow/product/dates/","seo":{"title":"Dates","description":"Viewing available dates for an activity via the Musement API is an important step of the booking flow.","image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"api/booking-flow/product/dates.md","pageBaseUrl":"/api/booking-flow/product/dates","type":"markdown","toc":{"enable":true,"maxDepth":4,"headings":[{"depth":1,"value":"Dates","id":"dates"}]},"data":{"title":"","redirectFrom":["/guide/availability/dates/","/api/partner/booking-flow/product/dates/"],"seo":{"description":"Viewing available dates for an activity via the Musement API is an important step of the booking flow."}},"catalogInfo":null,"link":"/api/booking-flow/product/dates/","sidebarName":"__alternative-sidebar__-data-24763-api-sidebars.yaml","isLanding":false,"showPrevButton":null,"showNextButton":null,"apiVersions":null,"apiVersionId":null,"isDefaultApiVersion":null}},"staticQueryHashes":["1123603147","1302185487","1344209882","1398840060","1520077861","1975142765","2667623876","2950305614","3240152602","3743992808","561138138"]}