Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.
Active subscription details, or null if no subscription
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lava Documentation","colors":{"primary":"#ff5a1f","light":"#ff8833","dark":"#de3232"},"logo":{"light":"https://mintcdn.com/lava-a04d7b3f/ZrRxM7p0Ydvvj-HA/logo/light.svg?fit=max\u0026auto=format\u0026n=ZrRxM7p0Ydvvj-HA\u0026q=85\u0026s=03458687cb3832e4d90e88623271f016","dark":"https://mintcdn.com/lava-a04d7b3f/ZrRxM7p0Ydvvj-HA/logo/dark.svg?fit=max\u0026auto=format\u0026n=ZrRxM7p0Ydvvj-HA\u0026q=85\u0026s=399fa29bdca1e83dcecc5beb383ac715"},"favicon":"https://mintcdn.com/lava-a04d7b3f/ZrRxM7p0Ydvvj-HA/favicon.svg?fit=max\u0026auto=format\u0026n=ZrRxM7p0Ydvvj-HA\u0026q=85\u0026s=8242073433742c7d1089fcaa7fb49ba3","navbar":{"links":[{"icon":"globe","href":"https://lava.so","label":"Website"},{"icon":"newspaper","href":"https://lava.so/blog","label":"Blog"}],"primary":{"type":"button","label":"Sign Up","href":"https://lava.so/sign-up"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/lavapayments"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lava-a04d7b3f","hasAudioNarration":false,"actualSubdomain":"lava-a04d7b3f","customDomains":["lava.so"],"gitSource":{"type":"github","owner":"lavapayments","repo":"lava","deployBranch":"main","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ada807f41469b3659579c31","collectionId":"1c1fff06-fbd3-4f22-b387-53ba961f93d3","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ada807f41469b3659579c31"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adbf068088c80d2d205218d","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"API Reference","count":60},{"language":"default","tag":"Build with Lava Gateway","count":24},{"language":"default","tag":"Lava Desktop","count":11},{"language":"default","tag":"Get Started","count":9},{"language":"default","tag":"Monetize","count":6},{"language":"default","tag":"Customers","count":6},{"language":"default","tag":"Spend Keys","count":6},{"language":"default","tag":"Agents","count":5},{"language":"default","tag":"AI Gateway","count":5},{"language":"default","tag":"Lava MCP","count":5}]},"assistantConfig":{"enableStarterQuestions":false},"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":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/customers/get-customer-subscription","slug":"/api-reference/customers/get-customer-subscription","pageMetadata":{"title":"Get customer subscription","description":"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.","deprecated":null,"version":null,"openapi":"/openapi.json get /customers/{customer_id}/subscription","href":"/api-reference/customers/get-customer-subscription","autogeneratedByOpenApi":true},"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: \"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get customer subscription","description":"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.","deprecated":null,"version":null,"openapi":"/openapi.json get /customers/{customer_id}/subscription","href":"/api-reference/customers/get-customer-subscription","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get customer subscription","description":"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.","security":["459e3915-f55b-455e-8e14-871fb96bca05"],"tags":["Customers"],"parameters":["ebf25805-a280-40cd-8982-5e71b44a3e4b"],"responses":{"200":"6af5ed21-d874-4d6e-8899-706897d3cfcb","401":"d169963c-25a5-4014-a9a9-a0fbccf22922","404":"994c4383-a80f-488b-ad18-8fb7c549a7b3","500":"1990181c-b4a2-4c45-9b66-d814c1acb68a"},"method":"get","type":"path","servers":["78c4164b-f15d-442d-94ba-04d549b4e25e"],"path":"/customers/{customer_id}/subscription","baseUrlOptions":["https://api.lava.so/v1/"],"title":"Get customer subscription","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ebf25805-a280-40cd-8982-5e71b44a3e4b":{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Customer ID","uniqueKey":"","typeLabel":"string"},"description":"Customer ID"}},"responses":{"6af5ed21-d874-4d6e-8899-706897d3cfcb":{"description":"Customer subscription details","content":{"application/json":{"schema":{"type":"object","description":"Subscription details for a customer","properties":{"subscription":{"oneOf":[{"type":"object","description":"Active subscription details, or null if no subscription","properties":{"subscription_id":{"type":"string","description":"Subscription ID","isRequired":true,"uniqueKey":"subscription.oneOf.0.subscription_id","typeLabel":"string"},"plan_id":{"type":"string","description":"Plan ID","isRequired":true,"uniqueKey":"subscription.oneOf.0.plan_id","typeLabel":"string"},"name":{"type":"string","description":"Display name of the plan","isRequired":true,"uniqueKey":"subscription.oneOf.0.name","typeLabel":"string"},"status":{"type":"string","enum":["active","cancelled"],"description":"Subscription status","isRequired":true,"uniqueKey":"subscription.oneOf.0.status","typeLabel":"enum\u003cstring>"},"billing_interval":{"type":"string","enum":["day","week","month","year"],"description":"How often the subscription is billed","isRequired":true,"uniqueKey":"subscription.oneOf.0.billing_interval","typeLabel":"enum\u003cstring>"},"period_amount":{"type":"string","description":"Plan cost per billing cycle in USD","isRequired":true,"uniqueKey":"subscription.oneOf.0.period_amount","typeLabel":"string"},"included_credit":{"type":"string","description":"Credits included per billing cycle in USD","isRequired":true,"uniqueKey":"subscription.oneOf.0.included_credit","typeLabel":"string"},"cycle_start_at":{"oneOf":[{"type":"string","format":"date-time","description":"Current billing cycle start date","isRequired":true,"uniqueKey":"subscription.oneOf.0.cycle_start_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Current billing cycle start date","isRequired":true,"uniqueKey":"subscription.oneOf.0.cycle_start_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"subscription.oneOf.0.cycle_start_at","typeLabel":"string\u003cdate-time> | null"},"cycle_end_at":{"oneOf":[{"type":"string","format":"date-time","description":"Current billing cycle end date","isRequired":true,"uniqueKey":"subscription.oneOf.0.cycle_end_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Current billing cycle end date","isRequired":true,"uniqueKey":"subscription.oneOf.0.cycle_end_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"subscription.oneOf.0.cycle_end_at","typeLabel":"string\u003cdate-time> | null"},"credits":{"type":"object","description":"Subscription credit balances for the current cycle","properties":{"total_remaining":{"type":"string","description":"Total remaining credits (cycle + bundle) in USD with 12 decimal precision","isRequired":true,"uniqueKey":"subscription.oneOf.0.credits.total_remaining","typeLabel":"string"},"cycle_remaining":{"type":"string","description":"Credits remaining from plan inclusion in USD with 12 decimal precision","isRequired":true,"uniqueKey":"subscription.oneOf.0.credits.cycle_remaining","typeLabel":"string"},"bundle_remaining":{"type":"string","description":"Credits remaining from purchased bundles in USD with 12 decimal precision","isRequired":true,"uniqueKey":"subscription.oneOf.0.credits.bundle_remaining","typeLabel":"string"},"cycle_rollover":{"type":"string","enum":["full","none"],"description":"Whether unused cycle credits roll over to the next cycle","isRequired":true,"uniqueKey":"subscription.oneOf.0.credits.cycle_rollover","typeLabel":"enum\u003cstring>"},"bundle_rollover":{"type":"string","enum":["full","none"],"description":"Whether unused bundle credits roll over to the next cycle","isRequired":true,"uniqueKey":"subscription.oneOf.0.credits.bundle_rollover","typeLabel":"enum\u003cstring>"}},"required":["total_remaining","cycle_remaining","bundle_remaining","cycle_rollover","bundle_rollover"],"isRequired":true,"uniqueKey":"subscription.oneOf.0.credits","typeLabel":"object"},"pending_change":{"oneOf":[{"type":"object","description":"Scheduled change at end of current cycle, or null if no pending changes","properties":{"type":{"type":"string","enum":["cancellation","downgrade"],"description":"Type of pending change","isRequired":true,"uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.type","typeLabel":"enum\u003cstring>"},"effective_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the change will take effect (cycle end date)","isRequired":true,"uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.effective_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the change will take effect (cycle end date)","isRequired":true,"uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.effective_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.effective_at","typeLabel":"string\u003cdate-time> | null"},"plan_id":{"type":"string","description":"Target plan ID (downgrade only)","uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.plan_id","typeLabel":"string"},"name":{"type":"string","description":"Target plan name (downgrade only)","uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.name","typeLabel":"string"},"period_amount":{"type":"string","description":"Target plan cost per cycle in USD (downgrade only)","uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.period_amount","typeLabel":"string"},"included_credit":{"type":"string","description":"Target plan included credits per cycle in USD (downgrade only)","uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0.included_credit","typeLabel":"string"}},"required":["type","effective_at"],"isRequired":true,"uniqueKey":"subscription.oneOf.0.pending_change.oneOf.0","typeLabel":"object"},{"type":"null","description":"Scheduled change at end of current cycle, or null if no pending changes","properties":{"type":{"type":"string","enum":["cancellation","downgrade"],"description":"Type of pending change"},"effective_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the change will take effect (cycle end date)"},{"type":"null","format":"date-time","description":"When the change will take effect (cycle end date)"}]},"plan_id":{"type":"string","description":"Target plan ID (downgrade only)"},"name":{"type":"string","description":"Target plan name (downgrade only)"},"period_amount":{"type":"string","description":"Target plan cost per cycle in USD (downgrade only)"},"included_credit":{"type":"string","description":"Target plan included credits per cycle in USD (downgrade only)"}},"required":["type","effective_at"],"isRequired":true,"uniqueKey":"subscription.oneOf.0.pending_change.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"subscription.oneOf.0.pending_change","typeLabel":"object | null"}},"required":["subscription_id","plan_id","name","status","billing_interval","period_amount","included_credit","cycle_start_at","cycle_end_at","credits","pending_change"],"isRequired":true,"uniqueKey":"subscription.oneOf.0","typeLabel":"object"},{"type":"null","description":"Active subscription details, or null if no subscription","properties":{"subscription_id":{"type":"string","description":"Subscription ID"},"plan_id":{"type":"string","description":"Plan ID"},"name":{"type":"string","description":"Display name of the plan"},"status":{"type":"string","enum":["active","cancelled"],"description":"Subscription status"},"billing_interval":{"type":"string","enum":["day","week","month","year"],"description":"How often the subscription is billed"},"period_amount":{"type":"string","description":"Plan cost per billing cycle in USD"},"included_credit":{"type":"string","description":"Credits included per billing cycle in USD"},"cycle_start_at":{"oneOf":[{"type":"string","format":"date-time","description":"Current billing cycle start date"},{"type":"null","format":"date-time","description":"Current billing cycle start date"}]},"cycle_end_at":{"oneOf":[{"type":"string","format":"date-time","description":"Current billing cycle end date"},{"type":"null","format":"date-time","description":"Current billing cycle end date"}]},"credits":{"type":"object","description":"Subscription credit balances for the current cycle","properties":{"total_remaining":{"type":"string","description":"Total remaining credits (cycle + bundle) in USD with 12 decimal precision"},"cycle_remaining":{"type":"string","description":"Credits remaining from plan inclusion in USD with 12 decimal precision"},"bundle_remaining":{"type":"string","description":"Credits remaining from purchased bundles in USD with 12 decimal precision"},"cycle_rollover":{"type":"string","enum":["full","none"],"description":"Whether unused cycle credits roll over to the next cycle"},"bundle_rollover":{"type":"string","enum":["full","none"],"description":"Whether unused bundle credits roll over to the next cycle"}},"required":["total_remaining","cycle_remaining","bundle_remaining","cycle_rollover","bundle_rollover"]},"pending_change":{"oneOf":[{"type":"object","description":"Scheduled change at end of current cycle, or null if no pending changes","properties":{"type":{"type":"string","enum":["cancellation","downgrade"],"description":"Type of pending change"},"effective_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the change will take effect (cycle end date)"},{"type":"null","format":"date-time","description":"When the change will take effect (cycle end date)"}]},"plan_id":{"type":"string","description":"Target plan ID (downgrade only)"},"name":{"type":"string","description":"Target plan name (downgrade only)"},"period_amount":{"type":"string","description":"Target plan cost per cycle in USD (downgrade only)"},"included_credit":{"type":"string","description":"Target plan included credits per cycle in USD (downgrade only)"}},"required":["type","effective_at"]},{"type":"null","description":"Scheduled change at end of current cycle, or null if no pending changes","properties":{"type":{"type":"string","enum":["cancellation","downgrade"],"description":"Type of pending change"},"effective_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the change will take effect (cycle end date)"},{"type":"null","format":"date-time","description":"When the change will take effect (cycle end date)"}]},"plan_id":{"type":"string","description":"Target plan ID (downgrade only)"},"name":{"type":"string","description":"Target plan name (downgrade only)"},"period_amount":{"type":"string","description":"Target plan cost per cycle in USD (downgrade only)"},"included_credit":{"type":"string","description":"Target plan included credits per cycle in USD (downgrade only)"}},"required":["type","effective_at"]}]}},"required":["subscription_id","plan_id","name","status","billing_interval","period_amount","included_credit","cycle_start_at","cycle_end_at","credits","pending_change"],"isRequired":true,"uniqueKey":"subscription.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"subscription","typeLabel":"object | null"}},"required":["subscription"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"subscription":{"subscription_id":"\u003cstring>","plan_id":"\u003cstring>","name":"\u003cstring>","status":"active","billing_interval":"day","period_amount":"\u003cstring>","included_credit":"\u003cstring>","cycle_start_at":"2023-11-07T05:31:56Z","cycle_end_at":"2023-11-07T05:31:56Z","credits":{"total_remaining":"\u003cstring>","cycle_remaining":"\u003cstring>","bundle_remaining":"\u003cstring>","cycle_rollover":"full","bundle_rollover":"full"},"pending_change":{"type":"cancellation","effective_at":"2023-11-07T05:31:56Z","plan_id":"\u003cstring>","name":"\u003cstring>","period_amount":"\u003cstring>","included_credit":"\u003cstring>"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"d169963c-25a5-4014-a9a9-a0fbccf22922":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","example":"Invalid authentication credentials","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code describing what went wrong","example":"forward_token_json_invalid","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code of the error","example":400,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"type":"string","uniqueKey":"error.issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string"},"description":"Path to the field that caused the validation error","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].path","typeLabel":"string[]"},"message":{"type":"string","description":"Error message describing the validation issue","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"error.issues.items.[INDEX]","typeLabel":"object"},"description":"Optional array of specific validation issues with their paths and messages","example":[{"path":["model"],"message":"Missing required field: model"},{"path":["messages","0","content"],"message":"Invalid message content format"}],"uniqueKey":"error.issues","typeLabel":"object[]"}},"required":["message","code","status"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid authentication credentials","code":"forward_token_json_invalid","status":400,"issues":[{"path":["model"],"message":"Missing required field: model"},{"path":["messages","0","content"],"message":"Invalid message content format"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"994c4383-a80f-488b-ad18-8fb7c549a7b3":{"description":"Customer not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","example":"Invalid authentication credentials","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code describing what went wrong","example":"forward_token_json_invalid","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code of the error","example":400,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"type":"string","uniqueKey":"error.issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string"},"description":"Path to the field that caused the validation error","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].path","typeLabel":"string[]"},"message":{"type":"string","description":"Error message describing the validation issue","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"error.issues.items.[INDEX]","typeLabel":"object"},"description":"Optional array of specific validation issues with their paths and messages","example":[{"path":["model"],"message":"Missing required field: model"},{"path":["messages","0","content"],"message":"Invalid message content format"}],"uniqueKey":"error.issues","typeLabel":"object[]"}},"required":["message","code","status"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid authentication credentials","code":"forward_token_json_invalid","status":400,"issues":[{"path":["model"],"message":"Missing required field: model"},{"path":["messages","0","content"],"message":"Invalid message content format"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"1990181c-b4a2-4c45-9b66-d814c1acb68a":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable error message describing what went wrong","example":"Invalid authentication credentials","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code describing what went wrong","example":"forward_token_json_invalid","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code of the error","example":400,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"type":"string","uniqueKey":"error.issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string"},"description":"Path to the field that caused the validation error","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].path","typeLabel":"string[]"},"message":{"type":"string","description":"Error message describing the validation issue","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"error.issues.items.[INDEX]","typeLabel":"object"},"description":"Optional array of specific validation issues with their paths and messages","example":[{"path":["model"],"message":"Missing required field: model"},{"path":["messages","0","content"],"message":"Invalid message content format"}],"uniqueKey":"error.issues","typeLabel":"object[]"}},"required":["message","code","status"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid authentication credentials","code":"forward_token_json_invalid","status":400,"issues":[{"path":["model"],"message":"Missing required field: model"},{"path":["messages","0","content"],"message":"Invalid message content format"}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"459e3915-f55b-455e-8e14-871fb96bca05":{"Auth":{"type":"http","scheme":"bearer","description":"Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'","scopes":[],"schemeName":"Auth"}}},"servers":{"78c4164b-f15d-442d-94ba-04d549b4e25e":{"url":"https://api.lava.so/v1/","description":"Lava API v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'","scopes":[],"schemeName":"Auth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Auth","name":"Authorization"}],"title":"Auth"}]},"originalFileLocation":"openapi.json"},"subdomain":"lava-a04d7b3f","siteName":"Lava Documentation","title":"Get customer subscription - Lava Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-22T21:31:22.984Z","originalFileLocation":"api-reference/customers/get-customer-subscription.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lava Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_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=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get customer subscription - Lava Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lava Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://lava.so/docs/api-reference/customers/get-customer-subscription\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lava-a04d7b3f.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Get+customer+subscription\u0026amp;description=Returns+the+active+subscription+for+a+customer%2C+including+plan+details%2C+current+cycle+credits%2C+and+any+pending+changes+%28cancellation+or+downgrade%29.+Use+this+to+\u0026amp;theme=aa70f9ad62bb50cb08b2851f\u0026amp;signature=f249d37aef8002a700c658adef95231519e9619bd0ecf873fe42c818a097a825\">\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=\"Get customer subscription - Lava Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lava-a04d7b3f.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Get+customer+subscription\u0026amp;description=Returns+the+active+subscription+for+a+customer%2C+including+plan+details%2C+current+cycle+credits%2C+and+any+pending+changes+%28cancellation+or+downgrade%29.+Use+this+to+\u0026amp;theme=aa70f9ad62bb50cb08b2851f\u0026amp;signature=f249d37aef8002a700c658adef95231519e9619bd0ecf873fe42c818a097a825\">\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=\"/docs/mintlify-assets/_mintlify/favicons/lava-a04d7b3f/F8p0asVQB6PNXeBa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lava Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff5a1f\">\u003clink data-mint-head rel=\"canonical\" href=\"https://lava.so/docs/api-reference/customers/get-customer-subscription\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/customers/get-customer-subscription.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://lava.so/#organization\",\"name\":\"Lava Documentation\",\"url\":\"https://lava.so\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lava-a04d7b3f/ZrRxM7p0Ydvvj-HA/logo/light.svg?fit=max\u0026auto=format\u0026n=ZrRxM7p0Ydvvj-HA\u0026q=85\u0026s=03458687cb3832e4d90e88623271f016\"}},{\"@type\":\"WebSite\",\"@id\":\"https://lava.so/docs#website\",\"name\":\"Lava Documentation\",\"url\":\"https://lava.so/docs\",\"publisher\":{\"@id\":\"https://lava.so/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription#webpage\",\"url\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription\",\"name\":\"Get customer subscription\",\"description\":\"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.\",\"dateModified\":\"2026-10-22T21:31:22.984Z\",\"isPartOf\":{\"@id\":\"https://lava.so/docs#website\"},\"breadcrumb\":{\"@id\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers\",\"item\":\"https://lava.so/docs/api-reference/customers/list-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get customer subscription\",\"item\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription#apireference\",\"headline\":\"Get customer subscription\",\"name\":\"Get customer subscription\",\"description\":\"Returns the active subscription for a customer, including plan details, current cycle credits, and any pending changes (cancellation or downgrade). Use this to show subscription status and remaining credits.\",\"url\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription\",\"mainEntityOfPage\":{\"@id\":\"https://lava.so/docs/api-reference/customers/get-customer-subscription#webpage\"},\"dateModified\":\"2026-10-22T21:31:22.984Z\",\"publisher\":{\"@id\":\"https://lava.so/#organization\"},\"isPartOf\":{\"@id\":\"https://lava.so/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lava Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Lava Documentation","nav":{"global":null,"tabs":[{"tab":"Lava Desktop","pages":[{"title":"Lava Desktop","href":"/desktop/overview"}]},{"tab":"Lava MCP","pages":[{"title":"Lava MCP","href":"/mcp/quickstart"}]},{"tab":"Build with Lava Gateway","pages":[{"title":"Build with Lava Gateway","href":"/introduction"}]},{"tab":"Agents","pages":[{"title":"Agents","href":"/agents/authenticate"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"API Reference","icon":"code","href":"/api-reference/introduction"}]},{"group":"Authentication","pages":[{"title":"Exchange CLI auth code","deprecated":true,"version":null,"openapi":"/openapi.json post /auth/callback","href":"/api-reference/authentication/exchange-cli-auth-code"}]},{"group":"Core Endpoints","pages":[{"title":"Forward GET request","deprecated":null,"version":null,"openapi":"/openapi.json get /forward","href":"/api-reference/core-endpoints/forward-get-request"},{"title":"Forward POST request","deprecated":null,"version":null,"openapi":"/openapi.json post /forward","href":"/api-reference/core-endpoints/forward-post-request"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.json get /models","href":"/api-reference/models/list-models"}]},{"group":"Services","pages":[{"title":"List services","deprecated":null,"version":null,"openapi":"/openapi.json get /services","href":"/api-reference/services/list-services"},{"title":"Search providers","deprecated":null,"version":null,"openapi":"/openapi.json get /services/providers","href":"/api-reference/services/search-providers"},{"title":"Get provider details","deprecated":null,"version":null,"openapi":"/openapi.json get /services/providers/{provider}","href":"/api-reference/services/get-provider-details"}]},{"group":"Requests","pages":[{"title":"List requests","deprecated":null,"version":null,"openapi":"/openapi.json get /requests","href":"/api-reference/requests/list-requests"},{"title":"Create request","deprecated":null,"version":null,"openapi":"/openapi.json post /requests","href":"/api-reference/requests/create-request"},{"title":"Get request","deprecated":null,"version":null,"openapi":"/openapi.json get /requests/{request_id}","href":"/api-reference/requests/get-request"}]},{"group":"Usage","pages":[{"title":"Get usage statistics","deprecated":null,"version":null,"openapi":"/openapi.json get /usage","href":"/api-reference/usage/get-usage-statistics"}]},{"group":"Checkout Sessions","pages":[{"title":"Create checkout session","deprecated":null,"version":null,"openapi":"/openapi.json post /checkout_sessions","href":"/api-reference/checkout-sessions/create-checkout-session"}]},{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/openapi.json get /customers","href":"/api-reference/customers/list-customers"},{"title":"Create customer","description":"Create a customer record with merchant-scoped contact info. The customer can be assigned free plans and use the proxy immediately. To link a payment method, direct them through checkout. Idempotent when reference_id is provided (strongly recommended) — returns the existing customer if one matches.","deprecated":null,"version":null,"openapi":"/openapi.json post /customers","href":"/api-reference/customers/create-customer"},{"title":"Get customer subscription","deprecated":null,"version":null,"openapi":"/openapi.json get /customers/{customer_id}/subscription","href":"/api-reference/customers/get-customer-subscription"},{"title":"Get customer","description":"Get a customer by ID","deprecated":null,"version":null,"openapi":"/openapi.json get /customers/{customer_id}","href":"/api-reference/customers/get-customer"},{"title":"Delete customer","deprecated":null,"version":null,"openapi":"/openapi.json delete /customers/{customer_id}","href":"/api-reference/customers/delete-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"/openapi.json patch /customers/{customer_id}","href":"/api-reference/customers/update-customer"}]},{"group":"Plans","pages":[{"title":"List plans","deprecated":null,"version":null,"openapi":"/openapi.json get /plans","href":"/api-reference/plans/list-plans"},{"title":"Create plan","deprecated":null,"version":null,"openapi":"/openapi.json post /plans","href":"/api-reference/plans/create-plan"},{"title":"Get plan","deprecated":null,"version":null,"openapi":"/openapi.json get /plans/{id}","href":"/api-reference/plans/get-plan"},{"title":"Delete plan","deprecated":null,"version":null,"openapi":"/openapi.json delete /plans/{id}","href":"/api-reference/plans/delete-plan"},{"title":"Update plan","deprecated":null,"version":null,"openapi":"/openapi.json patch /plans/{id}","href":"/api-reference/plans/update-plan"}]},{"group":"Subscriptions","pages":[{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/openapi.json get /subscriptions","href":"/api-reference/subscriptions/list-subscriptions"},{"title":"Create subscription","deprecated":null,"version":null,"openapi":"/openapi.json post /subscriptions","href":"/api-reference/subscriptions/create-subscription"},{"title":"Cancel subscription","deprecated":null,"version":null,"openapi":"/openapi.json delete /subscriptions/{id}","href":"/api-reference/subscriptions/cancel-subscription"},{"title":"Update subscription","deprecated":null,"version":null,"openapi":"/openapi.json patch /subscriptions/{id}","href":"/api-reference/subscriptions/update-subscription"}]},{"group":"Meters","pages":[{"title":"List meters","deprecated":null,"version":null,"openapi":"/openapi.json get /meters","href":"/api-reference/meters/list-meters"},{"title":"Create meter","deprecated":null,"version":null,"openapi":"/openapi.json post /meters","href":"/api-reference/meters/create-meter"},{"title":"Get meter","deprecated":null,"version":null,"openapi":"/openapi.json get /meters/{id}","href":"/api-reference/meters/get-meter"},{"title":"Delete meter","deprecated":null,"version":null,"openapi":"/openapi.json delete /meters/{id}","href":"/api-reference/meters/delete-meter"},{"title":"Update meter","deprecated":null,"version":null,"openapi":"/openapi.json patch /meters/{id}","href":"/api-reference/meters/update-meter"}]},{"group":"Webhooks","pages":[{"title":"List webhooks","deprecated":null,"version":null,"openapi":"/openapi.json get /webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Create webhook","deprecated":null,"version":null,"openapi":"/openapi.json post /webhooks","href":"/api-reference/webhooks/create-webhook"},{"title":"Get webhook","deprecated":null,"version":null,"openapi":"/openapi.json get /webhooks/{id}","href":"/api-reference/webhooks/get-webhook"},{"title":"Delete webhook","deprecated":null,"version":null,"openapi":"/openapi.json delete /webhooks/{id}","href":"/api-reference/webhooks/delete-webhook"},{"title":"Update webhook","deprecated":null,"version":null,"openapi":"/openapi.json patch /webhooks/{id}","href":"/api-reference/webhooks/update-webhook"}]},{"group":"Secret Keys","pages":[{"title":"List secret keys","deprecated":null,"version":null,"openapi":"/openapi.json get /secret_keys","href":"/api-reference/secret-keys/list-secret-keys"},{"title":"Create secret key","deprecated":null,"version":null,"openapi":"/openapi.json post /secret_keys","href":"/api-reference/secret-keys/create-secret-key"},{"title":"Revoke secret key","deprecated":null,"version":null,"openapi":"/openapi.json delete /secret_keys/{id}","href":"/api-reference/secret-keys/revoke-secret-key"}]},{"group":"Credit Bundles","pages":[{"title":"List credit bundles","deprecated":null,"version":null,"openapi":"/openapi.json get /credit_bundles","href":"/api-reference/credit-bundles/list-credit-bundles"},{"title":"Get credit bundle","deprecated":null,"version":null,"openapi":"/openapi.json get /credit_bundles/{id}","href":"/api-reference/credit-bundles/get-credit-bundle"}]},{"group":"Wallet","pages":[{"title":"Get wallet","deprecated":null,"version":null,"openapi":"/openapi.json get /wallet","href":"/api-reference/wallet/get-wallet"},{"title":"Add funds to wallet","deprecated":null,"version":null,"openapi":"/openapi.json post /wallet/fund","href":"/api-reference/wallet/add-funds-to-wallet"}]},{"group":"Payment Methods","pages":[{"title":"List payment methods","deprecated":null,"version":null,"openapi":"/openapi.json get /payment_methods","href":"/api-reference/payment-methods/list-payment-methods"}]},{"group":"Spend Keys","pages":[{"title":"List spend keys","deprecated":null,"version":null,"openapi":"/openapi.json get /spend_keys","href":"/api-reference/spend-keys/list-spend-keys"},{"title":"Create spend key","deprecated":null,"version":null,"openapi":"/openapi.json post /spend_keys","href":"/api-reference/spend-keys/create-spend-key"},{"title":"Get spend key","deprecated":null,"version":null,"openapi":"/openapi.json get /spend_keys/{id}","href":"/api-reference/spend-keys/get-spend-key"},{"title":"Update spend key","deprecated":null,"version":null,"openapi":"/openapi.json put /spend_keys/{id}","href":"/api-reference/spend-keys/update-spend-key"},{"title":"Revoke spend key","deprecated":null,"version":null,"openapi":"/openapi.json delete /spend_keys/{id}","href":"/api-reference/spend-keys/revoke-spend-key"},{"title":"Rotate spend key","deprecated":null,"version":null,"openapi":"/openapi.json post /spend_keys/{id}/rotate","href":"/api-reference/spend-keys/rotate-spend-key"}]},{"group":"Gateway Settings","pages":[{"title":"Get global fallback chain","deprecated":null,"version":null,"openapi":"/openapi.json get /account/fallback","href":"/api-reference/gateway-settings/get-global-fallback-chain"},{"title":"Set global fallback chain","deprecated":null,"version":null,"openapi":"/openapi.json patch /account/fallback","href":"/api-reference/gateway-settings/set-global-fallback-chain"}]},{"group":"News Data","pages":[{"title":"List news articles","deprecated":null,"version":null,"openapi":"/openapi.json get /data/news/articles","href":"/api-reference/news-data/list-news-articles"},{"title":"List news publications","deprecated":null,"version":null,"openapi":"/openapi.json get /data/news/publications","href":"/api-reference/news-data/list-news-publications"}]},{"group":"Search","pages":[{"title":"Aggregated search across all 9 providers","deprecated":null,"version":null,"openapi":"/openapi.json post /search/sources","href":"/api-reference/search/aggregated-search-across-all-9-providers"},{"title":"Synthesized answer with citations from the 9-provider fan-out","deprecated":null,"version":null,"openapi":"/openapi.json post /search/answer","href":"/api-reference/search/synthesized-answer-with-citations-from-the-9-provider-fan-out"}]},{"group":"Enrich","pages":[{"title":"Merged contact info for a person","deprecated":null,"version":null,"openapi":"/openapi.json post /enrich/contact","href":"/api-reference/enrich/merged-contact-info-for-a-person"},{"title":"Comprehensive profile dossier for a person","deprecated":null,"version":null,"openapi":"/openapi.json post /enrich/profile","href":"/api-reference/enrich/comprehensive-profile-dossier-for-a-person"}]}]}]},"title":"Get customer subscription - Lava Documentation","buildId":"dpl_3DJU2xKhT5gDPFQL5Tqv7AFnkWsF","deploymentId":"dpl_3DJU2xKhT5gDPFQL5Tqv7AFnkWsF","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DsGgv5pK.js","utils-B0h6ZXi-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-IgrnFwPw.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C49-TBER.js","snippetPresets-BPHn-9OB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CGBwAHwX.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BjABHCCH.js","shallow-C0Uj5sOI.js","getApiPlaygroundDisplay-BnYiIeY4.js","CodeSnippet-BJWWrlBw.js","CodeSnippets-bxE5aDye.js","Page-BBU7roUf.js","getPastedJson-BAjriezQ.js","icon-BqcS52QC.js","MethodPill-BPGyN9me.js","DuplicateIcon-CCf2giLL.js","createIcon-CVH8aNt2.js","DynamicMarkdown-BklwmxA6.js","SectionHeading-DYCZQFxh.js","axios-vUo_bRtp.js","Markdown-D26rHnOC.js","clsx-DkiOUx4h.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DI8jfVGc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DwJy-csb.js"]}