Supertab.js provides a low-code way to start experiences on your pages.
See the guide on setting up experiences
for more details on how to create and configure experiences.When you need more control over what happens with experiences you can use Supertab.js to recieve callbacks
for specific events, entitlement statuses, or error conditions.
Specifies the nature and duration of purchased entitlement.Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.
The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.Example: "site.cf637646-71a4-430d-aaea-a66f1a48a83c"
Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a null value instead of a purchase ID.Each purchase in the array has the same structure as the previously described Purchase object.
Specifies the nature and duration of purchased entitlement.Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.
The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.Example: "site.cf637646-71a4-430d-aaea-a66f1a48a83c"
Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a null value instead of a purchase ID.Each purchase in the array has the same structure as the previously described Purchase object.
Starts the login flow. Opens Supertab SSO popup window if user is unknown.
Otherwise will log user in silently if auth data are found but has expired.Returns a promise which resolves with the paywall summary.
Specifies the nature and duration of purchased entitlement.Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.
The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.Example: "site.cf637646-71a4-430d-aaea-a66f1a48a83c"
Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a null value instead of a purchase ID.Each purchase in the array has the same structure as the previously described Purchase object.
Specifies the nature and duration of purchased entitlement.Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.
The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.Example: "site.cf637646-71a4-430d-aaea-a66f1a48a83c"
Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a null value instead of a purchase ID.Each purchase in the array has the same structure as the previously described Purchase object.
Callback function called when user leaves the purchase flow either as a result of successful purchase or cancellation.Returns a promise which resolves with the purchase button summary. See Purchase button summary for more details.
Specifies the nature and duration of purchased entitlement.Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.
The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.Example: "site.cf637646-71a4-430d-aaea-a66f1a48a83c"
Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a null value instead of a purchase ID.Each purchase in the array has the same structure as the previously described Purchase object.
const supertabButton = await supertabClient.createPurchaseButton({ containerElement: document.getElementById("supertab-button-container"), experienceId: "experience.abc", onDone: ({ priorEntitlement, purchase }) => { if (priorEntitlement) { // User has prior entitlement to the content. return; } if (purchase) { if (purchase.status === "completed") { // Purchase was completed successfully. } else { // Purchase was not completed. User may have // canceled the payment dialog if purchase // required payment. } } else { // User has canceled the flow and did not // attempt to purchase the offering. } }});
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Supertab docs","colors":{"primary":"#0A0E1A","light":"#F3F3F4","dark":"#0A0E1A"},"logo":{"light":"https://mintcdn.com/supertab/bP-daIW8qZO4pzbo/logo/light.svg?fit=max\u0026auto=format\u0026n=bP-daIW8qZO4pzbo\u0026q=85\u0026s=47631a4a02f7428d1c2479d804aea54d","dark":"https://mintcdn.com/supertab/bP-daIW8qZO4pzbo/logo/dark.svg?fit=max\u0026auto=format\u0026n=bP-daIW8qZO4pzbo\u0026q=85\u0026s=0fae8412d2464504a082bd910292aa43"},"favicon":"https://mintcdn.com/supertab/nIjMo5xiY0_gRI-4/favicon.webp?fit=max\u0026auto=format\u0026n=nIjMo5xiY0_gRI-4\u0026q=85\u0026s=419af455c4dcfc9b93f2893e0ccec259","api":{"playground":{"display":"simple"}},"navbar":{"links":[{"href":"https://support.supertab.co/hc/en-us/requests/new","label":"Support"}],"primary":{"type":"button","label":"Business Portal","href":"https://business.supertab.co"}},"footer":{"socials":{"x":"https://x.com/getsupertab","linkedin":"https://www.linkedin.com/company/supertab"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"supertab","hasAudioNarration":false,"actualSubdomain":"supertab","customDomains":["docs.supertab.co"],"gitSource":{"type":"github","owner":"laterpay","repo":"supertab-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a340f739919529d42026a32","collectionId":"9c179565-a860-4006-b96f-8f17e9a8d6c6","schemaVersion":"v3"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a340f739919529d42026a32:success","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"API Reference","count":27},{"language":"default","tag":"Supertab.js","count":14},{"language":"default","tag":"Customer API","count":12},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Endpoints","count":9},{"language":"default","tag":"Merchant API","count":6},{"language":"default","tag":"Introduction","count":5},{"language":"default","tag":"Supertab Experiences","count":5},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Integrate","count":3}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@supertab.co"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"editor-v7-file-tree","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"supertab-js/experiences/starting-experiences","slug":"/supertab-js/experiences/starting-experiences","pageMetadata":{"title":"Starting experiences","description":"Launch an experience using Supertab.js","href":"/supertab-js/experiences/starting-experiences"},"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: \"Launch an experience using Supertab.js\"\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={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Supertab.js provides a low-code way to start experiences on your pages.\nSee `,_jsx(_components.a,{href:`/supertab-experiences/experiences`,children:`the guide on setting up experiences`}),`\nfor more details on how to create and configure experiences.`]}),`\n`,_jsx(_components.p,{children:`When you need more control over what happens with experiences you can use Supertab.js to recieve callbacks\nfor specific events, entitlement statuses, or error conditions.`}),`\n`,_jsx(Heading,{level:`2`,id:`pre-requisites`,children:`Pre-requisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`You have `,_jsx(_components.a,{href:`/supertab-experiences/experiences`,children:`created an experience`}),` in the business portal.`]}),`\n`,_jsxs(_components.li,{children:[`Supertab.js is `,_jsx(_components.a,{href:`/supertab-js/installation`,children:`installed on your page`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`initialization`,children:`Initialization`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` supertabClient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Supertab`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`clientId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"client.your_client\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})]}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`2`,id:`paywall-supertab-createpaywall`,children:[`Paywall: `,_jsx(_components.code,{children:`supertab.createPaywall`})]}),`\n`,_jsx(_components.p,{children:`Invoke the Paywall on page load or in response to user action.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` supertabClient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Supertab`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`clientId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"test_client.abc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` supertabPaywall`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` supertabClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createPaywall`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` experienceId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"experience.abc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`supertabPaywall`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`show`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`createPaywall`}),` accepts an object with the following properties:`]}),`\n`,_jsx(ParamField,{path:`experienceId`,type:`string`,required:true,id:`param-experience-id`,children:_jsx(_components.p,{children:`ID of the paywall experience created in Business Portal.`})}),`\n`,_jsx(ParamField,{path:`purchaseMetadata`,type:`object`,id:`param-purchase-metadata`,children:_jsx(_components.p,{children:`Key-value pairs of custom information associated with the purchase.`})}),`\n`,_jsx(Heading,{level:`3`,id:`return-value`,children:`Return value`}),`\n`,_jsx(_components.p,{children:`A promise which resolves with an object with following properties:`}),`\n`,_jsxs(ResponseField,{name:`show`,type:`function`,id:`param-show`,children:[_jsx(_components.p,{children:`Show the paywall UI.`}),_jsx(_components.p,{children:`Returns a promise which resolves with the paywall summary.`}),_jsx(Info,{children:_jsx(_components.p,{children:`If current user has prior entitlement to the content, the paywall will not\nshow.`})}),_jsxs(Expandable,{title:`StateSummary`,children:[_jsxs(ResponseField,{name:`priorEntitlement`,type:`EntitlementStatus | null`,id:`param-prior-entitlement`,children:[_jsxs(_components.p,{children:[`Any prior entitlement of the current user. `,_jsx(_components.code,{children:`null`}),` if user has no prior entitlement.`]}),_jsxs(Expandable,{title:`prior entitlement`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]}),_jsx(ResponseField,{name:`authStatus`,type:`AuthStatus`,id:`param-auth-status`,children:_jsxs(_components.p,{children:[`Current authentication status of the user. Possible values: `,_jsx(_components.code,{children:`missing`}),`, `,_jsx(_components.code,{children:`expired`}),`, `,_jsx(_components.code,{children:`valid`}),`.`]})}),_jsxs(ResponseField,{name:`purchase`,type:`Purchase | null`,id:`param-purchase`,children:[_jsxs(_components.p,{children:[`Purchase object if launching the flow resulted in a purchase. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`purchase object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:[_jsx(_components.p,{children:`ID of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"purchase.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsxs(ResponseField,{name:`offeringId`,type:`string`,id:`param-offering-id`,children:[_jsx(_components.p,{children:`ID of the purchased offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`purchasedAt`,type:`string | null`,id:`param-purchased-at`,children:[_jsx(_components.p,{children:`Date and time of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`completedAt`,type:`string | null`,id:`param-completed-at`,children:[_jsx(_components.p,{children:`Date and time of the purchase completion, i.e. when payment was successful if purchase required payment.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:[_jsx(_components.p,{children:`A summary of the purchase, usually including the website name and the type of a given entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"The Leek - 24 Hours Time Pass\"`})]})]}),_jsxs(ResponseField,{name:`price`,type:`Price`,id:`param-price`,children:[_jsx(_components.p,{children:`Price object of the purchase.`}),_jsxs(Expandable,{title:`Price object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`5000`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsx(ResponseField,{name:`status`,type:`PurchaseStatus`,id:`param-status`,children:_jsxs(_components.p,{children:[`Status of the purchase. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`abandoned`}),`.`]})}),_jsx(ResponseField,{name:`metadata`,type:`Metadata`,id:`param-metadata`,children:_jsx(_components.p,{children:`Key-value pairs of custom information associated with the purchase.`})}),_jsxs(ResponseField,{name:`entitlementStatus`,type:`EntitlementStatus | null`,id:`param-entitlement-status`,children:[_jsx(_components.p,{children:`The customer’s access (if any) as a result of this purchase.`}),_jsxs(Expandable,{title:`Entitlement status object`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-1`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-1`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-1`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-1`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]})]})]}),_jsxs(ResponseField,{name:`purchasedOffering`,type:`Offering | null`,id:`param-purchased-offering`,children:[_jsxs(_components.p,{children:[`Offering object if user has purchased an offering. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`offering object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:[_jsx(_components.p,{children:`ID of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-1`,children:[_jsx(_components.p,{children:`Description of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"24 Hours Time Pass to The Leek\"`})]})]}),_jsxs(ResponseField,{name:`entitlementDetails`,type:`EntitlementDetails`,id:`param-entitlement-details`,children:[_jsx(_components.p,{children:`Specifies the nature and duration of purchased entitlement.`}),_jsx(_components.p,{children:`Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.`}),_jsxs(Expandable,{title:`Entitlement details object`,children:[_jsxs(ResponseField,{name:`duration`,type:`string`,id:`param-duration`,children:[_jsxs(_components.p,{children:[`The duration of the entitlement as `,_jsx(_components.code,{children:`{length}{unit}`}),`.`]}),_jsx(_components.p,{children:`Examples:`}),_jsx(CodeBlock,{numberOfLines:`17`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 1 year`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"1y\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 2 months`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"2M\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 3 weeks`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"3w\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 4 days`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"4d\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 5 hours`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"5h\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 6 minutes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"6m\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 7 seconds`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"7s\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsx(ResponseField,{name:`isRecurring`,type:`boolean`,id:`param-is-recurring`,children:_jsx(_components.p,{children:`Whether the entitlement is sold on a recurring basis (subscription).`})}),_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-2`,children:[_jsx(_components.p,{children:`The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]})]})]}),_jsx(ResponseField,{name:`price`,type:`Price`,id:`param-price-1`,children:_jsx(_components.p,{children:`Price object of the offering.`})})]})]}),_jsxs(ResponseField,{name:`tab`,type:`Tab`,id:`param-tab`,children:[_jsx(_components.p,{children:`The users tab`}),_jsxs(Expandable,{title:`Tab object`,children:[_jsx(ResponseField,{name:`testMode`,type:`boolean`,id:`param-test-mode`,children:_jsx(_components.p,{children:`Whether the tab is in test mode.`})}),_jsxs(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-1`,children:[_jsx(_components.p,{children:`The currency of the tab.`}),_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-1`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-1`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-1`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})]}),_jsxs(ResponseField,{name:`total`,type:`Price`,id:`param-total`,children:[_jsx(_components.p,{children:`The total amount of the tab.`}),_jsxs(Expandable,{title:`Total object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-1`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-2`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-2`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-2`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-2`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-2`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`limit`,type:`Price`,id:`param-limit`,children:[_jsx(_components.p,{children:`The limit of the tab. When reached, the payment will be required.`}),_jsxs(Expandable,{title:`Limit object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-2`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-3`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-3`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-3`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-3`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-3`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`purchases`,type:`Array\u003cPurchase>`,id:`param-purchases`,children:[_jsxs(_components.p,{children:[`Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a `,_jsx(_components.code,{children:`null`}),` value instead of a purchase ID.`]}),_jsxs(_components.p,{children:[`Each purchase in the array has the same structure as the previously described `,_jsx(_components.a,{href:`#param-purchase`,children:`Purchase object`}),`.`]})]})]})]}),_jsx(ResponseField,{name:`paymentResult`,type:`boolean`,id:`param-payment-result`,children:_jsxs(_components.p,{children:[`If a purchase required payment, this will be `,_jsx(_components.code,{children:`true`}),` if payment was successful. `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`hide`,type:`function`,id:`param-hide`,children:[_jsx(_components.p,{children:`Hide the paywall UI.`}),_jsx(_components.p,{children:`Returns a promise which resolves with the paywall summary.`}),_jsxs(Expandable,{title:`StateSummary`,children:[_jsxs(ResponseField,{name:`priorEntitlement`,type:`EntitlementStatus | null`,id:`param-prior-entitlement-1`,children:[_jsxs(_components.p,{children:[`Any prior entitlement of the current user. `,_jsx(_components.code,{children:`null`}),` if user has no prior entitlement.`]}),_jsxs(Expandable,{title:`prior entitlement`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-3`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-2`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-2`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-2`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]}),_jsx(ResponseField,{name:`authStatus`,type:`AuthStatus`,id:`param-auth-status-1`,children:_jsxs(_components.p,{children:[`Current authentication status of the user. Possible values: `,_jsx(_components.code,{children:`missing`}),`, `,_jsx(_components.code,{children:`expired`}),`, `,_jsx(_components.code,{children:`valid`}),`.`]})}),_jsxs(ResponseField,{name:`purchase`,type:`Purchase | null`,id:`param-purchase-1`,children:[_jsxs(_components.p,{children:[`Purchase object if launching the flow resulted in a purchase. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`purchase object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-2`,children:[_jsx(_components.p,{children:`ID of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"purchase.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsxs(ResponseField,{name:`offeringId`,type:`string`,id:`param-offering-id-1`,children:[_jsx(_components.p,{children:`ID of the purchased offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`purchasedAt`,type:`string | null`,id:`param-purchased-at-1`,children:[_jsx(_components.p,{children:`Date and time of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`completedAt`,type:`string | null`,id:`param-completed-at-1`,children:[_jsx(_components.p,{children:`Date and time of the purchase completion, i.e. when payment was successful if purchase required payment.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-2`,children:[_jsx(_components.p,{children:`A summary of the purchase, usually including the website name and the type of a given entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"The Leek - 24 Hours Time Pass\"`})]})]}),_jsxs(ResponseField,{name:`price`,type:`Price`,id:`param-price-2`,children:[_jsx(_components.p,{children:`Price object of the purchase.`}),_jsxs(Expandable,{title:`Price object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-3`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`5000`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-4`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-4`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-4`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-4`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-4`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsx(ResponseField,{name:`status`,type:`PurchaseStatus`,id:`param-status-1`,children:_jsxs(_components.p,{children:[`Status of the purchase. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`abandoned`}),`.`]})}),_jsx(ResponseField,{name:`metadata`,type:`Metadata`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Key-value pairs of custom information associated with the purchase.`})}),_jsxs(ResponseField,{name:`entitlementStatus`,type:`EntitlementStatus | null`,id:`param-entitlement-status-1`,children:[_jsx(_components.p,{children:`The customer’s access (if any) as a result of this purchase.`}),_jsxs(Expandable,{title:`Entitlement status object`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-4`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-3`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-3`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-3`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]})]})]}),_jsxs(ResponseField,{name:`purchasedOffering`,type:`Offering | null`,id:`param-purchased-offering-1`,children:[_jsxs(_components.p,{children:[`Offering object if user has purchased an offering. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`offering object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-3`,children:[_jsx(_components.p,{children:`ID of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-3`,children:[_jsx(_components.p,{children:`Description of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"24 Hours Time Pass to The Leek\"`})]})]}),_jsxs(ResponseField,{name:`entitlementDetails`,type:`EntitlementDetails`,id:`param-entitlement-details-1`,children:[_jsx(_components.p,{children:`Specifies the nature and duration of purchased entitlement.`}),_jsx(_components.p,{children:`Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.`}),_jsxs(Expandable,{title:`Entitlement details object`,children:[_jsxs(ResponseField,{name:`duration`,type:`string`,id:`param-duration-1`,children:[_jsxs(_components.p,{children:[`The duration of the entitlement as `,_jsx(_components.code,{children:`{length}{unit}`}),`.`]}),_jsx(_components.p,{children:`Examples:`}),_jsx(CodeBlock,{numberOfLines:`17`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 1 year`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"1y\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 2 months`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"2M\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 3 weeks`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"3w\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 4 days`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"4d\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 5 hours`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"5h\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 6 minutes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"6m\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 7 seconds`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"7s\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsx(ResponseField,{name:`isRecurring`,type:`boolean`,id:`param-is-recurring-1`,children:_jsx(_components.p,{children:`Whether the entitlement is sold on a recurring basis (subscription).`})}),_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-5`,children:[_jsx(_components.p,{children:`The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]})]})]}),_jsx(ResponseField,{name:`price`,type:`Price`,id:`param-price-3`,children:_jsx(_components.p,{children:`Price object of the offering.`})})]})]}),_jsxs(ResponseField,{name:`tab`,type:`Tab`,id:`param-tab-1`,children:[_jsx(_components.p,{children:`The users tab`}),_jsxs(Expandable,{title:`Tab object`,children:[_jsx(ResponseField,{name:`testMode`,type:`boolean`,id:`param-test-mode-1`,children:_jsx(_components.p,{children:`Whether the tab is in test mode.`})}),_jsxs(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-5`,children:[_jsx(_components.p,{children:`The currency of the tab.`}),_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-5`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-5`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-5`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-5`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})]}),_jsxs(ResponseField,{name:`total`,type:`Price`,id:`param-total-1`,children:[_jsx(_components.p,{children:`The total amount of the tab.`}),_jsxs(Expandable,{title:`Total object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-4`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-6`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-6`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-6`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-6`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-6`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`limit`,type:`Price`,id:`param-limit-1`,children:[_jsx(_components.p,{children:`The limit of the tab. When reached, the payment will be required.`}),_jsxs(Expandable,{title:`Limit object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-5`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-7`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-7`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-7`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-7`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-7`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`purchases`,type:`Array\u003cPurchase>`,id:`param-purchases-1`,children:[_jsxs(_components.p,{children:[`Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a `,_jsx(_components.code,{children:`null`}),` value instead of a purchase ID.`]}),_jsxs(_components.p,{children:[`Each purchase in the array has the same structure as the previously described `,_jsx(_components.a,{href:`#param-purchase`,children:`Purchase object`}),`.`]})]})]})]}),_jsx(ResponseField,{name:`paymentResult`,type:`boolean`,id:`param-payment-result-1`,children:_jsxs(_components.p,{children:[`If a purchase required payment, this will be `,_jsx(_components.code,{children:`true`}),` if payment was successful. `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`logIn`,type:`function`,id:`param-log-in`,children:[_jsx(_components.p,{children:`Starts the login flow. Opens Supertab SSO popup window if user is unknown.\nOtherwise will log user in silently if auth data are found but has expired.`}),_jsx(_components.p,{children:`Returns a promise which resolves with the paywall summary.`}),_jsxs(Expandable,{title:`ExperienceStateSummary`,children:[_jsxs(ResponseField,{name:`priorEntitlement`,type:`EntitlementStatus | null`,id:`param-prior-entitlement-2`,children:[_jsxs(_components.p,{children:[`Any prior entitlement of the current user. `,_jsx(_components.code,{children:`null`}),` if user has no prior entitlement.`]}),_jsxs(Expandable,{title:`prior entitlement`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-6`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-4`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-4`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-4`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]}),_jsx(ResponseField,{name:`authStatus`,type:`AuthStatus`,id:`param-auth-status-2`,children:_jsxs(_components.p,{children:[`Current authentication status of the user. Possible values: `,_jsx(_components.code,{children:`missing`}),`, `,_jsx(_components.code,{children:`expired`}),`, `,_jsx(_components.code,{children:`valid`}),`.`]})}),_jsxs(ResponseField,{name:`purchase`,type:`Purchase | null`,id:`param-purchase-2`,children:[_jsxs(_components.p,{children:[`Purchase object if launching the flow resulted in a purchase. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`purchase object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-4`,children:[_jsx(_components.p,{children:`ID of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"purchase.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsxs(ResponseField,{name:`offeringId`,type:`string`,id:`param-offering-id-2`,children:[_jsx(_components.p,{children:`ID of the purchased offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`purchasedAt`,type:`string | null`,id:`param-purchased-at-2`,children:[_jsx(_components.p,{children:`Date and time of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`completedAt`,type:`string | null`,id:`param-completed-at-2`,children:[_jsx(_components.p,{children:`Date and time of the purchase completion, i.e. when payment was successful if purchase required payment.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-4`,children:[_jsx(_components.p,{children:`A summary of the purchase, usually including the website name and the type of a given entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"The Leek - 24 Hours Time Pass\"`})]})]}),_jsxs(ResponseField,{name:`price`,type:`Price`,id:`param-price-4`,children:[_jsx(_components.p,{children:`Price object of the purchase.`}),_jsxs(Expandable,{title:`Price object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-6`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`5000`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-8`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-8`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-8`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-8`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-8`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsx(ResponseField,{name:`status`,type:`PurchaseStatus`,id:`param-status-2`,children:_jsxs(_components.p,{children:[`Status of the purchase. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`abandoned`}),`.`]})}),_jsx(ResponseField,{name:`metadata`,type:`Metadata`,id:`param-metadata-2`,children:_jsx(_components.p,{children:`Key-value pairs of custom information associated with the purchase.`})}),_jsxs(ResponseField,{name:`entitlementStatus`,type:`EntitlementStatus | null`,id:`param-entitlement-status-2`,children:[_jsx(_components.p,{children:`The customer’s access (if any) as a result of this purchase.`}),_jsxs(Expandable,{title:`Entitlement status object`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-7`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-5`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-5`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-5`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]})]})]}),_jsxs(ResponseField,{name:`purchasedOffering`,type:`Offering | null`,id:`param-purchased-offering-2`,children:[_jsxs(_components.p,{children:[`Offering object if user has purchased an offering. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`offering object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-5`,children:[_jsx(_components.p,{children:`ID of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-5`,children:[_jsx(_components.p,{children:`Description of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"24 Hours Time Pass to The Leek\"`})]})]}),_jsxs(ResponseField,{name:`entitlementDetails`,type:`EntitlementDetails`,id:`param-entitlement-details-2`,children:[_jsx(_components.p,{children:`Specifies the nature and duration of purchased entitlement.`}),_jsx(_components.p,{children:`Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.`}),_jsxs(Expandable,{title:`Entitlement details object`,children:[_jsxs(ResponseField,{name:`duration`,type:`string`,id:`param-duration-2`,children:[_jsxs(_components.p,{children:[`The duration of the entitlement as `,_jsx(_components.code,{children:`{length}{unit}`}),`.`]}),_jsx(_components.p,{children:`Examples:`}),_jsx(CodeBlock,{numberOfLines:`17`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 1 year`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"1y\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 2 months`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"2M\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 3 weeks`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"3w\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 4 days`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"4d\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 5 hours`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"5h\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 6 minutes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"6m\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 7 seconds`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"7s\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsx(ResponseField,{name:`isRecurring`,type:`boolean`,id:`param-is-recurring-2`,children:_jsx(_components.p,{children:`Whether the entitlement is sold on a recurring basis (subscription).`})}),_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-8`,children:[_jsx(_components.p,{children:`The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]})]})]}),_jsx(ResponseField,{name:`price`,type:`Price`,id:`param-price-5`,children:_jsx(_components.p,{children:`Price object of the offering.`})})]})]}),_jsxs(ResponseField,{name:`tab`,type:`Tab`,id:`param-tab-2`,children:[_jsx(_components.p,{children:`The users tab`}),_jsxs(Expandable,{title:`Tab object`,children:[_jsx(ResponseField,{name:`testMode`,type:`boolean`,id:`param-test-mode-2`,children:_jsx(_components.p,{children:`Whether the tab is in test mode.`})}),_jsxs(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-9`,children:[_jsx(_components.p,{children:`The currency of the tab.`}),_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-9`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-9`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-9`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-9`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})]}),_jsxs(ResponseField,{name:`total`,type:`Price`,id:`param-total-2`,children:[_jsx(_components.p,{children:`The total amount of the tab.`}),_jsxs(Expandable,{title:`Total object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-7`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-10`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-10`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-10`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-10`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-10`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`limit`,type:`Price`,id:`param-limit-2`,children:[_jsx(_components.p,{children:`The limit of the tab. When reached, the payment will be required.`}),_jsxs(Expandable,{title:`Limit object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-8`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-11`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-11`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-11`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-11`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-11`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`purchases`,type:`Array\u003cPurchase>`,id:`param-purchases-2`,children:[_jsxs(_components.p,{children:[`Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a `,_jsx(_components.code,{children:`null`}),` value instead of a purchase ID.`]}),_jsxs(_components.p,{children:[`Each purchase in the array has the same structure as the previously described `,_jsx(_components.a,{href:`#param-purchase`,children:`Purchase object`}),`.`]})]})]})]}),_jsx(ResponseField,{name:`paymentResult`,type:`boolean`,id:`param-payment-result-2`,children:_jsxs(_components.p,{children:[`If a purchase required payment, this will be `,_jsx(_components.code,{children:`true`}),` if payment was successful. `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`initialState`,type:`ExperienceStateSummary`,id:`param-initial-state`,children:[_jsx(_components.p,{children:`Initial state of the paywall.`}),_jsxs(Expandable,{title:`ExperienceStateSummary`,children:[_jsxs(ResponseField,{name:`priorEntitlement`,type:`EntitlementStatus | null`,id:`param-prior-entitlement-3`,children:[_jsxs(_components.p,{children:[`Any prior entitlement of the current user. `,_jsx(_components.code,{children:`null`}),` if user has no prior entitlement.`]}),_jsxs(Expandable,{title:`prior entitlement`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-9`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-6`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-6`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-6`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]}),_jsx(ResponseField,{name:`authStatus`,type:`AuthStatus`,id:`param-auth-status-3`,children:_jsxs(_components.p,{children:[`Current authentication status of the user. Possible values: `,_jsx(_components.code,{children:`missing`}),`, `,_jsx(_components.code,{children:`expired`}),`, `,_jsx(_components.code,{children:`valid`}),`.`]})}),_jsxs(ResponseField,{name:`purchase`,type:`Purchase | null`,id:`param-purchase-3`,children:[_jsxs(_components.p,{children:[`Purchase object if launching the flow resulted in a purchase. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`purchase object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-6`,children:[_jsx(_components.p,{children:`ID of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"purchase.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsxs(ResponseField,{name:`offeringId`,type:`string`,id:`param-offering-id-3`,children:[_jsx(_components.p,{children:`ID of the purchased offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`purchasedAt`,type:`string | null`,id:`param-purchased-at-3`,children:[_jsx(_components.p,{children:`Date and time of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`completedAt`,type:`string | null`,id:`param-completed-at-3`,children:[_jsx(_components.p,{children:`Date and time of the purchase completion, i.e. when payment was successful if purchase required payment.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-6`,children:[_jsx(_components.p,{children:`A summary of the purchase, usually including the website name and the type of a given entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"The Leek - 24 Hours Time Pass\"`})]})]}),_jsxs(ResponseField,{name:`price`,type:`Price`,id:`param-price-6`,children:[_jsx(_components.p,{children:`Price object of the purchase.`}),_jsxs(Expandable,{title:`Price object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-9`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`5000`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-12`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-12`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-12`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-12`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-12`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsx(ResponseField,{name:`status`,type:`PurchaseStatus`,id:`param-status-3`,children:_jsxs(_components.p,{children:[`Status of the purchase. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`abandoned`}),`.`]})}),_jsx(ResponseField,{name:`metadata`,type:`Metadata`,id:`param-metadata-3`,children:_jsx(_components.p,{children:`Key-value pairs of custom information associated with the purchase.`})}),_jsxs(ResponseField,{name:`entitlementStatus`,type:`EntitlementStatus | null`,id:`param-entitlement-status-3`,children:[_jsx(_components.p,{children:`The customer’s access (if any) as a result of this purchase.`}),_jsxs(Expandable,{title:`Entitlement status object`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-10`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-7`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-7`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-7`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]})]})]}),_jsxs(ResponseField,{name:`purchasedOffering`,type:`Offering | null`,id:`param-purchased-offering-3`,children:[_jsxs(_components.p,{children:[`Offering object if user has purchased an offering. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`offering object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-7`,children:[_jsx(_components.p,{children:`ID of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-7`,children:[_jsx(_components.p,{children:`Description of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"24 Hours Time Pass to The Leek\"`})]})]}),_jsxs(ResponseField,{name:`entitlementDetails`,type:`EntitlementDetails`,id:`param-entitlement-details-3`,children:[_jsx(_components.p,{children:`Specifies the nature and duration of purchased entitlement.`}),_jsx(_components.p,{children:`Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.`}),_jsxs(Expandable,{title:`Entitlement details object`,children:[_jsxs(ResponseField,{name:`duration`,type:`string`,id:`param-duration-3`,children:[_jsxs(_components.p,{children:[`The duration of the entitlement as `,_jsx(_components.code,{children:`{length}{unit}`}),`.`]}),_jsx(_components.p,{children:`Examples:`}),_jsx(CodeBlock,{numberOfLines:`17`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 1 year`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"1y\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 2 months`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"2M\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 3 weeks`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"3w\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 4 days`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"4d\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 5 hours`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"5h\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 6 minutes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"6m\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 7 seconds`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"7s\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsx(ResponseField,{name:`isRecurring`,type:`boolean`,id:`param-is-recurring-3`,children:_jsx(_components.p,{children:`Whether the entitlement is sold on a recurring basis (subscription).`})}),_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-11`,children:[_jsx(_components.p,{children:`The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]})]})]}),_jsx(ResponseField,{name:`price`,type:`Price`,id:`param-price-7`,children:_jsx(_components.p,{children:`Price object of the offering.`})})]})]}),_jsxs(ResponseField,{name:`tab`,type:`Tab`,id:`param-tab-3`,children:[_jsx(_components.p,{children:`The users tab`}),_jsxs(Expandable,{title:`Tab object`,children:[_jsx(ResponseField,{name:`testMode`,type:`boolean`,id:`param-test-mode-3`,children:_jsx(_components.p,{children:`Whether the tab is in test mode.`})}),_jsxs(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-13`,children:[_jsx(_components.p,{children:`The currency of the tab.`}),_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-13`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-13`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-13`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-13`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})]}),_jsxs(ResponseField,{name:`total`,type:`Price`,id:`param-total-3`,children:[_jsx(_components.p,{children:`The total amount of the tab.`}),_jsxs(Expandable,{title:`Total object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-10`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-14`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-14`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-14`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-14`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-14`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`limit`,type:`Price`,id:`param-limit-3`,children:[_jsx(_components.p,{children:`The limit of the tab. When reached, the payment will be required.`}),_jsxs(Expandable,{title:`Limit object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-11`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-15`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-15`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-15`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-15`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-15`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`purchases`,type:`Array\u003cPurchase>`,id:`param-purchases-3`,children:[_jsxs(_components.p,{children:[`Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a `,_jsx(_components.code,{children:`null`}),` value instead of a purchase ID.`]}),_jsxs(_components.p,{children:[`Each purchase in the array has the same structure as the previously described `,_jsx(_components.a,{href:`#param-purchase`,children:`Purchase object`}),`.`]})]})]})]}),_jsx(ResponseField,{name:`paymentResult`,type:`boolean`,id:`param-payment-result-3`,children:_jsxs(_components.p,{children:[`If a purchase required payment, this will be `,_jsx(_components.code,{children:`true`}),` if payment was successful. `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})]})]}),`\n`,_jsx(ResponseField,{name:`destroy`,type:`function`,id:`param-destroy`,children:_jsx(_components.p,{children:`Destroy paywall instance. This removes all nodes related to paywall from DOM.`})}),`\n`,_jsxs(Heading,{level:`2`,id:`purchase-button-supertab-createpurchasebutton`,children:[`Purchase Button `,_jsx(_components.code,{children:`supertab.createPurchaseButton`})]}),`\n`,_jsx(_components.p,{children:`Fill a container element with the Purchase Button`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`html`,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:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"supertab-button-container\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` supertabButton`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` supertabClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createPurchaseButton`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` containerElement:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getElementById`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"supertab-button-container\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` experienceId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"experience.abc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-2`,children:`Parameters`}),`\n`,_jsx(ParamField,{path:`containerElement`,type:`Element`,required:true,id:`param-container-element`,children:_jsx(_components.p,{children:`Container element to render purchase button in. Elements are appended to the\ncontainer, so original contents are not replaced.`})}),`\n`,_jsx(ParamField,{path:`experienceId`,type:`string`,required:true,id:`param-experience-id-1`,children:_jsx(_components.p,{children:`ID of the purchase button experience created in Business Portal.`})}),`\n`,_jsx(ParamField,{path:`purchaseMetadata`,type:`object`,id:`param-purchase-metadata-1`,children:_jsx(_components.p,{children:`Key-value pairs of custom information associated with the purchase.`})}),`\n`,_jsxs(ParamField,{path:`onDone`,type:`function`,id:`param-on-done`,children:[_jsx(_components.p,{children:`Callback function called when user leaves the purchase flow either as a result of successful purchase or cancellation.`}),_jsxs(_components.p,{children:[`Returns a promise which resolves with the purchase button summary. See `,_jsx(_components.a,{href:`#purchase-button-summary`,children:`Purchase button summary`}),` for more details.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`return-value-2`,children:`Return Value`}),`\n`,_jsx(_components.p,{children:`A promise which resolves with an object with following properties:`}),`\n`,_jsx(ResponseField,{name:`destroy`,type:`function`,id:`param-destroy-1`,children:_jsx(_components.p,{children:`Destroy Supertab button instance. This removes all nodes related to Supertab\nbutton from DOM.`})}),`\n`,_jsx(ResponseField,{name:`initialState`,type:`ExperienceStateSummary`,id:`param-initial-state-1`,children:_jsxs(_components.p,{children:[`Initial state of the purchase button. See `,_jsx(_components.a,{href:`#purchase-button-summary`,children:`Purchase button summary`}),` for more details.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`purchase-button-summary`,children:`Purchase button summary`}),`\n`,_jsxs(_components.p,{children:[`Both the returned `,_jsx(_components.code,{children:`initialState`}),` object and the object passed as an argument to the `,_jsx(_components.code,{children:`onDone`}),` callback contain the following properties:`]}),`\n`,_jsxs(Expandable,{title:`ExperienceStateSummary`,children:[_jsxs(ResponseField,{name:`priorEntitlement`,type:`EntitlementStatus | null`,id:`param-prior-entitlement-4`,children:[_jsxs(_components.p,{children:[`Any prior entitlement of the current user. `,_jsx(_components.code,{children:`null`}),` if user has no prior entitlement.`]}),_jsxs(Expandable,{title:`prior entitlement`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-12`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-8`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-8`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-8`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]}),_jsx(ResponseField,{name:`authStatus`,type:`AuthStatus`,id:`param-auth-status-4`,children:_jsxs(_components.p,{children:[`Current authentication status of the user. Possible values: `,_jsx(_components.code,{children:`missing`}),`, `,_jsx(_components.code,{children:`expired`}),`, `,_jsx(_components.code,{children:`valid`}),`.`]})}),_jsxs(ResponseField,{name:`purchase`,type:`Purchase | null`,id:`param-purchase-4`,children:[_jsxs(_components.p,{children:[`Purchase object if launching the flow resulted in a purchase. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`purchase object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-8`,children:[_jsx(_components.p,{children:`ID of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"purchase.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsxs(ResponseField,{name:`offeringId`,type:`string`,id:`param-offering-id-4`,children:[_jsx(_components.p,{children:`ID of the purchased offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`purchasedAt`,type:`string | null`,id:`param-purchased-at-4`,children:[_jsx(_components.p,{children:`Date and time of the purchase.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`completedAt`,type:`string | null`,id:`param-completed-at-4`,children:[_jsx(_components.p,{children:`Date and time of the purchase completion, i.e. when payment was successful if purchase required payment.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-8`,children:[_jsx(_components.p,{children:`A summary of the purchase, usually including the website name and the type of a given entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"The Leek - 24 Hours Time Pass\"`})]})]}),_jsxs(ResponseField,{name:`price`,type:`Price`,id:`param-price-8`,children:[_jsx(_components.p,{children:`Price object of the purchase.`}),_jsxs(Expandable,{title:`Price object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-12`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`5000`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-16`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-16`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-16`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-16`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-16`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsx(ResponseField,{name:`status`,type:`PurchaseStatus`,id:`param-status-4`,children:_jsxs(_components.p,{children:[`Status of the purchase. Possible values: `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`abandoned`}),`.`]})}),_jsx(ResponseField,{name:`metadata`,type:`Metadata`,id:`param-metadata-4`,children:_jsx(_components.p,{children:`Key-value pairs of custom information associated with the purchase.`})}),_jsxs(ResponseField,{name:`entitlementStatus`,type:`EntitlementStatus | null`,id:`param-entitlement-status-4`,children:[_jsx(_components.p,{children:`The customer’s access (if any) as a result of this purchase.`}),_jsxs(Expandable,{title:`Entitlement status object`,children:[_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-13`,children:[_jsx(_components.p,{children:`The content key of the entitlement.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]}),_jsx(ResponseField,{name:`hasEntitlement`,type:`boolean`,id:`param-has-entitlement-9`,children:_jsx(_components.p,{children:`Whether the customer has entitlement to the content key.`})}),_jsxs(ResponseField,{name:`expires`,type:`string`,id:`param-expires-9`,children:[_jsx(_components.p,{children:`When the customer’s access will expire.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]}),_jsxs(ResponseField,{name:`recursAt`,type:`string`,id:`param-recurs-at-9`,children:[_jsx(_components.p,{children:`If this access is a result of a subscription, this will be the date and time when the next billing period starts.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"2025-04-30T12:00:00Z\"`})]})]})]})]})]})]}),_jsxs(ResponseField,{name:`purchasedOffering`,type:`Offering | null`,id:`param-purchased-offering-4`,children:[_jsxs(_components.p,{children:[`Offering object if user has purchased an offering. `,_jsx(_components.code,{children:`null`}),` otherwise.`]}),_jsxs(Expandable,{title:`offering object`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id-9`,children:[_jsx(_components.p,{children:`ID of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"offering.4df706b5-297a-49c5-a4cd-2a10eca12ff9\"`})]})]}),_jsxs(ResponseField,{name:`description`,type:`string`,id:`param-description-9`,children:[_jsx(_components.p,{children:`Description of the offering.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"24 Hours Time Pass to The Leek\"`})]})]}),_jsxs(ResponseField,{name:`entitlementDetails`,type:`EntitlementDetails`,id:`param-entitlement-details-4`,children:[_jsx(_components.p,{children:`Specifies the nature and duration of purchased entitlement.`}),_jsx(_components.p,{children:`Where you have chosen to have Supertab manage entitlements for you, customer’s purchasing such an offering will be granted entitlement to the content associated with the offering for the length of time specified.`}),_jsxs(Expandable,{title:`Entitlement details object`,children:[_jsxs(ResponseField,{name:`duration`,type:`string`,id:`param-duration-4`,children:[_jsxs(_components.p,{children:[`The duration of the entitlement as `,_jsx(_components.code,{children:`{length}{unit}`}),`.`]}),_jsx(_components.p,{children:`Examples:`}),_jsx(CodeBlock,{numberOfLines:`17`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 1 year`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"1y\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 2 months`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"2M\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 3 weeks`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"3w\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 4 days`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"4d\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 5 hours`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"5h\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 6 minutes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"6m\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` // 7 seconds`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"duration\": \"7s\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsx(ResponseField,{name:`isRecurring`,type:`boolean`,id:`param-is-recurring-4`,children:_jsx(_components.p,{children:`Whether the entitlement is sold on a recurring basis (subscription).`})}),_jsxs(ResponseField,{name:`contentKey`,type:`string`,id:`param-content-key-14`,children:[_jsx(_components.p,{children:`The content key being purchased, if you have chosen to have Supertab manage customer entitlement for you.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"site.cf637646-71a4-430d-aaea-a66f1a48a83c\"`})]})]})]})]}),_jsx(ResponseField,{name:`price`,type:`Price`,id:`param-price-9`,children:_jsx(_components.p,{children:`Price object of the offering.`})})]})]}),_jsxs(ResponseField,{name:`tab`,type:`Tab`,id:`param-tab-4`,children:[_jsx(_components.p,{children:`The users tab`}),_jsxs(Expandable,{title:`Tab object`,children:[_jsx(ResponseField,{name:`testMode`,type:`boolean`,id:`param-test-mode-4`,children:_jsx(_components.p,{children:`Whether the tab is in test mode.`})}),_jsxs(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-17`,children:[_jsx(_components.p,{children:`The currency of the tab.`}),_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-17`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-17`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-17`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-17`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})]}),_jsxs(ResponseField,{name:`total`,type:`Price`,id:`param-total-4`,children:[_jsx(_components.p,{children:`The total amount of the tab.`}),_jsxs(Expandable,{title:`Total object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-13`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-18`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-18`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-18`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-18`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-18`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`limit`,type:`Price`,id:`param-limit-4`,children:[_jsx(_components.p,{children:`The limit of the tab. When reached, the payment will be required.`}),_jsxs(Expandable,{title:`Limit object`,children:[_jsxs(ResponseField,{name:`amount`,type:`number`,id:`param-amount-14`,children:[_jsx(_components.p,{children:`Amount in currency base units.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`50`})]})]}),_jsx(ResponseField,{name:`currency`,type:`Currency`,id:`param-currency-19`,children:_jsxs(Expandable,{title:`Currency object`,children:[_jsxs(ResponseField,{name:`code`,type:`string`,id:`param-code-19`,children:[_jsx(_components.p,{children:`Currency code.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"USD\"`})]})]}),_jsxs(ResponseField,{name:`name`,type:`string`,id:`param-name-19`,children:[_jsx(_components.p,{children:`Currency name.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"United States Dollar\"`})]})]}),_jsxs(ResponseField,{name:`symbol`,type:`string`,id:`param-symbol-19`,children:[_jsx(_components.p,{children:`Currency symbol.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`\"$\"`})]})]}),_jsxs(ResponseField,{name:`baseUnit`,type:`number`,id:`param-base-unit-19`,children:[_jsx(_components.p,{children:`Base unit of the currency.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`100`})]})]})]})})]})]}),_jsxs(ResponseField,{name:`purchases`,type:`Array\u003cPurchase>`,id:`param-purchases-4`,children:[_jsxs(_components.p,{children:[`Details of all purchases made by the customer through your merchant account. Purchases made with other merchant accounts are shown as a single purchase, which accumulates all totals into one and has a `,_jsx(_components.code,{children:`null`}),` value instead of a purchase ID.`]}),_jsxs(_components.p,{children:[`Each purchase in the array has the same structure as the previously described `,_jsx(_components.a,{href:`#param-purchase`,children:`Purchase object`}),`.`]})]})]})]}),_jsx(ResponseField,{name:`paymentResult`,type:`boolean`,id:`param-payment-result-4`,children:_jsxs(_components.p,{children:[`If a purchase required payment, this will be `,_jsx(_components.code,{children:`true`}),` if payment was successful. `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:`Example`,numberOfLines:`23`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` supertabButton`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` supertabClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createPurchaseButton`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` containerElement:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getElementById`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"supertab-button-container\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` experienceId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"experience.abc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onDone`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ({ `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`priorEntitlement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`purchase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`priorEntitlement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // User has prior entitlement to the content.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`purchase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`purchase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Purchase was completed successfully.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Purchase was not completed. User may have`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // canceled the payment dialog if purchase`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // required payment.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // User has canceled the flow and did not`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // attempt to purchase the offering.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_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.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Starting experiences","description":"Launch an experience using Supertab.js","href":"/supertab-js/experiences/starting-experiences"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Pre-requisites","slug":"pre-requisites","depth":2,"children":[]},{"title":"Initialization","slug":"initialization","depth":2,"children":[]},{"title":"Paywall: supertab.createPaywall","slug":"paywall-supertab-createpaywall","depth":2,"children":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"Return value","slug":"return-value","depth":3,"children":[]}]},{"title":"Purchase Button supertab.createPurchaseButton","slug":"purchase-button-supertab-createpurchasebutton","depth":2,"children":[{"title":"Parameters","slug":"parameters-2","depth":3,"children":[]},{"title":"Return Value","slug":"return-value-2","depth":3,"children":[]}]},{"title":"Purchase button summary","slug":"purchase-button-summary","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"supertab","siteName":"Supertab docs","title":"Starting experiences - Supertab docs","navMaps":{"firstHrefInVersion":{"v3":{"href":"/supertab-js/experiences/starting-experiences","matchLevel":0},"2025-04-01":{"href":"/customer-api/overview","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-02-04T15:20:46.468Z","originalFileLocation":"supertab-js/experiences/starting-experiences.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=\"Launch an experience using Supertab.js\">\u003cmeta data-mint-head name=\"application-name\" content=\"Supertab 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/supertab/24UJgC29HVwRWzPH/_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/supertab/24UJgC29HVwRWzPH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/supertab/24UJgC29HVwRWzPH/_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/supertab/24UJgC29HVwRWzPH/_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/supertab/24UJgC29HVwRWzPH/_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/supertab/24UJgC29HVwRWzPH/_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/supertab/24UJgC29HVwRWzPH/_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/supertab/24UJgC29HVwRWzPH/_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/supertab/24UJgC29HVwRWzPH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Starting experiences - Supertab docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Launch an experience using Supertab.js\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Supertab docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.supertab.co/supertab-js/experiences/starting-experiences\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://supertab.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Starting+experiences\u0026amp;description=Launch+an+experience+using+Supertab.js\u0026amp;theme=f8f57096d3469e3d3e9bab6c\u0026amp;signature=956792ce10f2f9ca4931c5392237f7458400599de5bc22078325b8790c9167bd\">\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=\"Starting experiences - Supertab docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Launch an experience using Supertab.js\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://supertab.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Starting+experiences\u0026amp;description=Launch+an+experience+using+Supertab.js\u0026amp;theme=f8f57096d3469e3d3e9bab6c\u0026amp;signature=956792ce10f2f9ca4931c5392237f7458400599de5bc22078325b8790c9167bd\">\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/supertab/24UJgC29HVwRWzPH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Supertab docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0E1A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.supertab.co/supertab-js/experiences/starting-experiences\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/supertab-js/experiences/starting-experiences.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Supertab docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Supertab docs","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Introduction","pages":[{"title":"About Supertab","mode":"wide","href":"/supertab-introduction/overview/about-supertab"},{"title":"Account Management","href":"/supertab-introduction/account-management/account-kyc"},{"title":"Internationalization","href":"/supertab-introduction/internationalization"}]},{"group":"Supertab Experiences","pages":[{"title":"Get Started","href":"/supertab-experiences/introduction"},{"title":"Create Websites","href":"/supertab-experiences/sites"},{"title":"Configure Offerings and Pricing","href":"/supertab-experiences/products-offerings-pricing"},{"title":"Set up Experiences","href":"/supertab-experiences/experiences"},{"title":"Test Mode","href":"/supertab-experiences/test-mode"}]},{"group":"Integrate","pages":[{"title":"With Google AdManager","href":"/supertab-integrate/google"},{"title":"Off-App Purchases","href":"/supertab-integrate/off-app-purchases"},{"title":"Custom Integrations","href":"/supertab-integrate/custom-integrations"}]}]},{"tab":"Updates","groups":[{"group":"Updates","pages":[{"title":"Product Updates","mode":"wide","href":"/updates/product"}]}]},{"tab":"Supertab.js","versions":[{"version":"v3","groups":[{"group":"Supertab.js","pages":[{"title":"Getting Started","href":"/supertab-js/introduction"},{"title":"Installation","href":"/supertab-js/installation"}]},{"group":"Experiences","pages":[{"title":"Paywall Experiences","href":"/supertab-js/experiences/paywall"}]},{"group":"API Reference","pages":[{"title":"SDK Overview","sidebarTitle":"Overview","href":"/supertab-js/reference/overview"},{"title":"Supertab.createPaygate","tag":"DEPRECATED","href":"/supertab-js/reference/create-paygate"},{"title":"Supertab.createPaywall","href":"/supertab-js/reference/create-paywall"},{"title":"Supertab.createPurchaseButton","href":"/supertab-js/reference/purchase-button"},{"title":"Supertab.createPurchase","sidebarTitle":"Supertab.createPurchase","href":"/supertab-js/reference/create-purchase"},{"title":"Supertab.auth","href":"/supertab-js/reference/auth"},{"title":"Supertab.api","href":"/supertab-js/reference/api"},{"title":"Supertab.checkout","href":"/supertab-js/reference/checkout"},{"title":"Errors","href":"/supertab-js/reference/errors"}]}]}]},{"tab":"API Reference","dropdowns":[{"dropdown":"Customer API","icon":"browsers","versions":[{"version":"2025-04-01","groups":[{"group":"Introduction","pages":[{"title":"Customer API","sidebarTitle":"Customer API","icon":"browsers","href":"/customer-api/overview"}]},{"group":"Reference","pages":[{"title":"Authentication","sidebarTitle":"Authentication","icon":"lock","href":"/customer-api/authentication"},{"title":"Versioning","sidebarTitle":"Versioning \u0026 Changes","icon":"calendar-clock","href":"/customer-api/versioning"}]},{"group":"Guides","pages":[{"title":"Making a Purchase","icon":"circle-dollar-to-slot","href":"/customer-api/making-a-purchase"},{"title":"Check for Entitlements, including Prior Entitlements","sidebarTitle":"Check for Entitlements","icon":"check","href":"/customer-api/entitlements"}]},{"group":"Endpoints","pages":[{"title":"Retrieve current customer","openapi":"GET /customers/me","href":"/customer-api/endpoints/retrieve-customer"},{"title":"Retrieve website","openapi":"get /site","href":"/customer-api/endpoints/retrieve-site"},{"openapi":"post /purchases/offerings","title":"Purchase an offering","href":"/customer-api/endpoints/purchase-an-offering"},{"openapi":"get /onetime_offerings/{onetime_offering_id}","title":"Retrieve a one-time offering","href":"/customer-api/endpoints/retrieve-a-one-time-offering"},{"openapi":"post /purchases/onetime_offerings","title":"Purchase a one-time offering","href":"/customer-api/endpoints/purchase-a-one-time-offering"},{"openapi":"get /purchases/{purchase_id}","title":"Retrieve a purchase","href":"/customer-api/endpoints/retrieve-a-purchase"},{"openapi":"get /entitlements/{content_key}","title":"Retrieve entitlement status","href":"/customer-api/endpoints/retrieve-entitlement-status"}]}]}]},{"dropdown":"Merchant API","icon":"server","versions":[{"version":"2025-04-01","groups":[{"group":"Introduction","pages":[{"title":"Merchant API","sidebarTitle":"Merchant API","icon":"server","href":"/merchant-api/overview"}]},{"group":"Reference","pages":[{"title":"Authentication","sidebarTitle":"Authentication","icon":"lock","href":"/merchant-api/authentication"},{"title":"Versioning","sidebarTitle":"Versioning \u0026 Changes","icon":"calendar-clock","href":"/merchant-api/versioning"}]},{"group":"Endpoints","pages":[{"title":"Create New One-Time Offering","openapi":"post /onetime_offerings","href":"/merchant-api/endpoints/create-onetime-offering"},{"title":"Retrieve a One-Time Offering","openapi":"get /onetime_offerings/{onetime_offering_id}","href":"/merchant-api/endpoints/retrieve-onetime-offering"}]},{"group":"Webhooks","pages":[{"title":"Consuming Webhooks","sidebarTitle":"Consuming Webhooks","icon":"globe","href":"/merchant-api/webhooks/consuming-webhooks"}]}]}]}]}]},"title":"Starting experiences - Supertab docs","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":[],"chunks":[]}