This object represents a version of a quote: the priced deal itself, as a document content and a set of billing_items. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.
The keys of billing_items are camelCased, unlike the rest of the API. They are stored as authored in the Lago user interface, and every payload pins the catalog record the entry was built from.
lago_id
string<uuid>
required
Unique identifier of the quote version, created by Lago.
Example:
"1a901a90-1a90-1a90-1a90-1a901a901a90"
lago_quote_id
string<uuid>
required
Unique identifier of the quote the version belongs to, created by Lago.
Example:
"1a901a90-1a90-1a90-1a90-1a901a901a90"
lago_organization_id
string<uuid>
required
Unique identifier of the organization, created by Lago.
Example:
"1a901a90-1a90-1a90-1a90-1a901a901a90"
version
integer
required
The number of the version within the quote. It starts at 1 and increases by 1 for every new version created by cloning.
Example:
1
status
enum<string>
required
The status of the quote version. It can be any of the following values:
draft: the version is still editable.
approved: the version has been approved and an order form has been generated from it.
voided: the version is no longer actionable.
A quote has at most one version in draft or approved status at any time; all the other versions are voided.
Available options:
draft,
approved,
voided
Example:
"draft"
currency
enum<string> | null
required
The currency the version is quoted in.
Available options:
null,
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
ISK,
JMD,
JPY,
KES,
KGS,
KHR,
KMF,
KRW,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
STD,
SYP,
SZL,
THB,
TJS,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VND,
VUV,
WST,
XAF,
XCD,
XOF,
XPF,
YER,
ZAR,
ZMW
Example:
"USD"
billing_entity_code
string | null
required
Unique code identifying the billing entity that issues the deal. It is resolved rather than stored: the version's own entity when it names one, then the entity of the subscription being amended for a subscription_amendment quote, then the customer's own. It is null when none of them resolves. An amendment cannot name an entity itself, since the subscription it restates is already bound to one, and naming one on an amendment is rejected.
Example:
"acme_corp"
void_reason
enum<string> | null
required
The reason why the quote version was voided. It is null unless the status is voided. It can be any of the following values:
manual: voided explicitly, through the API or the Lago user interface.
superseded: voided because the version was cloned into a new draft.
cascade_of_expired: voided because the order form generated from the version expired.
cascade_of_voided: voided because the order form generated from the version was voided.
Available options:
null,
manual,
superseded,
cascade_of_expired,
cascade_of_voided
Example:
"manual"
approved_at
string<date-time> | null
required
The date and time in UTC (ISO 8601) when the version was approved. It is null unless the status is approved.
Example:
"2026-04-29T08:59:51Z"
voided_at
string<date-time> | null
required
The date and time in UTC (ISO 8601) when the version was voided. It is null unless the status is voided.
Example:
"2026-04-29T08:59:51Z"
created_at
string<date-time>
required
The date and time in UTC (ISO 8601) when the version was created.
Example:
"2026-04-29T08:59:51Z"
updated_at
string<date-time>
required
The date and time in UTC (ISO 8601) when the version was last updated.
Example:
"2026-04-29T08:59:51Z"
content
string | null
required
The HTML body of the quote document, as authored in the Lago user interface. It may reference the entries of billing_items through their localId.
Example:
"<h1>Quote QT-2026-0001</h1><p>Prepared for Acme Corp.</p>"
billing_items
object | null
required
A snapshot of everything the quote bills. Unlike the rest of the Lago API, the keys nested in this object are camelCased: the object is stored and returned as it is authored in the Lago user interface.
Which top-level keys are present depends on the order_type of the parent quote:
one_off: addOns.
subscription_creation and subscription_amendment: plans, plus the optional coupons and walletCredits.
Every entry pins the catalog record it was built from through its id and its payload, so that an approved quote keeps billing what was approved even if the catalog changes afterwards. The optional overrides object carries the deviations from that record negotiated on the quote.
This object is the single source of truth for the term of the deal. Three of its nested dates bound that term, because the execution flow refuses them once past: plans[].payload.endDate, walletCredits[].payload.expirationAt and the expirationAt of a wallet credit's recurring top-up rule. The earliest of them is the day the deal stops being executable, and both the signing window and the execution date must fall strictly before it. A one_off quote carries none of them and is never bounded.
On a draft version this object may be incomplete: only the properties documented as required below are enforced on every save, the others are enforced when the version is approved.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lago","description":"Developer documentation for Lago, the open-source billing platform for usage metering, subscriptions, invoicing, payments, and revenue operations.","colors":{"primary":"#006CFA","light":"#006CFA","dark":"#006CFA"},"logo":{"light":"https://mintcdn.com/lago-docs/zZSJbpe68PHhSs3x/logo/light.svg?fit=max\u0026auto=format\u0026n=zZSJbpe68PHhSs3x\u0026q=85\u0026s=b4af3001527c985b81858b9a0928534c","dark":"https://mintcdn.com/lago-docs/zZSJbpe68PHhSs3x/logo/dark.svg?fit=max\u0026auto=format\u0026n=zZSJbpe68PHhSs3x\u0026q=85\u0026s=1eb7aacac796b0cc6bf05be790a792b1"},"favicon":"https://mintcdn.com/lago-docs/8N-yOElNGe9jRGG5/favicon.svg?fit=max\u0026auto=format\u0026n=8N-yOElNGe9jRGG5\u0026q=85\u0026s=5c319e58dd9b5c5b8a31cf2ad8009a1c","api":{"openapi":"https://swagger.getlago.com/openapi.yaml","mdx":{"server":"https://api.getlago.com/api/v1"}},"background":{"color":{"light":"#F5F5EF","dark":"#131923"}},"navbar":{"links":[{"href":"https://getlago.com/book-a-demo","label":"Book a Demo"}],"primary":{"type":"button","label":"Get Started","href":"https://getlago.com/book-a-demo"}},"footer":{"socials":{"github":"https://github.com/getlago/lago","slack":"https://getlago.com/slack","x":"https://x.com/getlago","linkedin":"https://www.linkedin.com/company/getlago","youtube":"https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA"},"links":[{"header":"Documentation","items":[{"label":"Get started","href":"https://getlago.com/docs/guide/introduction/welcome-to-lago"},{"label":"API reference","href":"https://getlago.com/docs/api-reference/intro"},{"label":"Integrations","href":"https://getlago.com/docs/integrations/introduction"},{"label":"Templates","href":"https://getlago.com/docs/templates/introduction"},{"label":"Changelog","href":"https://getlago.com/docs/changelog/product"},{"label":"FAQ","href":"https://getlago.com/docs/faq/about-lago"}]},{"header":"Developers","items":[{"label":"Developer hub","href":"https://getlago.com/docs/developers"},{"label":"Authentication","href":"https://getlago.com/docs/auth"},{"label":"Webhooks","href":"https://getlago.com/docs/guide/webhooks"},{"label":"SDKs","href":"https://getlago.com/docs/developers"},{"label":"OpenAPI spec","href":"https://swagger.getlago.com/"},{"label":"MCP server","href":"https://getlago.com/docs/guide/ai-agents/mcp-server"},{"label":"Self-hosted","href":"https://getlago.com/docs/guide/lago-self-hosted/overview"},{"label":"llms.txt","href":"https://getlago.com/docs/llms.txt"}]},{"header":"Platform","items":[{"label":"Usage metering","href":"https://getlago.com/platform/usage-metering"},{"label":"Billing \u0026 invoicing","href":"https://getlago.com/platform/billing-invoicing"},{"label":"Cash collection","href":"https://getlago.com/platform/cash-collection"},{"label":"Revenue analytics","href":"https://getlago.com/platform/revenue-analytics"},{"label":"Entitlements","href":"https://getlago.com/platform/entitlements"},{"label":"Lago AI","href":"https://getlago.com/platform/ai"},{"label":"Pricing","href":"https://getlago.com/pricing"}]},{"header":"Company","items":[{"label":"About Lago","href":"https://getlago.com/docs/about"},{"label":"Customers","href":"https://getlago.com/customers"},{"label":"Blog","href":"https://getlago.com/blog"},{"label":"Contact","href":"https://getlago.com/docs/contact"},{"label":"Trust center","href":"https://security.getlago.com"},{"label":"Status","href":"https://status.getlago.com"}]}]},"seo":{"metatags":{"canonical":"https://getlago.com/docs","description":"Developer documentation for Lago's API-first billing platform, including OpenAPI, SDKs, webhooks, MCP, authentication, and implementation guides.","keywords":"Lago API, billing API, usage metering API, OpenAPI, billing SDK, Lago MCP"},"organization":{"id":"https://getlago.com/#organization","name":"Lago","legalName":"Get Lago Corp.","url":"https://getlago.com","logo":"https://getlago.com/docs/logo/light.svg","sameAs":["https://github.com/getlago","https://www.linkedin.com/company/getlago","https://x.com/GetLago","https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA"]},"indexing":"all"},"fonts":{"heading":{"family":"GT America","weight":700,"source":"fonts/GT-America-Standard-Medium.woff2","format":"woff2"},"body":{"family":"GT America","source":"fonts/GT-America-Standard-Regular.woff2","format":"woff2"}},"styling":{"codeblocks":"dark","latex":true},"integrations":{"ga4":{"measurementId":"G-743BQ9THCG"},"cookies":{"key":"lago_docs_analytics","value":"granted"}},"errors":{"404":{"redirect":false,"title":"Documentation page not found","description":"No Lago documentation exists at this URL. Start at [Lago Developer Documentation](/welcome), browse [Developer Resources](/developers), inspect the [documentation index](/llms.txt) or [sitemap](/sitemap.xml), or search the [API reference](/api-reference/intro)."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://getlago.com/blog"},{"anchor":"Community","icon":"slack","href":"https://getlago.com/slack"},{"anchor":"GitHub","icon":"github","href":"https://github.com/getlago/lago"},{"anchor":"Status","icon":"signal-bars","href":"https://status.getlago.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lago-docs","hasAudioNarration":false,"actualSubdomain":"lago-docs","customDomains":["getlago.com"],"gitSource":{"type":"github","owner":"getlago","repo":"lago-doc","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5c6195cae6d002f81a42b","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API References","count":243},{"language":"default","tag":"API Reference","count":243},{"language":"default","tag":"Guide","count":206},{"language":"default","tag":"Integrations","count":54},{"language":"default","tag":"Plans","count":46},{"language":"default","tag":"Resources","count":46},{"language":"default","tag":"Charges","count":39},{"language":"default","tag":"Pricing \u0026 Subscriptions","count":35},{"language":"default","tag":"Subscriptions","count":31},{"language":"default","tag":"Invoices","count":27}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"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":"sso-setup-deadline-banner","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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{visibility:hidden;background-color:#F5F5EF}@media (prefers-color-scheme: dark){html{background-color:#131923}}html.ready{visibility:visible}.dark .welcome-card{background-color:#1c2535!important;border-color:rgba(255, 255, 255, 0.1)!important;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.3)!important;color:#e5e7eb}.dark .welcome-card:hover{background-color:#243044!important}.dark .welcome-card h3{color:#ffffff}.dark .welcome-card p{color:#9ca3af!important}#changelog-month-nav{padding-left:2.5rem;width:19rem;box-sizing:border-box;margin-bottom:1.75rem;max-height:45vh;overflow-y:auto}#changelog-month-nav .changelog-month-nav__year{margin:0 0 0.5rem;font-size:0.875rem;line-height:1.5rem;font-weight:500;color:#364152}#changelog-month-nav .changelog-month-nav__list{list-style:none;margin:0;padding:0;border-left:1px solid rgba(0, 0, 0, 0.08)}#changelog-month-nav .changelog-month-nav__list a{display:block;padding:0.25rem 0 0.25rem 0.75rem;margin-left:-1px;border-left:1px solid transparent;font-size:0.875rem;line-height:1.5rem;color:#697586;text-decoration:none;transition:color 0.15s ease, border-color 0.15s ease}#changelog-month-nav .changelog-month-nav__list a:hover{color:#121926}#changelog-month-nav .changelog-month-nav__list a.is-active{color:#006CFA;border-left-color:#006CFA;font-weight:500}.dark #changelog-month-nav .changelog-month-nav__year{color:#cdd5df}.dark #changelog-month-nav .changelog-month-nav__list{border-left-color:rgba(255, 255, 255, 0.12)}.dark #changelog-month-nav .changelog-month-nav__list a{color:#9aa4b2}.dark #changelog-month-nav .changelog-month-nav__list a:hover{color:#ffffff}.dark #changelog-month-nav .changelog-month-nav__list a.is-active{color:#4d9bff;border-left-color:#4d9bff}.update-container>div:first-child{display:none}.update-container>div:nth-child(2){flex:1 1 100%;max-width:100%;width:100%}.update-container{gap:0}#footer a[href*=\"utm_campaign=poweredBy\"]{display:none}"}],"page":{"pagePath":"api-reference/quotes/quote-version-object","slug":"/api-reference/quotes/quote-version-object","pageMetadata":{"title":"The quote version object","openapi-schema":"QuoteVersionObjectExtended","description":"This object represents a version of a quote: the priced deal itself, as a document `content` and a set of `billing_items`. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.","href":"/api-reference/quotes/quote-version-object"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"This object represents a version of a quote: the priced deal itself, as a document \", _jsx(_components.code, {\n children: \"content\"\n }), \" and a set of \", _jsx(_components.code, {\n children: \"billing_items\"\n }), \". A quote carries one active version at a time, and every renegotiation creates a new one by cloning.\"]\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Info}=_components;if(!Info)_missingMdxReference(`Info`,true);return _jsx(Info,{children:_jsxs(_components.p,{children:[`The keys of `,_jsx(_components.code,{children:`billing_items`}),` are camelCased, unlike the rest of the API. They are stored as authored in the Lago user interface, and every `,_jsx(_components.code,{children:`payload`}),` pins the catalog record the entry was built from.`]})})}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":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"The quote version object","openapi-schema":"QuoteVersionObjectExtended","description":"This object represents a version of a quote: the priced deal itself, as a document `content` and a set of `billing_items`. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.","href":"/api-reference/quotes/quote-version-object"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/lago-docs/a0e77058367d9146/canonical.js","/docs/_mintlify/custom/lago-docs/fa2446312177e9c6/loader.js","/docs/_mintlify/custom/lago-docs/c55d8403f7fc83ad/changelog-anchor-redirect.js","/docs/_mintlify/custom/lago-docs/8c326c8b67b47933/changelog-month-nav.js","/docs/_mintlify/custom/lago-docs/103c90943d27f62a/webmcp.js","/docs/_mintlify/custom/lago-docs/1219fb859e5c496e/github-outbound.js"],"openApiReferenceData":{"schemaData":{"type":"object","required":["content","billing_items","lago_id","lago_quote_id","lago_organization_id","version","status","currency","billing_entity_code","void_reason","approved_at","voided_at","created_at","updated_at"],"properties":{"lago_id":{"type":"string","format":"uuid","description":"Unique identifier of the quote version, created by Lago.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"lago_id","typeLabel":"string\u003cuuid>"},"lago_quote_id":{"type":"string","format":"uuid","description":"Unique identifier of the quote the version belongs to, created by Lago.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"lago_quote_id","typeLabel":"string\u003cuuid>"},"lago_organization_id":{"type":"string","format":"uuid","description":"Unique identifier of the organization, created by Lago.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"lago_organization_id","typeLabel":"string\u003cuuid>"},"version":{"type":"integer","description":"The number of the version within the quote. It starts at 1 and increases by 1 for every new version created by cloning.","example":1,"isRequired":true,"uniqueKey":"version","typeLabel":"integer"},"status":{"type":"string","description":"The status of the quote version. It can be any of the following values:\n - `draft`: the version is still editable.\n - `approved`: the version has been approved and an order form has been generated from it.\n - `voided`: the version is no longer actionable.\n\nA quote has at most one version in `draft` or `approved` status at any time; all the other versions are `voided`.\n","enum":["draft","approved","voided"],"example":"draft","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"currency":{"oneOf":[{"type":"string","description":"The currency the version is quoted in.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","isRequired":true,"uniqueKey":"currency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The currency the version is quoted in.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","isRequired":true,"uniqueKey":"currency.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring> | null"},"billing_entity_code":{"oneOf":[{"type":"string","description":"Unique code identifying the billing entity that issues the deal. It is resolved rather than stored: the version's own entity when it names one, then the entity of the subscription being amended for a `subscription_amendment` quote, then the customer's own. It is `null` when none of them resolves. An amendment cannot name an entity itself, since the subscription it restates is already bound to one, and naming one on an amendment is rejected.","example":"acme_corp","isRequired":true,"uniqueKey":"billing_entity_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique code identifying the billing entity that issues the deal. It is resolved rather than stored: the version's own entity when it names one, then the entity of the subscription being amended for a `subscription_amendment` quote, then the customer's own. It is `null` when none of them resolves. An amendment cannot name an entity itself, since the subscription it restates is already bound to one, and naming one on an amendment is rejected.","example":"acme_corp","isRequired":true,"uniqueKey":"billing_entity_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_entity_code","typeLabel":"string | null"},"void_reason":{"oneOf":[{"type":"string","description":"The reason why the quote version was voided. It is `null` unless the `status` is `voided`. It can be any of the following values:\n - `manual`: voided explicitly, through the API or the Lago user interface.\n - `superseded`: voided because the version was cloned into a new draft.\n - `cascade_of_expired`: voided because the order form generated from the version expired.\n - `cascade_of_voided`: voided because the order form generated from the version was voided.\n","enum":[null,"manual","superseded","cascade_of_expired","cascade_of_voided"],"example":"manual","isRequired":true,"uniqueKey":"void_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The reason why the quote version was voided. It is `null` unless the `status` is `voided`. It can be any of the following values:\n - `manual`: voided explicitly, through the API or the Lago user interface.\n - `superseded`: voided because the version was cloned into a new draft.\n - `cascade_of_expired`: voided because the order form generated from the version expired.\n - `cascade_of_voided`: voided because the order form generated from the version was voided.\n","enum":[null,"manual","superseded","cascade_of_expired","cascade_of_voided"],"example":"manual","isRequired":true,"uniqueKey":"void_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"void_reason","typeLabel":"enum\u003cstring> | null"},"approved_at":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the version was approved. It is `null` unless the `status` is `approved`.","format":"date-time","example":"2026-04-29T08:59:51Z","isRequired":true,"uniqueKey":"approved_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the version was approved. It is `null` unless the `status` is `approved`.","format":"date-time","example":"2026-04-29T08:59:51Z","isRequired":true,"uniqueKey":"approved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approved_at","typeLabel":"string\u003cdate-time> | null"},"voided_at":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the version was voided. It is `null` unless the `status` is `voided`.","format":"date-time","example":"2026-04-29T08:59:51Z","isRequired":true,"uniqueKey":"voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the version was voided. It is `null` unless the `status` is `voided`.","format":"date-time","example":"2026-04-29T08:59:51Z","isRequired":true,"uniqueKey":"voided_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"voided_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","description":"The date and time in UTC (ISO 8601) when the version was created.","example":"2026-04-29T08:59:51Z","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"The date and time in UTC (ISO 8601) when the version was last updated.","example":"2026-04-29T08:59:51Z","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"content":{"oneOf":[{"type":"string","description":"The HTML body of the quote document, as authored in the Lago user interface. It may reference the entries of `billing_items` through their `localId`.","example":"\u003ch1>Quote QT-2026-0001\u003c/h1>\u003cp>Prepared for Acme Corp.\u003c/p>","isRequired":true,"uniqueKey":"content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The HTML body of the quote document, as authored in the Lago user interface. It may reference the entries of `billing_items` through their `localId`.","example":"\u003ch1>Quote QT-2026-0001\u003c/h1>\u003cp>Prepared for Acme Corp.\u003c/p>","isRequired":true,"uniqueKey":"content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content","typeLabel":"string | null"},"billing_items":{"oneOf":[{"type":"object","description":"A snapshot of everything the quote bills. Unlike the rest of the Lago API, the keys nested in this object are camelCased: the object is stored and returned as it is authored in the Lago user interface.\n\nWhich top-level keys are present depends on the `order_type` of the parent quote:\n - `one_off`: `addOns`.\n - `subscription_creation` and `subscription_amendment`: `plans`, plus the optional `coupons` and `walletCredits`.\n\nEvery entry pins the catalog record it was built from through its `id` and its `payload`, so that an approved quote keeps billing what was approved even if the catalog changes afterwards. The optional `overrides` object carries the deviations from that record negotiated on the quote.\n\nThis object is the single source of truth for the term of the deal. Three of its nested dates bound that term, because the execution flow refuses them once past: `plans[].payload.endDate`, `walletCredits[].payload.expirationAt` and the `expirationAt` of a wallet credit's recurring top-up rule. The earliest of them is the day the deal stops being executable, and both the signing window and the execution date must fall strictly before it. A `one_off` quote carries none of them and is never bounded.\n\nOn a `draft` version this object may be incomplete: only the properties documented as required below are enforced on every save, the others are enforced when the version is approved.\n","properties":{"addOns":{"type":"array","description":"The add-ons billed once by a `one_off` quote. At least one entry is required to approve the version.","items":{"type":"object","required":["id","localId","type","payload"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the add-on in Lago, pinned when the entry was added to the quote.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"localId":{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","isRequired":true,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].localId","typeLabel":"string"},"type":{"type":"string","description":"The kind of billing item.","enum":["add_on"],"example":"add_on","isRequired":true,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"payload":{"type":"object","description":"A snapshot of the add-on as it was added to the quote. `code`, `units`, `unitAmountCents` and `totalAmountCents` are required to approve the version.","properties":{"code":{"type":"string","description":"Unique code identifying the add-on.","example":"setup_fee","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.code","typeLabel":"string"},"units":{"type":"number","description":"The number of units billed. It must be greater than 0.","example":1,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.units","typeLabel":"number"},"unitAmountCents":{"type":"integer","description":"The amount of one unit, in cents, in the currency of the quote version.","example":10000,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.unitAmountCents","typeLabel":"integer"},"totalAmountCents":{"type":"integer","description":"The total amount billed for the entry, in cents, in the currency of the quote version.","example":10000,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.totalAmountCents","typeLabel":"integer"},"fromDatetime":{"oneOf":[{"type":"string","description":"The beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.fromDatetime.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.fromDatetime.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.fromDatetime","typeLabel":"string\u003cdate-time> | null"},"toDatetime":{"oneOf":[{"type":"string","description":"The end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.toDatetime.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.toDatetime.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload.toDatetime","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].payload","typeLabel":"object"},"overrides":{"type":"object","description":"The deviations from the add-on snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"description":{"type":"string","description":"Overrides the description of the add-on.","example":"Onboarding package, discounted for the first year","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.description","typeLabel":"string"},"units":{"type":"number","description":"Overrides the number of units billed. It must be greater than 0.","example":2,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.units","typeLabel":"number"},"unitAmountCents":{"type":"integer","description":"Overrides the amount of one unit, in cents.","example":8000,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.unitAmountCents","typeLabel":"integer"},"totalAmountCents":{"type":"integer","description":"Overrides the total amount billed for the entry, in cents.","example":16000,"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.totalAmountCents","typeLabel":"integer"},"invoiceDisplayName":{"type":"string","description":"Overrides the name of the add-on as it appears on the invoice.","example":"Onboarding","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.invoiceDisplayName","typeLabel":"string"},"fromDatetime":{"oneOf":[{"type":"string","description":"Overrides the beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.fromDatetime.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Overrides the beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.fromDatetime.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.fromDatetime","typeLabel":"string\u003cdate-time> | null"},"toDatetime":{"oneOf":[{"type":"string","description":"Overrides the end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.toDatetime.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Overrides the end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z","uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.toDatetime.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides.toDatetime","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX].overrides","typeLabel":"object"}},"uniqueKey":"billing_items.oneOf.0.addOns.items.[INDEX]","typeLabel":"object"},"uniqueKey":"billing_items.oneOf.0.addOns","typeLabel":"object[]"},"plans":{"type":"array","description":"The plans subscribed to, or amended, by a `subscription_creation` or `subscription_amendment` quote. At least one entry is required to approve the version.","items":{"type":"object","required":["id","type","payload"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the plan in Lago, pinned when the entry was added to the quote.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"type":{"type":"string","description":"The kind of billing item.","enum":["plan"],"example":"plan","isRequired":true,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"payload":{"type":"object","description":"A snapshot of the plan as it was added to the quote, and of the subscription to create from it. Additional catalog properties may be present, as only the ones Lago reads when the quote is executed are documented here. `code` is required to approve the version.","properties":{"code":{"type":"string","description":"Unique code identifying the plan.","example":"premium_plan","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.code","typeLabel":"string"},"subscriptionExternalId":{"oneOf":[{"type":"string","description":"The external unique identifier to assign to the subscription created from the entry. For a `subscription_amendment` quote, it identifies the subscription being amended.","example":"sub_1234567890","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.subscriptionExternalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external unique identifier to assign to the subscription created from the entry. For a `subscription_amendment` quote, it identifies the subscription being amended.","example":"sub_1234567890","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.subscriptionExternalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.subscriptionExternalId","typeLabel":"string | null"},"subscriptionName":{"oneOf":[{"type":"string","description":"The name to assign to the subscription created from the entry.","example":"Premium plan - Acme Corp","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.subscriptionName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name to assign to the subscription created from the entry.","example":"Premium plan - Acme Corp","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.subscriptionName.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.subscriptionName","typeLabel":"string | null"},"billingTime":{"oneOf":[{"type":"string","description":"The billing time of the subscription created from the entry.","enum":[null,"calendar","anniversary"],"example":"calendar","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.billingTime.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The billing time of the subscription created from the entry.","enum":[null,"calendar","anniversary"],"example":"calendar","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.billingTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.billingTime","typeLabel":"enum\u003cstring> | null"},"startDate":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the subscription starts. It is optional, and a plan naming none starts the moment the order is executed.","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.startDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the subscription starts. It is optional, and a plan naming none starts the moment the order is executed.","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.startDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.startDate","typeLabel":"string | null"},"endDate":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the subscription ends. Leaving it unset makes the deal open-ended, and on a `subscription_amendment` quote it leaves the amended subscription's own ending date in place. It bounds the deal, so the signing window and the execution date must both fall strictly before it.","example":"2027-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.endDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the subscription ends. Leaving it unset makes the deal open-ended, and on a `subscription_amendment` quote it leaves the amended subscription's own ending date in place. It bounds the deal, so the signing window and the execution date must both fall strictly before it.","example":"2027-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.endDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.endDate","typeLabel":"string | null"},"paymentMethodId":{"oneOf":[{"type":"string","description":"Unique identifier of the payment method to charge for the subscription, created by Lago.","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.paymentMethodId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"Unique identifier of the payment method to charge for the subscription, created by Lago.","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.paymentMethodId.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.paymentMethodId","typeLabel":"string\u003cuuid> | null"},"charges":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the charge in Lago. It is required to approve the version.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"billableMetric":{"type":"object","description":"The billable metric the charge is based on.","properties":{"code":{"type":"string","description":"Unique code identifying the billable metric. It is required to approve the version.","example":"api_calls","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0.items.[INDEX].billableMetric.code","typeLabel":"string"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0.items.[INDEX].billableMetric","typeLabel":"object"},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0.items.[INDEX].chargeModel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0.items.[INDEX].chargeModel.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0.items.[INDEX].chargeModel","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"A snapshot of the usage-based charges of the plan. It pins the charge each entry of `overrides.charges` applies to.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"A snapshot of the usage-based charges of the plan. It pins the charge each entry of `overrides.charges` applies to.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.charges","typeLabel":"object[] | null"},"fixedCharges":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the fixed charge in Lago. It is required to approve the version.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"addOn":{"type":"object","description":"The add-on the fixed charge is based on.","properties":{"code":{"type":"string","description":"Unique code identifying the add-on. It is required to approve the version.","example":"seats","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0.items.[INDEX].addOn.code","typeLabel":"string"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0.items.[INDEX].addOn","typeLabel":"object"},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the fixed charge.","enum":[null,"standard","graduated","volume"],"example":"standard","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0.items.[INDEX].chargeModel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The pricing model of the fixed charge.","enum":[null,"standard","graduated","volume"],"example":"standard","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0.items.[INDEX].chargeModel.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0.items.[INDEX].chargeModel","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"A snapshot of the fixed charges of the plan. It pins the fixed charge each entry of `overrides.fixedCharges` applies to.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"A snapshot of the fixed charges of the plan. It pins the fixed charge each entry of `overrides.fixedCharges` applies to.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload.fixedCharges","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].payload","typeLabel":"object"},"localId":{"oneOf":[{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].localId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].localId.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].localId","typeLabel":"string | null"},"overrides":{"oneOf":[{"type":"object","description":"The deviations from the plan snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the base amount of the plan, in cents.","example":50000,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.amountCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Overrides the base amount of the plan, in cents.","example":50000,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.amountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.amountCents","typeLabel":"integer | null"},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.amountCurrency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.amountCurrency.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.amountCurrency","typeLabel":"enum\u003cstring> | null"},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.invoiceDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.invoiceDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.invoiceDisplayName","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Overrides the description of the plan.","example":"Negotiated premium plan","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Overrides the description of the plan.","example":"Negotiated premium plan","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.description","typeLabel":"string | null"},"trialPeriod":{"oneOf":[{"type":"number","description":"Overrides the trial period of the plan, in days.","example":30,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.trialPeriod.oneOf.0","typeLabel":"number"},{"type":"null","description":"Overrides the trial period of the plan, in days.","example":30,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.trialPeriod.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.trialPeriod","typeLabel":"number | null"},"minimumCommitment":{"oneOf":[{"type":"object","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.0.amountCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.0.amountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.0.amountCents","typeLabel":"integer | null"},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.0.invoiceDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.0.invoiceDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.0.invoiceDisplayName","typeLabel":"string | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.0","typeLabel":"object"},{"type":"null","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"}]}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.minimumCommitment","typeLabel":"object | null"},"usageThresholds":{"oneOf":[{"type":"array","items":{"type":"object","required":["amountCents"],"properties":{"amountCents":{"type":"integer","description":"The usage amount, in cents, at which the threshold is reached. It must be greater than 0.","example":100000,"isRequired":true,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX].amountCents","typeLabel":"integer"},"recurring":{"oneOf":[{"type":"boolean","description":"Whether the threshold applies to every period, instead of only once.","example":false,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX].recurring.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the threshold applies to every period, instead of only once.","example":false,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX].recurring.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX].recurring","typeLabel":"boolean | null"},"thresholdDisplayName":{"oneOf":[{"type":"string","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX].thresholdDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX].thresholdDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX].thresholdDisplayName","typeLabel":"string | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Overrides the progressive billing thresholds of the plan.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Overrides the progressive billing thresholds of the plan.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.usageThresholds","typeLabel":"object[] | null"},"charges":{"oneOf":[{"type":"array","items":{"type":"object","required":["billableMetricCode"],"properties":{"billableMetricCode":{"type":"string","description":"Unique code identifying the billable metric of the charge to override.","example":"api_calls","isRequired":true,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].billableMetricCode","typeLabel":"string"},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].chargeModel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].chargeModel.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].chargeModel","typeLabel":"enum\u003cstring> | null"},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].properties.oneOf.0","typeLabel":"object"},{"type":"null","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].properties.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].properties","typeLabel":"object | null"},"minAmountCents":{"oneOf":[{"type":"integer","description":"The minimum amount billed for the charge, in cents.","example":10000,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].minAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The minimum amount billed for the charge, in cents.","example":10000,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].minAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].minAmountCents","typeLabel":"integer | null"},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the charge as it appears on the invoice.","example":"API calls","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].invoiceDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the charge as it appears on the invoice.","example":"API calls","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].invoiceDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX].invoiceDisplayName","typeLabel":"string | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.charges","typeLabel":"object[] | null"},"fixedCharges":{"oneOf":[{"type":"array","items":{"type":"object","required":["addOnCode"],"properties":{"addOnCode":{"type":"string","description":"Unique code identifying the add-on of the fixed charge to override.","example":"seats","isRequired":true,"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].addOnCode","typeLabel":"string"},"units":{"oneOf":[{"type":"string","description":"The number of units billed by the fixed charge.","example":"10","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].units.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number of units billed by the fixed charge.","example":"10","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].units.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].units","typeLabel":"string | null"},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].properties.oneOf.0","typeLabel":"object"},{"type":"null","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].properties.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].properties","typeLabel":"object | null"},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].invoiceDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].invoiceDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX].invoiceDisplayName","typeLabel":"string | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`.","uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0.fixedCharges","typeLabel":"object[] | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deviations from the plan snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the base amount of the plan, in cents.","example":50000},{"type":"null","description":"Overrides the base amount of the plan, in cents.","example":50000}]},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium"},{"type":"null","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium"}]},"name":{"oneOf":[{"type":"string","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp"},{"type":"null","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp"}]},"description":{"oneOf":[{"type":"string","description":"Overrides the description of the plan.","example":"Negotiated premium plan"},{"type":"null","description":"Overrides the description of the plan.","example":"Negotiated premium plan"}]},"trialPeriod":{"oneOf":[{"type":"number","description":"Overrides the trial period of the plan, in days.","example":30},{"type":"null","description":"Overrides the trial period of the plan, in days.","example":30}]},"minimumCommitment":{"oneOf":[{"type":"object","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"}]}}},{"type":"null","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"}]}}}]},"usageThresholds":{"oneOf":[{"type":"array","items":{"type":"object","required":["amountCents"],"properties":{"amountCents":{"type":"integer","description":"The usage amount, in cents, at which the threshold is reached. It must be greater than 0.","example":100000},"recurring":{"oneOf":[{"type":"boolean","description":"Whether the threshold applies to every period, instead of only once.","example":false},{"type":"null","description":"Whether the threshold applies to every period, instead of only once.","example":false}]},"thresholdDisplayName":{"oneOf":[{"type":"string","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage"},{"type":"null","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage"}]}}},"description":"Overrides the progressive billing thresholds of the plan."},{"type":"null","description":"Overrides the progressive billing thresholds of the plan."}]},"charges":{"oneOf":[{"type":"array","items":{"type":"object","required":["billableMetricCode"],"properties":{"billableMetricCode":{"type":"string","description":"Unique code identifying the billable metric of the charge to override.","example":"api_calls"},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"},{"type":"null","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"}]},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"}},{"type":"null","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"}}]},"minAmountCents":{"oneOf":[{"type":"integer","description":"The minimum amount billed for the charge, in cents.","example":10000},{"type":"null","description":"The minimum amount billed for the charge, in cents.","example":10000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the charge as it appears on the invoice.","example":"API calls"},{"type":"null","description":"The name of the charge as it appears on the invoice.","example":"API calls"}]}}},"description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`."},{"type":"null","description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`."}]},"fixedCharges":{"oneOf":[{"type":"array","items":{"type":"object","required":["addOnCode"],"properties":{"addOnCode":{"type":"string","description":"Unique code identifying the add-on of the fixed charge to override.","example":"seats"},"units":{"oneOf":[{"type":"string","description":"The number of units billed by the fixed charge.","example":"10"},{"type":"null","description":"The number of units billed by the fixed charge.","example":"10"}]},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"}},{"type":"null","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"}}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats"},{"type":"null","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats"}]}}},"description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`."},{"type":"null","description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`."}]}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX].overrides","typeLabel":"object | null"}},"uniqueKey":"billing_items.oneOf.0.plans.items.[INDEX]","typeLabel":"object"},"uniqueKey":"billing_items.oneOf.0.plans","typeLabel":"object[]"},"coupons":{"type":"array","description":"The coupons applied to the customer when the quote is executed.","items":{"type":"object","required":["id","localId","type","payload"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the coupon in Lago, pinned when the entry was added to the quote.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"localId":{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","isRequired":true,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].localId","typeLabel":"string"},"type":{"type":"string","description":"The kind of billing item.","enum":["coupon"],"example":"coupon","isRequired":true,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"payload":{"type":"object","description":"A snapshot of the coupon as it was added to the quote. `code` and `type` are required to approve the version.","properties":{"code":{"type":"string","description":"Unique code identifying the coupon.","example":"welcome_offer","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.code","typeLabel":"string"},"type":{"type":"string","description":"Whether the coupon deducts a fixed amount or a percentage.","enum":["fixed_amount","percentage"],"example":"fixed_amount","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.type","typeLabel":"enum\u003cstring>"},"amountCents":{"oneOf":[{"type":"integer","description":"The amount deducted by the coupon, in cents. Only for a `fixed_amount` coupon.","example":10000,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.amountCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The amount deducted by the coupon, in cents. Only for a `fixed_amount` coupon.","example":10000,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.amountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.amountCents","typeLabel":"integer | null"},"currency":{"oneOf":[{"type":"string","description":"The currency of `amountCents`. Only for a `fixed_amount` coupon.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.currency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The currency of `amountCents`. Only for a `fixed_amount` coupon.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.currency","typeLabel":"enum\u003cstring> | null"},"percentageRate":{"oneOf":[{"type":"number","description":"The percentage deducted by the coupon. Only for a `percentage` coupon. It must be greater than 0.","example":10.5,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.percentageRate.oneOf.0","typeLabel":"number"},{"type":"null","description":"The percentage deducted by the coupon. Only for a `percentage` coupon. It must be greater than 0.","example":10.5,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.percentageRate.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.percentageRate","typeLabel":"number | null"},"frequency":{"oneOf":[{"type":"string","description":"How often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"once","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.frequency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"How often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"once","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.frequency.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.frequency","typeLabel":"enum\u003cstring> | null"},"frequencyDuration":{"oneOf":[{"type":"integer","description":"The number of billing periods the coupon is deducted over. Only for a `recurring` coupon. It must be greater than 0.","example":3,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.frequencyDuration.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The number of billing periods the coupon is deducted over. Only for a `recurring` coupon. It must be greater than 0.","example":3,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.frequencyDuration.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload.frequencyDuration","typeLabel":"integer | null"}},"isRequired":true,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].payload","typeLabel":"object"},"overrides":{"oneOf":[{"type":"object","description":"The deviations from the coupon snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the amount deducted by the coupon, in cents.","example":15000,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.amountCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Overrides the amount deducted by the coupon, in cents.","example":15000,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.amountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.amountCents","typeLabel":"integer | null"},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.amountCurrency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.amountCurrency.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.amountCurrency","typeLabel":"enum\u003cstring> | null"},"percentageRate":{"oneOf":[{"type":"number","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.percentageRate.oneOf.0","typeLabel":"number"},{"type":"null","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.percentageRate.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.percentageRate","typeLabel":"number | null"},"frequency":{"oneOf":[{"type":"string","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.frequency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring","uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.frequency.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.frequency","typeLabel":"enum\u003cstring> | null"},"frequencyDuration":{"oneOf":[{"type":"integer","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.frequencyDuration.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6,"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.frequencyDuration.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0.frequencyDuration","typeLabel":"integer | null"}},"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deviations from the coupon snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the amount deducted by the coupon, in cents.","example":15000},{"type":"null","description":"Overrides the amount deducted by the coupon, in cents.","example":15000}]},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"percentageRate":{"oneOf":[{"type":"number","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15},{"type":"null","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15}]},"frequency":{"oneOf":[{"type":"string","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring"},{"type":"null","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring"}]},"frequencyDuration":{"oneOf":[{"type":"integer","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6},{"type":"null","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6}]}},"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX].overrides","typeLabel":"object | null"}},"uniqueKey":"billing_items.oneOf.0.coupons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"billing_items.oneOf.0.coupons","typeLabel":"object[]"},"walletCredits":{"type":"array","description":"The prepaid credit wallets created for the customer when the quote is executed.","items":{"type":"object","required":["localId","type","payload"],"properties":{"localId":{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","isRequired":true,"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].localId","typeLabel":"string"},"type":{"type":"string","description":"The kind of billing item.","enum":["wallet_credit"],"example":"wallet_credit","isRequired":true,"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"payload":{"type":"object","description":"The prepaid credit wallet to create for the customer. Unlike the other billing items, a wallet credit is not built from an existing record, so it carries no `id` and no `overrides`. `paidCredits`, `grantedCredits` and `rateAmount` are required to approve the version.","properties":{"paidCredits":{"oneOf":[{"type":"string","description":"The number of credits the customer pays for.","example":"100.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.paidCredits.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number of credits the customer pays for.","example":"100.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.paidCredits.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.paidCredits","typeLabel":"string | null"},"grantedCredits":{"oneOf":[{"type":"string","description":"The number of credits granted for free.","example":"20.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.grantedCredits.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number of credits granted for free.","example":"20.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.grantedCredits.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.grantedCredits","typeLabel":"string | null"},"rateAmount":{"oneOf":[{"type":"string","description":"The value of one credit, in the currency of the wallet.","example":"1.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.rateAmount.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value of one credit, in the currency of the wallet.","example":"1.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.rateAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.rateAmount","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","description":"The currency of the wallet.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.currency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The currency of the wallet.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.currency","typeLabel":"enum\u003cstring> | null"},"expirationAt":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the credits expire.","format":"date-time","example":"2027-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.expirationAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the credits expire.","format":"date-time","example":"2027-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.expirationAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.expirationAt","typeLabel":"string\u003cdate-time> | null"},"appliesTo":{"oneOf":[{"type":"object","description":"The limitations restricting what the credits can be spent on.","properties":{"feeTypes":{"oneOf":[{"type":"array","items":{"type":"string","enum":["charge","add_on","subscription","credit","commitment","fixed_charge","product"],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.feeTypes.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"The fee types the credits can be spent on.","example":["charge"],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.feeTypes.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","description":"The fee types the credits can be spent on.","example":["charge"],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.feeTypes.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.feeTypes","typeLabel":"enum\u003cstring>[] | null"},"billableMetricCodes":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.billableMetricCodes.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.billableMetricCodes.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.billableMetricCodes.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0.billableMetricCodes","typeLabel":"string[] | null"}},"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.0","typeLabel":"object"},{"type":"null","description":"The limitations restricting what the credits can be spent on.","properties":{"feeTypes":{"oneOf":[{"type":"array","items":{"type":"string","enum":["charge","add_on","subscription","credit","commitment","fixed_charge","product"]},"description":"The fee types the credits can be spent on.","example":["charge"]},{"type":"null","description":"The fee types the credits can be spent on.","example":["charge"]}]},"billableMetricCodes":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"]},{"type":"null","description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"]}]}},"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.appliesTo","typeLabel":"object | null"},"recurringTransactionRules":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"trigger":{"oneOf":[{"type":"string","description":"What triggers the top-up.","enum":[null,"interval","threshold"],"example":"interval","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].trigger.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"What triggers the top-up.","enum":[null,"interval","threshold"],"example":"interval","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].trigger.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].trigger","typeLabel":"enum\u003cstring> | null"},"interval":{"oneOf":[{"type":"string","description":"How often the wallet is topped up. Only for an `interval` trigger.","enum":[null,"weekly","monthly","quarterly","semiannual","yearly"],"example":"monthly","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].interval.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"How often the wallet is topped up. Only for an `interval` trigger.","enum":[null,"weekly","monthly","quarterly","semiannual","yearly"],"example":"monthly","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].interval.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].interval","typeLabel":"enum\u003cstring> | null"},"thresholdCredits":{"oneOf":[{"type":"string","description":"The credit balance below which the wallet is topped up. Only for a `threshold` trigger.","example":"10.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].thresholdCredits.oneOf.0","typeLabel":"string"},{"type":"null","description":"The credit balance below which the wallet is topped up. Only for a `threshold` trigger.","example":"10.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].thresholdCredits.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].thresholdCredits","typeLabel":"string | null"},"method":{"oneOf":[{"type":"string","description":"Whether the top-up grants a fixed number of credits, or brings the balance up to a target.","enum":[null,"fixed","target"],"example":"fixed","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].method.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Whether the top-up grants a fixed number of credits, or brings the balance up to a target.","enum":[null,"fixed","target"],"example":"fixed","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].method.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].method","typeLabel":"enum\u003cstring> | null"},"targetOngoingBalance":{"oneOf":[{"type":"string","description":"The balance the top-up brings the wallet up to. Only for a `target` method.","example":"100.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].targetOngoingBalance.oneOf.0","typeLabel":"string"},{"type":"null","description":"The balance the top-up brings the wallet up to. Only for a `target` method.","example":"100.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].targetOngoingBalance.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].targetOngoingBalance","typeLabel":"string | null"},"grantsTargetTopUp":{"oneOf":[{"type":"boolean","description":"Whether the granted credits count towards the target balance.","example":false,"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].grantsTargetTopUp.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the granted credits count towards the target balance.","example":false,"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].grantsTargetTopUp.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].grantsTargetTopUp","typeLabel":"boolean | null"},"paidCredits":{"oneOf":[{"type":"string","description":"The number of credits the customer pays for on every top-up.","example":"100.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].paidCredits.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number of credits the customer pays for on every top-up.","example":"100.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].paidCredits.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].paidCredits","typeLabel":"string | null"},"grantedCredits":{"oneOf":[{"type":"string","description":"The number of credits granted for free on every top-up.","example":"20.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].grantedCredits.oneOf.0","typeLabel":"string"},{"type":"null","description":"The number of credits granted for free on every top-up.","example":"20.0","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].grantedCredits.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].grantedCredits","typeLabel":"string | null"},"startedAt":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the rule starts applying.","format":"date-time","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].startedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the rule starts applying.","format":"date-time","example":"2026-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].startedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].startedAt","typeLabel":"string\u003cdate-time> | null"},"expirationAt":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the rule stops applying.","format":"date-time","example":"2027-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].expirationAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the rule stops applying.","format":"date-time","example":"2027-01-01T00:00:00Z","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].expirationAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].expirationAt","typeLabel":"string\u003cdate-time> | null"},"transactionName":{"oneOf":[{"type":"string","description":"The name given to the wallet transactions created by the rule.","example":"Monthly top-up","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].transactionName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name given to the wallet transactions created by the rule.","example":"Monthly top-up","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].transactionName.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].transactionName","typeLabel":"string | null"},"invoiceRequiresSuccessfulPayment":{"oneOf":[{"type":"boolean","description":"Whether the credits are granted only once the top-up invoice is paid.","example":false,"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].invoiceRequiresSuccessfulPayment.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the credits are granted only once the top-up invoice is paid.","example":false,"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].invoiceRequiresSuccessfulPayment.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX].invoiceRequiresSuccessfulPayment","typeLabel":"boolean | null"}},"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The rule automatically topping the wallet up. At most one rule is allowed, and its `trigger` is required, to approve the version.","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"The rule automatically topping the wallet up. At most one rule is allowed, and its `trigger` is required, to approve the version.","uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload.recurringTransactionRules","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX].payload","typeLabel":"object"}},"uniqueKey":"billing_items.oneOf.0.walletCredits.items.[INDEX]","typeLabel":"object"},"uniqueKey":"billing_items.oneOf.0.walletCredits","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"billing_items.oneOf.0","typeLabel":"object"},{"type":"null","description":"A snapshot of everything the quote bills. Unlike the rest of the Lago API, the keys nested in this object are camelCased: the object is stored and returned as it is authored in the Lago user interface.\n\nWhich top-level keys are present depends on the `order_type` of the parent quote:\n - `one_off`: `addOns`.\n - `subscription_creation` and `subscription_amendment`: `plans`, plus the optional `coupons` and `walletCredits`.\n\nEvery entry pins the catalog record it was built from through its `id` and its `payload`, so that an approved quote keeps billing what was approved even if the catalog changes afterwards. The optional `overrides` object carries the deviations from that record negotiated on the quote.\n\nThis object is the single source of truth for the term of the deal. Three of its nested dates bound that term, because the execution flow refuses them once past: `plans[].payload.endDate`, `walletCredits[].payload.expirationAt` and the `expirationAt` of a wallet credit's recurring top-up rule. The earliest of them is the day the deal stops being executable, and both the signing window and the execution date must fall strictly before it. A `one_off` quote carries none of them and is never bounded.\n\nOn a `draft` version this object may be incomplete: only the properties documented as required below are enforced on every save, the others are enforced when the version is approved.\n","properties":{"addOns":{"type":"array","description":"The add-ons billed once by a `one_off` quote. At least one entry is required to approve the version.","items":{"type":"object","required":["id","localId","type","payload"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the add-on in Lago, pinned when the entry was added to the quote.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90"},"localId":{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b"},"type":{"type":"string","description":"The kind of billing item.","enum":["add_on"],"example":"add_on"},"payload":{"type":"object","description":"A snapshot of the add-on as it was added to the quote. `code`, `units`, `unitAmountCents` and `totalAmountCents` are required to approve the version.","properties":{"code":{"type":"string","description":"Unique code identifying the add-on.","example":"setup_fee"},"units":{"type":"number","description":"The number of units billed. It must be greater than 0.","example":1},"unitAmountCents":{"type":"integer","description":"The amount of one unit, in cents, in the currency of the quote version.","example":10000},"totalAmountCents":{"type":"integer","description":"The total amount billed for the entry, in cents, in the currency of the quote version.","example":10000},"fromDatetime":{"oneOf":[{"type":"string","description":"The beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z"},{"type":"null","description":"The beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z"}]},"toDatetime":{"oneOf":[{"type":"string","description":"The end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z"},{"type":"null","description":"The end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z"}]}}},"overrides":{"type":"object","description":"The deviations from the add-on snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"description":{"type":"string","description":"Overrides the description of the add-on.","example":"Onboarding package, discounted for the first year"},"units":{"type":"number","description":"Overrides the number of units billed. It must be greater than 0.","example":2},"unitAmountCents":{"type":"integer","description":"Overrides the amount of one unit, in cents.","example":8000},"totalAmountCents":{"type":"integer","description":"Overrides the total amount billed for the entry, in cents.","example":16000},"invoiceDisplayName":{"type":"string","description":"Overrides the name of the add-on as it appears on the invoice.","example":"Onboarding"},"fromDatetime":{"oneOf":[{"type":"string","description":"Overrides the beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z"},{"type":"null","description":"Overrides the beginning of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-01-01T00:00:00Z"}]},"toDatetime":{"oneOf":[{"type":"string","description":"Overrides the end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z"},{"type":"null","description":"Overrides the end of the period covered by the entry, in UTC (ISO 8601).","format":"date-time","example":"2026-12-31T23:59:59Z"}]}}}}}},"plans":{"type":"array","description":"The plans subscribed to, or amended, by a `subscription_creation` or `subscription_amendment` quote. At least one entry is required to approve the version.","items":{"type":"object","required":["id","type","payload"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the plan in Lago, pinned when the entry was added to the quote.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90"},"localId":{"oneOf":[{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b"},{"type":"null","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b"}]},"type":{"type":"string","description":"The kind of billing item.","enum":["plan"],"example":"plan"},"payload":{"type":"object","description":"A snapshot of the plan as it was added to the quote, and of the subscription to create from it. Additional catalog properties may be present, as only the ones Lago reads when the quote is executed are documented here. `code` is required to approve the version.","properties":{"code":{"type":"string","description":"Unique code identifying the plan.","example":"premium_plan"},"subscriptionExternalId":{"oneOf":[{"type":"string","description":"The external unique identifier to assign to the subscription created from the entry. For a `subscription_amendment` quote, it identifies the subscription being amended.","example":"sub_1234567890"},{"type":"null","description":"The external unique identifier to assign to the subscription created from the entry. For a `subscription_amendment` quote, it identifies the subscription being amended.","example":"sub_1234567890"}]},"subscriptionName":{"oneOf":[{"type":"string","description":"The name to assign to the subscription created from the entry.","example":"Premium plan - Acme Corp"},{"type":"null","description":"The name to assign to the subscription created from the entry.","example":"Premium plan - Acme Corp"}]},"billingTime":{"oneOf":[{"type":"string","description":"The billing time of the subscription created from the entry.","enum":[null,"calendar","anniversary"],"example":"calendar"},{"type":"null","description":"The billing time of the subscription created from the entry.","enum":[null,"calendar","anniversary"],"example":"calendar"}]},"startDate":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the subscription starts. It is optional, and a plan naming none starts the moment the order is executed.","example":"2026-01-01T00:00:00Z"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the subscription starts. It is optional, and a plan naming none starts the moment the order is executed.","example":"2026-01-01T00:00:00Z"}]},"endDate":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the subscription ends. Leaving it unset makes the deal open-ended, and on a `subscription_amendment` quote it leaves the amended subscription's own ending date in place. It bounds the deal, so the signing window and the execution date must both fall strictly before it.","example":"2027-01-01T00:00:00Z"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the subscription ends. Leaving it unset makes the deal open-ended, and on a `subscription_amendment` quote it leaves the amended subscription's own ending date in place. It bounds the deal, so the signing window and the execution date must both fall strictly before it.","example":"2027-01-01T00:00:00Z"}]},"paymentMethodId":{"oneOf":[{"type":"string","description":"Unique identifier of the payment method to charge for the subscription, created by Lago.","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90"},{"type":"null","description":"Unique identifier of the payment method to charge for the subscription, created by Lago.","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90"}]},"charges":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the charge in Lago. It is required to approve the version.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90"},"billableMetric":{"type":"object","description":"The billable metric the charge is based on.","properties":{"code":{"type":"string","description":"Unique code identifying the billable metric. It is required to approve the version.","example":"api_calls"}}},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"},{"type":"null","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"}]}}},"description":"A snapshot of the usage-based charges of the plan. It pins the charge each entry of `overrides.charges` applies to."},{"type":"null","description":"A snapshot of the usage-based charges of the plan. It pins the charge each entry of `overrides.charges` applies to."}]},"fixedCharges":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the fixed charge in Lago. It is required to approve the version.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90"},"addOn":{"type":"object","description":"The add-on the fixed charge is based on.","properties":{"code":{"type":"string","description":"Unique code identifying the add-on. It is required to approve the version.","example":"seats"}}},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the fixed charge.","enum":[null,"standard","graduated","volume"],"example":"standard"},{"type":"null","description":"The pricing model of the fixed charge.","enum":[null,"standard","graduated","volume"],"example":"standard"}]}}},"description":"A snapshot of the fixed charges of the plan. It pins the fixed charge each entry of `overrides.fixedCharges` applies to."},{"type":"null","description":"A snapshot of the fixed charges of the plan. It pins the fixed charge each entry of `overrides.fixedCharges` applies to."}]}}},"overrides":{"oneOf":[{"type":"object","description":"The deviations from the plan snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the base amount of the plan, in cents.","example":50000},{"type":"null","description":"Overrides the base amount of the plan, in cents.","example":50000}]},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium"},{"type":"null","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium"}]},"name":{"oneOf":[{"type":"string","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp"},{"type":"null","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp"}]},"description":{"oneOf":[{"type":"string","description":"Overrides the description of the plan.","example":"Negotiated premium plan"},{"type":"null","description":"Overrides the description of the plan.","example":"Negotiated premium plan"}]},"trialPeriod":{"oneOf":[{"type":"number","description":"Overrides the trial period of the plan, in days.","example":30},{"type":"null","description":"Overrides the trial period of the plan, in days.","example":30}]},"minimumCommitment":{"oneOf":[{"type":"object","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"}]}}},{"type":"null","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"}]}}}]},"usageThresholds":{"oneOf":[{"type":"array","items":{"type":"object","required":["amountCents"],"properties":{"amountCents":{"type":"integer","description":"The usage amount, in cents, at which the threshold is reached. It must be greater than 0.","example":100000},"recurring":{"oneOf":[{"type":"boolean","description":"Whether the threshold applies to every period, instead of only once.","example":false},{"type":"null","description":"Whether the threshold applies to every period, instead of only once.","example":false}]},"thresholdDisplayName":{"oneOf":[{"type":"string","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage"},{"type":"null","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage"}]}}},"description":"Overrides the progressive billing thresholds of the plan."},{"type":"null","description":"Overrides the progressive billing thresholds of the plan."}]},"charges":{"oneOf":[{"type":"array","items":{"type":"object","required":["billableMetricCode"],"properties":{"billableMetricCode":{"type":"string","description":"Unique code identifying the billable metric of the charge to override.","example":"api_calls"},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"},{"type":"null","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"}]},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"}},{"type":"null","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"}}]},"minAmountCents":{"oneOf":[{"type":"integer","description":"The minimum amount billed for the charge, in cents.","example":10000},{"type":"null","description":"The minimum amount billed for the charge, in cents.","example":10000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the charge as it appears on the invoice.","example":"API calls"},{"type":"null","description":"The name of the charge as it appears on the invoice.","example":"API calls"}]}}},"description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`."},{"type":"null","description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`."}]},"fixedCharges":{"oneOf":[{"type":"array","items":{"type":"object","required":["addOnCode"],"properties":{"addOnCode":{"type":"string","description":"Unique code identifying the add-on of the fixed charge to override.","example":"seats"},"units":{"oneOf":[{"type":"string","description":"The number of units billed by the fixed charge.","example":"10"},{"type":"null","description":"The number of units billed by the fixed charge.","example":"10"}]},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"}},{"type":"null","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"}}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats"},{"type":"null","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats"}]}}},"description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`."},{"type":"null","description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`."}]}}},{"type":"null","description":"The deviations from the plan snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the base amount of the plan, in cents.","example":50000},{"type":"null","description":"Overrides the base amount of the plan, in cents.","example":50000}]},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"Overrides the currency the plan is priced in, which is how a catalog plan is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium"},{"type":"null","description":"Overrides the name of the plan as it appears on the invoice.","example":"Premium"}]},"name":{"oneOf":[{"type":"string","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp"},{"type":"null","description":"Overrides the name of the plan.","example":"Premium plan - Acme Corp"}]},"description":{"oneOf":[{"type":"string","description":"Overrides the description of the plan.","example":"Negotiated premium plan"},{"type":"null","description":"Overrides the description of the plan.","example":"Negotiated premium plan"}]},"trialPeriod":{"oneOf":[{"type":"number","description":"Overrides the trial period of the plan, in days.","example":30},{"type":"null","description":"Overrides the trial period of the plan, in days.","example":30}]},"minimumCommitment":{"oneOf":[{"type":"object","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"}]}}},{"type":"null","description":"Overrides the minimum commitment of the plan.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000},{"type":"null","description":"The amount of the minimum commitment, in cents. It must be greater than 0.","example":100000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"},{"type":"null","description":"The name of the minimum commitment as it appears on the invoice.","example":"Annual commitment"}]}}}]},"usageThresholds":{"oneOf":[{"type":"array","items":{"type":"object","required":["amountCents"],"properties":{"amountCents":{"type":"integer","description":"The usage amount, in cents, at which the threshold is reached. It must be greater than 0.","example":100000},"recurring":{"oneOf":[{"type":"boolean","description":"Whether the threshold applies to every period, instead of only once.","example":false},{"type":"null","description":"Whether the threshold applies to every period, instead of only once.","example":false}]},"thresholdDisplayName":{"oneOf":[{"type":"string","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage"},{"type":"null","description":"The name of the threshold as it appears on the invoice.","example":"First 1,000 EUR of usage"}]}}},"description":"Overrides the progressive billing thresholds of the plan."},{"type":"null","description":"Overrides the progressive billing thresholds of the plan."}]},"charges":{"oneOf":[{"type":"array","items":{"type":"object","required":["billableMetricCode"],"properties":{"billableMetricCode":{"type":"string","description":"Unique code identifying the billable metric of the charge to override.","example":"api_calls"},"chargeModel":{"oneOf":[{"type":"string","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"},{"type":"null","description":"The pricing model of the charge.","enum":[null,"standard","graduated","graduated_percentage","package","percentage","volume","custom","dynamic"],"example":"standard"}]},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"}},{"type":"null","description":"The pricing properties of the charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"0.02"}}]},"minAmountCents":{"oneOf":[{"type":"integer","description":"The minimum amount billed for the charge, in cents.","example":10000},{"type":"null","description":"The minimum amount billed for the charge, in cents.","example":10000}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the charge as it appears on the invoice.","example":"API calls"},{"type":"null","description":"The name of the charge as it appears on the invoice.","example":"API calls"}]}}},"description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`."},{"type":"null","description":"Overrides the usage-based charges of the plan. Each entry applies to the charge of the same billable metric in `payload.charges`."}]},"fixedCharges":{"oneOf":[{"type":"array","items":{"type":"object","required":["addOnCode"],"properties":{"addOnCode":{"type":"string","description":"Unique code identifying the add-on of the fixed charge to override.","example":"seats"},"units":{"oneOf":[{"type":"string","description":"The number of units billed by the fixed charge.","example":"10"},{"type":"null","description":"The number of units billed by the fixed charge.","example":"10"}]},"properties":{"oneOf":[{"type":"object","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"}},{"type":"null","description":"The pricing properties of the fixed charge. Their shape depends on the charge model, and is validated when the quote is executed.","example":{"amount":"5"}}]},"invoiceDisplayName":{"oneOf":[{"type":"string","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats"},{"type":"null","description":"The name of the fixed charge as it appears on the invoice.","example":"Seats"}]}}},"description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`."},{"type":"null","description":"Overrides the fixed charges of the plan. Each entry applies to the fixed charge of the same add-on in `payload.fixedCharges`."}]}}}]}}}},"coupons":{"type":"array","description":"The coupons applied to the customer when the quote is executed.","items":{"type":"object","required":["id","localId","type","payload"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the coupon in Lago, pinned when the entry was added to the quote.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90"},"localId":{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b"},"type":{"type":"string","description":"The kind of billing item.","enum":["coupon"],"example":"coupon"},"payload":{"type":"object","description":"A snapshot of the coupon as it was added to the quote. `code` and `type` are required to approve the version.","properties":{"code":{"type":"string","description":"Unique code identifying the coupon.","example":"welcome_offer"},"type":{"type":"string","description":"Whether the coupon deducts a fixed amount or a percentage.","enum":["fixed_amount","percentage"],"example":"fixed_amount"},"amountCents":{"oneOf":[{"type":"integer","description":"The amount deducted by the coupon, in cents. Only for a `fixed_amount` coupon.","example":10000},{"type":"null","description":"The amount deducted by the coupon, in cents. Only for a `fixed_amount` coupon.","example":10000}]},"currency":{"oneOf":[{"type":"string","description":"The currency of `amountCents`. Only for a `fixed_amount` coupon.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"The currency of `amountCents`. Only for a `fixed_amount` coupon.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"percentageRate":{"oneOf":[{"type":"number","description":"The percentage deducted by the coupon. Only for a `percentage` coupon. It must be greater than 0.","example":10.5},{"type":"null","description":"The percentage deducted by the coupon. Only for a `percentage` coupon. It must be greater than 0.","example":10.5}]},"frequency":{"oneOf":[{"type":"string","description":"How often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"once"},{"type":"null","description":"How often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"once"}]},"frequencyDuration":{"oneOf":[{"type":"integer","description":"The number of billing periods the coupon is deducted over. Only for a `recurring` coupon. It must be greater than 0.","example":3},{"type":"null","description":"The number of billing periods the coupon is deducted over. Only for a `recurring` coupon. It must be greater than 0.","example":3}]}}},"overrides":{"oneOf":[{"type":"object","description":"The deviations from the coupon snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the amount deducted by the coupon, in cents.","example":15000},{"type":"null","description":"Overrides the amount deducted by the coupon, in cents.","example":15000}]},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"percentageRate":{"oneOf":[{"type":"number","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15},{"type":"null","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15}]},"frequency":{"oneOf":[{"type":"string","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring"},{"type":"null","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring"}]},"frequencyDuration":{"oneOf":[{"type":"integer","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6},{"type":"null","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6}]}}},{"type":"null","description":"The deviations from the coupon snapshot negotiated on the quote. Only the properties set here are overridden.","properties":{"amountCents":{"oneOf":[{"type":"integer","description":"Overrides the amount deducted by the coupon, in cents.","example":15000},{"type":"null","description":"Overrides the amount deducted by the coupon, in cents.","example":15000}]},"amountCurrency":{"oneOf":[{"type":"string","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"Overrides the currency the coupon is priced in, which is how a catalog coupon is quoted in the currency of the deal. The figure in `amountCents` is not converted, it is restated in this currency. It is set only while it differs from the catalog record, and removed once they agree.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"percentageRate":{"oneOf":[{"type":"number","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15},{"type":"null","description":"Overrides the percentage deducted by the coupon. It must be greater than 0.","example":15}]},"frequency":{"oneOf":[{"type":"string","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring"},{"type":"null","description":"Overrides how often the coupon is deducted.","enum":[null,"once","recurring","forever"],"example":"recurring"}]},"frequencyDuration":{"oneOf":[{"type":"integer","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6},{"type":"null","description":"Overrides the number of billing periods the coupon is deducted over. It must be greater than 0.","example":6}]}}}]}}}},"walletCredits":{"type":"array","description":"The prepaid credit wallets created for the customer when the quote is executed.","items":{"type":"object","required":["localId","type","payload"],"properties":{"localId":{"type":"string","description":"Identifier of the entry within the quote version, assigned by the Lago user interface. It allows the quote document to reference the entry.","example":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b"},"type":{"type":"string","description":"The kind of billing item.","enum":["wallet_credit"],"example":"wallet_credit"},"payload":{"type":"object","description":"The prepaid credit wallet to create for the customer. Unlike the other billing items, a wallet credit is not built from an existing record, so it carries no `id` and no `overrides`. `paidCredits`, `grantedCredits` and `rateAmount` are required to approve the version.","properties":{"paidCredits":{"oneOf":[{"type":"string","description":"The number of credits the customer pays for.","example":"100.0"},{"type":"null","description":"The number of credits the customer pays for.","example":"100.0"}]},"grantedCredits":{"oneOf":[{"type":"string","description":"The number of credits granted for free.","example":"20.0"},{"type":"null","description":"The number of credits granted for free.","example":"20.0"}]},"rateAmount":{"oneOf":[{"type":"string","description":"The value of one credit, in the currency of the wallet.","example":"1.0"},{"type":"null","description":"The value of one credit, in the currency of the wallet.","example":"1.0"}]},"currency":{"oneOf":[{"type":"string","description":"The currency of the wallet.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"},{"type":"null","description":"The currency of the wallet.","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD"}]},"expirationAt":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the credits expire.","format":"date-time","example":"2027-01-01T00:00:00Z"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the credits expire.","format":"date-time","example":"2027-01-01T00:00:00Z"}]},"appliesTo":{"oneOf":[{"type":"object","description":"The limitations restricting what the credits can be spent on.","properties":{"feeTypes":{"oneOf":[{"type":"array","items":{"type":"string","enum":["charge","add_on","subscription","credit","commitment","fixed_charge","product"]},"description":"The fee types the credits can be spent on.","example":["charge"]},{"type":"null","description":"The fee types the credits can be spent on.","example":["charge"]}]},"billableMetricCodes":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"]},{"type":"null","description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"]}]}}},{"type":"null","description":"The limitations restricting what the credits can be spent on.","properties":{"feeTypes":{"oneOf":[{"type":"array","items":{"type":"string","enum":["charge","add_on","subscription","credit","commitment","fixed_charge","product"]},"description":"The fee types the credits can be spent on.","example":["charge"]},{"type":"null","description":"The fee types the credits can be spent on.","example":["charge"]}]},"billableMetricCodes":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"]},{"type":"null","description":"The codes of the billable metrics the credits can be spent on.","example":["api_calls"]}]}}}]},"recurringTransactionRules":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"trigger":{"oneOf":[{"type":"string","description":"What triggers the top-up.","enum":[null,"interval","threshold"],"example":"interval"},{"type":"null","description":"What triggers the top-up.","enum":[null,"interval","threshold"],"example":"interval"}]},"interval":{"oneOf":[{"type":"string","description":"How often the wallet is topped up. Only for an `interval` trigger.","enum":[null,"weekly","monthly","quarterly","semiannual","yearly"],"example":"monthly"},{"type":"null","description":"How often the wallet is topped up. Only for an `interval` trigger.","enum":[null,"weekly","monthly","quarterly","semiannual","yearly"],"example":"monthly"}]},"thresholdCredits":{"oneOf":[{"type":"string","description":"The credit balance below which the wallet is topped up. Only for a `threshold` trigger.","example":"10.0"},{"type":"null","description":"The credit balance below which the wallet is topped up. Only for a `threshold` trigger.","example":"10.0"}]},"method":{"oneOf":[{"type":"string","description":"Whether the top-up grants a fixed number of credits, or brings the balance up to a target.","enum":[null,"fixed","target"],"example":"fixed"},{"type":"null","description":"Whether the top-up grants a fixed number of credits, or brings the balance up to a target.","enum":[null,"fixed","target"],"example":"fixed"}]},"targetOngoingBalance":{"oneOf":[{"type":"string","description":"The balance the top-up brings the wallet up to. Only for a `target` method.","example":"100.0"},{"type":"null","description":"The balance the top-up brings the wallet up to. Only for a `target` method.","example":"100.0"}]},"grantsTargetTopUp":{"oneOf":[{"type":"boolean","description":"Whether the granted credits count towards the target balance.","example":false},{"type":"null","description":"Whether the granted credits count towards the target balance.","example":false}]},"paidCredits":{"oneOf":[{"type":"string","description":"The number of credits the customer pays for on every top-up.","example":"100.0"},{"type":"null","description":"The number of credits the customer pays for on every top-up.","example":"100.0"}]},"grantedCredits":{"oneOf":[{"type":"string","description":"The number of credits granted for free on every top-up.","example":"20.0"},{"type":"null","description":"The number of credits granted for free on every top-up.","example":"20.0"}]},"startedAt":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the rule starts applying.","format":"date-time","example":"2026-01-01T00:00:00Z"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the rule starts applying.","format":"date-time","example":"2026-01-01T00:00:00Z"}]},"expirationAt":{"oneOf":[{"type":"string","description":"The date and time in UTC (ISO 8601) when the rule stops applying.","format":"date-time","example":"2027-01-01T00:00:00Z"},{"type":"null","description":"The date and time in UTC (ISO 8601) when the rule stops applying.","format":"date-time","example":"2027-01-01T00:00:00Z"}]},"transactionName":{"oneOf":[{"type":"string","description":"The name given to the wallet transactions created by the rule.","example":"Monthly top-up"},{"type":"null","description":"The name given to the wallet transactions created by the rule.","example":"Monthly top-up"}]},"invoiceRequiresSuccessfulPayment":{"oneOf":[{"type":"boolean","description":"Whether the credits are granted only once the top-up invoice is paid.","example":false},{"type":"null","description":"Whether the credits are granted only once the top-up invoice is paid.","example":false}]}}},"description":"The rule automatically topping the wallet up. At most one rule is allowed, and its `trigger` is required, to approve the version."},{"type":"null","description":"The rule automatically topping the wallet up. At most one rule is allowed, and its `trigger` is required, to approve the version."}]}}}}}}},"isRequired":true,"uniqueKey":"billing_items.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_items","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"lago_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","lago_quote_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","lago_organization_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","version":1,"status":"draft","currency":"USD","billing_entity_code":"acme_corp","void_reason":"manual","approved_at":"2026-04-29T08:59:51Z","voided_at":"2026-04-29T08:59:51Z","created_at":"2026-04-29T08:59:51Z","updated_at":"2026-04-29T08:59:51Z","content":"\u003ch1>Quote QT-2026-0001\u003c/h1>\u003cp>Prepared for Acme Corp.\u003c/p>","billing_items":{"addOns":[{"id":"1a901a90-1a90-1a90-1a90-1a901a901a90","localId":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","type":"add_on","payload":{"code":"setup_fee","units":1,"unitAmountCents":10000,"totalAmountCents":10000,"fromDatetime":"2026-01-01T00:00:00Z","toDatetime":"2026-12-31T23:59:59Z"},"overrides":{"description":"Onboarding package, discounted for the first year","units":2,"unitAmountCents":8000,"totalAmountCents":16000,"invoiceDisplayName":"Onboarding","fromDatetime":"2026-01-01T00:00:00Z","toDatetime":"2026-12-31T23:59:59Z"}}],"plans":[{"id":"1a901a90-1a90-1a90-1a90-1a901a901a90","type":"plan","payload":{"code":"premium_plan","subscriptionExternalId":"sub_1234567890","subscriptionName":"Premium plan - Acme Corp","billingTime":"calendar","startDate":"2026-01-01T00:00:00Z","endDate":"2027-01-01T00:00:00Z","paymentMethodId":"1a901a90-1a90-1a90-1a90-1a901a901a90","charges":[{"id":"1a901a90-1a90-1a90-1a90-1a901a901a90","billableMetric":{"code":"api_calls"},"chargeModel":"standard"}],"fixedCharges":[{"id":"1a901a90-1a90-1a90-1a90-1a901a901a90","addOn":{"code":"seats"},"chargeModel":"standard"}]},"localId":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","overrides":{"amountCents":50000,"amountCurrency":"USD","invoiceDisplayName":"Premium","name":"Premium plan - Acme Corp","description":"Negotiated premium plan","trialPeriod":30,"minimumCommitment":{"amountCents":100000,"invoiceDisplayName":"Annual commitment"},"usageThresholds":[{"amountCents":100000,"recurring":false,"thresholdDisplayName":"First 1,000 EUR of usage"}],"charges":[{"billableMetricCode":"api_calls","chargeModel":"standard","properties":{"amount":"0.02"},"minAmountCents":10000,"invoiceDisplayName":"API calls"}],"fixedCharges":[{"addOnCode":"seats","units":"10","properties":{"amount":"5"},"invoiceDisplayName":"Seats"}]}}],"coupons":[{"id":"1a901a90-1a90-1a90-1a90-1a901a901a90","localId":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","type":"coupon","payload":{"code":"welcome_offer","type":"fixed_amount","amountCents":10000,"currency":"USD","percentageRate":10.5,"frequency":"once","frequencyDuration":3},"overrides":{"amountCents":15000,"amountCurrency":"USD","percentageRate":15,"frequency":"recurring","frequencyDuration":6}}],"walletCredits":[{"localId":"b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b","type":"wallet_credit","payload":{"paidCredits":"100.0","grantedCredits":"20.0","rateAmount":"1.0","currency":"USD","expirationAt":"2027-01-01T00:00:00Z","appliesTo":{"feeTypes":["charge"],"billableMetricCodes":["api_calls"]},"recurringTransactionRules":[{"trigger":"interval","interval":"monthly","thresholdCredits":"10.0","method":"fixed","targetOngoingBalance":"100.0","grantsTargetTopUp":false,"paidCredits":"100.0","grantedCredits":"20.0","startedAt":"2026-01-01T00:00:00Z","expirationAt":"2027-01-01T00:00:00Z","transactionName":"Monthly top-up","invoiceRequiresSuccessfulPayment":false}]}}]}}}},"originalFileLocation":"https://swagger.getlago.com/openapi.yaml"},"subdomain":"lago-docs","siteName":"Lago","title":"The quote version object - Lago","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-26T16:50:33.383Z","originalFileLocation":"api-reference/quotes/quote-version-object.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=\"This object represents a version of a quote: the priced deal itself, as a document content and a set of billing_items. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.\">\u003cmeta data-mint-head name=\"keywords\" content=\"Lago API, billing API, usage metering API, OpenAPI, billing SDK, Lago MCP\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lago\">\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/lago-docs/PXUAhcpsneOuo3Dn/_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/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_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/lago-docs/PXUAhcpsneOuo3Dn/_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/lago-docs/PXUAhcpsneOuo3Dn/_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/lago-docs/PXUAhcpsneOuo3Dn/_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/lago-docs/PXUAhcpsneOuo3Dn/_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/lago-docs/PXUAhcpsneOuo3Dn/_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/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"The quote version object - Lago\">\u003cmeta data-mint-head property=\"og:description\" content=\"This object represents a version of a quote: the priced deal itself, as a document content and a set of billing_items. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lago\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getlago.com/docs/api-reference/quotes/quote-version-object\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lago-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Quotes\u0026amp;title=The+quote+version+object\u0026amp;description=This+object+represents+a+version+of+a+quote%3A+the+priced+deal+itself%2C+as+a+document+%60content%60+and+a+set+of+%60billing_items%60.+A+quote+carries+one+active+version+at\u0026amp;theme=e69bad9b2f17285816711238\u0026amp;signature=6c3b41cd8d307ee3d0d8431f3cb9f4c1b8561aa7ce46b60b7954b07aca393799\">\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=\"The quote version object - Lago\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This object represents a version of a quote: the priced deal itself, as a document content and a set of billing_items. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lago-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Quotes\u0026amp;title=The+quote+version+object\u0026amp;description=This+object+represents+a+version+of+a+quote%3A+the+priced+deal+itself%2C+as+a+document+%60content%60+and+a+set+of+%60billing_items%60.+A+quote+carries+one+active+version+at\u0026amp;theme=e69bad9b2f17285816711238\u0026amp;signature=6c3b41cd8d307ee3d0d8431f3cb9f4c1b8561aa7ce46b60b7954b07aca393799\">\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/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lago\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006CFA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://getlago.com/docs/api-reference/quotes/quote-version-object\">\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/quotes/quote-version-object.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://getlago.com/#organization\",\"name\":\"Lago\",\"legalName\":\"Get Lago Corp.\",\"url\":\"https://getlago.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://getlago.com/docs/logo/light.svg\"},\"sameAs\":[\"https://github.com/getlago\",\"https://www.linkedin.com/company/getlago\",\"https://x.com/GetLago\",\"https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA\"]},{\"@type\":\"WebSite\",\"@id\":\"https://getlago.com/docs#website\",\"name\":\"Lago\",\"url\":\"https://getlago.com/docs\",\"publisher\":{\"@id\":\"https://getlago.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object#webpage\",\"url\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object\",\"name\":\"The quote version object\",\"description\":\"This object represents a version of a quote: the priced deal itself, as a document content and a set of billing_items. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.\",\"dateModified\":\"2026-08-26T16:50:33.383Z\",\"isPartOf\":{\"@id\":\"https://getlago.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://getlago.com/docs/api-reference/intro\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quotes \u0026 Order forms\",\"item\":\"https://getlago.com/docs/api-reference/quotes/quote-object\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Quotes\",\"item\":\"https://getlago.com/docs/api-reference/quotes/quote-object\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"The quote version object\",\"item\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object#apireference\",\"headline\":\"The quote version object\",\"name\":\"The quote version object\",\"description\":\"This object represents a version of a quote: the priced deal itself, as a document content and a set of billing_items. A quote carries one active version at a time, and every renegotiation creates a new one by cloning.\",\"url\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object\",\"mainEntityOfPage\":{\"@id\":\"https://getlago.com/docs/api-reference/quotes/quote-version-object#webpage\"},\"dateModified\":\"2026-08-26T16:50:33.383Z\",\"publisher\":{\"@id\":\"https://getlago.com/#organization\"},\"isPartOf\":{\"@id\":\"https://getlago.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lago\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lago\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/quotes/quote-version-object.md","siteName":"Lago","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://getlago.com/blog"},{"anchor":"Community","icon":"slack","href":"https://getlago.com/slack"},{"anchor":"GitHub","icon":"github","href":"https://github.com/getlago/lago"},{"anchor":"Status","icon":"signal-bars","href":"https://status.getlago.com/"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/welcome"}]},{"tab":"Guide","pages":[{"title":"Guide","href":"/guide/introduction/welcome-to-lago"}]},{"tab":"API References","groups":[{"group":"API Reference","pages":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/api-reference/intro"},{"title":"API standards","href":"/api-reference/api-standards"},{"title":"API versioning and deprecation policy","href":"/api-reference/versioning"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Rate limits","href":"/api-reference/rate-limits"}]},{"group":"Add-ons","pages":[{"title":"The add-on object","href":"/api-reference/add-ons/add-on-object"},{"openapi":"POST /add_ons","title":"Create an add-on","href":"/api-reference/add-ons/create"},{"openapi":"PUT /add_ons/{code}","title":"Update an add-on","href":"/api-reference/add-ons/update"},{"openapi":"DELETE /add_ons/{code}","title":"Delete an add-on","href":"/api-reference/add-ons/destroy"},{"openapi":"GET /add_ons/{code}","title":"Retrieve an add-on","href":"/api-reference/add-ons/get-specific"},{"openapi":"GET /add_ons","title":"List all add-ons","href":"/api-reference/add-ons/get-all"}]},{"group":"Alerts","pages":[{"title":"The alert object","href":"/api-reference/alerts/alert-object"},{"openapi":"POST /subscriptions/{external_id}/alerts","title":"Create an alert","href":"/api-reference/alerts/create"},{"openapi":"PUT /subscriptions/{external_id}/alerts/{code}","title":"Update an alert","href":"/api-reference/alerts/update"},{"openapi":"DELETE /subscriptions/{external_id}/alerts/{code}","title":"Delete an alert","href":"/api-reference/alerts/delete"},{"openapi":"GET /subscriptions/{external_id}/alerts/{code}","title":"Retrieve an alert","href":"/api-reference/alerts/get-specific"},{"openapi":"GET /subscriptions/{external_id}/alerts","title":"List all alerts","href":"/api-reference/alerts/get-all"}]},{"group":"Audit logs","pages":[{"title":"The activity log object","href":"/api-reference/audit-logs/activity-logs-object"},{"openapi":"GET /activity_logs","title":"List all activity logs","href":"/api-reference/audit-logs/get-all-activity-logs"},{"openapi":"GET /activity_logs/{activity_id}","title":"Retrieve an activity log","href":"/api-reference/audit-logs/get-specific-activity-log"},{"title":"The API log object","href":"/api-reference/audit-logs/api-logs-object"},{"openapi":"GET /api_logs","title":"List all API logs","href":"/api-reference/audit-logs/get-all-api-logs"},{"openapi":"GET /api_logs/{request_id}","title":"Retrieve an API log","href":"/api-reference/audit-logs/get-specific-api-log"}]},{"group":"Billable metrics","pages":[{"title":"The billable metric object","href":"/api-reference/billable-metrics/object"},{"title":"Create a billable metric","openapi":"POST /billable_metrics","href":"/api-reference/billable-metrics/create"},{"title":"Update a billable metric","openapi":"PUT /billable_metrics/{code}","href":"/api-reference/billable-metrics/update"},{"openapi":"DELETE /billable_metrics/{code}","title":"Delete a billable metric","href":"/api-reference/billable-metrics/destroy"},{"openapi":"GET /billable_metrics/{code}","title":"Retrieve a billable metric","href":"/api-reference/billable-metrics/get-specific"},{"openapi":"GET /billable_metrics","title":"List all billable metrics","href":"/api-reference/billable-metrics/get-all"}]},{"group":"Billing entities","pages":[{"title":"The billing entity object","href":"/api-reference/billing-entities/object"},{"title":"Create a billing entity","openapi":"POST /billing_entities","href":"/api-reference/billing-entities/create"},{"title":"Update a billing entity","openapi":"PUT /billing_entities/{code}","href":"/api-reference/billing-entities/update"},{"title":"Retrieve a billing entity","openapi":"GET /billing_entities/{code}","href":"/api-reference/billing-entities/get-specific"},{"title":"List all billing entities","openapi":"GET /billing_entities","href":"/api-reference/billing-entities/get-all"}]},{"group":"Coupons","pages":[{"title":"The coupon object","href":"/api-reference/coupons/coupon-object"},{"openapi":"POST /coupons","title":"Create a coupon","href":"/api-reference/coupons/create"},{"openapi":"PUT /coupons/{code}","title":"Update a coupon","href":"/api-reference/coupons/update"},{"openapi":"DELETE /coupons/{code}","title":"Delete a coupon","href":"/api-reference/coupons/destroy"},{"openapi":"GET /coupons/{code}","title":"Retrieve a coupon","href":"/api-reference/coupons/get-specific"},{"openapi":"GET /coupons","title":"List all coupons","href":"/api-reference/coupons/get-all"},{"title":"The applied coupon object","href":"/api-reference/coupons/applied-coupon-object"},{"openapi":"POST /applied_coupons","title":"Apply a coupon","href":"/api-reference/coupons/apply"},{"openapi":"DELETE /customers/{external_customer_id}/applied_coupons/{applied_coupon_id}","title":"Delete an applied coupon","href":"/api-reference/coupons/destroy-applied-coupon"},{"openapi":"GET /applied_coupons","title":"List all applied coupons","href":"/api-reference/coupons/get-all-applied"}]},{"group":"Credit notes","pages":[{"title":"The credit note object","href":"/api-reference/credit-notes/credit-note-object"},{"openapi":"POST /credit_notes/estimate","title":"Estimate a credit note","href":"/api-reference/credit-notes/estimate"},{"openapi":"POST /credit_notes","title":"Create a credit note","href":"/api-reference/credit-notes/create"},{"openapi":"POST /credit_notes/{lago_id}/download","title":"Download a credit note","href":"/api-reference/credit-notes/download"},{"openapi":"PUT /credit_notes/{lago_id}","title":"Update a credit note","href":"/api-reference/credit-notes/update"},{"openapi":"PUT /credit_notes/{lago_id}/void","title":"Void available credit","href":"/api-reference/credit-notes/void"},{"openapi":"GET /credit_notes/{lago_id}","title":"Retrieve a credit note","href":"/api-reference/credit-notes/get-specific"},{"openapi":"GET /credit_notes","title":"List all credit notes","href":"/api-reference/credit-notes/get-all"},{"group":"Metadata","pages":[{"openapi":"POST /credit_notes/{lago_id}/metadata","title":"Replace all metadata","href":"/api-reference/credit-notes/metadata/create-metadata-cn"},{"openapi":"PATCH /credit_notes/{lago_id}/metadata","title":"Update metadata","href":"/api-reference/credit-notes/metadata/update-metadata-cn"},{"openapi":"DELETE /credit_notes/{lago_id}/metadata/{key}","title":"Delete a metadata","href":"/api-reference/credit-notes/metadata/delete-a-metadata-cn"},{"openapi":"DELETE /credit_notes/{lago_id}/metadata","title":"Delete all metadata","href":"/api-reference/credit-notes/metadata/delete-all-metadata-cn"}]}]},{"group":"Customer usage","pages":[{"title":"The customer usage object","href":"/api-reference/customer-usage/customer-usage-object"},{"openapi":"GET /analytics/usage","title":"Retrieve usages","href":"/api-reference/customer-usage/usages"},{"openapi":"GET /customers/{external_customer_id}/current_usage","title":"Retrieve current usage","href":"/api-reference/customer-usage/get-current"},{"openapi":"GET /customers/{external_customer_id}/projected_usage","title":"Retrieve projected usage","href":"/api-reference/customer-usage/get-projected"},{"openapi":"GET /customers/{external_customer_id}/past_usage","title":"Retrieve past usage","href":"/api-reference/customer-usage/get-past"}]},{"group":"Customers","pages":[{"title":"The customer object","href":"/api-reference/customers/object"},{"openapi":"POST /customers","title":"Create a customer","href":"/api-reference/customers/create"},{"openapi":"POST /customers","title":"Update a customer","href":"/api-reference/customers/update"},{"openapi":"POST /customers/{external_customer_id}/checkout_url","title":"Regenerate checkout URL","href":"/api-reference/customers/psp-checkout-url"},{"openapi":"DELETE /customers/{external_customer_id}","title":"Delete a customer","href":"/api-reference/customers/delete"},{"openapi":"GET /customers/{external_customer_id}","title":"Retrieve a customer","href":"/api-reference/customers/get-specific"},{"openapi":"GET /customers","title":"List all customers","href":"/api-reference/customers/get-all"},{"openapi":"GET /customers/{external_customer_id}/portal_url","title":"Retrieve customer portal URL","href":"/api-reference/customers/customer-portal"}]},{"group":"Entitlements","pages":[{"title":"The feature object","href":"/api-reference/entitlements/features/feature-object"},{"openapi":"POST /features","title":"Create a feature","href":"/api-reference/entitlements/features/create-feature"},{"openapi":"PUT /features/{code}","title":"Update a feature","href":"/api-reference/entitlements/features/update-feature"},{"openapi":"DELETE /features/{code}","title":"Delete a feature","href":"/api-reference/entitlements/features/delete-feature"},{"openapi":"DELETE /features/{code}/privileges/{privilege_code}","title":"Delete a feature privilege","href":"/api-reference/entitlements/features/delete-privilege"},{"openapi":"GET /features/{code}","title":"Retrieve a feature","href":"/api-reference/entitlements/features/get-feature"},{"openapi":"GET /features","title":"List all features","href":"/api-reference/entitlements/features/get-all-features"},{"title":"The plan entitlement object","href":"/api-reference/entitlements/plan-entitlements/plan-entitlement-object"},{"openapi":"POST /plans/{code}/entitlements","title":"Create plan entitlements","href":"/api-reference/entitlements/plan-entitlements/create-plan-entitlement"},{"openapi":"PATCH /plans/{code}/entitlements","title":"Update plan entitlements","href":"/api-reference/entitlements/plan-entitlements/update-plan-entitlement"},{"openapi":"DELETE /plans/{code}/entitlements/{feature_code}","title":"Delete a plan entitlement","href":"/api-reference/entitlements/plan-entitlements/delete-plan-entitlement"},{"openapi":"DELETE /plans/{code}/entitlements/{feature_code}/privileges/{privilege_code}","title":"Delete a plan entitlement privilege","href":"/api-reference/entitlements/plan-entitlements/delete-plan-entitlement-privilege"},{"openapi":"GET /plans/{code}/entitlements/{feature_code}","title":"Retrieve a plan entitlement","href":"/api-reference/entitlements/plan-entitlements/get-specific-plan-entitlement"},{"openapi":"GET /plans/{code}/entitlements","title":"List plan entitlements","href":"/api-reference/entitlements/plan-entitlements/get-all-plan-entitlements"},{"title":"The subscription entitlement object","href":"/api-reference/entitlements/subscription-entitlements/subscription-entitlement-object"},{"openapi":"PATCH /subscriptions/{external_id}/entitlements","title":"Update subscription entitlements","href":"/api-reference/entitlements/subscription-entitlements/update-subscription-entitlement"},{"openapi":"DELETE /subscriptions/{external_id}/entitlements/{feature_code}","title":"Delete a subscription entitlement","href":"/api-reference/entitlements/subscription-entitlements/delete-subscription-entitlement"},{"openapi":"DELETE /subscriptions/{external_id}/entitlements/{feature_code}/privileges/{privilege_code}","title":"Delete a subscription entitlement privilege","href":"/api-reference/entitlements/subscription-entitlements/delete-subscription-entitlement-privilege"},{"openapi":"GET /subscriptions/{external_id}/entitlements","title":"List subscription entitlements","href":"/api-reference/entitlements/subscription-entitlements/get-all-subscription-entitlements"}]},{"group":"Events","pages":[{"title":"The event object","href":"/api-reference/events/event-object"},{"openapi":"POST /events","title":"Send usage event","href":"/api-reference/events/usage"},{"openapi":"POST /events/batch","title":"Batch usage events","href":"/api-reference/events/batch"},{"openapi":"POST /events/estimate_fees","title":"Estimate an upcoming fee","href":"/api-reference/events/estimated-fee"},{"openapi":"GET /events/{transaction_id}","title":"Retrieve an event","href":"/api-reference/events/get-specific"},{"openapi":"GET /events","title":"List all events","href":"/api-reference/events/list-events"}]},{"group":"Fees","pages":[{"title":"The fee object","href":"/api-reference/fees/fee-object"},{"openapi":"PUT /fees/{lago_id}","title":"Update a fee","href":"/api-reference/fees/update-fee"},{"openapi":"DELETE /fees/{lago_id}","title":"Delete a fee","href":"/api-reference/fees/destroy-fee"},{"openapi":"GET /fees/{lago_id}","title":"Retrieve a fee","href":"/api-reference/fees/retrieve-fee"},{"openapi":"GET /fees","title":"List all fees","href":"/api-reference/fees/list-fees"}]},{"group":"Governance","pages":[{"title":"The governance entity object","href":"/api-reference/governance/entity-object"},{"openapi":"POST /usage_attribution_types","title":"Create a governance entity","href":"/api-reference/governance/create-entity"},{"openapi":"PUT /usage_attribution_types/{code}","title":"Update a governance entity","href":"/api-reference/governance/update-entity"},{"openapi":"DELETE /usage_attribution_types/{code}","title":"Delete a governance entity","href":"/api-reference/governance/delete-entity"},{"openapi":"GET /usage_attribution_types/{code}","title":"Retrieve a governance entity","href":"/api-reference/governance/get-specific-entity"},{"openapi":"GET /usage_attribution_types","title":"List all governance entities","href":"/api-reference/governance/get-all-entities"},{"title":"The attributed usage object","href":"/api-reference/governance/attributed-usage-object"},{"openapi":"GET /customers/{external_customer_id}/attributed_usage","title":"Retrieve attributed usage","href":"/api-reference/governance/get-attributed-usage"}]},{"group":"Invoices","pages":[{"title":"The invoice object","href":"/api-reference/invoices/invoice-object"},{"openapi":"POST /invoices","title":"Create a one-off invoice","href":"/api-reference/invoices/create-oneoff"},{"openapi":"POST /invoices/preview","title":"Preview an invoice","href":"/api-reference/invoices/preview"},{"openapi":"POST /invoices/{lago_id}/download","title":"Download an invoice","href":"/api-reference/invoices/download"},{"openapi":"POST /invoices/{lago_id}/void","title":"Void an invoice","href":"/api-reference/invoices/void"},{"openapi":"POST /invoices/{lago_id}/retry","title":"Retry an invoice finalization","href":"/api-reference/invoices/retry_finalization"},{"openapi":"POST /invoices/{lago_id}/retry_payment","title":"Retry an invoice payment","href":"/api-reference/invoices/retry"},{"openapi":"POST /invoices/{lago_id}/payment_url","title":"Generate a payment URL","href":"/api-reference/invoices/payment-url"},{"openapi":"PUT /invoices/{lago_id}/refresh","title":"Refresh an invoice","href":"/api-reference/invoices/refresh"},{"openapi":"PUT /invoices/{lago_id}/finalize","title":"Finalize an invoice","href":"/api-reference/invoices/finalize"},{"openapi":"PUT /invoices/{lago_id}","title":"Update an invoice","href":"/api-reference/invoices/update"},{"openapi":"GET /invoices/{lago_id}","title":"Retrieve an invoice","href":"/api-reference/invoices/get-specific"},{"openapi":"GET /invoices","title":"List all invoices","href":"/api-reference/invoices/get-all"}]},{"group":"Organizations","pages":[{"title":"The organization object","href":"/api-reference/organizations/organization-object"},{"openapi":"PUT /organizations","title":"Update organization (deprecated)","href":"/api-reference/organizations/update"}]},{"group":"Payments","pages":[{"title":"The payment object","href":"/api-reference/payments/payment-object"},{"title":"Create a payment","openapi":"POST /payments","href":"/api-reference/payments/create"},{"title":"Retrieve a payment","openapi":"GET /payments/{lago_id}","href":"/api-reference/payments/get-specific"},{"title":"List all payments","openapi":"GET /payments","href":"/api-reference/payments/get-all"}]},{"group":"Payment methods","pages":[{"title":"The payment method object","href":"/api-reference/payment-methods/payment-method-object"},{"openapi":"PUT /customers/{external_customer_id}/payment_methods/{lago_id}/set_as_default","title":"Update a payment method","href":"/api-reference/payment-methods/update"},{"openapi":"DELETE /customers/{external_customer_id}/payment_methods/{lago_id}","title":"Delete a payment method from a customer","href":"/api-reference/payment-methods/delete"},{"openapi":"GET /customers/{external_customer_id}/payment_methods","title":"List all payment methods for a customer","href":"/api-reference/payment-methods/get-all"}]},{"group":"Payment receipts","pages":[{"title":"The payment receipt object","href":"/api-reference/payment-receipts/payment-receipt-object"},{"openapi":"GET /payment_receipts/{lago_id}","title":"Retrieve a payment receipt","href":"/api-reference/payment-receipts/get-specific"},{"openapi":"GET /payment_receipts","title":"List all payment receipts","href":"/api-reference/payment-receipts/get-all"}]},{"group":"Payment requests","pages":[{"title":"The payment request object","href":"/api-reference/payment-requests/payment-request-object"},{"title":"Create a payment request","openapi":"POST /payment_requests","href":"/api-reference/payment-requests/create"},{"title":"List all payment requests","openapi":"GET /payment_requests","href":"/api-reference/payment-requests/get-all"}]},{"group":"Plans","pages":[{"title":"The plan object","href":"/api-reference/plans/object"},{"title":"Create a plan","openapi":"POST /plans","href":"/api-reference/plans/create"},{"title":"Update a plan","openapi":"PUT /plans/{code}","href":"/api-reference/plans/update"},{"openapi":"DELETE /plans/{code}","title":"Delete a plan","href":"/api-reference/plans/destroy"},{"openapi":"GET /plans/{code}","title":"Retrieve a plan","href":"/api-reference/plans/get-specific"},{"openapi":"GET /plans","title":"List all plans","href":"/api-reference/plans/get-all-plans"},{"group":"Charges","pages":[{"title":"The charge object","href":"/api-reference/plans/charges/object"},{"title":"Create a charge","openapi":"POST /plans/{code}/charges","href":"/api-reference/plans/charges/create"},{"title":"Update a charge","openapi":"PUT /plans/{code}/charges/{charge_code}","href":"/api-reference/plans/charges/update"},{"title":"Delete a charge","openapi":"DELETE /plans/{code}/charges/{charge_code}","href":"/api-reference/plans/charges/destroy"},{"title":"Retrieve a charge","openapi":"GET /plans/{code}/charges/{charge_code}","href":"/api-reference/plans/charges/get-specific"},{"title":"List all charges","openapi":"GET /plans/{code}/charges","href":"/api-reference/plans/charges/get-all"},{"group":"Filters","pages":[{"title":"The charge filter object","href":"/api-reference/plans/charges/filters/object"},{"title":"Create a charge filter","openapi":"POST /plans/{code}/charges/{charge_code}/filters","href":"/api-reference/plans/charges/filters/create"},{"title":"Update a charge filter","openapi":"PUT /plans/{code}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/plans/charges/filters/update"},{"title":"Delete a charge filter","openapi":"DELETE /plans/{code}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/plans/charges/filters/destroy"},{"title":"Retrieve a charge filter","openapi":"GET /plans/{code}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/plans/charges/filters/get-specific"},{"title":"List all charge filters","openapi":"GET /plans/{code}/charges/{charge_code}/filters","href":"/api-reference/plans/charges/filters/get-all"}]}]},{"group":"Fixed Charges","pages":[{"title":"The fixed charge object","href":"/api-reference/plans/fixed-charges/object"},{"title":"Create a fixed charge","openapi":"POST /plans/{code}/fixed_charges","href":"/api-reference/plans/fixed-charges/create"},{"title":"Update a fixed charge","openapi":"PUT /plans/{code}/fixed_charges/{fixed_charge_code}","href":"/api-reference/plans/fixed-charges/update"},{"title":"Delete a fixed charge","openapi":"DELETE /plans/{code}/fixed_charges/{fixed_charge_code}","href":"/api-reference/plans/fixed-charges/destroy"},{"title":"Retrieve a fixed charge","openapi":"GET /plans/{code}/fixed_charges/{fixed_charge_code}","href":"/api-reference/plans/fixed-charges/get-specific"},{"title":"List all fixed charges","openapi":"GET /plans/{code}/fixed_charges","href":"/api-reference/plans/fixed-charges/get-all"}]}]},{"group":"Quotes \u0026 Order forms","pages":[{"group":"Quotes","pages":[{"title":"The quote object","description":"This object represents a quote, the negotiation document a deal is assembled in. Quotes are authored in the Lago user interface; the API exposes them read-only, along with the lifecycle transitions of their versions.","href":"/api-reference/quotes/quote-object"},{"title":"The quote version object","href":"/api-reference/quotes/quote-version-object"},{"openapi":"POST /quote_versions/{lago_id}/approve","title":"Approve a quote version","description":"This endpoint approves a quote version and generates the order form to send to the customer for signature.\nOnly a `draft` version can be approved, and its `billing_items` must be complete: approval validates them against the catalog and against the customer, and returns a `422` when the deal cannot be executed as quoted.\nThe `expires_at` of the generated order form is bounded by the deal's own term, so a signing window reaching beyond the day the deal stops being executable is rejected.\nA concurrent write on the same quote is reported as a `422` rather than retried, so a duplicated call can fail while the first one is still in flight.\nThis is a premium feature.","href":"/api-reference/quotes/approve-version"},{"openapi":"POST /quote_versions/{lago_id}/void","title":"Void a quote version","href":"/api-reference/quotes/void-version"},{"openapi":"POST /quote_versions/{lago_id}/clone","title":"Clone a quote version","href":"/api-reference/quotes/clone-version"},{"openapi":"GET /quotes/{lago_id}","title":"Retrieve a quote","href":"/api-reference/quotes/get-specific"},{"openapi":"GET /quotes","title":"List all quotes","href":"/api-reference/quotes/get-all"},{"openapi":"GET /quote_versions/{lago_id}","title":"Retrieve a quote version","href":"/api-reference/quotes/get-specific-version"},{"openapi":"GET /quotes/{lago_id}/versions","title":"List all versions of a quote","href":"/api-reference/quotes/get-all-versions"}]},{"group":"Order forms","pages":[{"title":"The order form object","href":"/api-reference/quotes/order-forms/order-form-object"},{"openapi":"POST /order_forms/{lago_id}/mark_as_signed","title":"Mark an order form as signed","href":"/api-reference/quotes/order-forms/mark-as-signed"},{"openapi":"POST /order_forms/{lago_id}/void","title":"Void an order form","href":"/api-reference/quotes/order-forms/void"},{"openapi":"GET /order_forms/{lago_id}","title":"Retrieve an order form","href":"/api-reference/quotes/order-forms/get-specific"},{"openapi":"GET /order_forms","title":"List all order forms","href":"/api-reference/quotes/order-forms/get-all"}]},{"group":"Orders","pages":[{"title":"The order object","href":"/api-reference/quotes/orders/order-object"},{"openapi":"POST /orders/{lago_id}/execute","title":"Execute an order","href":"/api-reference/quotes/orders/execute"},{"openapi":"GET /orders/{lago_id}","title":"Retrieve an order","href":"/api-reference/quotes/orders/get-specific"},{"openapi":"GET /orders","title":"List all orders","href":"/api-reference/quotes/orders/get-all"}]}]},{"group":"Resources","pages":[{"title":"Currencies","href":"/api-reference/resources/currencies"},{"title":"Timezones","href":"/api-reference/resources/timezones"},{"title":"Document locales","href":"/api-reference/resources/locales"}]},{"group":"Subscriptions","pages":[{"title":"The subscription object","href":"/api-reference/subscriptions/subscription-object"},{"title":"Create a subscription","openapi":"POST /subscriptions","href":"/api-reference/subscriptions/assign-plan"},{"title":"Update a subscription","openapi":"PUT /subscriptions/{external_id}","href":"/api-reference/subscriptions/update"},{"title":"Terminate a subscription","openapi":"DELETE /subscriptions/{external_id}","href":"/api-reference/subscriptions/terminate"},{"title":"Retrieve a subscription","openapi":"GET /subscriptions/{external_id}","href":"/api-reference/subscriptions/get-specific"},{"title":"List all subscriptions","openapi":"GET /subscriptions","href":"/api-reference/subscriptions/get-all"},{"group":"Lifetime Usage","pages":[{"title":"The lifetime usage object","href":"/api-reference/subscriptions/lifetime-usage-object"},{"title":"Update subscription lifetime usage","openapi":"PUT /subscriptions/{external_id}/lifetime_usage","href":"/api-reference/subscriptions/update-lifetime-usage"},{"title":"Retrieve subscription lifetime usage","openapi":"GET /subscriptions/{external_id}/lifetime_usage","href":"/api-reference/subscriptions/get-lifetime-usage"}]},{"group":"Charges","pages":[{"title":"The charge object","href":"/api-reference/subscriptions/charges/object"},{"title":"Update a charge","openapi":"PUT /subscriptions/{external_id}/charges/{charge_code}","href":"/api-reference/subscriptions/charges/update"},{"title":"Retrieve a charge","openapi":"GET /subscriptions/{external_id}/charges/{charge_code}","href":"/api-reference/subscriptions/charges/get-specific"},{"title":"List all charges","openapi":"GET /subscriptions/{external_id}/charges","href":"/api-reference/subscriptions/charges/get-all"},{"group":"Filters","pages":[{"title":"The charge filter object","href":"/api-reference/subscriptions/charges/filters/object"},{"title":"Create a charge filter","openapi":"POST /subscriptions/{external_id}/charges/{charge_code}/filters","href":"/api-reference/subscriptions/charges/filters/create"},{"title":"Update a charge filter","openapi":"PUT /subscriptions/{external_id}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/subscriptions/charges/filters/update"},{"title":"Delete a charge filter","openapi":"DELETE /subscriptions/{external_id}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/subscriptions/charges/filters/destroy"},{"title":"Retrieve a charge filter","openapi":"GET /subscriptions/{external_id}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/subscriptions/charges/filters/get-specific"},{"title":"List all charge filters","openapi":"GET /subscriptions/{external_id}/charges/{charge_code}/filters","href":"/api-reference/subscriptions/charges/filters/get-all"}]}]},{"group":"Fixed Charges","pages":[{"title":"The fixed charge object","href":"/api-reference/subscriptions/fixed-charges/object"},{"title":"Update a fixed charge","openapi":"PUT /subscriptions/{external_id}/fixed_charges/{fixed_charge_code}","href":"/api-reference/subscriptions/fixed-charges/update"},{"title":"Retrieve a fixed charge","openapi":"GET /subscriptions/{external_id}/fixed_charges/{fixed_charge_code}","href":"/api-reference/subscriptions/fixed-charges/get-specific"},{"title":"List all fixed charges","openapi":"GET /subscriptions/{external_id}/fixed_charges","href":"/api-reference/subscriptions/fixed-charges/get-all"}]}]},{"group":"Taxes","pages":[{"title":"The tax object","href":"/api-reference/taxes/tax-object"},{"openapi":"POST /taxes","title":"Create a tax rate","href":"/api-reference/taxes/create"},{"openapi":"PUT /taxes/{code}","title":"Update a tax rate","href":"/api-reference/taxes/update"},{"openapi":"DELETE /taxes/{code}","title":"Delete a tax rate","href":"/api-reference/taxes/destroy"},{"openapi":"GET /taxes/{code}","title":"Retrieve a tax rate","href":"/api-reference/taxes/get-specific"},{"openapi":"GET /taxes","title":"List all tax rates","href":"/api-reference/taxes/get-all"}]},{"group":"Wallets","pages":[{"title":"The wallet object","href":"/api-reference/wallets/wallet-object"},{"openapi":"POST /wallets","title":"Create a wallet","href":"/api-reference/wallets/create"},{"openapi":"PUT /wallets/{lago_id}","title":"Update a wallet","href":"/api-reference/wallets/update"},{"openapi":"DELETE /wallets/{lago_id}","title":"Terminate a wallet","href":"/api-reference/wallets/terminate"},{"openapi":"GET /wallets/{lago_id}","title":"Retrieve a wallet","href":"/api-reference/wallets/get-specific"},{"openapi":"GET /wallets","title":"List all wallets","href":"/api-reference/wallets/get-all"},{"group":"Wallets by code","pages":[{"openapi":"POST /customers/{external_customer_id}/wallets","title":"Create a wallet for a customer","href":"/api-reference/wallets/create-for-customer"},{"openapi":"PUT /customers/{external_customer_id}/wallets/{code}","title":"Update a wallet by code","href":"/api-reference/wallets/update-by-code"},{"openapi":"DELETE /customers/{external_customer_id}/wallets/{code}","title":"Terminate a wallet by code","href":"/api-reference/wallets/terminate-by-code"},{"openapi":"GET /customers/{external_customer_id}/wallets/{code}","title":"Retrieve a wallet by code","href":"/api-reference/wallets/get-specific-by-code"},{"openapi":"GET /customers/{external_customer_id}/wallets","title":"List all wallets for a customer","href":"/api-reference/wallets/get-all-for-customer"}]},{"group":"Wallet transactions","pages":[{"title":"The wallet transaction object","href":"/api-reference/wallets/wallet-transaction-object"},{"openapi":"POST /wallet_transactions","title":"Top-up a wallet","href":"/api-reference/wallets/top-up"},{"openapi":"POST /wallet_transactions/{lago_id}/payment_url","title":"Generate a payment URL","href":"/api-reference/wallets/wallet-transaction-payment-url"},{"openapi":"GET /wallet_transactions/{lago_id}","title":"Retrieve a transaction","href":"/api-reference/wallets/get-specific-transaction"},{"openapi":"GET /wallets/{lago_id}/wallet_transactions","title":"List all wallet transactions","href":"/api-reference/wallets/get-all-transactions"},{"openapi":"GET /wallet_transactions/{lago_id}/consumptions","title":"List all consumptions for a wallet transaction","href":"/api-reference/wallets/get-all-consumptions"},{"openapi":"GET /wallet_transactions/{lago_id}/fundings","title":"List all fundings for a wallet transaction","href":"/api-reference/wallets/get-all-fundings"}]},{"group":"Wallet alerts","pages":[{"title":"The wallet alert object","href":"/api-reference/wallets/wallet-alert-object"},{"openapi":"POST /customers/{external_customer_id}/wallets/{wallet_code}/alerts","title":"Create a wallet alert","href":"/api-reference/wallets/create-alert"},{"openapi":"PUT /customers/{external_customer_id}/wallets/{wallet_code}/alerts/{code}","title":"Update a wallet alert","href":"/api-reference/wallets/update-alert"},{"openapi":"DELETE /customers/{external_customer_id}/wallets/{wallet_code}/alerts/{code}","title":"Delete a wallet alert","href":"/api-reference/wallets/delete-alert"},{"openapi":"GET /customers/{external_customer_id}/wallets/{wallet_code}/alerts/{code}","title":"Retrieve a wallet alert","href":"/api-reference/wallets/get-specific-alert"},{"openapi":"GET /customers/{external_customer_id}/wallets/{wallet_code}/alerts","title":"List all wallet alerts","href":"/api-reference/wallets/get-all-alerts"}]}]},{"group":"Webhook endpoints","pages":[{"title":"The webhook endpoint object","href":"/api-reference/webhook-endpoints/webhook-endpoint-object"},{"openapi":"POST /webhook_endpoints","title":"Create a webhook endpoint","href":"/api-reference/webhook-endpoints/create"},{"openapi":"PUT /webhook_endpoints/{lago_id}","title":"Update a webhook endpoint","href":"/api-reference/webhook-endpoints/update"},{"openapi":"DELETE /webhook_endpoints/{lago_id}","title":"Delete a webhook endpoint","href":"/api-reference/webhook-endpoints/destroy"},{"openapi":"GET /webhook_endpoints","title":"List all webhook endpoints","href":"/api-reference/webhook-endpoints/get-all"},{"openapi":"GET /webhook_endpoints/{lago_id}","title":"Retrieve a webhook endpoint","href":"/api-reference/webhook-endpoints/get-specific"}]},{"group":"Webhooks","pages":[{"title":"Format and signature","href":"/api-reference/webhooks/format---signature"},{"title":"Messages","href":"/api-reference/webhooks/messages"}]}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/templates/introduction"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/about-lago"}]},{"tab":"Knowledge Base","href":"https://knowledge.getlago.com"},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/product"}]}]},"basePath":"","title":"The quote version object - Lago","buildId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","deploymentId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CQGbdtm4.js","utils-D88A1f-Z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChqWdz1A.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-yBrxdh_6.js","snippetPresets-BgqDrFJC.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Duxc2rZw.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C7jidOil.js","shallow-xkjpHm-U.js","getApiPlaygroundDisplay-fE3rVpvL.js","CodeSnippet-LgxljKed.js","CodeSnippets-D-pXWDHq.js","Page-C2-BijcO.js","getPastedJson-CLRcu-uo.js","icon-Cxirpjgo.js","MethodPill-D49eqY5e.js","DuplicateIcon-CivCz5Rp.js","createIcon-D71qL3f5.js","DynamicMarkdown-BcGRTrw6.js","SectionHeading-DzaqmmSD.js","axios-vUo_bRtp.js","Markdown-CZqUYmMp.js","clsx-B6IZIRsp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-B0ZV6X5T.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-MqLyPtsW.js"]}