Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription/plan-change-preview?plan_id=9e50b1aed525a8280e28b9662b6a7ba0' \ -H 'Authorization: Bearer sk_xxxxxx'
GET /openapi/memorylake/admin/v1/billing/subscription/plan-change-preview
Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice. proration_date echoes the instant the proration was computed for. Switches that cost nothing come back with applicable false and a reason. Changing the plan itself is done in the console.
Permission required:subscription:manage
Query Parameters
integer
required
The plan to price a switch to
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription/plan-change-preview?plan_id=9e50b1aed525a8280e28b9662b6a7ba0' \ -H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Plan Change Preview object
boolean
false = nothing to price: see reason. The change itself may still be valid.
array
Line items behind amount_due; empty when not applicable
Show Plan Change Preview Line object
object
Line amount; negative for credit for unused time
Show Money object
integer
Amount in the currency’s smallest unit (cents for usd)
string
Lowercase ISO 4217 currency code
string
Line description
boolean
true for a prorated line
integer
Service period end, Unix seconds
integer
Service period start, Unix seconds
integer
The target plan, as requested
object
Charged immediately if the change were made now (prorated); negative = credit to the balance. Present when applicable.
Show Money object
integer
Amount in the currency’s smallest unit (cents for usd)
string
Lowercase ISO 4217 currency code
integer
When the change would take effect, Unix seconds: now for an upgrade, the period end for a downgrade to free
object
The current plan
Show Plan Ref object
integer
Plan id
string
Plan name
object
The first full-cycle invoice on the new plan. Present when applicable.
Show Next Invoice object
object
Full price of the new plan for one cycle
Show Money object
integer
Amount in the currency’s smallest unit (cents for usd)
string
Lowercase ISO 4217 currency code
integer
When it is issued, Unix seconds
integer
The instant the proration was computed for, Unix seconds. Present when applicable.
string
Why there is nothing to price: no_paid_subscription (the current subscription is not paid through the payment provider), downgrade_to_free (moving to the free plan takes effect at period end, no charge), resume_only (target is the current plan of a subscription set to cancel: switching back only resumes it)
Errors answer with success: false, a message and an error_code. See Error Codes for every code.
Status
Meaning
400
A parameter or the body is invalid
401
The API key is missing, invalid, disabled or expired
403
The key is not allowed to do this
409
The request conflicts with the current state, e.g. a duplicate or a limit reached
422
The body or a parameter failed validation
429
Too many requests. Wait for the time in Retry-After
500
Server-side error
503
Temporarily unavailable. Retry later
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MemoryLake AI","colors":{"primary":"#E75C2A","light":"#F2A361","dark":"#EF8640"},"logo":{"light":"https://mintcdn.com/datacloud-924043c1/W_-TJZhNN0WMmbCI/logo/light.svg?fit=max\u0026auto=format\u0026n=W_-TJZhNN0WMmbCI\u0026q=85\u0026s=9766e4cbaa7d674460d63cee7a88c501","dark":"https://mintcdn.com/datacloud-924043c1/W_-TJZhNN0WMmbCI/logo/dark.svg?fit=max\u0026auto=format\u0026n=W_-TJZhNN0WMmbCI\u0026q=85\u0026s=a41577a71bafe8a081881ff6b98cb305"},"favicon":"https://mintcdn.com/datacloud-924043c1/pEDy58oBG5CxVCQs/favicon.svg?fit=max\u0026auto=format\u0026n=pEDy58oBG5CxVCQs\u0026q=85\u0026s=d47c4a1ae8b1aac3422e43e0d1bc022b","navbar":{"primary":{"type":"button","label":"Console","href":"https://app.memorylake.ai"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"overview"},{"language":"zh","href":"zh/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"datacloud-924043c1","hasAudioNarration":false,"actualSubdomain":"datacloud-924043c1","customDomains":["docs.memorylake.ai"],"gitSource":{"type":"github","owner":"memorylake-ai","repo":"memorylake-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c6db9ffae5051c40749b"},"entitlements":{},"buildId":"6b0cea3c688a432224fb186f","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"en","tag":"API reference","count":243},{"language":"zh","tag":"API 参考","count":243},{"language":"en","tag":"MemoryLake API","count":236},{"language":"zh","tag":"MemoryLake API","count":236},{"language":"en","tag":"Guides","count":51},{"language":"zh","tag":"指南","count":51},{"language":"en","tag":"Access Control","count":29},{"language":"en","tag":"Projects","count":29},{"language":"zh","tag":"访问控制","count":29},{"language":"zh","tag":"项目","count":29},{"language":"en","tag":"Agents","count":28},{"language":"zh","tag":"Agent","count":28},{"language":"en","tag":"Actors","count":22},{"language":"zh","tag":"Actor","count":22},{"language":"en","tag":"Deprecated","count":21},{"language":"zh","tag":"已弃用","count":21},{"language":"en","tag":"Billing","count":18},{"language":"en","tag":"Workspaces","count":18},{"language":"zh","tag":"计费","count":18},{"language":"zh","tag":"工作空间","count":18}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"hidden-docs.css","content":"html:not([data-show-hidden-docs]) [data-group-tag=\"Preview\"]:not([data-active]),html:not([data-show-hidden-docs]) [data-group-tag=\"预览\"]:not([data-active]),html:not([data-show-hidden-docs]) div:has(>.sidebar-group-header [data-nav-tag=\"Preview\"]):not(:has([data-active])),html:not([data-show-hidden-docs]) div:has(>.sidebar-group-header [data-nav-tag=\"预览\"]):not(:has([data-active])){display:none}"}]}
{"page":{"pagePath":"features/memorylake/api-reference/billing/preview-plan-change","slug":"/features/memorylake/api-reference/billing/preview-plan-change","pageMetadata":{"title":"Preview Plan Change","description":"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice","href":"/features/memorylake/api-reference/billing/preview-plan-change"},"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: \"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /openapi/memorylake/admin/v1/billing/subscription/plan-change-preview`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice. proration_date echoes the instant the proration was computed for. Switches that cost nothing come back with applicable false and a reason. Changing the plan itself is done in the console.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Permission required:`}),` `,_jsx(_components.code,{children:`subscription:manage`})]})}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`plan_id`,type:`integer`,required:true,id:`param-plan-id`,children:_jsx(_components.p,{children:`The plan to price a switch to`})}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`Plan Change Preview object`,children:[_jsx(ResponseField,{name:`applicable`,type:`boolean`,id:`param-applicable`,children:`false = nothing to price: see reason. The change itself may still be valid.`}),_jsxs(ResponseField,{name:`lines`,type:`array`,id:`param-lines`,children:[_jsx(_components.p,{children:`Line items behind amount_due; empty when not applicable`}),_jsxs(Expandable,{title:`Plan Change Preview Line object`,children:[_jsxs(ResponseField,{name:`amount`,type:`object`,id:`param-amount`,children:[_jsx(_components.p,{children:`Line amount; negative for credit for unused time`}),_jsxs(Expandable,{title:`Money object`,children:[_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount-1`,children:`Amount in the currency’s smallest unit (cents for usd)`}),_jsx(ResponseField,{name:`currency`,type:`string`,id:`param-currency`,children:`Lowercase ISO 4217 currency code`})]})]}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:`Line description`}),_jsx(ResponseField,{name:`proration`,type:`boolean`,id:`param-proration`,children:`true for a prorated line`}),_jsx(ResponseField,{name:`period_end`,type:`integer`,id:`param-period-end`,children:`Service period end, Unix seconds`}),_jsx(ResponseField,{name:`period_start`,type:`integer`,id:`param-period-start`,children:`Service period start, Unix seconds`})]})]}),_jsx(ResponseField,{name:`plan_id`,type:`integer`,id:`param-plan-id-1`,children:`The target plan, as requested`}),_jsxs(ResponseField,{name:`amount_due`,type:`object`,id:`param-amount-due`,children:[_jsx(_components.p,{children:`Charged immediately if the change were made now (prorated); negative = credit to the balance. Present when applicable.`}),_jsxs(Expandable,{title:`Money object`,children:[_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount-2`,children:`Amount in the currency’s smallest unit (cents for usd)`}),_jsx(ResponseField,{name:`currency`,type:`string`,id:`param-currency-1`,children:`Lowercase ISO 4217 currency code`})]})]}),_jsx(ResponseField,{name:`effective_at`,type:`integer`,id:`param-effective-at`,children:`When the change would take effect, Unix seconds: now for an upgrade, the period end for a downgrade to free`}),_jsxs(ResponseField,{name:`from_plan`,type:`object`,id:`param-from-plan`,children:[_jsx(_components.p,{children:`The current plan`}),_jsxs(Expandable,{title:`Plan Ref object`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id`,children:`Plan id`}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:`Plan name`})]})]}),_jsxs(ResponseField,{name:`next_invoice`,type:`object`,id:`param-next-invoice`,children:[_jsx(_components.p,{children:`The first full-cycle invoice on the new plan. Present when applicable.`}),_jsxs(Expandable,{title:`Next Invoice object`,children:[_jsxs(ResponseField,{name:`amount`,type:`object`,id:`param-amount-3`,children:[_jsx(_components.p,{children:`Full price of the new plan for one cycle`}),_jsxs(Expandable,{title:`Money object`,children:[_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount-4`,children:`Amount in the currency’s smallest unit (cents for usd)`}),_jsx(ResponseField,{name:`currency`,type:`string`,id:`param-currency-2`,children:`Lowercase ISO 4217 currency code`})]})]}),_jsx(ResponseField,{name:`date`,type:`integer`,id:`param-date`,children:`When it is issued, Unix seconds`})]})]}),_jsx(ResponseField,{name:`proration_date`,type:`integer`,id:`param-proration-date`,children:`The instant the proration was computed for, Unix seconds. Present when applicable.`}),_jsx(ResponseField,{name:`reason`,type:`string`,id:`param-reason`,children:`Why there is nothing to price: no_paid_subscription (the current subscription is not paid through the payment provider), downgrade_to_free (moving to the free plan takes effect at period end, no charge), resume_only (target is the current plan of a subscription set to cancel: switching back only resumes it)`}),_jsxs(ResponseField,{name:`to_plan`,type:`object`,id:`param-to-plan`,children:[_jsx(_components.p,{children:`The target plan`}),_jsxs(Expandable,{title:`Plan Ref object`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id-1`,children:`Plan id`}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:`Plan name`})]})]})]})}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`Errors answer with `,_jsx(_components.code,{children:`success: false`}),`, a `,_jsx(_components.code,{children:`message`}),` and an `,_jsx(_components.code,{children:`error_code`}),`. See `,_jsx(_components.a,{href:`/features/memorylake/api-reference/errors`,children:`Error Codes`}),` for every code.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`A parameter or the body is invalid`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`The API key is missing, invalid, disabled or expired`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`The key is not allowed to do this`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`The request conflicts with the current state, e.g. a duplicate or a limit reached`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`The body or a parameter failed validation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsxs(_components.td,{children:[`Too many requests. Wait for the time in `,_jsx(_components.code,{children:`Retry-After`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Server-side error`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Temporarily unavailable. Retry later`})]})]})]})]})}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":"Preview Plan Change","description":"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice","href":"/features/memorylake/api-reference/billing/preview-plan-change"}}},"mdxSourceWithNoJs":{"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /openapi/memorylake/admin/v1/billing/subscription/plan-change-preview`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice. proration_date echoes the instant the proration was computed for. Switches that cost nothing come back with applicable false and a reason. Changing the plan itself is done in the console.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Permission required:`}),` `,_jsx(_components.code,{children:`subscription:manage`})]})}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`plan_id`,type:`integer`,required:true,id:`param-plan-id`,children:_jsx(_components.p,{children:`The plan to price a switch to`})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription/plan-change-preview?plan_id=9e50b1aed525a8280e28b9662b6a7ba0'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer sk_xxxxxx'`})]}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`Plan Change Preview object`,children:[_jsx(ResponseField,{name:`applicable`,type:`boolean`,id:`param-applicable`,children:`false = nothing to price: see reason. The change itself may still be valid.`}),_jsxs(ResponseField,{name:`lines`,type:`array`,id:`param-lines`,children:[_jsx(_components.p,{children:`Line items behind amount_due; empty when not applicable`}),_jsxs(Expandable,{title:`Plan Change Preview Line object`,children:[_jsxs(ResponseField,{name:`amount`,type:`object`,id:`param-amount`,children:[_jsx(_components.p,{children:`Line amount; negative for credit for unused time`}),_jsxs(Expandable,{title:`Money object`,children:[_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount-1`,children:`Amount in the currency’s smallest unit (cents for usd)`}),_jsx(ResponseField,{name:`currency`,type:`string`,id:`param-currency`,children:`Lowercase ISO 4217 currency code`})]})]}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:`Line description`}),_jsx(ResponseField,{name:`proration`,type:`boolean`,id:`param-proration`,children:`true for a prorated line`}),_jsx(ResponseField,{name:`period_end`,type:`integer`,id:`param-period-end`,children:`Service period end, Unix seconds`}),_jsx(ResponseField,{name:`period_start`,type:`integer`,id:`param-period-start`,children:`Service period start, Unix seconds`})]})]}),_jsx(ResponseField,{name:`plan_id`,type:`integer`,id:`param-plan-id-1`,children:`The target plan, as requested`}),_jsxs(ResponseField,{name:`amount_due`,type:`object`,id:`param-amount-due`,children:[_jsx(_components.p,{children:`Charged immediately if the change were made now (prorated); negative = credit to the balance. Present when applicable.`}),_jsxs(Expandable,{title:`Money object`,children:[_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount-2`,children:`Amount in the currency’s smallest unit (cents for usd)`}),_jsx(ResponseField,{name:`currency`,type:`string`,id:`param-currency-1`,children:`Lowercase ISO 4217 currency code`})]})]}),_jsx(ResponseField,{name:`effective_at`,type:`integer`,id:`param-effective-at`,children:`When the change would take effect, Unix seconds: now for an upgrade, the period end for a downgrade to free`}),_jsxs(ResponseField,{name:`from_plan`,type:`object`,id:`param-from-plan`,children:[_jsx(_components.p,{children:`The current plan`}),_jsxs(Expandable,{title:`Plan Ref object`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id`,children:`Plan id`}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:`Plan name`})]})]}),_jsxs(ResponseField,{name:`next_invoice`,type:`object`,id:`param-next-invoice`,children:[_jsx(_components.p,{children:`The first full-cycle invoice on the new plan. Present when applicable.`}),_jsxs(Expandable,{title:`Next Invoice object`,children:[_jsxs(ResponseField,{name:`amount`,type:`object`,id:`param-amount-3`,children:[_jsx(_components.p,{children:`Full price of the new plan for one cycle`}),_jsxs(Expandable,{title:`Money object`,children:[_jsx(ResponseField,{name:`amount`,type:`integer`,id:`param-amount-4`,children:`Amount in the currency’s smallest unit (cents for usd)`}),_jsx(ResponseField,{name:`currency`,type:`string`,id:`param-currency-2`,children:`Lowercase ISO 4217 currency code`})]})]}),_jsx(ResponseField,{name:`date`,type:`integer`,id:`param-date`,children:`When it is issued, Unix seconds`})]})]}),_jsx(ResponseField,{name:`proration_date`,type:`integer`,id:`param-proration-date`,children:`The instant the proration was computed for, Unix seconds. Present when applicable.`}),_jsx(ResponseField,{name:`reason`,type:`string`,id:`param-reason`,children:`Why there is nothing to price: no_paid_subscription (the current subscription is not paid through the payment provider), downgrade_to_free (moving to the free plan takes effect at period end, no charge), resume_only (target is the current plan of a subscription set to cancel: switching back only resumes it)`}),_jsxs(ResponseField,{name:`to_plan`,type:`object`,id:`param-to-plan`,children:[_jsx(_components.p,{children:`The target plan`}),_jsxs(Expandable,{title:`Plan Ref object`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id-1`,children:`Plan id`}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:`Plan name`})]})]})]})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Success (200)`,numberOfLines:`42`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`42`,children:[_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Operation completed successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"applicable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lines\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1999`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usd\"`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"proration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1760000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period_start\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1760000000`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount_due\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1999`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usd\"`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effective_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1760000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from_plan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example name\"`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_invoice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1999`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usd\"`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"proration_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"no_paid_subscription\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to_plan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example name\"`})]}),`\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`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`Errors answer with `,_jsx(_components.code,{children:`success: false`}),`, a `,_jsx(_components.code,{children:`message`}),` and an `,_jsx(_components.code,{children:`error_code`}),`. See `,_jsx(_components.a,{href:`/features/memorylake/api-reference/errors`,children:`Error Codes`}),` for every code.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`A parameter or the body is invalid`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`The API key is missing, invalid, disabled or expired`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`The key is not allowed to do this`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`The request conflicts with the current state, e.g. a duplicate or a limit reached`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`The body or a parameter failed validation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsxs(_components.td,{children:[`Too many requests. Wait for the time in `,_jsx(_components.code,{children:`Retry-After`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Server-side error`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Temporarily unavailable. Retry later`})]})]})]})]})}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":"Preview Plan Change","description":"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice","href":"/features/memorylake/api-reference/billing/preview-plan-change"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Query Parameters","slug":"query-parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Errors","slug":"errors","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> GET\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription/plan-change-preview?plan_id=9e50b1aed525a8280e28b9662b6a7ba0'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer sk_xxxxxx'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Success (200)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"42\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Operation completed successfully\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"applicable\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lines\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1999\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"usd\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"proration\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"period_end\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1760000000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"period_start\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1760000000\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"plan_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount_due\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1999\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"usd\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"effective_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1760000000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"from_plan\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example name\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"next_invoice\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1999\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"usd\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"proration_date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reason\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"no_paid_subscription\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"to_plan\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example name\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/datacloud-924043c1/1c558f432fed73aa/hidden-docs.js"],"subdomain":"datacloud-924043c1","siteName":"MemoryLake AI","title":"Preview Plan Change - MemoryLake AI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/features/memorylake/api-reference/billing/preview-plan-change","matchLevel":0},"zh":{"href":"/zh/features/memorylake/api-reference/billing/preview-plan-change","matchLevel":1}}},"lastModified":"2026-10-16T08:17:36.883Z","originalFileLocation":"features/memorylake/api-reference/billing/preview-plan-change.mdx","locale":"en"},"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=\"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice\">\u003cmeta data-mint-head name=\"application-name\" content=\"MemoryLake AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/datacloud-924043c1/krsYsTllXK6ojRYh/_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/datacloud-924043c1/krsYsTllXK6ojRYh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/datacloud-924043c1/krsYsTllXK6ojRYh/_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/datacloud-924043c1/krsYsTllXK6ojRYh/_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/datacloud-924043c1/krsYsTllXK6ojRYh/_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/datacloud-924043c1/krsYsTllXK6ojRYh/_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/datacloud-924043c1/krsYsTllXK6ojRYh/_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/datacloud-924043c1/krsYsTllXK6ojRYh/_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/datacloud-924043c1/krsYsTllXK6ojRYh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Preview Plan Change - MemoryLake AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MemoryLake AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://datacloud-924043c1.mintlify.site/_mintlify/api/og/v2?division=Subscription\u0026amp;title=Preview+Plan+Change\u0026amp;description=Prices+switching+the+subscription+to+plan_id+without+changing+anything%3A+the+prorated+amount+charged+now%2C+its+line+items%2C+when+the+change+takes+effect+and+the+ne\u0026amp;theme=5e044ebec589c4295124e63e\u0026amp;signature=b78acdd22222caf877c198e049b751326dec8f2e50e20bdf0fdd4ca3aa798c75\">\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=\"Preview Plan Change - MemoryLake AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://datacloud-924043c1.mintlify.site/_mintlify/api/og/v2?division=Subscription\u0026amp;title=Preview+Plan+Change\u0026amp;description=Prices+switching+the+subscription+to+plan_id+without+changing+anything%3A+the+prorated+amount+charged+now%2C+its+line+items%2C+when+the+change+takes+effect+and+the+ne\u0026amp;theme=5e044ebec589c4295124e63e\u0026amp;signature=b78acdd22222caf877c198e049b751326dec8f2e50e20bdf0fdd4ca3aa798c75\">\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/datacloud-924043c1/krsYsTllXK6ojRYh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MemoryLake AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E75C2A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/memorylake/api-reference/billing/preview-plan-change.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.memorylake.ai/zh/features/memorylake/api-reference/billing/preview-plan-change\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.memorylake.ai/#organization\",\"name\":\"MemoryLake AI\",\"url\":\"https://docs.memorylake.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/datacloud-924043c1/W_-TJZhNN0WMmbCI/logo/light.svg?fit=max\u0026auto=format\u0026n=W_-TJZhNN0WMmbCI\u0026q=85\u0026s=9766e4cbaa7d674460d63cee7a88c501\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.memorylake.ai#website\",\"name\":\"MemoryLake AI\",\"url\":\"https://docs.memorylake.ai\",\"publisher\":{\"@id\":\"https://docs.memorylake.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change#webpage\",\"url\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change\",\"name\":\"Preview Plan Change\",\"description\":\"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice\",\"dateModified\":\"2026-10-16T08:17:36.883Z\",\"isPartOf\":{\"@id\":\"https://docs.memorylake.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MemoryLake API\",\"item\":\"https://docs.memorylake.ai/features/memorylake/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Billing\",\"item\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/get-subscription\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Subscription\",\"item\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/get-subscription\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Preview Plan Change\",\"item\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change#article\",\"headline\":\"Preview Plan Change\",\"name\":\"Preview Plan Change\",\"description\":\"Prices switching the subscription to plan_id without changing anything: the prorated amount charged now, its line items, when the change takes effect and the next full invoice\",\"url\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change\",\"mainEntityOfPage\":{\"@id\":\"https://docs.memorylake.ai/features/memorylake/api-reference/billing/preview-plan-change#webpage\"},\"dateModified\":\"2026-10-16T08:17:36.883Z\",\"publisher\":{\"@id\":\"https://docs.memorylake.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.memorylake.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MemoryLake AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MemoryLake AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/memorylake/api-reference/billing/preview-plan-change.md","siteName":"MemoryLake AI","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/overview"}]},{"tab":"API reference","groups":[{"group":"API documentation","pages":[]},{"group":"MemoryLake API","pages":[{"title":"MemoryLake API Reference","href":"/features/memorylake/api-reference/overview"},{"title":"API Authentication","href":"/features/memorylake/api-reference/authentication"},{"group":"Core Memory Operations","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/core-memory/overview"},{"title":"Import Documents","href":"/features/memorylake/api-reference/v3-documents/import-documents"},{"title":"Append Conversation Message","href":"/features/memorylake/api-reference/conversations/create-message"},{"title":"Search Memories","href":"/features/memorylake/api-reference/search/search-memories"}]},{"group":"Library","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/library/overview"},{"title":"Get Item","href":"/features/memorylake/api-reference/library/get-item"},{"title":"List Items","href":"/features/memorylake/api-reference/library/list-items"},{"title":"Download Item","href":"/features/memorylake/api-reference/library/download-item"},{"title":"Create Upload","href":"/features/memorylake/api-reference/library/create-upload"},{"title":"Create Item","href":"/features/memorylake/api-reference/library/create-item"},{"title":"Delete Item","href":"/features/memorylake/api-reference/library/delete-item"},{"title":"Batch Delete Items","href":"/features/memorylake/api-reference/library/batch-delete-items"},{"title":"Set Item Xattrs","href":"/features/memorylake/api-reference/library/set-item-xattrs"},{"title":"Delete Item Xattrs","href":"/features/memorylake/api-reference/library/delete-item-xattrs"}]},{"group":"Workspaces","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/workspaces/overview"},{"title":"List Workspaces","href":"/features/memorylake/api-reference/workspaces/list-workspaces"},{"title":"Create Workspace","href":"/features/memorylake/api-reference/workspaces/create-workspace"},{"title":"Get Workspace","href":"/features/memorylake/api-reference/workspaces/get-workspace"},{"title":"Update Workspace","href":"/features/memorylake/api-reference/workspaces/update-workspace"},{"title":"Delete Workspace","href":"/features/memorylake/api-reference/workspaces/delete-workspace"},{"title":"List Workspace Facts","href":"/features/memorylake/api-reference/facts/list-workspace-facts"},{"group":"Conversations","pages":[{"title":"List Conversations","href":"/features/memorylake/api-reference/conversations/list-conversations"},{"title":"Create Conversation","href":"/features/memorylake/api-reference/conversations/create-conversation"},{"title":"Get Conversation","href":"/features/memorylake/api-reference/conversations/get-conversation"},{"title":"Delete Conversation","href":"/features/memorylake/api-reference/conversations/delete-conversation"},{"title":"List Messages","href":"/features/memorylake/api-reference/conversations/list-messages"},{"title":"Batch Get Messages","href":"/features/memorylake/api-reference/conversations/batch-get-messages"}]},{"group":"IM Integrations","pages":[{"title":"List IM Integrations","href":"/features/memorylake/api-reference/integrations/list-integrations"},{"title":"Create IM Integration","href":"/features/memorylake/api-reference/integrations/create-integration"},{"title":"Get IM Integration","href":"/features/memorylake/api-reference/integrations/get-integration"},{"title":"Update IM Integration","href":"/features/memorylake/api-reference/integrations/update-integration"},{"title":"Delete IM Integration","href":"/features/memorylake/api-reference/integrations/delete-integration"}]}]},{"group":"Actors","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/actors/overview"},{"title":"List Actors","href":"/features/memorylake/api-reference/actors/list-actors"},{"title":"Create Actor","href":"/features/memorylake/api-reference/actors/create-actor"},{"title":"Get Actor","href":"/features/memorylake/api-reference/actors/get-actor"},{"title":"Update Actor","href":"/features/memorylake/api-reference/actors/update-actor"},{"title":"Delete Actor","href":"/features/memorylake/api-reference/actors/delete-actor"},{"title":"List Workspace Actors","href":"/features/memorylake/api-reference/actors/list-workspace-actors"},{"title":"Bind Actor to Workspace","href":"/features/memorylake/api-reference/actors/bind-actor"},{"title":"Unbind Actor from Workspace","href":"/features/memorylake/api-reference/actors/unbind-actor"},{"group":"Actor Facts","pages":[{"title":"List Actor Facts","href":"/features/memorylake/api-reference/facts/list-actor-facts"},{"title":"Add Actor Facts","href":"/features/memorylake/api-reference/facts/add-actor-facts"},{"title":"Get Actor Fact","href":"/features/memorylake/api-reference/facts/get-actor-fact"},{"title":"Get Actor Fact Change History","href":"/features/memorylake/api-reference/facts/get-actor-fact-trace"},{"title":"Update Actor Fact","href":"/features/memorylake/api-reference/facts/update-actor-fact"},{"title":"Forget Actor Fact","href":"/features/memorylake/api-reference/facts/forget-actor-fact"},{"title":"Batch Forget Actor Facts","href":"/features/memorylake/api-reference/facts/batch-forget-actor-facts"}]},{"group":"Memory Conflicts","pages":[{"title":"List Actor Memory Conflicts","href":"/features/memorylake/api-reference/v3-conflicts/list-actor-conflicts"},{"title":"Get Actor Memory Conflict","href":"/features/memorylake/api-reference/v3-conflicts/get-actor-conflict"},{"title":"Resolve Actor Memory Conflict","href":"/features/memorylake/api-reference/v3-conflicts/resolve-actor-conflict"}]},{"group":"Memory Settings","pages":[{"title":"Get Actor Memory Settings","href":"/features/memorylake/api-reference/memory-settings/get-actor-memory-settings"},{"title":"Update Actor Memory Settings","href":"/features/memorylake/api-reference/memory-settings/update-actor-memory-settings"},{"title":"Draft Actor Fact Instruction","href":"/features/memorylake/api-reference/memory-settings/draft-actor-fact-instruction"}]}]},{"group":"Agents","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/agents/overview"},{"title":"A2A Integration","href":"/features/memorylake/api-reference/a2a/overview"},{"title":"List Open Data Collections","href":"/features/memorylake/api-reference/a2a/list-open-data-collections"},{"title":"List Agents","href":"/features/memorylake/api-reference/agents/list-agents"},{"title":"Create Agent","href":"/features/memorylake/api-reference/agents/create-agent"},{"title":"Get Agent","href":"/features/memorylake/api-reference/agents/get-agent"},{"title":"Update Agent","href":"/features/memorylake/api-reference/agents/update-agent"},{"title":"Delete Agent","href":"/features/memorylake/api-reference/agents/delete-agent"},{"title":"Fork Agent","href":"/features/memorylake/api-reference/agents/fork-agent"},{"group":"Versions","pages":[{"title":"List Agent Versions","href":"/features/memorylake/api-reference/agents/list-agent-versions"},{"title":"Create Agent Version","href":"/features/memorylake/api-reference/agents/create-agent-version"},{"title":"Get Agent Version","href":"/features/memorylake/api-reference/agents/get-agent-version"}]},{"title":"List Workspace Agents","href":"/features/memorylake/api-reference/agents/list-workspace-agents"},{"title":"Bind Agent to Workspace","href":"/features/memorylake/api-reference/agents/bind-agent"},{"title":"Unbind Agent from Workspace","href":"/features/memorylake/api-reference/agents/unbind-agent"},{"group":"Agent Facts","pages":[{"title":"List Agent Facts","href":"/features/memorylake/api-reference/facts/list-agent-facts"},{"title":"Add Agent Facts","href":"/features/memorylake/api-reference/facts/add-agent-facts"},{"title":"Get Agent Fact","href":"/features/memorylake/api-reference/facts/get-agent-fact"},{"title":"Get Agent Fact Change History","href":"/features/memorylake/api-reference/facts/get-agent-fact-trace"},{"title":"Update Agent Fact","href":"/features/memorylake/api-reference/facts/update-agent-fact"},{"title":"Forget Agent Fact","href":"/features/memorylake/api-reference/facts/forget-agent-fact"},{"title":"Batch Forget Agent Facts","href":"/features/memorylake/api-reference/facts/batch-forget-agent-facts"}]},{"group":"Memory Conflicts","pages":[{"title":"List Agent Memory Conflicts","href":"/features/memorylake/api-reference/v3-conflicts/list-agent-conflicts"},{"title":"Get Agent Memory Conflict","href":"/features/memorylake/api-reference/v3-conflicts/get-agent-conflict"},{"title":"Resolve Agent Memory Conflict","href":"/features/memorylake/api-reference/v3-conflicts/resolve-agent-conflict"}]},{"group":"Memory Settings","pages":[{"title":"Get Agent Memory Settings","href":"/features/memorylake/api-reference/memory-settings/get-agent-memory-settings"},{"title":"Update Agent Memory Settings","href":"/features/memorylake/api-reference/memory-settings/update-agent-memory-settings"},{"title":"Draft Agent Fact Instruction","href":"/features/memorylake/api-reference/memory-settings/draft-agent-fact-instruction"}]}]},{"group":"Skills","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/skills/overview"},{"title":"Request Package Upload","href":"/features/memorylake/api-reference/skills/create-package-upload"},{"title":"List Skills","href":"/features/memorylake/api-reference/skills/list-skills"},{"title":"Create Skill","href":"/features/memorylake/api-reference/skills/create-skill"},{"title":"Get Skill","href":"/features/memorylake/api-reference/skills/get-skill"},{"title":"Update Skill","href":"/features/memorylake/api-reference/skills/update-skill"},{"title":"Delete Skill","href":"/features/memorylake/api-reference/skills/delete-skill"},{"group":"Versions","pages":[{"title":"List Skill Versions","href":"/features/memorylake/api-reference/skills/list-skill-versions"},{"title":"Publish Skill Version","href":"/features/memorylake/api-reference/skills/create-skill-version"},{"title":"Get Skill Version","href":"/features/memorylake/api-reference/skills/get-skill-version"}]}]},{"group":"Boundaries","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/boundaries/overview"},{"title":"List Boundaries","href":"/features/memorylake/api-reference/boundaries/list-boundaries"},{"title":"Create Boundary","href":"/features/memorylake/api-reference/boundaries/create-boundary"},{"title":"Get Boundary","href":"/features/memorylake/api-reference/boundaries/get-boundary"},{"title":"Update Boundary","href":"/features/memorylake/api-reference/boundaries/update-boundary"},{"title":"Delete Boundary","href":"/features/memorylake/api-reference/boundaries/delete-boundary"}]},{"group":"Projects","pages":[{"title":"Overview","href":"/features/memorylake/api-reference/v3-projects/overview"},{"title":"List Projects","href":"/features/memorylake/api-reference/v3-projects/list-projects"},{"title":"Create Project","href":"/features/memorylake/api-reference/v3-projects/create-project"},{"title":"Get Project","href":"/features/memorylake/api-reference/v3-projects/get-project"},{"title":"Update Project","href":"/features/memorylake/api-reference/v3-projects/update-project"},{"title":"Delete Project","href":"/features/memorylake/api-reference/v3-projects/delete-project"},{"group":"Documents","pages":[{"title":"List Documents","href":"/features/memorylake/api-reference/v3-documents/list-documents"},{"title":"Get Document","href":"/features/memorylake/api-reference/v3-documents/get-document"},{"title":"Download Document","href":"/features/memorylake/api-reference/v3-documents/download-document"},{"title":"Delete Documents","href":"/features/memorylake/api-reference/v3-documents/delete-documents"}]},{"group":"Project Facts","pages":[{"title":"List Facts","href":"/features/memorylake/api-reference/facts/list-facts"},{"title":"Add Facts","href":"/features/memorylake/api-reference/facts/add-facts"},{"title":"Get Fact","href":"/features/memorylake/api-reference/facts/get-fact"},{"title":"Get Fact Change History","href":"/features/memorylake/api-reference/facts/get-fact-trace"},{"title":"Update Fact","href":"/features/memorylake/api-reference/facts/update-fact"},{"title":"Forget Fact","href":"/features/memorylake/api-reference/facts/forget-fact"},{"title":"Batch Forget Facts","href":"/features/memorylake/api-reference/facts/batch-forget-facts"}]},{"group":"Memory Conflicts","pages":[{"title":"List Memory Conflicts","href":"/features/memorylake/api-reference/v3-conflicts/list-conflicts"},{"title":"Get Memory Conflict","href":"/features/memorylake/api-reference/v3-conflicts/get-conflict"},{"title":"Resolve Memory Conflict","href":"/features/memorylake/api-reference/v3-conflicts/resolve-conflict"}]},{"group":"Memory Settings","pages":[{"title":"Get Project Memory Settings","href":"/features/memorylake/api-reference/memory-settings/get-project-memory-settings"},{"title":"Update Project Memory Settings","href":"/features/memorylake/api-reference/memory-settings/update-project-memory-settings"},{"title":"Draft Project Fact Instruction","href":"/features/memorylake/api-reference/memory-settings/draft-project-fact-instruction"}]}]},{"group":"Databases","tag":"Preview","pages":[{"title":"Databases API Overview","href":"/features/memorylake/api-reference/database/overview"},{"group":"Connections","pages":[{"title":"List Database Connections","href":"/features/memorylake/api-reference/database/connections/list-database-connections"},{"title":"Test Database Connectivity","href":"/features/memorylake/api-reference/database/connections/test-database-connectivity"},{"title":"Create Database Connection","href":"/features/memorylake/api-reference/database/connections/create-database-connection"},{"title":"Get Database Connection","href":"/features/memorylake/api-reference/database/connections/get-database-connection"},{"title":"Update Database Connection","href":"/features/memorylake/api-reference/database/connections/update-database-connection"},{"title":"Delete Database Connection","href":"/features/memorylake/api-reference/database/connections/delete-database-connection"},{"title":"List Connection Schemas","href":"/features/memorylake/api-reference/database/connections/list-connection-schemas"}]},{"group":"Datasources","pages":[{"title":"List Datasources","href":"/features/memorylake/api-reference/database/datasources/list-datasources"},{"title":"Create Datasource","href":"/features/memorylake/api-reference/database/datasources/create-datasource"},{"title":"Get Datasource","href":"/features/memorylake/api-reference/database/datasources/get-datasource"},{"title":"Update Datasource","href":"/features/memorylake/api-reference/database/datasources/update-datasource"},{"title":"Delete Datasource","href":"/features/memorylake/api-reference/database/datasources/delete-datasource"},{"title":"Build Datasource Index","href":"/features/memorylake/api-reference/database/datasources/build-datasource-index"},{"title":"List Tables","href":"/features/memorylake/api-reference/database/datasources/list-tables"},{"title":"List Columns","href":"/features/memorylake/api-reference/database/datasources/list-columns"},{"title":"Edit Schema Metadata","href":"/features/memorylake/api-reference/database/datasources/edit-schema-metadata"}]},{"group":"Analysis Models","pages":[{"title":"List Analysis Model Templates","href":"/features/memorylake/api-reference/database/analysis-models/list-analysis-model-templates"},{"title":"List Analysis Models","href":"/features/memorylake/api-reference/database/analysis-models/list-analysis-models"},{"title":"Create Analysis Model","href":"/features/memorylake/api-reference/database/analysis-models/create-analysis-model"},{"title":"Get Analysis Model","href":"/features/memorylake/api-reference/database/analysis-models/get-analysis-model"},{"title":"Update Analysis Model","href":"/features/memorylake/api-reference/database/analysis-models/update-analysis-model"},{"title":"Delete Analysis Model","href":"/features/memorylake/api-reference/database/analysis-models/delete-analysis-model"},{"title":"List Knowledge Entries","href":"/features/memorylake/api-reference/database/analysis-models/list-knowledge-entries"},{"title":"Add Knowledge Entry","href":"/features/memorylake/api-reference/database/analysis-models/add-knowledge-entry"},{"title":"Get Knowledge Entry","href":"/features/memorylake/api-reference/database/analysis-models/get-knowledge-entry"},{"title":"Edit Knowledge Entry","href":"/features/memorylake/api-reference/database/analysis-models/edit-knowledge-entry"},{"title":"Disable or Restore Knowledge Entry","href":"/features/memorylake/api-reference/database/analysis-models/disable-knowledge-entry"},{"title":"Delete Knowledge Entry","href":"/features/memorylake/api-reference/database/analysis-models/delete-knowledge-entry"}]},{"group":"Database Memories","pages":[{"title":"List Database Memories","href":"/features/memorylake/api-reference/database/database-memories/list-database-memories"},{"title":"Create Database Memory","href":"/features/memorylake/api-reference/database/database-memories/create-database-memory"},{"title":"Get Database Memory","href":"/features/memorylake/api-reference/database/database-memories/get-database-memory"},{"title":"Update Database Memory","href":"/features/memorylake/api-reference/database/database-memories/update-database-memory"},{"title":"Delete Database Memory","href":"/features/memorylake/api-reference/database/database-memories/delete-database-memory"},{"title":"Reload Database Memory","href":"/features/memorylake/api-reference/database/database-memories/reload-database-memory"},{"title":"Generate Database Memory Instruction","href":"/features/memorylake/api-reference/database/database-memories/generate-database-memory-instruction"}]},{"group":"Database Access","pages":[{"title":"Get Database Resource Access","href":"/features/memorylake/api-reference/access-control/get-database-resource-access"},{"title":"List Database Permission Level Options","href":"/features/memorylake/api-reference/access-control/list-database-permission-level-options"},{"title":"Set Database Permission Level","href":"/features/memorylake/api-reference/access-control/set-database-permission-level"},{"title":"Grant Database Access","href":"/features/memorylake/api-reference/access-control/grant-database-scope"},{"title":"Revoke Database Access","href":"/features/memorylake/api-reference/access-control/revoke-database-scope"}]}]},{"group":"Team","pages":[{"title":"Get Team","href":"/features/memorylake/api-reference/team/get-team"},{"title":"Rename Team","href":"/features/memorylake/api-reference/team/update-team"},{"title":"Create Team","href":"/features/memorylake/api-reference/team/create-team"},{"title":"Transfer Ownership","href":"/features/memorylake/api-reference/team/transfer-ownership"},{"title":"Delete Team","href":"/features/memorylake/api-reference/team/delete-team"}]},{"group":"Members","pages":[{"title":"List Members","href":"/features/memorylake/api-reference/members/list-members"},{"title":"Get Member","href":"/features/memorylake/api-reference/members/get-member"},{"title":"Create Virtual Member","href":"/features/memorylake/api-reference/members/create-member"},{"title":"Update Member","href":"/features/memorylake/api-reference/members/update-member"},{"title":"Remove Member","href":"/features/memorylake/api-reference/members/remove-member"},{"title":"List Roles","href":"/features/memorylake/api-reference/members/list-roles"},{"title":"Get Member Access Scope","href":"/features/memorylake/api-reference/members/get-member-access-scope"},{"title":"Set Member Access Scope","href":"/features/memorylake/api-reference/members/set-member-access-scope"},{"title":"Get Member Effective Permissions","href":"/features/memorylake/api-reference/members/get-member-effective-permissions"}]},{"group":"Invitations","pages":[{"title":"List Invitations","href":"/features/memorylake/api-reference/invitations/list-invitations"},{"title":"Create Invitation","href":"/features/memorylake/api-reference/invitations/create-invitation"},{"title":"Get Invitation","href":"/features/memorylake/api-reference/invitations/get-invitation"},{"title":"Revoke Invitation","href":"/features/memorylake/api-reference/invitations/revoke-invitation"}]},{"group":"API Keys","pages":[{"title":"List API Keys","href":"/features/memorylake/api-reference/api-keys/list-api-keys"},{"title":"Create API Key","href":"/features/memorylake/api-reference/api-keys/create-api-key"},{"title":"Get API Key","href":"/features/memorylake/api-reference/api-keys/get-api-key"},{"title":"Update API Key","href":"/features/memorylake/api-reference/api-keys/update-api-key"},{"title":"Rotate API Key","href":"/features/memorylake/api-reference/api-keys/rotate-api-key"},{"title":"Revoke API Key","href":"/features/memorylake/api-reference/api-keys/revoke-api-key"}]},{"group":"Authorized Apps","pages":[{"title":"List My Authorized Apps","href":"/features/memorylake/api-reference/authorized-apps/list-my-authorized-apps"},{"title":"Revoke Authorized App","href":"/features/memorylake/api-reference/authorized-apps/revoke-my-authorized-app"}]},{"group":"Webhooks","pages":[{"title":"List Webhooks","href":"/features/memorylake/api-reference/webhooks/list-webhooks"},{"title":"Add Webhook","href":"/features/memorylake/api-reference/webhooks/create-webhook"},{"title":"Get Webhook","href":"/features/memorylake/api-reference/webhooks/get-webhook"},{"title":"Update Webhook","href":"/features/memorylake/api-reference/webhooks/update-webhook"},{"title":"Delete Webhook","href":"/features/memorylake/api-reference/webhooks/delete-webhook"},{"title":"Enable Webhook","href":"/features/memorylake/api-reference/webhooks/enable-webhook"},{"title":"Disable Webhook","href":"/features/memorylake/api-reference/webhooks/disable-webhook"},{"title":"Rotate Signing Secret","href":"/features/memorylake/api-reference/webhooks/rotate-webhook-secret"},{"title":"Send Test Event","href":"/features/memorylake/api-reference/webhooks/send-webhook-test-event"},{"title":"List Event Types","href":"/features/memorylake/api-reference/webhooks/list-webhook-event-types"},{"title":"List Deliveries","href":"/features/memorylake/api-reference/webhooks/list-webhook-deliveries"},{"title":"Get Delivery","href":"/features/memorylake/api-reference/webhooks/get-webhook-delivery"},{"title":"Resend Delivery","href":"/features/memorylake/api-reference/webhooks/resend-webhook-delivery"}]},{"group":"Access Control","pages":[{"title":"Access Control","href":"/features/memorylake/api-reference/access-control/overview"},{"title":"Get Permission Catalog","href":"/features/memorylake/api-reference/access-control/get-permission-catalog"},{"title":"List My Permissions","href":"/features/memorylake/api-reference/access-control/list-my-permissions"},{"group":"Roles","pages":[{"title":"Get Role","href":"/features/memorylake/api-reference/access-control/get-role"},{"title":"Create Custom Role","href":"/features/memorylake/api-reference/access-control/create-role"},{"title":"Update Custom Role","href":"/features/memorylake/api-reference/access-control/update-role"},{"title":"Delete Custom Role","href":"/features/memorylake/api-reference/access-control/delete-role"},{"title":"Get Role Access Scope","href":"/features/memorylake/api-reference/access-control/get-role-access-scope"},{"title":"Set Role Access Scope","href":"/features/memorylake/api-reference/access-control/set-role-access-scope"}]},{"group":"Permission Rules","pages":[{"title":"List Permission Rules","href":"/features/memorylake/api-reference/access-control/list-permission-rules"},{"title":"Create Permission Rules","href":"/features/memorylake/api-reference/access-control/create-permission-rules"},{"title":"Delete Permission Rule","href":"/features/memorylake/api-reference/access-control/delete-permission-rule"}]},{"group":"Access Groups","pages":[{"title":"List Access Groups","href":"/features/memorylake/api-reference/access-control/list-access-groups"},{"title":"Create Access Group","href":"/features/memorylake/api-reference/access-control/create-access-group"},{"title":"Get Access Group","href":"/features/memorylake/api-reference/access-control/get-access-group"},{"title":"Update Access Group","href":"/features/memorylake/api-reference/access-control/update-access-group"},{"title":"Delete Access Group","href":"/features/memorylake/api-reference/access-control/delete-access-group"},{"title":"List Access Group Members","href":"/features/memorylake/api-reference/access-control/list-access-group-members"},{"title":"Add Access Group Members","href":"/features/memorylake/api-reference/access-control/add-access-group-members"},{"title":"Remove Access Group Member","href":"/features/memorylake/api-reference/access-control/remove-access-group-member"},{"title":"Set Access Group Permissions","href":"/features/memorylake/api-reference/access-control/set-access-group-permissions"},{"title":"Get Access Group Access Scope","href":"/features/memorylake/api-reference/access-control/get-access-group-access-scope"},{"title":"Set Access Group Access Scope","href":"/features/memorylake/api-reference/access-control/set-access-group-access-scope"},{"title":"Get Access Group Effective Permissions","href":"/features/memorylake/api-reference/access-control/get-access-group-effective-permissions"}]},{"group":"Resource Access","pages":[{"title":"Get Resource Access","href":"/features/memorylake/api-reference/access-control/get-resource-access"},{"title":"List Permission Level Options","href":"/features/memorylake/api-reference/access-control/list-permission-level-options"},{"title":"Set Permission Level","href":"/features/memorylake/api-reference/access-control/set-permission-level"},{"title":"Grant Access","href":"/features/memorylake/api-reference/access-control/grant-scope"},{"title":"Revoke Access","href":"/features/memorylake/api-reference/access-control/revoke-scope"}]}]},{"group":"Usage \u0026 Audit Logs","pages":[{"title":"Get Usage","href":"/features/memorylake/api-reference/usage/get-usage"},{"title":"Get Usage Summary","href":"/features/memorylake/api-reference/usage/get-usage-summary"},{"title":"List Usage Records","href":"/features/memorylake/api-reference/usage/list-usage-records"},{"title":"List Audit Logs","href":"/features/memorylake/api-reference/usage/list-audit-logs"}]},{"group":"Billing","pages":[{"group":"Subscription","pages":[{"title":"Get Subscription","description":"Returns the team's current subscription: plan, state, current cycle and whether it ends at the cycle end","href":"/features/memorylake/api-reference/billing/get-subscription"},{"title":"Preview Plan Change","href":"/features/memorylake/api-reference/billing/preview-plan-change"}]},{"group":"Credits","pages":[{"title":"Get Credit Balance","description":"Returns the team's balance in tokens, split into this cycle's subscription grant and one-time credit, plus the billing mode","href":"/features/memorylake/api-reference/billing/get-credit-balance"},{"title":"List Credit Transactions","href":"/features/memorylake/api-reference/billing/list-credit-transactions"},{"title":"Get Low-Balance Alert","href":"/features/memorylake/api-reference/billing/get-balance-alert"},{"title":"Set Low-Balance Alert","href":"/features/memorylake/api-reference/billing/set-balance-alert"},{"title":"Reset Low-Balance Alert","href":"/features/memorylake/api-reference/billing/reset-balance-alert"},{"title":"List Low-Balance Alert Events","href":"/features/memorylake/api-reference/billing/list-balance-alert-events"},{"title":"Get Auto Top-Up","href":"/features/memorylake/api-reference/billing/get-auto-topup"},{"title":"List Auto Top-Up Attempts","href":"/features/memorylake/api-reference/billing/list-auto-topup-attempts"}]},{"group":"Orders","pages":[{"title":"List Orders","href":"/features/memorylake/api-reference/billing/list-orders"},{"title":"Get Order","href":"/features/memorylake/api-reference/billing/get-order"}]},{"group":"Payment Methods","pages":[{"title":"List Payment Methods","href":"/features/memorylake/api-reference/billing/list-payment-methods"}]},{"group":"Invoices","pages":[{"title":"List Invoices","href":"/features/memorylake/api-reference/billing/list-invoices"},{"title":"Get Invoice","href":"/features/memorylake/api-reference/billing/get-invoice"},{"title":"Download Invoice PDF","href":"/features/memorylake/api-reference/billing/download-invoice-pdf"},{"title":"Get Billing Details","href":"/features/memorylake/api-reference/billing/get-billing-details"},{"title":"Set Billing Details","href":"/features/memorylake/api-reference/billing/set-billing-details"}]}]},{"group":"Deprecated","pages":[{"group":"Projects","pages":[{"title":"List Projects","href":"/features/memorylake/api-reference/projects/list-projects"},{"title":"Create Project","href":"/features/memorylake/api-reference/projects/create-project"},{"title":"Get Project","href":"/features/memorylake/api-reference/projects/get-project"},{"title":"Update Project","href":"/features/memorylake/api-reference/projects/update-project"},{"title":"Delete Project","href":"/features/memorylake/api-reference/projects/delete-project"},{"title":"Search Memories \u0026 Documents in Project","href":"/features/memorylake/api-reference/projects/search-project"}]},{"group":"Documents","pages":[{"title":"List Documents","href":"/features/memorylake/api-reference/memories/list-documents"},{"title":"Get Document","href":"/features/memorylake/api-reference/memories/get-document"},{"title":"Add Documents","href":"/features/memorylake/api-reference/memories/add-document"},{"title":"Remove Documents","href":"/features/memorylake/api-reference/memories/remove-documents"},{"title":"Search Documents","href":"/features/memorylake/api-reference/memories/search-documents"},{"title":"Download Document","href":"/features/memorylake/api-reference/memories/download-document"}]},{"group":"Memories","pages":[{"title":"Add Memory","href":"/features/memorylake/api-reference/memories/add-memory"},{"title":"List Memories","href":"/features/memorylake/api-reference/memories/list-memories"},{"title":"Get Memory","href":"/features/memorylake/api-reference/memories/get-memory"},{"title":"Get Memory Trace","href":"/features/memorylake/api-reference/memories/get-memory-trace"},{"title":"Search Memories","href":"/features/memorylake/api-reference/memories/search-memories"},{"title":"Forget Memory","href":"/features/memorylake/api-reference/memories/forget-memory"},{"title":"List Memory Conflicts","href":"/features/memorylake/api-reference/memories/list-memory-conflicts"},{"title":"Get Memory Conflict","href":"/features/memorylake/api-reference/memories/get-memory-conflict"},{"title":"Resolve Memory Conflict","href":"/features/memorylake/api-reference/memories/resolve-memory-conflict"}]}]},{"title":"Error Codes \u0026 Handling","href":"/features/memorylake/api-reference/errors"},{"title":"Rate Limiting \u0026 Quotas","href":"/features/memorylake/api-reference/rate-limits"}]},{"group":"Memory Router API","pages":[{"title":"Memory Router API","href":"/features/memory-router/api-reference/overview"},{"title":"Chat Completions","href":"/features/memory-router/api-reference/chat-completions"},{"title":"Responses","href":"/features/memory-router/api-reference/responses"},{"title":"Embeddings","href":"/features/memory-router/api-reference/embeddings"},{"title":"Images","href":"/features/memory-router/api-reference/images"},{"title":"Messages","href":"/features/memory-router/api-reference/messages"},{"title":"List Models","href":"/features/memory-router/api-reference/list-models"}]}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/features/memorylake/api-reference/billing/preview-plan-change"}]}]},"basePath":"","title":"Preview Plan Change - MemoryLake AI","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["2b790eda92"],"chunks":["ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","utils-DINdUa17.js","utils-cjri0g4r.js","isEqual-Du6c450V.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","snippetPresets-CbOVSLWB.js","style-to-object-BY3JEAdk.js","use-playground-group-access-98JyaSW7.js","cloneDeep-BldndzCM.js","v4-DIgz8zy6.js"]}