Saoma calls your API to keep your inventory in sync: whenever something
changes the availability of a connected venue, Saoma sends every available
slot of the affected days, for each of your products mapped to a Saoma
treatment. You replace those days on your side.This page describes the request Saoma sends. You implement the endpoint.
Setup
You give Saoma your base URL (one per environment, e.g. staging and
production) and a bearer token per environment.
The venue enables the integration in Saoma (Venue › Integrations) and
enters its venue id on your platform (e.g. its Staycation hotel ID).
The venue maps each of your products to one Saoma treatment variant.
A product = one treatment at one duration (e.g. Body massage 60 min).
As soon as a venue is enabled or a mapping changes, Saoma pushes the next 62
days for that venue.
Request
POST {base_url}/saoma/{venue_id}/experiences/{product_id}/inventoryAuthorization: Bearer {your_token}Content-Type: application/json
One request per product. A request carries one or several days.
Path parameters
string
required
The venue’s id on your platform, as entered by the venue in its Saoma
integration settings.
string
required
Your product id (e.g. Staycation experience id), as mapped by the venue.
Body
InventoryDate[]
required
The days being replaced.
Show InventoryDate
string (YYYY-MM-DD)
required
Day in the venue’s local calendar.
InventorySlot[]
required
Every available slot of the day for this product. An empty array
means nothing can be booked that day (fully booked, blocked or closed).
Show InventorySlot
string (HH:MM)
required
Start time in the venue’s local time. No timezone, no UTC
conversion.
string (HH:MM)
required
startTime + the treatment duration, in local time. A slot that ends
after midnight (23:30 → 00:30) belongs to the day it starts
on.
integer
required
How many units of the product can still be booked at this start time
(always ≥ 1). A duo product counts as one unit and uses two places.
How to apply it
Replace each day you receive: delete every slot you hold for that product
on that date, then store the slots of the request. A slot absent from the
request is no longer available.
Days not in the request are unchanged.
Times are the venue’s local wall-clock time. Use the venue’s timezone if
you need an absolute instant.
Out-of-hours slots (sold with a surcharge in Saoma) are never sent.
Saoma may send the same day several times: applying a request twice gives the
same result.
When Saoma pushes
Event
Days sent
Booking created, moved or cancelled (any channel)
The day(s) of the booking
Therapist assigned to a booking
The day of the booking
Slot or treatment room blocked or reopened
The blocked day, or all days for a recurring block
Therapist schedule or absence changed
The changed days
Integration enabled, mapping added or removed
Next 62 days
Nightly full resync (02:00 UTC) or Resync button
Next 62 days
Changes are sent within about a minute. Several changes on the same day are
merged into one push. The horizon is 62 days, today included.
Responses and retries
Reply with any 2xx status to acknowledge. Saoma waits 10 seconds for
your response.Any other status, a timeout or a network error is retried with an increasing
delay (1, 2, 4, 8… minutes, capped at 1 hour), up to 10 attempts. After that
the day is dropped until the next nightly resync. Every call, inbound or
outbound, is logged on the Saoma side for debugging.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Saoma API","description":"Integrate Saoma spa availability and bookings into your platform.","colors":{"primary":"#8B7355","light":"#C9A96E","dark":"#5C4A32"},"favicon":"https://mintcdn.com/ea-bad13494/bZ-Bl4m9L6G1rgrd/favicon.svg?fit=max\u0026auto=format\u0026n=bZ-Bl4m9L6G1rgrd\u0026q=85\u0026s=837b4dc0bea5d3b041776a58d73dba7e","footer":{"socials":{"website":"https://saoma.io"}},"seo":{"metatags":{"canonical":"https://docs.saoma.io"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ea-bad13494","hasAudioNarration":false,"actualSubdomain":"ea-bad13494","customDomains":["docs.saoma.io"],"gitSource":{"type":"github","owner":"micharozen","repo":"lymfea-app","deployBranch":"main","contentDirectory":"docs/partners","isPrivate":true,"mountPath":"","label":"","_id":"6b10e41f9ffae5051c4129b5"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afd62927555a5d8701eba7f","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":11},{"language":"default","tag":"Documentation","count":10},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Bookings","count":3},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Availability","count":2},{"language":"default","tag":"Customers","count":2},{"language":"default","tag":"Venues","count":2},{"language":"default","tag":"Treatments","count":1},{"language":"default","tag":"Webhooks","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area p,#content-area li,#content-area td,#content-area th,#content-area .prose,#content-area .prose p,#content-area .prose li{font-size:0.875rem;line-height:1.6}#content-area h1{font-size:1.75rem;line-height:1.25}#content-area h2{font-size:1.25rem;line-height:1.3}#content-area h3{font-size:1.05rem;line-height:1.35}#content-area h4{font-size:0.95rem}#content-area .eyebrow{font-size:0.8rem}#sidebar a,#sidebar li,#sidebar span{font-size:0.78rem}#sidebar .sidebar-group-title,#sidebar h5,#sidebar [class*=\"group-title\"],#sidebar [class*=\"GroupTitle\"]{font-size:0.9rem!important;font-weight:600;letter-spacing:0.01em;text-transform:none;color:var(--tw-prose-headings, #1a1a1a)}#table-of-contents a,#table-of-contents li{font-size:0.8rem}#content-area code{font-size:0.825rem}#content-area pre code{font-size:0.8rem;line-height:1.55}#content-area .callout,#content-area .callout p{font-size:0.85rem}"}]}
{"page":{"pagePath":"api-reference/webhooks/availability-push","slug":"/api-reference/webhooks/availability-push","pageMetadata":{"title":"Availability push","description":"Saoma pushes a venue's available slots to your endpoint every time they change.","href":"/api-reference/webhooks/availability-push"},"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: \"Saoma pushes a venue’s available slots to your endpoint every time they change.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Saoma `,_jsx(_components.strong,{children:`calls your API`}),` to keep your inventory in sync: whenever something\nchanges the availability of a connected venue, Saoma sends every available\nslot of the affected days, for each of your products mapped to a Saoma\ntreatment. You replace those days on your side.`]}),`\n`,_jsx(_components.p,{children:`This page describes the request Saoma sends. You implement the endpoint.`}),`\n`,_jsx(Heading,{level:`2`,id:`setup`,children:`Setup`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`You`}),` give Saoma your base URL (one per environment, e.g. staging and\nproduction) and a `,_jsx(_components.strong,{children:`bearer token`}),` per environment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The venue`}),` enables the integration in Saoma (`,_jsx(_components.em,{children:`Venue › Integrations`}),`) and\nenters `,_jsx(_components.strong,{children:`its venue id on your platform`}),` (e.g. its Staycation hotel ID).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The venue`}),` maps each of your products to one Saoma treatment variant.\nA product = one treatment at one duration (e.g. `,_jsx(_components.em,{children:`Body massage 60 min`}),`).`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`As soon as a venue is enabled or a mapping changes, Saoma pushes the next 62\ndays for that venue.`}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {base_url}/saoma/{venue_id}/experiences/{product_id}/inventory`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer {your_token}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`One request per product. A request carries one or several days.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`venue_id`,type:`string`,required:true,id:`param-venue-id`,children:_jsx(_components.p,{children:`The venue’s id on your platform, as entered by the venue in its Saoma\nintegration settings.`})}),`\n`,_jsx(ParamField,{path:`product_id`,type:`string`,required:true,id:`param-product-id`,children:_jsx(_components.p,{children:`Your product id (e.g. Staycation experience id), as mapped by the venue.`})}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsxs(ParamField,{body:`dates`,type:`InventoryDate[]`,required:true,id:`param-dates`,children:[_jsx(_components.p,{children:`The days being replaced.`}),_jsxs(Expandable,{title:`InventoryDate`,children:[_jsx(ParamField,{body:`date`,type:`string (YYYY-MM-DD)`,required:true,id:`param-date`,children:_jsxs(_components.p,{children:[`Day in the venue’s `,_jsx(_components.strong,{children:`local`}),` calendar.`]})}),_jsxs(ParamField,{body:`slots`,type:`InventorySlot[]`,required:true,id:`param-slots`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Every`}),` available slot of the day for this product. An empty array\nmeans nothing can be booked that day (fully booked, blocked or closed).`]}),_jsxs(Expandable,{title:`InventorySlot`,children:[_jsx(ParamField,{body:`startTime`,type:`string (HH:MM)`,required:true,id:`param-start-time`,children:_jsxs(_components.p,{children:[`Start time in the venue’s `,_jsx(_components.strong,{children:`local time`}),`. No timezone, no UTC\nconversion.`]})}),_jsx(ParamField,{body:`endTime`,type:`string (HH:MM)`,required:true,id:`param-end-time`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`startTime`}),` + the treatment duration, in local time. A slot that ends\nafter midnight (`,_jsx(_components.code,{children:`23:30`}),` → `,_jsx(_components.code,{children:`00:30`}),`) belongs to the day it `,_jsx(_components.strong,{children:`starts`}),`\non.`]})}),_jsx(ParamField,{body:`stock`,type:`integer`,required:true,id:`param-stock`,children:_jsx(_components.p,{children:`How many units of the product can still be booked at this start time\n(always ≥ 1). A duo product counts as one unit and uses two places.`})})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-apply-it`,children:`How to apply it`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Replace each day you receive`}),`: delete every slot you hold for that product\non that date, then store the slots of the request. A slot absent from the\nrequest is no longer available.`]}),`\n`,_jsx(_components.li,{children:`Days not in the request are unchanged.`}),`\n`,_jsxs(_components.li,{children:[`Times are the venue’s `,_jsx(_components.strong,{children:`local wall-clock time`}),`. Use the venue’s timezone if\nyou need an absolute instant.`]}),`\n`,_jsx(_components.li,{children:`Out-of-hours slots (sold with a surcharge in Saoma) are never sent.`}),`\n`,_jsx(_components.li,{children:`Saoma may send the same day several times: applying a request twice gives the\nsame result.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-saoma-pushes`,children:`When Saoma pushes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event`}),_jsx(_components.th,{children:`Days sent`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Booking created, moved or cancelled (any channel)`}),_jsx(_components.td,{children:`The day(s) of the booking`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Therapist assigned to a booking`}),_jsx(_components.td,{children:`The day of the booking`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Slot or treatment room blocked or reopened`}),_jsx(_components.td,{children:`The blocked day, or all days for a recurring block`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Therapist schedule or absence changed`}),_jsx(_components.td,{children:`The changed days`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Integration enabled, mapping added or removed`}),_jsx(_components.td,{children:`Next 62 days`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Nightly full resync (02:00 UTC) or `,_jsx(_components.em,{children:`Resync`}),` button`]}),_jsx(_components.td,{children:`Next 62 days`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Changes are sent `,_jsx(_components.strong,{children:`within about a minute`}),`. Several changes on the same day are\nmerged into one push. The horizon is `,_jsx(_components.strong,{children:`62 days`}),`, today included.`]}),`\n`,_jsx(Heading,{level:`2`,id:`responses-and-retries`,children:`Responses and retries`}),`\n`,_jsxs(_components.p,{children:[`Reply with any `,_jsx(_components.strong,{children:`2xx`}),` status to acknowledge. Saoma waits `,_jsx(_components.strong,{children:`10 seconds`}),` for\nyour response.`]}),`\n`,_jsx(_components.p,{children:`Any other status, a timeout or a network error is retried with an increasing\ndelay (1, 2, 4, 8… minutes, capped at 1 hour), up to 10 attempts. After that\nthe day is dropped until the next nightly resync. Every call, inbound or\noutbound, is logged on the Saoma side for debugging.`}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Availability push","description":"Saoma pushes a venue's available slots to your endpoint every time they change.","href":"/api-reference/webhooks/availability-push"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[407,416,"RequestExample,ResponseExample,Table}=_c"],[642,654,"RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missi"],[9181,9609,",`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Request`,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.partner.example/saoma/4242/experiences/77/inventory`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PARTNER_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dates\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"date\": \"2026-11-05\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"slots\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"startTime\": \"10:00\", \"endTime\": \"11:00\", \"stock\": 2 },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"startTime\": \"10:30\", \"endTime\": \"11:30\", \"stock\": 1 },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"startTime\": \"14:00\", \"endTime\": \"15:00\", \"stock\": 3 }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"date\": \"2026-11-06\", \"slots\": [] }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}"]]},"mdxExtracts":{"tableOfContents":[{"title":"Setup","slug":"setup","depth":2,"children":[]},{"title":"Request","slug":"request","depth":2,"children":[{"title":"Path parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Body","slug":"body","depth":3,"children":[]}]},{"title":"How to apply it","slug":"how-to-apply-it","depth":2,"children":[]},{"title":"When Saoma pushes","slug":"when-saoma-pushes","depth":2,"children":[]},{"title":"Responses and retries","slug":"responses-and-retries","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Request","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.partner.example/saoma/4242/experiences/77/inventory\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$PARTNER_TOKEN\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dates\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"date\": \"2026-11-05\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"slots\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"startTime\": \"10:00\", \"endTime\": \"11:00\", \"stock\": 2 },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"startTime\": \"10:30\", \"endTime\": \"11:30\", \"stock\": 1 },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"startTime\": \"14:00\", \"endTime\": \"15:00\", \"stock\": 3 }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"date\": \"2026-11-06\", \"slots\": [] }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"subdomain":"ea-bad13494","siteName":"Saoma API","title":"Availability push - Saoma API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/webhooks/availability-push","matchLevel":0},"v2":{"href":"/introduction","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T12:31:31.103Z","originalFileLocation":"api-reference/webhooks/availability-push.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=\"Saoma pushes a venue\u0026#x27;s available slots to your endpoint every time they change.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Saoma API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ea-bad13494/ph5PAni2E5B6mCtt/_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/ea-bad13494/ph5PAni2E5B6mCtt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ea-bad13494/ph5PAni2E5B6mCtt/_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/ea-bad13494/ph5PAni2E5B6mCtt/_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/ea-bad13494/ph5PAni2E5B6mCtt/_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/ea-bad13494/ph5PAni2E5B6mCtt/_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/ea-bad13494/ph5PAni2E5B6mCtt/_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/ea-bad13494/ph5PAni2E5B6mCtt/_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/ea-bad13494/ph5PAni2E5B6mCtt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Availability push - Saoma API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Saoma pushes a venue\u0026#x27;s available slots to your endpoint every time they change.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Saoma API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.saoma.io/api-reference/webhooks/availability-push\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ea-bad13494.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Availability+push\u0026amp;description=Saoma+pushes+a+venue%27s+available+slots+to+your+endpoint+every+time+they+change.\u0026amp;theme=5eab09de1431dfaff9eadda2\u0026amp;signature=ed7ad03b0b74b1fbb0b78dc289f8a921b694bd0e0a99868690a36ea8a0dbb35c\">\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=\"Availability push - Saoma API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Saoma pushes a venue\u0026#x27;s available slots to your endpoint every time they change.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ea-bad13494.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Availability+push\u0026amp;description=Saoma+pushes+a+venue%27s+available+slots+to+your+endpoint+every+time+they+change.\u0026amp;theme=5eab09de1431dfaff9eadda2\u0026amp;signature=ed7ad03b0b74b1fbb0b78dc289f8a921b694bd0e0a99868690a36ea8a0dbb35c\">\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/ea-bad13494/ph5PAni2E5B6mCtt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Saoma API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8B7355\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.saoma.io/api-reference/webhooks/availability-push\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhooks/availability-push.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.saoma.io/#organization\",\"name\":\"Saoma API\",\"url\":\"https://docs.saoma.io\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.saoma.io#website\",\"name\":\"Saoma API\",\"url\":\"https://docs.saoma.io\",\"publisher\":{\"@id\":\"https://docs.saoma.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.saoma.io/api-reference/webhooks/availability-push#webpage\",\"url\":\"https://docs.saoma.io/api-reference/webhooks/availability-push\",\"name\":\"Availability push\",\"description\":\"Saoma pushes a venue's available slots to your endpoint every time they change.\",\"dateModified\":\"2026-11-06T12:31:31.103Z\",\"isPartOf\":{\"@id\":\"https://docs.saoma.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.saoma.io/api-reference/webhooks/availability-push#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.saoma.io/api-reference/webhooks/availability-push#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Saoma API\",\"item\":\"https://docs.saoma.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Availability push\",\"item\":\"https://docs.saoma.io/api-reference/webhooks/availability-push\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.saoma.io/api-reference/webhooks/availability-push#article\",\"headline\":\"Availability push\",\"name\":\"Availability push\",\"description\":\"Saoma pushes a venue's available slots to your endpoint every time they change.\",\"url\":\"https://docs.saoma.io/api-reference/webhooks/availability-push\",\"mainEntityOfPage\":{\"@id\":\"https://docs.saoma.io/api-reference/webhooks/availability-push#webpage\"},\"dateModified\":\"2026-11-06T12:31:31.103Z\",\"publisher\":{\"@id\":\"https://docs.saoma.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.saoma.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Saoma API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Saoma API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/webhooks/availability-push.md","siteName":"Saoma API","nav":{"global":null,"versions":[{"version":"v1","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Venues","icon":"building","pages":[{"title":"List venues","api":"GET /v1/venues","href":"/api-reference/venues/list-venues"},{"title":"Retrieve a venue","api":"GET /v1/venues/{venue_id}","href":"/api-reference/venues/get-venue"}]},{"group":"Treatments","icon":"hand-sparkles","pages":[{"title":"List treatments","api":"GET /v1/venues/{venue_id}/treatments","href":"/api-reference/venues/list-treatments"}]},{"group":"Availability","icon":"calendar-days","pages":[{"title":"Get venue availability","api":"GET /v1/venues/{venue_id}/availability","href":"/api-reference/availability/get-availability"},{"title":"Get variant availability","api":"GET /v1/venues/{venue_id}/availability/variants/{variant_id}","href":"/api-reference/availability/get-variant-availability"}]},{"group":"Bookings","icon":"ticket","pages":[{"title":"Create a booking","api":"POST /v1/venues/{venue_id}/bookings","href":"/api-reference/bookings/create-booking"},{"title":"Retrieve a booking","api":"GET /v1/bookings/{booking_id}","tag":"Coming soon","href":"/api-reference/bookings/get-booking"},{"title":"Cancel a booking","api":"POST /v1/venues/{venue_id}/bookings/{booking_id}/cancel","description":"Cancel a booking you created.","href":"/api-reference/bookings/cancel-booking"}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Availability push","href":"/api-reference/webhooks/availability-push"}]},{"group":"Customers","icon":"users","pages":[{"title":"List customers of a venue","api":"GET /v1/venues/{venue_id}/customers","description":"Paginated list of the customers who have booked at a venue, with per-venue aggregated stats.","href":"/api-reference/customers/list-customers"},{"title":"List a customer's bookings at a venue","api":"GET /v1/venues/{venue_id}/customers/{customer_id}/bookings","href":"/api-reference/customers/list-customer-bookings"}]}]}]},{"version":"v2","pages":[{"title":"v2","href":"/introduction"}]}]},"basePath":"","title":"Availability push - Saoma API","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["2b790eda92"],"chunks":["ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","utils-D0Za9LU_.js","utils-BS41p-Nj.js","isEqual-Cnvzqd4L.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","snippetPresets-alIv9Yoc.js","style-to-object-BY3JEAdk.js","use-playground-group-access-c3bgmn-x.js","cloneDeep-4e5CS5ZI.js","v4-DIgz8zy6.js"]}