Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under "/custom-fields" in the API documentation. The input is validated against the configuration. For more details see Custom Fields Guide
Indicates if the subscription is pending for cancellation. If true, the subscription will be cancelled in the future and the cancellation could be revoked.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Fynn Docs","colors":{"primary":"#000","light":"#fff","dark":"#000"},"logo":{"light":"https://mintcdn.com/fynnsubscriptionbilling/kPbBeWVEZfmEic9q/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=kPbBeWVEZfmEic9q\u0026q=85\u0026s=83e4b30a53d77c3809e0f22afa29335d","dark":"https://mintcdn.com/fynnsubscriptionbilling/kPbBeWVEZfmEic9q/logo/dark.svg?fit=max\u0026auto=format\u0026n=kPbBeWVEZfmEic9q\u0026q=85\u0026s=5798319f6c8632d79fe789f72eaa94e2"},"favicon":"https://mintcdn.com/fynnsubscriptionbilling/zDQkHT5wBBQ3jA-O/favicon.svg?fit=max\u0026auto=format\u0026n=zDQkHT5wBBQ3jA-O\u0026q=85\u0026s=410ff1f698a399faed9fbb877457bb43","api":{"openapi":["assets/openapi.json","assets/openapi-v2-plans.json","assets/openapi-v2-offers.json","assets/openapi-v2-commission.json","assets/openapi-v2-payment-plans.json","assets/openapi-v2-finance.json"],"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript","php"]}},"navbar":{"links":[{"href":"https://cal.com/team/fynn/fynn-documentation","label":"Termin buchen"},{"href":"mailto:hi@fynn.eu","label":"Support"}],"primary":{"type":"button","label":"App Login","href":"https://app.fynn.eu"}},"footer":{"socials":{"x":"https://twitter.com/wearefynn","github":"https://github.com/fynn-digital","linkedin":"https://www.linkedin.com/company/wearefynn"}},"integrations":{"gtm":{"tagId":"GTM-NKGQ4TQ9"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"de","default":true,"href":"introduction"},{"language":"en","href":"en/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fynnsubscriptionbilling","hasAudioNarration":false,"actualSubdomain":"fynnsubscriptionbilling","customDomains":["docs.fynn.eu"],"gitSource":{"type":"gitlab","owner":"fynn/core","repo":"core-api23","deployBranch":"main","contentDirectory":"public-docs","isPrivate":true,"projectId":396,"hostUrl":"https://git.netzfabrik.com","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ade24310e2252351b6bcf20","collectionId":"c63f4a48-46bb-4163-a4ce-a54574f206c1","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ade24310e2252351b6bcf20"},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"REMOVE_BRANDING":{"status":"ENABLED"}},"buildId":"6ade65cd8bc03ecc3442159a","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"de","tag":"API Referenz","count":249},{"language":"de","tag":"Dokumentation","count":93},{"language":"de","tag":"API V2","count":71},{"language":"en","tag":"Documentation","count":59},{"language":"de","tag":"API","count":46},{"language":"de","tag":"Catalogue","count":42},{"language":"de","tag":"Angebote","count":36},{"language":"de","tag":"Subscription","count":30},{"language":"de","tag":"Customer","count":30},{"language":"de","tag":"Finanzberichte","count":29},{"language":"de","tag":"Payment","count":26},{"language":"default","tag":"API V2","count":18},{"language":"default","tag":"Dokumentation","count":15},{"language":"default","tag":"Pläne","count":15},{"language":"en","tag":"Integrations","count":15},{"language":"default","tag":"API","count":11},{"language":"default","tag":"API Referenz","count":10},{"language":"default","tag":"API documentation","count":10},{"language":"en","tag":"Products","count":9},{"language":"en","tag":"Settings","count":9},{"language":"en","tag":"Customers","count":7},{"language":"en","tag":"Subscriptions","count":7},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Plan-Verwaltung","count":6},{"language":"en","tag":"Payment Providers","count":6},{"language":"default","tag":"Nutzungsbasierte Abrechnung","count":5},{"language":"en","tag":"Accounting","count":5},{"language":"en","tag":"Developers","count":5},{"language":"en","tag":"Invoices","count":5},{"language":"default","tag":"KI-Assistent","count":4}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".update-container{display:flex}.update-container>div{position:unset!important}@media (min-width:1024px){.update-container{flex-direction:column!important}}[data-component-part=update-label]{background:0 0}[data-component-part=update-tag]{-webkit-text-size-adjust:100%;tab-size:4;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-feature-settings:\"cv02\",\"cv03\",\"cv04\",\"cv11\";--scroll-mt:9.5rem;--font-inter:'__Inter_86cd50', '__Inter_Fallback_86cd50';--font-jetbrains-mono:'__JetBrains_Mono_3c557b', '__JetBrains_Mono_Fallback_3c557b';--primary:39 19 64;--primary-light:255 255 255;--primary-dark:0 0 0;--background-light:255 255 255;--background-dark:0 0 0;--gray-50:244 243 244;--gray-100:239 238 239;--gray-200:223 223 224;--gray-300:207 206 207;--gray-400:159 159 160;--gray-500:113 112 113;--gray-600:81 80 81;--gray-700:63 63 64;--gray-800:38 37 39;--gray-900:23 23 24;--gray-950:11 10 12;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\";-webkit-font-smoothing:antialiased;--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;-webkit-user-modify:read-only;box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--gray-200));--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-radius:var(--rounded-lg,.5rem);background-color:rgb(var(--primary)/.1);padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(var(--primary)/var(--tw-text-opacity))}"}],"page":{"pagePath":"api-reference/subscription/update-invoice-address","slug":"/api-reference/subscription/update-invoice-address","pageMetadata":{"openapi":"put /subscriptions/{id}/invoice-address","title":"Update invoice address","description":"Update the invoice address of the subscription.\n\n\u003csup>Required permissions: `subscription:write`\u003c/sup>","href":"/api-reference/subscription/update-invoice-address"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, 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(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Update the invoice address of the subscription.\"\n }), \"\\n\", _jsxs(\"sup\", {\n children: [\"Required permissions: \", _jsx(_components.code, {\n children: \"subscription:write\"\n })]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"put /subscriptions/{id}/invoice-address","title":"Update invoice address","description":"Update the invoice address of the subscription.\n\n\u003csup>Required permissions: `subscription:write`\u003c/sup>","href":"/api-reference/subscription/update-invoice-address"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/fynnsubscriptionbilling/086131e1768d5953/changelog-sidebar.js"],"openApiReferenceData":{"operation":{"operationId":"updateSubscriptionInvoiceAddress","tags":["Subscription"],"responses":{"200":"74eb0270-8e17-4047-a31e-2ca2b9841246","400":"e6aaf7e9-afbd-483f-9f8c-90fb2e7ae3db","404":"f65f273b-104b-4c49-81de-660289cc5fd0","422":"837ad042-9a47-43d3-8778-c942ddacafa2"},"summary":"Update invoice address","description":"Update the invoice address of the subscription.\n\n\u003csup>Required permissions: `subscription:write`\u003c/sup>","parameters":["1ef2f1c5-4cf5-4055-876b-c717ffb3d0cf"],"requestBody":"d4379a98-47bf-4bd0-94aa-8453b59fb165","deprecated":false,"security":["15c88142-2edd-42ff-a4b1-5181dffa7155"],"x-codeSamples":[{"lang":"bash","label":"cURL","source":"curl -X PUT \\\n /subscriptions/{id}/invoice-address \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"invoiceAddress\": \"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a\"\n}'"}],"method":"put","type":"path","servers":["987b4dcd-9d5f-4357-a99f-0dbd47556601","a53b6fbc-bcf4-4920-9f87-1223f86cceba"],"path":"/subscriptions/{id}/invoice-address","baseUrlOptions":["https://coreapi.io","https://preview.coreapi.io"],"title":"Update invoice address","codeSamples":[{"label":"cURL","lang":"bash","source":"curl -X PUT \\\n /subscriptions/{id}/invoice-address \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"invoiceAddress\": \"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a\"\n}'"}],"requestExampleLanguages":["bash","python","javascript","php"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"1ef2f1c5-4cf5-4055-876b-c717ffb3d0cf":{"name":"id","in":"path","description":"Subscription identifier","required":true,"deprecated":false,"schema":{"type":"string","isRequired":true,"description":"Subscription identifier","uniqueKey":"","typeLabel":"string"},"style":"simple","explode":false}},"requestBody":{"description":"The updated Subscription resource","content":{"application/json":{"schema":{"type":"object","description":"","deprecated":false,"properties":{"invoiceAddress":{"oneOf":[{"description":"The invoice address of the customer. If not set, the default invoice address of the customer is used.","example":"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a","type":"string","format":"uuid","uniqueKey":"invoiceAddress.oneOf.0","typeLabel":"string\u003cuuid>"},{"description":"The invoice address of the customer. If not set, the default invoice address of the customer is used.","example":"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a","type":"null","format":"uuid","uniqueKey":"invoiceAddress.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invoiceAddress":"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a"}}},"exampleType":"generated"},"text/html":{"schema":{"type":"object","description":"","deprecated":false,"properties":{"invoiceAddress":{"oneOf":[{"description":"The invoice address of the customer. If not set, the default invoice address of the customer is used.","example":"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a","type":"string","format":"uuid","uniqueKey":"invoiceAddress.oneOf.0","typeLabel":"string\u003cuuid>"},{"description":"The invoice address of the customer. If not set, the default invoice address of the customer is used.","example":"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a","type":"null","format":"uuid","uniqueKey":"invoiceAddress.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invoiceAddress":"ad8f1b9e-1b1a-4c5a-8b9a-0b9e1a8d1f8a"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"74eb0270-8e17-4047-a31e-2ca2b9841246":{"description":"Subscription resource updated","content":{"application/json":{"schema":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"id","typeLabel":"string"},"externalId":{"oneOf":[{"type":"string","uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"externalId","typeLabel":"string | null"},"paymentMethod":{"oneOf":[{"type":"object","description":"The payment method of the subscription. If null, the default payment method of the customer is used.","properties":{"id":{"readOnly":true,"type":"string","description":"Unique identifier of the payment method","example":"c1a2b3c4-d5e6-4f7a-8b9b-0c1d2e3f4a5b","uniqueKey":"paymentMethod.oneOf.0.id","typeLabel":"string"},"gatewayName":{"type":"string","enum":["wallet","sepa_debit","stripe","fake_provider","paypal","bank_transfer","go_cardless","testing"],"description":"The payment gateway used to process the payment method","uniqueKey":"paymentMethod.oneOf.0.gatewayName","typeLabel":"enum\u003cstring>"},"type":{"oneOf":[{"type":"string","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"description":"The type of the payment method","uniqueKey":"paymentMethod.oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"description":"The type of the payment method","uniqueKey":"paymentMethod.oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.type","typeLabel":"enum\u003cstring> | null"},"default":{"type":"boolean","description":"Whether this is the default payment method for the customer","example":true,"uniqueKey":"paymentMethod.oneOf.0.default","typeLabel":"boolean"},"status":{"default":"active","example":"active","type":"string","enum":["active","action_required","expired","revoked","gateway_unconfigured"],"description":"The current status of the payment method","uniqueKey":"paymentMethod.oneOf.0.status","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","description":"Whether the payment method is enabled for use","example":true,"uniqueKey":"paymentMethod.oneOf.0.enabled","typeLabel":"boolean"},"name":{"oneOf":[{"type":"string","description":"Display name of the payment method","example":"Visa (4242)","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name of the payment method","example":"Visa (4242)","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.name","typeLabel":"string | null"},"creationDate":{"readOnly":true,"type":"string","format":"date-time","description":"The date when the payment method was created","example":"2024-01-15T10:30:00+00:00","uniqueKey":"paymentMethod.oneOf.0.creationDate","typeLabel":"string\u003cdate-time>"},"expirationDate":{"oneOf":[{"type":"string","format":"date-time","description":"The expiration date of the payment method, if applicable","example":"2026-12-31T23:59:59+00:00","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The expiration date of the payment method, if applicable","example":"2026-12-31T23:59:59+00:00","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.expirationDate","typeLabel":"string\u003cdate-time> | null"},"card":{"readOnly":true,"description":"The card data of the payment method, if the type is \"card\"","type":"object","properties":{"brand":{"type":"string","example":"Visa","description":"The brand of the card","uniqueKey":"paymentMethod.oneOf.0.card.brand","typeLabel":"string"},"last4":{"type":"string","example":"4242","description":"The last 4 digits of the card","uniqueKey":"paymentMethod.oneOf.0.card.last4","typeLabel":"string"},"expMonth":{"type":"integer","example":12,"description":"The expiration month of the card","uniqueKey":"paymentMethod.oneOf.0.card.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","example":2022,"description":"The expiration year of the card","uniqueKey":"paymentMethod.oneOf.0.card.expYear","typeLabel":"integer"},"cardHolder":{"type":"string","example":"Max Mustermann","description":"The card holder name","uniqueKey":"paymentMethod.oneOf.0.card.cardHolder","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.card","typeLabel":"object"},"sepaDebit":{"readOnly":true,"description":"The sepa mandate data of the payment method, if the type is \"sepa_debit\"","type":"object","properties":{"iban":{"type":"string","example":"DE8937*********3232","description":"The iban of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.iban","typeLabel":"string"},"bic":{"type":"string","example":"COBADEFFXXX","description":"The bic of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.bic","typeLabel":"string"},"mandateReference":{"type":"string","example":"MNDT-2021-123456","description":"The mandate reference of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.mandateReference","typeLabel":"string"},"signingDate":{"type":"string","example":"2021-01-01T00:00:00+00:00","description":"The signing date of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.signingDate","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.sepaDebit","typeLabel":"object"},"paypal":{"readOnly":true,"description":"The paypal data of the payment method, if the type is \"paypal\"","type":"object","properties":{"email":{"type":"string","example":"max@mustermann.de","description":"The email of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.email","typeLabel":"string"},"billingAgreementId":{"type":"string","example":"I-1J5gqz2eZvKYlo2C2X2X2X2X","description":"The billing agreement id of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.billingAgreementId","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.paypal","typeLabel":"object"}},"uniqueKey":"paymentMethod.oneOf.0","typeLabel":"object"},{"type":"null","description":"The payment method of the subscription. If null, the default payment method of the customer is used.","uniqueKey":"paymentMethod.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod","typeLabel":"object | null"},"invoiceAddress":{"oneOf":[{"type":"object","description":"The invoice address of the subscription. If null, the default invoice address of the customer is used.","properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"invoiceAddress.oneOf.0.id","typeLabel":"string"},"vatId":{"oneOf":[{"description":"VAT ID, which will be used to bill to. If not provided, we will use the customer vat id.","example":"DE123456789","type":"string","uniqueKey":"invoiceAddress.oneOf.0.vatId.oneOf.0","typeLabel":"string"},{"description":"VAT ID, which will be used to bill to. If not provided, we will use the customer vat id.","example":"DE123456789","type":"null","uniqueKey":"invoiceAddress.oneOf.0.vatId.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.vatId","typeLabel":"string | null"},"type":{"example":"TYPE_DEFAULT","enum":["TYPE_DEFAULT","TYPE_INVOICE"],"type":"string","uniqueKey":"invoiceAddress.oneOf.0.type","typeLabel":"enum\u003cstring>"},"default":{"example":"true","type":"boolean","uniqueKey":"invoiceAddress.oneOf.0.default","typeLabel":"boolean"},"status":{"readOnly":true,"example":"active","enum":["active","archived"],"type":"string","uniqueKey":"invoiceAddress.oneOf.0.status","typeLabel":"enum\u003cstring>"},"city":{"example":"Berlin","type":"string","uniqueKey":"invoiceAddress.oneOf.0.city","typeLabel":"string"},"zip":{"example":"12345","type":"string","uniqueKey":"invoiceAddress.oneOf.0.zip","typeLabel":"string"},"street":{"example":"Musterstraße","type":"string","uniqueKey":"invoiceAddress.oneOf.0.street","typeLabel":"string"},"houseNumber":{"example":"1a","type":"string","uniqueKey":"invoiceAddress.oneOf.0.houseNumber","typeLabel":"string"},"countryCode":{"example":"DE","type":"string","uniqueKey":"invoiceAddress.oneOf.0.countryCode","typeLabel":"string"},"companyName":{"oneOf":[{"description":"Company name, which will be used to bill to.","example":"ACME Inc.","type":"string","uniqueKey":"invoiceAddress.oneOf.0.companyName.oneOf.0","typeLabel":"string"},{"description":"Company name, which will be used to bill to.","example":"ACME Inc.","type":"null","uniqueKey":"invoiceAddress.oneOf.0.companyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.companyName","typeLabel":"string | null"},"salutation":{"example":"Herr","enum":["Firma","Herr","Frau"],"type":"string","uniqueKey":"invoiceAddress.oneOf.0.salutation","typeLabel":"enum\u003cstring>"},"addition":{"oneOf":[{"description":"Additional address information, which will be shown on generated documents like invoices, reminders, etc.","example":"c/o John Doe","type":"string","uniqueKey":"invoiceAddress.oneOf.0.addition.oneOf.0","typeLabel":"string"},{"description":"Additional address information, which will be shown on generated documents like invoices, reminders, etc.","example":"c/o John Doe","type":"null","uniqueKey":"invoiceAddress.oneOf.0.addition.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.addition","typeLabel":"string | null"},"costCentre":{"oneOf":[{"description":"Cost centre, which will be shown on generated documents like invoices, reminders, etc.","example":"123456789","type":"string","uniqueKey":"invoiceAddress.oneOf.0.costCentre.oneOf.0","typeLabel":"string"},{"description":"Cost centre, which will be shown on generated documents like invoices, reminders, etc.","example":"123456789","type":"null","uniqueKey":"invoiceAddress.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.costCentre","typeLabel":"string | null"},"firstName":{"oneOf":[{"description":"First name, which will be shown on generated documents like invoices, reminders, etc.","example":"John","type":"string","uniqueKey":"invoiceAddress.oneOf.0.firstName.oneOf.0","typeLabel":"string"},{"description":"First name, which will be shown on generated documents like invoices, reminders, etc.","example":"John","type":"null","uniqueKey":"invoiceAddress.oneOf.0.firstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.firstName","typeLabel":"string | null"},"lastName":{"oneOf":[{"description":"Last name, which will be shown on generated documents like invoices, reminders, etc.","example":"Doe","type":"string","uniqueKey":"invoiceAddress.oneOf.0.lastName.oneOf.0","typeLabel":"string"},{"description":"Last name, which will be shown on generated documents like invoices, reminders, etc.","example":"Doe","type":"null","uniqueKey":"invoiceAddress.oneOf.0.lastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.lastName","typeLabel":"string | null"}},"uniqueKey":"invoiceAddress.oneOf.0","typeLabel":"object"},{"type":"null","description":"The invoice address of the subscription. If null, the default invoice address of the customer is used.","uniqueKey":"invoiceAddress.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress","typeLabel":"object | null"},"number":{"description":"The number of the subscription.","example":"S-00000001","type":"string","uniqueKey":"number","typeLabel":"string"},"customer":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"00000000-0000-0000-0000-000000000000","type":"string","uniqueKey":"customer.id","typeLabel":"string"},"customerNumber":{"minLength":2,"maxLength":255,"example":"CUSTOMER-000","nullable":false,"type":"string","uniqueKey":"customer.customerNumber","typeLabel":"string"},"timeZone":{"readOnly":true,"default":"Europe/Berlin","example":"Europe/Berlin","type":"string","uniqueKey":"customer.timeZone","typeLabel":"string"},"firstName":{"oneOf":[{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"John","type":"string","uniqueKey":"customer.firstName.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"John","type":"null","uniqueKey":"customer.firstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.firstName","typeLabel":"string | null"},"lastName":{"oneOf":[{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"Doe","type":"string","uniqueKey":"customer.lastName.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"Doe","type":"null","uniqueKey":"customer.lastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.lastName","typeLabel":"string | null"},"currencyCode":{"description":"Can be empty. In this case the default currency of the tenant is used.","externalDocs":{"url":"https://schema.org/priceCurrency"},"example":"EUR","type":"string","uniqueKey":"customer.currencyCode","typeLabel":"string"},"companyName":{"oneOf":[{"minLength":2,"maxLength":255,"example":"Acme Inc.","type":"string","uniqueKey":"customer.companyName.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"example":"Acme Inc.","type":"null","uniqueKey":"customer.companyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.companyName","typeLabel":"string | null"},"datevId":{"oneOf":[{"minLength":2,"maxLength":255,"description":"The ID of the customer in DATEV","example":"123456789","type":"string","uniqueKey":"customer.datevId.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"description":"The ID of the customer in DATEV","example":"123456789","type":"null","uniqueKey":"customer.datevId.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.datevId","typeLabel":"string | null"},"status":{"default":"STATUS_ACTIVE","example":"STATUS_ACTIVE","enum":["STATUS_ACTIVE","STATUS_ARCHIVED","STATUS_SUSPENDED"],"type":"string","uniqueKey":"customer.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"customer","typeLabel":"object"},"plan":{"oneOf":[{"type":"object","description":"The plan this subscription is based on.","properties":{"id":{"readOnly":true,"description":"The unique identifier of the plan.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.id","typeLabel":"string"},"family":{"oneOf":[{"type":"object","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.family.oneOf.0.id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.family.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.family.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"plan.oneOf.0.family.oneOf.0","typeLabel":"object"},{"type":"null","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","uniqueKey":"plan.oneOf.0.family.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.family","typeLabel":"object | null"},"code":{"description":"The code of the plan. This is used to identify the plan e.g. in the checkout url.","example":"basic-m2023","type":"string","uniqueKey":"plan.oneOf.0.code","typeLabel":"string"},"originProduct":{"oneOf":[{"type":"object","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","required":["type","measurement","taxGroup"],"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields","typeLabel":"object | null"}},"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0","typeLabel":"object"},{"type":"null","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","uniqueKey":"plan.oneOf.0.originProduct.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct","typeLabel":"object | null"},"allowCheckout":{"description":"Allow to checkout this plan. If this is set to false, the plan will not be available in the checkout and can only be assigned to a subscription by the API or in the admin panel. The plan.code is a part of the checkout url.","default":true,"example":true,"type":"boolean","uniqueKey":"plan.oneOf.0.allowCheckout","typeLabel":"boolean"},"status":{"readOnly":true,"description":"The status of the plan.\n\nPossible values:\n * `draft`: The plan is a draft and not available for usage in a subscription.\n * `active`: The plan is active and can be used in a subscription.\n * `archived`: The plan is archived and not longer available for usage in a subscription.\n * `inactive`: The plan is inactive and not available for usage in a subscription.","default":"draft","example":"draft","uniqueKey":"plan.oneOf.0.status","typeLabel":"any"},"changeBehaviour":{"description":"Define the allowed actions after subscription by customer, for upgrade / downgrade.","default":"not_changeable","example":"upgradeable_and_downgradeable","type":"string","enum":["upgradeable","downgradeable","upgradeable_and_downgradeable","not_changeable"],"uniqueKey":"plan.oneOf.0.changeBehaviour","typeLabel":"enum\u003cstring>"},"changeApplyBehaviour":{"description":"Define the behaviour when a plan change will be applied. If null the default behaviour will be used.","default":"end_of_period","example":"end_of_period","type":"string","enum":["immediately","end_of_period"],"uniqueKey":"plan.oneOf.0.changeApplyBehaviour","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"name":{"readOnly":true,"description":"The name of this plan","type":"string","uniqueKey":"plan.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"readOnly":true,"description":"The description of this plan","type":"string","uniqueKey":"plan.oneOf.0.description.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"The description of this plan","type":"null","uniqueKey":"plan.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.description","typeLabel":"string | null"}},"uniqueKey":"plan.oneOf.0","typeLabel":"object"},{"type":"null","description":"The plan this subscription is based on.","uniqueKey":"plan.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan","typeLabel":"object | null"},"name":{"oneOf":[{"description":"The name of the subscription. Defaults to the name of the plan. This will be used in the invoice for the grouping headers.","example":"Fitness M","type":"string","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"description":"The name of the subscription. Defaults to the name of the plan. This will be used in the invoice for the grouping headers.","example":"Fitness M","type":"null","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"items":{"description":"The selected items of the subscription. Can be charges or addons.","type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","type":"string","uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string"},"parent":{"oneOf":[{"description":"The parent item of the item. If this is null, the item is a root item.","uniqueKey":"\\items.items.[INDEX].parent.oneOf.0","typeLabel":"any"},{"type":"null","description":"The parent item of the item. If this is null, the item is a root item.","uniqueKey":"\\items.items.[INDEX].parent.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].parent","typeLabel":"any | null"},"plan":{"oneOf":[{"type":"object","description":"The plan this item is based on.","properties":{"id":{"readOnly":true,"description":"The unique identifier of the plan.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.id","typeLabel":"string"},"family":{"oneOf":[{"type":"object","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0.id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0","typeLabel":"object"},{"type":"null","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family","typeLabel":"object | null"},"code":{"description":"The code of the plan. This is used to identify the plan e.g. in the checkout url.","example":"basic-m2023","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.code","typeLabel":"string"},"originProduct":{"oneOf":[{"type":"object","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","required":["type","measurement","taxGroup"],"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields","typeLabel":"object | null"}},"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0","typeLabel":"object"},{"type":"null","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct","typeLabel":"object | null"},"allowCheckout":{"description":"Allow to checkout this plan. If this is set to false, the plan will not be available in the checkout and can only be assigned to a subscription by the API or in the admin panel. The plan.code is a part of the checkout url.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.allowCheckout","typeLabel":"boolean"},"status":{"readOnly":true,"description":"The status of the plan.\n\nPossible values:\n * `draft`: The plan is a draft and not available for usage in a subscription.\n * `active`: The plan is active and can be used in a subscription.\n * `archived`: The plan is archived and not longer available for usage in a subscription.\n * `inactive`: The plan is inactive and not available for usage in a subscription.","default":"draft","example":"draft","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.status","typeLabel":"any"},"changeBehaviour":{"description":"Define the allowed actions after subscription by customer, for upgrade / downgrade.","default":"not_changeable","example":"upgradeable_and_downgradeable","type":"string","enum":["upgradeable","downgradeable","upgradeable_and_downgradeable","not_changeable"],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.changeBehaviour","typeLabel":"enum\u003cstring>"},"changeApplyBehaviour":{"description":"Define the behaviour when a plan change will be applied. If null the default behaviour will be used.","default":"end_of_period","example":"end_of_period","type":"string","enum":["immediately","end_of_period"],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.changeApplyBehaviour","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"name":{"readOnly":true,"description":"The name of this plan","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"readOnly":true,"description":"The description of this plan","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.description.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"The description of this plan","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.description","typeLabel":"string | null"}},"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0","typeLabel":"object"},{"type":"null","description":"The plan this item is based on.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan","typeLabel":"object | null"},"measurementValues":{"readOnly":true,"description":"Usage values during the subscription item period.","type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].id","typeLabel":"string"},"measurement":{"type":"object","description":"The measurement of the item.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.type","typeLabel":"any"}},"required":["unit","code"],"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement","typeLabel":"object"},"quantity":{"oneOf":[{"type":"number","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].quantity.oneOf.0","typeLabel":"number"},{"type":"null","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].quantity","typeLabel":"number | null"},"measuredAt":{"description":"The date and time when the measurement was taken.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measuredAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].measurementValues","typeLabel":"object[]"},"billing":{"type":"object","description":"The billing details of the item.","deprecated":false,"properties":{"lastBilledAt":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.lastBilledAt","typeLabel":"string\u003cdate-time> | null"},"lastBilledTo":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledTo.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledTo.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.lastBilledTo","typeLabel":"string\u003cdate-time> | null"},"lastBilledFrom":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledFrom.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledFrom.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.lastBilledFrom","typeLabel":"string\u003cdate-time> | null"},"nextBillingAt":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.nextBillingAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.nextBillingAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.nextBillingAt","typeLabel":"string\u003cdate-time> | null"},"billingInterval":{"oneOf":[{"type":"object","description":"The billing interval of the item.\nIf the value is null, the item is billed only once (one-time).\nIf the value is not null, the item is billed periodically.\nThe value is a string in the following format: [number][unit]\nThe unit can be one of the following: H, D, W, M, Y\n","example":"1M","uniqueKey":"\\items.items.[INDEX].billing.billingInterval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The billing interval of the item.\nIf the value is null, the item is billed only once (one-time).\nIf the value is not null, the item is billed periodically.\nThe value is a string in the following format: [number][unit]\nThe unit can be one of the following: H, D, W, M, Y\n","example":"1M","uniqueKey":"\\items.items.[INDEX].billing.billingInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.billingInterval","typeLabel":"object | null"}},"readOnly":true,"uniqueKey":"\\items.items.[INDEX].billing","typeLabel":"object"},"name":{"readOnly":true,"description":"The name of the item which will be used in the invoice. The name is translated based on the customer's locale.","example":"Fitness M","type":"string","uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"description":{"oneOf":[{"readOnly":true,"description":"The description of the item which will be used in the invoice. The description is translated based on the customer's locale.","example":"Everything included","type":"string","uniqueKey":"\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"The description of the item which will be used in the invoice. The description is translated based on the customer's locale.","example":"Everything included","type":"null","uniqueKey":"\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string | null"},"furtherInformation":{"oneOf":[{"readOnly":true,"description":"Further information defines additional information for the item which will be displayed in the invoice.","example":"Additional agreements: The contract includes a free drink flatrate.","type":"string","uniqueKey":"\\items.items.[INDEX].furtherInformation.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"Further information defines additional information for the item which will be displayed in the invoice.","example":"Additional agreements: The contract includes a free drink flatrate.","type":"null","uniqueKey":"\\items.items.[INDEX].furtherInformation.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].furtherInformation","typeLabel":"string | null"},"pricePlan":{"oneOf":[{"type":"object","description":"The price plan of the item, which defines the price and billing interval.","required":["type","currencyCode","price"],"properties":{"type":{"description":"The type of the charge. This defines how the price is calculated.\n\nPossible values:\n * `flat_fee`: A flat fee is charged, e.g. 10€ per month independent of the number of units.\n * `volume`: A volume based price is charged, e.g. 10€ for the first 10 units and 9€ for all units when the number of units is above 10. Useful for volume discounts.\n * `percentage`: A percentage of the total price is charged, e.g. 10% of the total price multiplied by the number of units. Useful for provisions.\n * `per_unit`: A price per unit is charged, e.g. 10€ per unit per billing interval. Useful for per seat based pricing.\n * `tiered`: A tiered price is charged. E.g. 10€ per unit for the first 10 units, 9€ per unit for the next 10 units and 8€ per unit for all units above 20.\n * `stair_step`: A stair step price is charged. E.g. 10€ per unit for the first 10 units, 9€ per unit for all units above 10.","example":"flat_fee","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.type","typeLabel":"any"},"currencyCode":{"type":"string","description":"The currency of the price","example":"EUR","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.currencyCode","typeLabel":"string"},"price":{"oneOf":[{"type":"object","title":"Flat fee","description":"","required":["amount"],"properties":{"amount":{"description":"The amount of the flat fee per unit","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.amount","typeLabel":"number"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0","typeLabel":"Flat fee · object"},{"type":"object","title":"Percentage","description":"","required":["percentage","fixedAmount","freeUnitsPerEvent","freeUnitsPerBillingInterval"],"properties":{"percentage":{"description":"The percentage of the total amount that is charged.","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.percentage","typeLabel":"number"},"fixedAmount":{"description":"The fixed amount that is charged per unit, metered in the billing period. E.g. on pushing 1000 units, the fixed amount is charged 1000 times * percentage","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.fixedAmount","typeLabel":"number"},"freeUnitsPerEvent":{"description":"The number of units that are not subject to the fixed fee.","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.freeUnitsPerEvent","typeLabel":"integer"},"freeUnitsPerBillingInterval":{"description":"The amount that is not subject to the charge rate.","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.freeUnitsPerBillingInterval","typeLabel":"number"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1","typeLabel":"Percentage · object"},{"type":"object","title":"Per unit","description":"","required":["amount"],"properties":{"amount":{"description":"The amount of money per unit","example":0.99,"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.amount","typeLabel":"number"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2","typeLabel":"Per unit · object"},{"type":"object","title":"Tiered","description":"","required":["items"],"properties":{"items":{"minItems":1,"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"from":{"description":"The lower bound of the tier","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].from","typeLabel":"number"},"amount":{"description":"The amount of the tier per unit","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].amount","typeLabel":"number"},"flatAmount":{"description":"The flat amount of the tier, billed once in addition to the amount per unit in a billing period","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].flatAmount","typeLabel":"number"},"id":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].tenantId","typeLabel":"string"}},"required":["from","amount","flatAmount"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items","typeLabel":"object[]"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3","typeLabel":"Tiered · object"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price","typeLabel":"Flat fee · object | Percentage · object | Per unit · object | Tiered · object"},"id":{"readOnly":true,"description":"The unique identifier of the price plan.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.id","typeLabel":"string"},"internalName":{"oneOf":[{"minLength":3,"maxLength":255,"description":"The internal name of the price plan.","example":"Exclusive pricing for partners.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"minLength":3,"maxLength":255,"description":"The internal name of the price plan.","example":"Exclusive pricing for partners.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.internalName","typeLabel":"string | null"},"status":{"readOnly":true,"description":"The status of the price plan.\n\nPossible values:\n * `active`: The price is active and can be used.\n * `archived`: The price is archived and cannot be used anymore. It will be not shown in any lists until explicitly requested.","default":"active","example":"active","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.status","typeLabel":"any"},"applyTrial":{"description":"If this is set to true, the price plan can be applied on a trial. If the product is in trial, and this is false, the price will be charged on subscription start, otherwise after trial.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.applyTrial","typeLabel":"boolean"},"payInAdvance":{"oneOf":[{"description":"If this is set to true, the price will be charged in advance. If this is false, the price will be charged at the end of the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.payInAdvance.oneOf.0","typeLabel":"boolean"},{"description":"If this is set to true, the price will be charged in advance. If this is false, the price will be charged at the end of the billing interval.","default":true,"example":true,"type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.payInAdvance.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.payInAdvance","typeLabel":"boolean | null"},"proRata":{"description":"If this is set to true, the price will be charged prorated when a partial billing interval is billed. This applies to measurements of type \"recurring\" or non-one-time billing intervals. For other measurements this parameter will be ignored.","type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.proRata","typeLabel":"boolean"},"freeUnits":{"oneOf":[{"type":"number","description":"The amount of free units. If null, no free units are available. Free units will be applied before passed to the price calculation and are available prorated.\nIf the customer does not uses the free units during a billing period, they are not carried over to the next billing period.\nIf the customer cancels the subscription before ending the billing period, the free units are only available prorated for the remaining billing period.\n\n\n**Example**: You offer 2400 free units for 12 months and your price has a billing interval for 1 month. The customer cancels after 6 months. Only 1200 free units are available.\n\n**A price plan for a recurring product cannot have free units. Use a metered product instead.**\n\n**A price plan related to a product of type charge cannot have free units.**","example":1,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits.oneOf.0","typeLabel":"number"},{"type":"null","description":"The amount of free units. If null, no free units are available. Free units will be applied before passed to the price calculation and are available prorated.\nIf the customer does not uses the free units during a billing period, they are not carried over to the next billing period.\nIf the customer cancels the subscription before ending the billing period, the free units are only available prorated for the remaining billing period.\n\n\n**Example**: You offer 2400 free units for 12 months and your price has a billing interval for 1 month. The customer cancels after 6 months. Only 1200 free units are available.\n\n**A price plan for a recurring product cannot have free units. Use a metered product instead.**\n\n**A price plan related to a product of type charge cannot have free units.**","example":1,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits.oneOf.1","typeLabel":"null"},{"type":"null","description":"The amount of free units. If null, no free units are available. Free units will be applied before passed to the price calculation and are available prorated.\nIf the customer does not uses the free units during a billing period, they are not carried over to the next billing period.\nIf the customer cancels the subscription before ending the billing period, the free units are only available prorated for the remaining billing period.\n\n\n**Example**: You offer 2400 free units for 12 months and your price has a billing interval for 1 month. The customer cancels after 6 months. Only 1200 free units are available.\n\n**A price plan for a recurring product cannot have free units. Use a metered product instead.**\n\n**A price plan related to a product of type charge cannot have free units.**","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits.oneOf.2","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits","typeLabel":"number · null · null"},"billingInterval":{"oneOf":[{"type":"object","description":"The billing interval of the price plan. If null, this is a one-time charge.\nBilling intervals of null cannot be prorated.","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.billingInterval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The billing interval of the price plan. If null, this is a one-time charge.\nBilling intervals of null cannot be prorated.","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.billingInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.billingInterval","typeLabel":"object | null"},"showPricePerInterval":{"oneOf":[{"type":"object","description":"Display the billed price per interval in customerfront or invoices. If null, the price will be shown per billing interval.\nCurrently only available for billing intervals of months, years. Currently only allowed to show price per month (1M)","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.showPricePerInterval.oneOf.0","typeLabel":"object"},{"type":"null","description":"Display the billed price per interval in customerfront or invoices. If null, the price will be shown per billing interval.\nCurrently only available for billing intervals of months, years. Currently only allowed to show price per month (1M)","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.showPricePerInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.showPricePerInterval","typeLabel":"object | null"},"custom":{"readOnly":true,"description":"If this price plan is a custom price plan. A price plan is custom if it is defined specific for a plan addon, plan charge, customer or sales channel.","example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.custom","typeLabel":"boolean"},"charge":{"type":"object","description":"The charge related to this price plan.","deprecated":false,"properties":{"id":{"readOnly":true,"description":"The unique identifier of the plan product.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.id","typeLabel":"string"},"product":{"type":"object","description":"The product this addon belongs to.","deprecated":false,"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields","typeLabel":"object | null"}},"required":["type","measurement","taxGroup"],"readOnly":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product","typeLabel":"object"},"onEvent":{"description":"The event on which the charge should be applied. Defaults to ON_SUBSCRIPTION_START.\n\nPossible values:\n * `on_subscription_start`: The charge is applied when the subscription starts.\n * `on_subscription_end`: The charge is applied when the subscription ends.\n * `on_subscription_trial_start`: The charge is applied when the subscription trial starts.\n * `on_subscription_trial_end`: The charge is applied when the subscription trial ends.\n * `on_checkout_payment`: The charge is applied when the checkout payment is made.","default":"on_subscription_start","example":"on_subscription_start","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.onEvent","typeLabel":"any"},"onceOnEvent":{"description":"Whether the charge should only be applied once on the event. Defaults to false.","type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.onceOnEvent","typeLabel":"boolean"}},"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge","typeLabel":"object"},"productSetOption":{"type":"object","description":"The product set option related to this price plan.","deprecated":false,"properties":{"id":{"readOnly":true,"description":"The unique identifier of the product set option.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.id","typeLabel":"string"},"product":{"type":"object","description":"The product this option belongs to.","deprecated":false,"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields","typeLabel":"object | null"}},"required":["type","measurement","taxGroup"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product","typeLabel":"object"}},"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption","typeLabel":"object"},"inUse":{"readOnly":true,"description":"If this price plan is in use.","example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.inUse","typeLabel":"boolean"}},"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0","typeLabel":"object"},{"type":"null","description":"The price plan of the item, which defines the price and billing interval.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan","typeLabel":"object | null"},"status":{"readOnly":true,"description":"The status of the item.\n\nPossible values:\n * `active`: The item is active and will be billed.\n * `canceled`: The item is canceled and will be billed until the end of the contract.\n * `pending`: The item is pending and will be billed after the contract start.\n * `terminated`: The item is terminated and will not be billed.","example":"active","enum":["active","canceled","pending","terminated"],"type":"string","uniqueKey":"\\items.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"product":{"oneOf":[{"type":"object","description":"The product of the item.","required":["type","measurement","taxGroup"],"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields","typeLabel":"object | null"}},"uniqueKey":"\\items.items.[INDEX].product.oneOf.0","typeLabel":"object"},{"type":"null","description":"The product of the item.","uniqueKey":"\\items.items.[INDEX].product.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product","typeLabel":"object | null"},"appliedDiscounts":{"readOnly":true,"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].id","typeLabel":"string"},"coupon":{"oneOf":[{"type":"object","description":"","required":["code","name","type","frequency"],"properties":{"code":{"description":"The code that can be used to apply this coupon or to use it with the api.","example":"10OFF","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.code","typeLabel":"string"},"name":{"description":"The name of this coupon, which will be displayed to the user in the checkout process, customer front, etc.","example":"10% off","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.name","typeLabel":"string"},"type":{"description":"The type of this coupon.\n\nPossible values:\n * `percentage`: A percentage will be taken off the total plan amount.\n * `fixed_amount`: A fixed amount will be taken off the total plan amount. It will never go below 0.","example":"percentage","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.type","typeLabel":"any"},"frequency":{"description":"The frequency at which a coupon should be applied.\n\nPossible values:\n * `once`: The coupon will be applied once for the first billing period.\n * `limited`: The coupon will be applied for a limited number of billing periods.\n * `lifetime`: The coupon will be applied forever.","example":"limited","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequency","typeLabel":"any"},"id":{"readOnly":true,"description":"The id of this coupon.","type":"string","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.id","typeLabel":"string"},"percentage":{"oneOf":[{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.percentage.oneOf.0","typeLabel":"integer"},{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.percentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.percentage","typeLabel":"integer | null"},"fixedAmount":{"type":"object","description":"The fixed amount this coupon should apply. **Required for type `fixed_amount`.**","deprecated":false,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.fixedAmount","typeLabel":"object"},"frequencyInterval":{"oneOf":[{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequencyInterval.oneOf.0","typeLabel":"integer"},{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequencyInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequencyInterval","typeLabel":"integer | null"},"isEnabled":{"description":"Whether this coupon is enabled or not.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.isEnabled","typeLabel":"boolean"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon","typeLabel":"object | null"},"status":{"readOnly":true,"description":"The status of this applied discount.\n\nPossible values:\n * `active`: The discount is active and will be applied to the subscription item.\n * `completed`: The discount is not active anymore, but it was applied to the subscription item.\n * `removed`: The discount was removed from the subscription item.","example":"active","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].status","typeLabel":"any"},"discount":{"type":"object","description":"The discount that is applied to the subscription item.","deprecated":false,"required":["name","type","frequency"],"properties":{"name":{"description":"The name of this coupon, which will be displayed to the user in the checkout process, customer front, etc.","example":"10% off","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.name","typeLabel":"string"},"type":{"description":"The type of this coupon.\n\nPossible values:\n * `percentage`: A percentage will be taken off the total plan amount.\n * `fixed_amount`: A fixed amount will be taken off the total plan amount. It will never go below 0.","example":"percentage","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.type","typeLabel":"any"},"frequency":{"description":"The frequency at which a coupon should be applied.\n\nPossible values:\n * `once`: The coupon will be applied once for the first billing period.\n * `limited`: The coupon will be applied for a limited number of billing periods.\n * `lifetime`: The coupon will be applied forever.","example":"limited","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequency","typeLabel":"any"},"percentage":{"oneOf":[{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.percentage.oneOf.0","typeLabel":"integer"},{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.percentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.percentage","typeLabel":"integer | null"},"fixedAmount":{"type":"object","description":"The fixed amount this coupon should apply. **Required for type `fixed_amount`.**","deprecated":false,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.fixedAmount","typeLabel":"object"},"frequencyInterval":{"oneOf":[{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequencyInterval.oneOf.0","typeLabel":"integer"},{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequencyInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequencyInterval","typeLabel":"integer | null"}},"readOnly":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount","typeLabel":"object"},"appliedIntervals":{"oneOf":[{"readOnly":true,"description":"The number of intervals this discount was applied to the subscription item.","example":1,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].appliedIntervals.oneOf.0","typeLabel":"integer"},{"readOnly":true,"description":"The number of intervals this discount was applied to the subscription item.","example":1,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].appliedIntervals.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].appliedIntervals","typeLabel":"integer | null"}},"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].appliedDiscounts","typeLabel":"object[]"},"periods":{"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].id","typeLabel":"string"},"contractPeriodCount":{"readOnly":true,"type":"integer","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].contractPeriodCount","typeLabel":"integer"},"contractPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].contractPeriod","typeLabel":"object"},"cancellationPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].cancellationPeriod","typeLabel":"object"},"createdAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].periods","typeLabel":"object[]"},"activatedAt":{"oneOf":[{"readOnly":true,"description":"The date the subscription item was activated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].activatedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the subscription item was activated.","example":"2021-01-01T00:00:00+00:00","type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].activatedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].activatedAt","typeLabel":"string\u003cdate-time> | null"},"type":{"readOnly":true,"description":"The type of the item.\n\nPossible values:\n * `option`: The item is an product set option.\n * `charge`: The item is a charge.\n * `plan-product`: The item is a plan product.\n * `product`: The item is a product, and not created from a plan.","example":"addon","enum":["addon","charge","plan-product","product"],"type":"string","uniqueKey":"\\items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"currentMeasurementValue":{"oneOf":[{"type":"object","description":"The current measurement value of the item.","properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.id","typeLabel":"string"},"measurement":{"type":"object","description":"The measurement of the item.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement","typeLabel":"object"},"quantity":{"oneOf":[{"type":"number","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.quantity.oneOf.0","typeLabel":"number"},{"type":"null","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.quantity","typeLabel":"number | null"},"measuredAt":{"description":"The date and time when the measurement was taken.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measuredAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0","typeLabel":"object"},{"type":"null","description":"The current measurement value of the item.","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue","typeLabel":"object | null"},"inheritedPeriod":{"readOnly":true,"description":"Is the period inherited from the subscription?","example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].inheritedPeriod","typeLabel":"boolean"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items","typeLabel":"object[]"},"billingGroup":{"oneOf":[{"type":"object","description":"The billing group defines the billing cycle of the subscription.","required":["name","type"],"properties":{"name":{"maxLength":255,"description":"The name of the billing group.","example":"Billing of payments at the end of the month","type":"string","isRequired":true,"uniqueKey":"billingGroup.oneOf.0.name","typeLabel":"string"},"type":{"readOnly":true,"description":"The type of the billing group.\n\nPossible values:\n * `start_of_month`: The billing group will be charged on the first day of the month.\n * `end_of_month`: The billing group will be charged on the last day of the month.\n * `start_of_year`: The billing group will be charged on the first day of the year.\n * `end_of_year`: The billing group will be charged on the last day of the year.\n * `custom`: The billing group will be charged on a custom day of the month.","example":"end_of_month","isRequired":true,"uniqueKey":"billingGroup.oneOf.0.type","typeLabel":"any"},"id":{"readOnly":true,"example":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","type":"string","uniqueKey":"billingGroup.oneOf.0.id","typeLabel":"string"},"customDay":{"oneOf":[{"exclusiveMinimum":0,"maximum":31,"readOnly":true,"description":"The custom day of the billing group, only used when type is \"custom\".","example":31,"type":"integer","uniqueKey":"billingGroup.oneOf.0.customDay.oneOf.0","typeLabel":"integer"},{"exclusiveMinimum":0,"maximum":31,"readOnly":true,"description":"The custom day of the billing group, only used when type is \"custom\".","example":31,"type":"null","uniqueKey":"billingGroup.oneOf.0.customDay.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingGroup.oneOf.0.customDay","typeLabel":"integer | null"},"customMonth":{"oneOf":[{"exclusiveMinimum":0,"maximum":12,"readOnly":true,"description":"The custom month of the billing group, only used when type is \"custom\".","example":12,"type":"integer","uniqueKey":"billingGroup.oneOf.0.customMonth.oneOf.0","typeLabel":"integer"},{"exclusiveMinimum":0,"maximum":12,"readOnly":true,"description":"The custom month of the billing group, only used when type is \"custom\".","example":12,"type":"null","uniqueKey":"billingGroup.oneOf.0.customMonth.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingGroup.oneOf.0.customMonth","typeLabel":"integer | null"}},"uniqueKey":"billingGroup.oneOf.0","typeLabel":"object"},{"type":"null","description":"The billing group defines the billing cycle of the subscription.","uniqueKey":"billingGroup.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingGroup","typeLabel":"object | null"},"periods":{"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"periods.items.[INDEX].id","typeLabel":"string"},"contractPeriodCount":{"readOnly":true,"type":"integer","uniqueKey":"periods.items.[INDEX].contractPeriodCount","typeLabel":"integer"},"contractPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"periods.items.[INDEX].contractPeriod","typeLabel":"object"},"cancellationPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"periods.items.[INDEX].cancellationPeriod","typeLabel":"object"},"createdAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"periods.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"periods.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"periods.items.[INDEX]","typeLabel":"object"},"uniqueKey":"periods","typeLabel":"object[]"},"status":{"readOnly":true,"description":"The status of the subscription.\n\nPossible values:\n * `draft`: The subscription is in draft mode and not active yet.\n * `active`: The subscription is active and will be billed.\n * `paused`: The subscription is paused and will not be billed.\n * `cancelled`: The subscription is cancelled and will not be billed anymore.\n * `terminated`: The subscription is terminated and will not be billed anymore.\n * `offer`: The subscription is an offer and waiting for acceptance.","example":"active","uniqueKey":"status","typeLabel":"any"},"activatedAt":{"oneOf":[{"readOnly":true,"description":"The date the subscription was activated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"activatedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the subscription was activated.","example":"2021-01-01T00:00:00+00:00","type":"null","format":"date-time","uniqueKey":"activatedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"activatedAt","typeLabel":"string\u003cdate-time> | null"},"poNumber":{"oneOf":[{"description":"The po number of the subscription.","example":"PO-00000001","type":"string","uniqueKey":"poNumber.oneOf.0","typeLabel":"string"},{"description":"The po number of the subscription.","example":"PO-00000001","type":"null","uniqueKey":"poNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"poNumber","typeLabel":"string | null"},"contractDetails":{"type":"object","description":"The contract details of the subscription.","deprecated":false,"properties":{"contractStart":{"description":"The start of the contract.","type":"string","format":"date-time","uniqueKey":"contractDetails.contractStart","typeLabel":"string\u003cdate-time>"},"contractEnd":{"oneOf":[{"description":"The end of the contract.","type":"string","format":"date-time","uniqueKey":"contractDetails.contractEnd.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"The end of the contract.","type":"null","format":"date-time","uniqueKey":"contractDetails.contractEnd.oneOf.1","typeLabel":"null"}],"uniqueKey":"contractDetails.contractEnd","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"contractDetails","typeLabel":"object"},"trialEndsOn":{"oneOf":[{"readOnly":true,"description":"The date the trial period ends.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"trialEndsOn.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the trial period ends.","example":"2021-01-01T00:00:00+00:00","type":"null","format":"date-time","uniqueKey":"trialEndsOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"trialEndsOn","typeLabel":"string\u003cdate-time> | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"customFields","typeLabel":"object | null"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"defaultPaymentMethod":{"readOnly":true,"description":"The payment method is null, we use the default payment method of the customer.","type":"boolean","uniqueKey":"defaultPaymentMethod","typeLabel":"boolean"},"defaultInvoiceAddress":{"readOnly":true,"description":"The invoice address is null, we use the default invoice address of the customer.","type":"boolean","uniqueKey":"defaultInvoiceAddress","typeLabel":"boolean"},"nextBillingDate":{"oneOf":[{"readOnly":true,"description":"The next billing date of the subscription.","type":"string","format":"date-time","uniqueKey":"nextBillingDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The next billing date of the subscription.","type":"null","format":"date-time","uniqueKey":"nextBillingDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextBillingDate","typeLabel":"string\u003cdate-time> | null"},"lastBillingAt":{"oneOf":[{"readOnly":true,"description":"The last billing date of the subscription.","type":"string","format":"date-time","uniqueKey":"lastBillingAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The last billing date of the subscription.","type":"null","format":"date-time","uniqueKey":"lastBillingAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"lastBillingAt","typeLabel":"string\u003cdate-time> | null"},"cancellationDate":{"oneOf":[{"readOnly":true,"description":"The date the subscription will be cancelled.","type":"string","format":"date-time","uniqueKey":"cancellationDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the subscription will be cancelled.","type":"null","format":"date-time","uniqueKey":"cancellationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancellationDate","typeLabel":"string\u003cdate-time> | null"},"cancelledAt":{"oneOf":[{"readOnly":true,"description":"The date when the subscription was cancelled.","type":"string","format":"date-time","uniqueKey":"cancelledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date when the subscription was cancelled.","type":"null","format":"date-time","uniqueKey":"cancelledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancelledAt","typeLabel":"string\u003cdate-time> | null"},"cancellationReason":{"oneOf":[{"type":"object","description":"The reason why the subscription was cancelled.","required":["code","name"],"properties":{"code":{"maxLength":255,"pattern":"^([a-zA-Z0-9_]+)$","description":"The code of the cancellation reason. This code is used for easier reference and should be unique within the tenant.","type":"string","isRequired":true,"uniqueKey":"cancellationReason.oneOf.0.code","typeLabel":"string"},"name":{"maxLength":255,"description":"The name of the cancellation reason. This is a human readable name for the cancellation reason.","type":"string","isRequired":true,"uniqueKey":"cancellationReason.oneOf.0.name","typeLabel":"string"},"id":{"readOnly":true,"type":"string","uniqueKey":"cancellationReason.oneOf.0.id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"cancellationReason.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"cancellationReason.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"cancellationReason.oneOf.0","typeLabel":"object"},{"type":"null","description":"The reason why the subscription was cancelled.","uniqueKey":"cancellationReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancellationReason","typeLabel":"object | null"},"isCancellationPending":{"readOnly":true,"description":"Indicates if the subscription is pending for cancellation. If true, the subscription will be cancelled in the future and the cancellation could be revoked.","type":"boolean","uniqueKey":"isCancellationPending","typeLabel":"boolean"},"nextPossibleCancellationDate":{"oneOf":[{"readOnly":true,"type":"array","items":{"type":"string","uniqueKey":"nextPossibleCancellationDate.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"nextPossibleCancellationDate.oneOf.0","typeLabel":"string[]"},{"readOnly":true,"type":"null","items":{"type":"string"},"uniqueKey":"nextPossibleCancellationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextPossibleCancellationDate","typeLabel":"string[] | null"},"partner":{"oneOf":[{"type":"object","description":"The partner of the customer.","properties":{"id":{"description":"The ID of the partner","example":"ad8f7e7d-3b3b-4b3b-8b3b-3b3b3b3b3b3b","type":"string","uniqueKey":"partner.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the partner","example":"John Doe","type":"string","uniqueKey":"partner.oneOf.0.name","typeLabel":"string"},"number":{"description":"The customer number of the partner","example":"123456","type":"string","uniqueKey":"partner.oneOf.0.number","typeLabel":"string"},"email":{"oneOf":[{"description":"The email address of the partner","example":"partner@example.com","type":"string","uniqueKey":"partner.oneOf.0.email.oneOf.0","typeLabel":"string"},{"description":"The email address of the partner","example":"partner@example.com","type":"null","uniqueKey":"partner.oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"partner.oneOf.0.email","typeLabel":"string | null"}},"uniqueKey":"partner.oneOf.0","typeLabel":"object"},{"type":"null","description":"The partner of the customer.","uniqueKey":"partner.oneOf.1","typeLabel":"null"}],"uniqueKey":"partner","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","externalId":"\u003cstring>","paymentMethod":{"id":"c1a2b3c4-d5e6-4f7a-8b9b-0c1d2e3f4a5b","gatewayName":"wallet","type":"sepa_debit","default":true,"status":"active","enabled":true,"name":"Visa (4242)","creationDate":"2024-01-15T10:30:00+00:00","expirationDate":"2026-12-31T23:59:59+00:00","card":{"brand":"Visa","last4":"4242","expMonth":12,"expYear":2022,"cardHolder":"Max Mustermann"},"sepaDebit":{"iban":"DE8937*********3232","bic":"COBADEFFXXX","mandateReference":"MNDT-2021-123456","signingDate":"2021-01-01T00:00:00+00:00"},"paypal":{"email":"max@mustermann.de","billingAgreementId":"I-1J5gqz2eZvKYlo2C2X2X2X2X"}},"invoiceAddress":{"id":"\u003cstring>","vatId":"DE123456789","type":"TYPE_DEFAULT","default":"true","status":"active","city":"Berlin","zip":"12345","street":"Musterstraße","houseNumber":"1a","countryCode":"DE","companyName":"ACME Inc.","salutation":"Herr","addition":"c/o John Doe","costCentre":"123456789","firstName":"John","lastName":"Doe"},"number":"S-00000001","customer":{"id":"00000000-0000-0000-0000-000000000000","customerNumber":"CUSTOMER-000","timeZone":"Europe/Berlin","firstName":"John","lastName":"Doe","currencyCode":"EUR","companyName":"Acme Inc.","datevId":"123456789","status":"STATUS_ACTIVE"},"plan":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","family":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"basic-m2023","originProduct":{"type":"product","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"taxGroup":{},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","name":"Basic","description":"For small teams.","internalName":"Basic (Weekly)","invoiceVisibility":"always","costCentre":{},"costCentre2":{},"customFields":{"field1":"value1","field2":"value2"}},"allowCheckout":true,"status":"draft","changeBehaviour":"upgradeable_and_downgradeable","changeApplyBehaviour":"end_of_period","createdAt":"2023-11-07T05:31:56Z","name":"\u003cstring>","description":"\u003cstring>"},"name":"Fitness M","items":[{"id":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","parent":"\u003cunknown>","plan":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","family":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"basic-m2023","originProduct":{"type":"product","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"taxGroup":{},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","name":"Basic","description":"For small teams.","internalName":"Basic (Weekly)","invoiceVisibility":"always","costCentre":{},"costCentre2":{},"customFields":{"field1":"value1","field2":"value2"}},"allowCheckout":true,"status":"draft","changeBehaviour":"upgradeable_and_downgradeable","changeApplyBehaviour":"end_of_period","createdAt":"2023-11-07T05:31:56Z","name":"\u003cstring>","description":"\u003cstring>"},"measurementValues":[{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"quantity":1,"measuredAt":"2021-01-01T00:00:00+00:00"}],"billing":{"lastBilledAt":"2023-11-07T05:31:56Z","lastBilledTo":"2023-11-07T05:31:56Z","lastBilledFrom":"2023-11-07T05:31:56Z","nextBillingAt":"2023-11-07T05:31:56Z","billingInterval":"1M"},"name":"Fitness M","description":"Everything included","furtherInformation":"Additional agreements: The contract includes a free drink flatrate.","pricePlan":{"type":"flat_fee","currencyCode":"EUR","price":{"amount":123,"createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00","tenantId":"\u003cstring>"},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","internalName":"Exclusive pricing for partners.","status":"active","applyTrial":true,"payInAdvance":true,"proRata":true,"freeUnits":1,"billingInterval":"1M","showPricePerInterval":"1M","custom":true,"charge":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","productSetOption":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","inUse":true},"status":"active","product":{"type":"product","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"taxGroup":{},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","name":"Basic","description":"For small teams.","internalName":"Basic (Weekly)","invoiceVisibility":"always","costCentre":{},"costCentre2":{},"customFields":{"field1":"value1","field2":"value2"}},"appliedDiscounts":[{"id":"\u003cstring>","coupon":{"code":"10OFF","name":"10% off","type":"percentage","frequency":"limited","id":"\u003cstring>","percentage":10,"fixedAmount":{},"frequencyInterval":3,"isEnabled":true,"createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"status":"active","discount":{"name":"10% off","type":"percentage","frequency":"limited","percentage":10,"fixedAmount":{},"frequencyInterval":3},"appliedIntervals":1}],"periods":[{"id":"\u003cstring>","contractPeriodCount":123,"contractPeriod":{},"cancellationPeriod":{},"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}],"activatedAt":"2021-01-01T00:00:00+00:00","type":"addon","currentMeasurementValue":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"quantity":1,"measuredAt":"2021-01-01T00:00:00+00:00"},"inheritedPeriod":true}],"billingGroup":{"name":"Billing of payments at the end of the month","type":"end_of_month","id":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","customDay":31,"customMonth":12},"periods":[{"id":"\u003cstring>","contractPeriodCount":123,"contractPeriod":{},"cancellationPeriod":{},"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}],"status":"active","activatedAt":"2021-01-01T00:00:00+00:00","poNumber":"PO-00000001","contractDetails":{"contractStart":"2023-11-07T05:31:56Z","contractEnd":"2023-11-07T05:31:56Z"},"trialEndsOn":"2021-01-01T00:00:00+00:00","customFields":{"field1":"value1","field2":"value2"},"createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00","defaultPaymentMethod":true,"defaultInvoiceAddress":true,"nextBillingDate":"2023-11-07T05:31:56Z","lastBillingAt":"2023-11-07T05:31:56Z","cancellationDate":"2023-11-07T05:31:56Z","cancelledAt":"2023-11-07T05:31:56Z","cancellationReason":{"code":"\u003cstring>","name":"\u003cstring>","id":"\u003cstring>","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"isCancellationPending":true,"nextPossibleCancellationDate":["\u003cstring>"],"partner":{"id":"ad8f7e7d-3b3b-4b3b-8b3b-3b3b3b3b3b3b","name":"John Doe","number":"123456","email":"partner@example.com"}}}},"exampleType":"generated"},"text/html":{"schema":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"id","typeLabel":"string"},"externalId":{"oneOf":[{"type":"string","uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"externalId","typeLabel":"string | null"},"paymentMethod":{"oneOf":[{"type":"object","description":"The payment method of the subscription. If null, the default payment method of the customer is used.","properties":{"id":{"readOnly":true,"type":"string","description":"Unique identifier of the payment method","example":"c1a2b3c4-d5e6-4f7a-8b9b-0c1d2e3f4a5b","uniqueKey":"paymentMethod.oneOf.0.id","typeLabel":"string"},"gatewayName":{"type":"string","enum":["wallet","sepa_debit","stripe","fake_provider","paypal","bank_transfer","go_cardless","testing"],"description":"The payment gateway used to process the payment method","uniqueKey":"paymentMethod.oneOf.0.gatewayName","typeLabel":"enum\u003cstring>"},"type":{"oneOf":[{"type":"string","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"description":"The type of the payment method","uniqueKey":"paymentMethod.oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"description":"The type of the payment method","uniqueKey":"paymentMethod.oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.type","typeLabel":"enum\u003cstring> | null"},"default":{"type":"boolean","description":"Whether this is the default payment method for the customer","example":true,"uniqueKey":"paymentMethod.oneOf.0.default","typeLabel":"boolean"},"status":{"default":"active","example":"active","type":"string","enum":["active","action_required","expired","revoked","gateway_unconfigured"],"description":"The current status of the payment method","uniqueKey":"paymentMethod.oneOf.0.status","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","description":"Whether the payment method is enabled for use","example":true,"uniqueKey":"paymentMethod.oneOf.0.enabled","typeLabel":"boolean"},"name":{"oneOf":[{"type":"string","description":"Display name of the payment method","example":"Visa (4242)","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name of the payment method","example":"Visa (4242)","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.name","typeLabel":"string | null"},"creationDate":{"readOnly":true,"type":"string","format":"date-time","description":"The date when the payment method was created","example":"2024-01-15T10:30:00+00:00","uniqueKey":"paymentMethod.oneOf.0.creationDate","typeLabel":"string\u003cdate-time>"},"expirationDate":{"oneOf":[{"type":"string","format":"date-time","description":"The expiration date of the payment method, if applicable","example":"2026-12-31T23:59:59+00:00","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The expiration date of the payment method, if applicable","example":"2026-12-31T23:59:59+00:00","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.expirationDate","typeLabel":"string\u003cdate-time> | null"},"card":{"readOnly":true,"description":"The card data of the payment method, if the type is \"card\"","type":"object","properties":{"brand":{"type":"string","example":"Visa","description":"The brand of the card","uniqueKey":"paymentMethod.oneOf.0.card.brand","typeLabel":"string"},"last4":{"type":"string","example":"4242","description":"The last 4 digits of the card","uniqueKey":"paymentMethod.oneOf.0.card.last4","typeLabel":"string"},"expMonth":{"type":"integer","example":12,"description":"The expiration month of the card","uniqueKey":"paymentMethod.oneOf.0.card.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","example":2022,"description":"The expiration year of the card","uniqueKey":"paymentMethod.oneOf.0.card.expYear","typeLabel":"integer"},"cardHolder":{"type":"string","example":"Max Mustermann","description":"The card holder name","uniqueKey":"paymentMethod.oneOf.0.card.cardHolder","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.card","typeLabel":"object"},"sepaDebit":{"readOnly":true,"description":"The sepa mandate data of the payment method, if the type is \"sepa_debit\"","type":"object","properties":{"iban":{"type":"string","example":"DE8937*********3232","description":"The iban of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.iban","typeLabel":"string"},"bic":{"type":"string","example":"COBADEFFXXX","description":"The bic of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.bic","typeLabel":"string"},"mandateReference":{"type":"string","example":"MNDT-2021-123456","description":"The mandate reference of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.mandateReference","typeLabel":"string"},"signingDate":{"type":"string","example":"2021-01-01T00:00:00+00:00","description":"The signing date of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.signingDate","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.sepaDebit","typeLabel":"object"},"paypal":{"readOnly":true,"description":"The paypal data of the payment method, if the type is \"paypal\"","type":"object","properties":{"email":{"type":"string","example":"max@mustermann.de","description":"The email of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.email","typeLabel":"string"},"billingAgreementId":{"type":"string","example":"I-1J5gqz2eZvKYlo2C2X2X2X2X","description":"The billing agreement id of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.billingAgreementId","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.paypal","typeLabel":"object"}},"uniqueKey":"paymentMethod.oneOf.0","typeLabel":"object"},{"type":"null","description":"The payment method of the subscription. If null, the default payment method of the customer is used.","uniqueKey":"paymentMethod.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod","typeLabel":"object | null"},"invoiceAddress":{"oneOf":[{"type":"object","description":"The invoice address of the subscription. If null, the default invoice address of the customer is used.","properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"invoiceAddress.oneOf.0.id","typeLabel":"string"},"vatId":{"oneOf":[{"description":"VAT ID, which will be used to bill to. If not provided, we will use the customer vat id.","example":"DE123456789","type":"string","uniqueKey":"invoiceAddress.oneOf.0.vatId.oneOf.0","typeLabel":"string"},{"description":"VAT ID, which will be used to bill to. If not provided, we will use the customer vat id.","example":"DE123456789","type":"null","uniqueKey":"invoiceAddress.oneOf.0.vatId.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.vatId","typeLabel":"string | null"},"type":{"example":"TYPE_DEFAULT","enum":["TYPE_DEFAULT","TYPE_INVOICE"],"type":"string","uniqueKey":"invoiceAddress.oneOf.0.type","typeLabel":"enum\u003cstring>"},"default":{"example":"true","type":"boolean","uniqueKey":"invoiceAddress.oneOf.0.default","typeLabel":"boolean"},"status":{"readOnly":true,"example":"active","enum":["active","archived"],"type":"string","uniqueKey":"invoiceAddress.oneOf.0.status","typeLabel":"enum\u003cstring>"},"city":{"example":"Berlin","type":"string","uniqueKey":"invoiceAddress.oneOf.0.city","typeLabel":"string"},"zip":{"example":"12345","type":"string","uniqueKey":"invoiceAddress.oneOf.0.zip","typeLabel":"string"},"street":{"example":"Musterstraße","type":"string","uniqueKey":"invoiceAddress.oneOf.0.street","typeLabel":"string"},"houseNumber":{"example":"1a","type":"string","uniqueKey":"invoiceAddress.oneOf.0.houseNumber","typeLabel":"string"},"countryCode":{"example":"DE","type":"string","uniqueKey":"invoiceAddress.oneOf.0.countryCode","typeLabel":"string"},"companyName":{"oneOf":[{"description":"Company name, which will be used to bill to.","example":"ACME Inc.","type":"string","uniqueKey":"invoiceAddress.oneOf.0.companyName.oneOf.0","typeLabel":"string"},{"description":"Company name, which will be used to bill to.","example":"ACME Inc.","type":"null","uniqueKey":"invoiceAddress.oneOf.0.companyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.companyName","typeLabel":"string | null"},"salutation":{"example":"Herr","enum":["Firma","Herr","Frau"],"type":"string","uniqueKey":"invoiceAddress.oneOf.0.salutation","typeLabel":"enum\u003cstring>"},"addition":{"oneOf":[{"description":"Additional address information, which will be shown on generated documents like invoices, reminders, etc.","example":"c/o John Doe","type":"string","uniqueKey":"invoiceAddress.oneOf.0.addition.oneOf.0","typeLabel":"string"},{"description":"Additional address information, which will be shown on generated documents like invoices, reminders, etc.","example":"c/o John Doe","type":"null","uniqueKey":"invoiceAddress.oneOf.0.addition.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.addition","typeLabel":"string | null"},"costCentre":{"oneOf":[{"description":"Cost centre, which will be shown on generated documents like invoices, reminders, etc.","example":"123456789","type":"string","uniqueKey":"invoiceAddress.oneOf.0.costCentre.oneOf.0","typeLabel":"string"},{"description":"Cost centre, which will be shown on generated documents like invoices, reminders, etc.","example":"123456789","type":"null","uniqueKey":"invoiceAddress.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.costCentre","typeLabel":"string | null"},"firstName":{"oneOf":[{"description":"First name, which will be shown on generated documents like invoices, reminders, etc.","example":"John","type":"string","uniqueKey":"invoiceAddress.oneOf.0.firstName.oneOf.0","typeLabel":"string"},{"description":"First name, which will be shown on generated documents like invoices, reminders, etc.","example":"John","type":"null","uniqueKey":"invoiceAddress.oneOf.0.firstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.firstName","typeLabel":"string | null"},"lastName":{"oneOf":[{"description":"Last name, which will be shown on generated documents like invoices, reminders, etc.","example":"Doe","type":"string","uniqueKey":"invoiceAddress.oneOf.0.lastName.oneOf.0","typeLabel":"string"},{"description":"Last name, which will be shown on generated documents like invoices, reminders, etc.","example":"Doe","type":"null","uniqueKey":"invoiceAddress.oneOf.0.lastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress.oneOf.0.lastName","typeLabel":"string | null"}},"uniqueKey":"invoiceAddress.oneOf.0","typeLabel":"object"},{"type":"null","description":"The invoice address of the subscription. If null, the default invoice address of the customer is used.","uniqueKey":"invoiceAddress.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceAddress","typeLabel":"object | null"},"number":{"description":"The number of the subscription.","example":"S-00000001","type":"string","uniqueKey":"number","typeLabel":"string"},"customer":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"00000000-0000-0000-0000-000000000000","type":"string","uniqueKey":"customer.id","typeLabel":"string"},"customerNumber":{"minLength":2,"maxLength":255,"example":"CUSTOMER-000","nullable":false,"type":"string","uniqueKey":"customer.customerNumber","typeLabel":"string"},"timeZone":{"readOnly":true,"default":"Europe/Berlin","example":"Europe/Berlin","type":"string","uniqueKey":"customer.timeZone","typeLabel":"string"},"firstName":{"oneOf":[{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"John","type":"string","uniqueKey":"customer.firstName.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"John","type":"null","uniqueKey":"customer.firstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.firstName","typeLabel":"string | null"},"lastName":{"oneOf":[{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"Doe","type":"string","uniqueKey":"customer.lastName.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"description":"Can be empty if the customer is a company.","example":"Doe","type":"null","uniqueKey":"customer.lastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.lastName","typeLabel":"string | null"},"currencyCode":{"description":"Can be empty. In this case the default currency of the tenant is used.","externalDocs":{"url":"https://schema.org/priceCurrency"},"example":"EUR","type":"string","uniqueKey":"customer.currencyCode","typeLabel":"string"},"companyName":{"oneOf":[{"minLength":2,"maxLength":255,"example":"Acme Inc.","type":"string","uniqueKey":"customer.companyName.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"example":"Acme Inc.","type":"null","uniqueKey":"customer.companyName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.companyName","typeLabel":"string | null"},"datevId":{"oneOf":[{"minLength":2,"maxLength":255,"description":"The ID of the customer in DATEV","example":"123456789","type":"string","uniqueKey":"customer.datevId.oneOf.0","typeLabel":"string"},{"minLength":2,"maxLength":255,"description":"The ID of the customer in DATEV","example":"123456789","type":"null","uniqueKey":"customer.datevId.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.datevId","typeLabel":"string | null"},"status":{"default":"STATUS_ACTIVE","example":"STATUS_ACTIVE","enum":["STATUS_ACTIVE","STATUS_ARCHIVED","STATUS_SUSPENDED"],"type":"string","uniqueKey":"customer.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"customer","typeLabel":"object"},"plan":{"oneOf":[{"type":"object","description":"The plan this subscription is based on.","properties":{"id":{"readOnly":true,"description":"The unique identifier of the plan.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.id","typeLabel":"string"},"family":{"oneOf":[{"type":"object","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.family.oneOf.0.id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.family.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.family.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"plan.oneOf.0.family.oneOf.0","typeLabel":"object"},{"type":"null","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","uniqueKey":"plan.oneOf.0.family.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.family","typeLabel":"object | null"},"code":{"description":"The code of the plan. This is used to identify the plan e.g. in the checkout url.","example":"basic-m2023","type":"string","uniqueKey":"plan.oneOf.0.code","typeLabel":"string"},"originProduct":{"oneOf":[{"type":"object","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","required":["type","measurement","taxGroup"],"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0.customFields","typeLabel":"object | null"}},"uniqueKey":"plan.oneOf.0.originProduct.oneOf.0","typeLabel":"object"},{"type":"null","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","uniqueKey":"plan.oneOf.0.originProduct.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.originProduct","typeLabel":"object | null"},"allowCheckout":{"description":"Allow to checkout this plan. If this is set to false, the plan will not be available in the checkout and can only be assigned to a subscription by the API or in the admin panel. The plan.code is a part of the checkout url.","default":true,"example":true,"type":"boolean","uniqueKey":"plan.oneOf.0.allowCheckout","typeLabel":"boolean"},"status":{"readOnly":true,"description":"The status of the plan.\n\nPossible values:\n * `draft`: The plan is a draft and not available for usage in a subscription.\n * `active`: The plan is active and can be used in a subscription.\n * `archived`: The plan is archived and not longer available for usage in a subscription.\n * `inactive`: The plan is inactive and not available for usage in a subscription.","default":"draft","example":"draft","uniqueKey":"plan.oneOf.0.status","typeLabel":"any"},"changeBehaviour":{"description":"Define the allowed actions after subscription by customer, for upgrade / downgrade.","default":"not_changeable","example":"upgradeable_and_downgradeable","type":"string","enum":["upgradeable","downgradeable","upgradeable_and_downgradeable","not_changeable"],"uniqueKey":"plan.oneOf.0.changeBehaviour","typeLabel":"enum\u003cstring>"},"changeApplyBehaviour":{"description":"Define the behaviour when a plan change will be applied. If null the default behaviour will be used.","default":"end_of_period","example":"end_of_period","type":"string","enum":["immediately","end_of_period"],"uniqueKey":"plan.oneOf.0.changeApplyBehaviour","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"plan.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"name":{"readOnly":true,"description":"The name of this plan","type":"string","uniqueKey":"plan.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"readOnly":true,"description":"The description of this plan","type":"string","uniqueKey":"plan.oneOf.0.description.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"The description of this plan","type":"null","uniqueKey":"plan.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan.oneOf.0.description","typeLabel":"string | null"}},"uniqueKey":"plan.oneOf.0","typeLabel":"object"},{"type":"null","description":"The plan this subscription is based on.","uniqueKey":"plan.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan","typeLabel":"object | null"},"name":{"oneOf":[{"description":"The name of the subscription. Defaults to the name of the plan. This will be used in the invoice for the grouping headers.","example":"Fitness M","type":"string","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"description":"The name of the subscription. Defaults to the name of the plan. This will be used in the invoice for the grouping headers.","example":"Fitness M","type":"null","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"items":{"description":"The selected items of the subscription. Can be charges or addons.","type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","type":"string","uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string"},"parent":{"oneOf":[{"description":"The parent item of the item. If this is null, the item is a root item.","uniqueKey":"\\items.items.[INDEX].parent.oneOf.0","typeLabel":"any"},{"type":"null","description":"The parent item of the item. If this is null, the item is a root item.","uniqueKey":"\\items.items.[INDEX].parent.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].parent","typeLabel":"any | null"},"plan":{"oneOf":[{"type":"object","description":"The plan this item is based on.","properties":{"id":{"readOnly":true,"description":"The unique identifier of the plan.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.id","typeLabel":"string"},"family":{"oneOf":[{"type":"object","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0.id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.0","typeLabel":"object"},{"type":"null","description":"Allow to group plans together. This allows to upgrade or downgrade between plans in the same family.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.family","typeLabel":"object | null"},"code":{"description":"The code of the plan. This is used to identify the plan e.g. in the checkout url.","example":"basic-m2023","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.code","typeLabel":"string"},"originProduct":{"oneOf":[{"type":"object","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","required":["type","measurement","taxGroup"],"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0.customFields","typeLabel":"object | null"}},"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.0","typeLabel":"object"},{"type":"null","description":"The origin product this plan belongs to. This is relevant for advanced analytics.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.originProduct","typeLabel":"object | null"},"allowCheckout":{"description":"Allow to checkout this plan. If this is set to false, the plan will not be available in the checkout and can only be assigned to a subscription by the API or in the admin panel. The plan.code is a part of the checkout url.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.allowCheckout","typeLabel":"boolean"},"status":{"readOnly":true,"description":"The status of the plan.\n\nPossible values:\n * `draft`: The plan is a draft and not available for usage in a subscription.\n * `active`: The plan is active and can be used in a subscription.\n * `archived`: The plan is archived and not longer available for usage in a subscription.\n * `inactive`: The plan is inactive and not available for usage in a subscription.","default":"draft","example":"draft","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.status","typeLabel":"any"},"changeBehaviour":{"description":"Define the allowed actions after subscription by customer, for upgrade / downgrade.","default":"not_changeable","example":"upgradeable_and_downgradeable","type":"string","enum":["upgradeable","downgradeable","upgradeable_and_downgradeable","not_changeable"],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.changeBehaviour","typeLabel":"enum\u003cstring>"},"changeApplyBehaviour":{"description":"Define the behaviour when a plan change will be applied. If null the default behaviour will be used.","default":"end_of_period","example":"end_of_period","type":"string","enum":["immediately","end_of_period"],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.changeApplyBehaviour","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"name":{"readOnly":true,"description":"The name of this plan","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"readOnly":true,"description":"The description of this plan","type":"string","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.description.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"The description of this plan","type":"null","uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0.description","typeLabel":"string | null"}},"uniqueKey":"\\items.items.[INDEX].plan.oneOf.0","typeLabel":"object"},{"type":"null","description":"The plan this item is based on.","uniqueKey":"\\items.items.[INDEX].plan.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].plan","typeLabel":"object | null"},"measurementValues":{"readOnly":true,"description":"Usage values during the subscription item period.","type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].id","typeLabel":"string"},"measurement":{"type":"object","description":"The measurement of the item.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement.type","typeLabel":"any"}},"required":["unit","code"],"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measurement","typeLabel":"object"},"quantity":{"oneOf":[{"type":"number","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].quantity.oneOf.0","typeLabel":"number"},{"type":"null","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].quantity","typeLabel":"number | null"},"measuredAt":{"description":"The date and time when the measurement was taken.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX].measuredAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].measurementValues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].measurementValues","typeLabel":"object[]"},"billing":{"type":"object","description":"The billing details of the item.","deprecated":false,"properties":{"lastBilledAt":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.lastBilledAt","typeLabel":"string\u003cdate-time> | null"},"lastBilledTo":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledTo.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledTo.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.lastBilledTo","typeLabel":"string\u003cdate-time> | null"},"lastBilledFrom":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledFrom.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.lastBilledFrom.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.lastBilledFrom","typeLabel":"string\u003cdate-time> | null"},"nextBillingAt":{"oneOf":[{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.nextBillingAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].billing.nextBillingAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.nextBillingAt","typeLabel":"string\u003cdate-time> | null"},"billingInterval":{"oneOf":[{"type":"object","description":"The billing interval of the item.\nIf the value is null, the item is billed only once (one-time).\nIf the value is not null, the item is billed periodically.\nThe value is a string in the following format: [number][unit]\nThe unit can be one of the following: H, D, W, M, Y\n","example":"1M","uniqueKey":"\\items.items.[INDEX].billing.billingInterval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The billing interval of the item.\nIf the value is null, the item is billed only once (one-time).\nIf the value is not null, the item is billed periodically.\nThe value is a string in the following format: [number][unit]\nThe unit can be one of the following: H, D, W, M, Y\n","example":"1M","uniqueKey":"\\items.items.[INDEX].billing.billingInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].billing.billingInterval","typeLabel":"object | null"}},"readOnly":true,"uniqueKey":"\\items.items.[INDEX].billing","typeLabel":"object"},"name":{"readOnly":true,"description":"The name of the item which will be used in the invoice. The name is translated based on the customer's locale.","example":"Fitness M","type":"string","uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"description":{"oneOf":[{"readOnly":true,"description":"The description of the item which will be used in the invoice. The description is translated based on the customer's locale.","example":"Everything included","type":"string","uniqueKey":"\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"The description of the item which will be used in the invoice. The description is translated based on the customer's locale.","example":"Everything included","type":"null","uniqueKey":"\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string | null"},"furtherInformation":{"oneOf":[{"readOnly":true,"description":"Further information defines additional information for the item which will be displayed in the invoice.","example":"Additional agreements: The contract includes a free drink flatrate.","type":"string","uniqueKey":"\\items.items.[INDEX].furtherInformation.oneOf.0","typeLabel":"string"},{"readOnly":true,"description":"Further information defines additional information for the item which will be displayed in the invoice.","example":"Additional agreements: The contract includes a free drink flatrate.","type":"null","uniqueKey":"\\items.items.[INDEX].furtherInformation.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].furtherInformation","typeLabel":"string | null"},"pricePlan":{"oneOf":[{"type":"object","description":"The price plan of the item, which defines the price and billing interval.","required":["type","currencyCode","price"],"properties":{"type":{"description":"The type of the charge. This defines how the price is calculated.\n\nPossible values:\n * `flat_fee`: A flat fee is charged, e.g. 10€ per month independent of the number of units.\n * `volume`: A volume based price is charged, e.g. 10€ for the first 10 units and 9€ for all units when the number of units is above 10. Useful for volume discounts.\n * `percentage`: A percentage of the total price is charged, e.g. 10% of the total price multiplied by the number of units. Useful for provisions.\n * `per_unit`: A price per unit is charged, e.g. 10€ per unit per billing interval. Useful for per seat based pricing.\n * `tiered`: A tiered price is charged. E.g. 10€ per unit for the first 10 units, 9€ per unit for the next 10 units and 8€ per unit for all units above 20.\n * `stair_step`: A stair step price is charged. E.g. 10€ per unit for the first 10 units, 9€ per unit for all units above 10.","example":"flat_fee","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.type","typeLabel":"any"},"currencyCode":{"type":"string","description":"The currency of the price","example":"EUR","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.currencyCode","typeLabel":"string"},"price":{"oneOf":[{"type":"object","title":"Flat fee","description":"","required":["amount"],"properties":{"amount":{"description":"The amount of the flat fee per unit","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.amount","typeLabel":"number"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.0","typeLabel":"Flat fee · object"},{"type":"object","title":"Percentage","description":"","required":["percentage","fixedAmount","freeUnitsPerEvent","freeUnitsPerBillingInterval"],"properties":{"percentage":{"description":"The percentage of the total amount that is charged.","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.percentage","typeLabel":"number"},"fixedAmount":{"description":"The fixed amount that is charged per unit, metered in the billing period. E.g. on pushing 1000 units, the fixed amount is charged 1000 times * percentage","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.fixedAmount","typeLabel":"number"},"freeUnitsPerEvent":{"description":"The number of units that are not subject to the fixed fee.","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.freeUnitsPerEvent","typeLabel":"integer"},"freeUnitsPerBillingInterval":{"description":"The amount that is not subject to the charge rate.","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.freeUnitsPerBillingInterval","typeLabel":"number"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.1","typeLabel":"Percentage · object"},{"type":"object","title":"Per unit","description":"","required":["amount"],"properties":{"amount":{"description":"The amount of money per unit","example":0.99,"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.amount","typeLabel":"number"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.2","typeLabel":"Per unit · object"},{"type":"object","title":"Tiered","description":"","required":["items"],"properties":{"items":{"minItems":1,"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"from":{"description":"The lower bound of the tier","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].from","typeLabel":"number"},"amount":{"description":"The amount of the tier per unit","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].amount","typeLabel":"number"},"flatAmount":{"description":"The flat amount of the tier, billed once in addition to the amount per unit in a billing period","type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].flatAmount","typeLabel":"number"},"id":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX].tenantId","typeLabel":"string"}},"required":["from","amount","flatAmount"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.\\items","typeLabel":"object[]"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.updatedAt","typeLabel":"string\u003cdate-time>"},"tenantId":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3.tenantId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price.oneOf.3","typeLabel":"Tiered · object"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.price","typeLabel":"Flat fee · object | Percentage · object | Per unit · object | Tiered · object"},"id":{"readOnly":true,"description":"The unique identifier of the price plan.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.id","typeLabel":"string"},"internalName":{"oneOf":[{"minLength":3,"maxLength":255,"description":"The internal name of the price plan.","example":"Exclusive pricing for partners.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"minLength":3,"maxLength":255,"description":"The internal name of the price plan.","example":"Exclusive pricing for partners.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.internalName","typeLabel":"string | null"},"status":{"readOnly":true,"description":"The status of the price plan.\n\nPossible values:\n * `active`: The price is active and can be used.\n * `archived`: The price is archived and cannot be used anymore. It will be not shown in any lists until explicitly requested.","default":"active","example":"active","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.status","typeLabel":"any"},"applyTrial":{"description":"If this is set to true, the price plan can be applied on a trial. If the product is in trial, and this is false, the price will be charged on subscription start, otherwise after trial.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.applyTrial","typeLabel":"boolean"},"payInAdvance":{"oneOf":[{"description":"If this is set to true, the price will be charged in advance. If this is false, the price will be charged at the end of the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.payInAdvance.oneOf.0","typeLabel":"boolean"},{"description":"If this is set to true, the price will be charged in advance. If this is false, the price will be charged at the end of the billing interval.","default":true,"example":true,"type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.payInAdvance.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.payInAdvance","typeLabel":"boolean | null"},"proRata":{"description":"If this is set to true, the price will be charged prorated when a partial billing interval is billed. This applies to measurements of type \"recurring\" or non-one-time billing intervals. For other measurements this parameter will be ignored.","type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.proRata","typeLabel":"boolean"},"freeUnits":{"oneOf":[{"type":"number","description":"The amount of free units. If null, no free units are available. Free units will be applied before passed to the price calculation and are available prorated.\nIf the customer does not uses the free units during a billing period, they are not carried over to the next billing period.\nIf the customer cancels the subscription before ending the billing period, the free units are only available prorated for the remaining billing period.\n\n\n**Example**: You offer 2400 free units for 12 months and your price has a billing interval for 1 month. The customer cancels after 6 months. Only 1200 free units are available.\n\n**A price plan for a recurring product cannot have free units. Use a metered product instead.**\n\n**A price plan related to a product of type charge cannot have free units.**","example":1,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits.oneOf.0","typeLabel":"number"},{"type":"null","description":"The amount of free units. If null, no free units are available. Free units will be applied before passed to the price calculation and are available prorated.\nIf the customer does not uses the free units during a billing period, they are not carried over to the next billing period.\nIf the customer cancels the subscription before ending the billing period, the free units are only available prorated for the remaining billing period.\n\n\n**Example**: You offer 2400 free units for 12 months and your price has a billing interval for 1 month. The customer cancels after 6 months. Only 1200 free units are available.\n\n**A price plan for a recurring product cannot have free units. Use a metered product instead.**\n\n**A price plan related to a product of type charge cannot have free units.**","example":1,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits.oneOf.1","typeLabel":"null"},{"type":"null","description":"The amount of free units. If null, no free units are available. Free units will be applied before passed to the price calculation and are available prorated.\nIf the customer does not uses the free units during a billing period, they are not carried over to the next billing period.\nIf the customer cancels the subscription before ending the billing period, the free units are only available prorated for the remaining billing period.\n\n\n**Example**: You offer 2400 free units for 12 months and your price has a billing interval for 1 month. The customer cancels after 6 months. Only 1200 free units are available.\n\n**A price plan for a recurring product cannot have free units. Use a metered product instead.**\n\n**A price plan related to a product of type charge cannot have free units.**","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits.oneOf.2","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.freeUnits","typeLabel":"number · null · null"},"billingInterval":{"oneOf":[{"type":"object","description":"The billing interval of the price plan. If null, this is a one-time charge.\nBilling intervals of null cannot be prorated.","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.billingInterval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The billing interval of the price plan. If null, this is a one-time charge.\nBilling intervals of null cannot be prorated.","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.billingInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.billingInterval","typeLabel":"object | null"},"showPricePerInterval":{"oneOf":[{"type":"object","description":"Display the billed price per interval in customerfront or invoices. If null, the price will be shown per billing interval.\nCurrently only available for billing intervals of months, years. Currently only allowed to show price per month (1M)","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.showPricePerInterval.oneOf.0","typeLabel":"object"},{"type":"null","description":"Display the billed price per interval in customerfront or invoices. If null, the price will be shown per billing interval.\nCurrently only available for billing intervals of months, years. Currently only allowed to show price per month (1M)","example":"1M","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.showPricePerInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.showPricePerInterval","typeLabel":"object | null"},"custom":{"readOnly":true,"description":"If this price plan is a custom price plan. A price plan is custom if it is defined specific for a plan addon, plan charge, customer or sales channel.","example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.custom","typeLabel":"boolean"},"charge":{"type":"object","description":"The charge related to this price plan.","deprecated":false,"properties":{"id":{"readOnly":true,"description":"The unique identifier of the plan product.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.id","typeLabel":"string"},"product":{"type":"object","description":"The product this addon belongs to.","deprecated":false,"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product.customFields","typeLabel":"object | null"}},"required":["type","measurement","taxGroup"],"readOnly":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.product","typeLabel":"object"},"onEvent":{"description":"The event on which the charge should be applied. Defaults to ON_SUBSCRIPTION_START.\n\nPossible values:\n * `on_subscription_start`: The charge is applied when the subscription starts.\n * `on_subscription_end`: The charge is applied when the subscription ends.\n * `on_subscription_trial_start`: The charge is applied when the subscription trial starts.\n * `on_subscription_trial_end`: The charge is applied when the subscription trial ends.\n * `on_checkout_payment`: The charge is applied when the checkout payment is made.","default":"on_subscription_start","example":"on_subscription_start","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.onEvent","typeLabel":"any"},"onceOnEvent":{"description":"Whether the charge should only be applied once on the event. Defaults to false.","type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge.onceOnEvent","typeLabel":"boolean"}},"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.charge","typeLabel":"object"},"productSetOption":{"type":"object","description":"The product set option related to this price plan.","deprecated":false,"properties":{"id":{"readOnly":true,"description":"The unique identifier of the product set option.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.id","typeLabel":"string"},"product":{"type":"object","description":"The product this option belongs to.","deprecated":false,"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product.customFields","typeLabel":"object | null"}},"required":["type","measurement","taxGroup"],"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption.product","typeLabel":"object"}},"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.productSetOption","typeLabel":"object"},"inUse":{"readOnly":true,"description":"If this price plan is in use.","example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0.inUse","typeLabel":"boolean"}},"uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.0","typeLabel":"object"},{"type":"null","description":"The price plan of the item, which defines the price and billing interval.","uniqueKey":"\\items.items.[INDEX].pricePlan.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].pricePlan","typeLabel":"object | null"},"status":{"readOnly":true,"description":"The status of the item.\n\nPossible values:\n * `active`: The item is active and will be billed.\n * `canceled`: The item is canceled and will be billed until the end of the contract.\n * `pending`: The item is pending and will be billed after the contract start.\n * `terminated`: The item is terminated and will not be billed.","example":"active","enum":["active","canceled","pending","terminated"],"type":"string","uniqueKey":"\\items.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"product":{"oneOf":[{"type":"object","description":"The product of the item.","required":["type","measurement","taxGroup"],"properties":{"type":{"description":"The type of the product.\n - `product`: recurring billed product\n - `charge`: one-time billing\n - `plan`: plan specific product, which cannot be used as a normal product. Will be filtered out in any product lists.\n","type":"string","enum":["product","charge","plan"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.type","typeLabel":"enum\u003cstring>"},"measurement":{"type":"object","description":"The measurement that is used for the price plan. This could define the quantity or a metered usage.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.measurement","typeLabel":"object"},"taxGroup":{"type":"object","description":"The tax group that is used for the product.","deprecated":false,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.taxGroup","typeLabel":"object"},"id":{"readOnly":true,"description":"The unique identifier of the product.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the product based on the current tenant language. This will be displayed on customer communication.","example":"Basic","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.description.oneOf.0","typeLabel":"string"},{"description":"The description of the product based on the current tenant language.","example":"For small teams.","type":"null","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.description","typeLabel":"string | null"},"internalName":{"oneOf":[{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.internalName.oneOf.0","typeLabel":"string"},{"description":"Internal name of the product, to differentiate between products with the same name. This will shown in web-app lists, selections and reports.","example":"Basic (Weekly)","type":"null","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.internalName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.internalName","typeLabel":"string | null"},"invoiceVisibility":{"description":"Defines when the product should be displayed in the invoice.\n - `always`: The product is always displayed in the invoice.\n - `only_if_charged`: The product is only displayed in the invoice if it is charged.\n","type":"string","enum":["always","only_if_charged"],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.invoiceVisibility","typeLabel":"enum\u003cstring>"},"costCentre":{"oneOf":[{"type":"object","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre.oneOf.0","typeLabel":"object"},{"type":"null","description":"The cost centre is used for accounting exports.","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre","typeLabel":"object | null"},"costCentre2":{"oneOf":[{"type":"object","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre2.oneOf.0","typeLabel":"object"},{"type":"null","description":"The KOST2 cost centre is used for accounting exports (DATEV axis KOST2).","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre2.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.costCentre2","typeLabel":"object | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product.oneOf.0.customFields","typeLabel":"object | null"}},"uniqueKey":"\\items.items.[INDEX].product.oneOf.0","typeLabel":"object"},{"type":"null","description":"The product of the item.","uniqueKey":"\\items.items.[INDEX].product.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product","typeLabel":"object | null"},"appliedDiscounts":{"readOnly":true,"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].id","typeLabel":"string"},"coupon":{"oneOf":[{"type":"object","description":"","required":["code","name","type","frequency"],"properties":{"code":{"description":"The code that can be used to apply this coupon or to use it with the api.","example":"10OFF","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.code","typeLabel":"string"},"name":{"description":"The name of this coupon, which will be displayed to the user in the checkout process, customer front, etc.","example":"10% off","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.name","typeLabel":"string"},"type":{"description":"The type of this coupon.\n\nPossible values:\n * `percentage`: A percentage will be taken off the total plan amount.\n * `fixed_amount`: A fixed amount will be taken off the total plan amount. It will never go below 0.","example":"percentage","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.type","typeLabel":"any"},"frequency":{"description":"The frequency at which a coupon should be applied.\n\nPossible values:\n * `once`: The coupon will be applied once for the first billing period.\n * `limited`: The coupon will be applied for a limited number of billing periods.\n * `lifetime`: The coupon will be applied forever.","example":"limited","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequency","typeLabel":"any"},"id":{"readOnly":true,"description":"The id of this coupon.","type":"string","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.id","typeLabel":"string"},"percentage":{"oneOf":[{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.percentage.oneOf.0","typeLabel":"integer"},{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.percentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.percentage","typeLabel":"integer | null"},"fixedAmount":{"type":"object","description":"The fixed amount this coupon should apply. **Required for type `fixed_amount`.**","deprecated":false,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.fixedAmount","typeLabel":"object"},"frequencyInterval":{"oneOf":[{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequencyInterval.oneOf.0","typeLabel":"integer"},{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequencyInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.frequencyInterval","typeLabel":"integer | null"},"isEnabled":{"description":"Whether this coupon is enabled or not.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.isEnabled","typeLabel":"boolean"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].coupon","typeLabel":"object | null"},"status":{"readOnly":true,"description":"The status of this applied discount.\n\nPossible values:\n * `active`: The discount is active and will be applied to the subscription item.\n * `completed`: The discount is not active anymore, but it was applied to the subscription item.\n * `removed`: The discount was removed from the subscription item.","example":"active","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].status","typeLabel":"any"},"discount":{"type":"object","description":"The discount that is applied to the subscription item.","deprecated":false,"required":["name","type","frequency"],"properties":{"name":{"description":"The name of this coupon, which will be displayed to the user in the checkout process, customer front, etc.","example":"10% off","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.name","typeLabel":"string"},"type":{"description":"The type of this coupon.\n\nPossible values:\n * `percentage`: A percentage will be taken off the total plan amount.\n * `fixed_amount`: A fixed amount will be taken off the total plan amount. It will never go below 0.","example":"percentage","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.type","typeLabel":"any"},"frequency":{"description":"The frequency at which a coupon should be applied.\n\nPossible values:\n * `once`: The coupon will be applied once for the first billing period.\n * `limited`: The coupon will be applied for a limited number of billing periods.\n * `lifetime`: The coupon will be applied forever.","example":"limited","isRequired":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequency","typeLabel":"any"},"percentage":{"oneOf":[{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.percentage.oneOf.0","typeLabel":"integer"},{"minimum":0,"maximum":100,"description":"The percentage this coupon should apply. **Required for type `percentage`.**","example":10,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.percentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.percentage","typeLabel":"integer | null"},"fixedAmount":{"type":"object","description":"The fixed amount this coupon should apply. **Required for type `fixed_amount`.**","deprecated":false,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.fixedAmount","typeLabel":"object"},"frequencyInterval":{"oneOf":[{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequencyInterval.oneOf.0","typeLabel":"integer"},{"description":"The number of billing periods the coupon will be applied for. **Required for frequency `limited`.**","example":3,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequencyInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount.frequencyInterval","typeLabel":"integer | null"}},"readOnly":true,"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].discount","typeLabel":"object"},"appliedIntervals":{"oneOf":[{"readOnly":true,"description":"The number of intervals this discount was applied to the subscription item.","example":1,"type":"integer","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].appliedIntervals.oneOf.0","typeLabel":"integer"},{"readOnly":true,"description":"The number of intervals this discount was applied to the subscription item.","example":1,"type":"null","uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].appliedIntervals.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX].appliedIntervals","typeLabel":"integer | null"}},"uniqueKey":"\\items.items.[INDEX].appliedDiscounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].appliedDiscounts","typeLabel":"object[]"},"periods":{"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].id","typeLabel":"string"},"contractPeriodCount":{"readOnly":true,"type":"integer","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].contractPeriodCount","typeLabel":"integer"},"contractPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].contractPeriod","typeLabel":"object"},"cancellationPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].cancellationPeriod","typeLabel":"object"},"createdAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].periods.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].periods","typeLabel":"object[]"},"activatedAt":{"oneOf":[{"readOnly":true,"description":"The date the subscription item was activated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].activatedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the subscription item was activated.","example":"2021-01-01T00:00:00+00:00","type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].activatedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].activatedAt","typeLabel":"string\u003cdate-time> | null"},"type":{"readOnly":true,"description":"The type of the item.\n\nPossible values:\n * `option`: The item is an product set option.\n * `charge`: The item is a charge.\n * `plan-product`: The item is a plan product.\n * `product`: The item is a product, and not created from a plan.","example":"addon","enum":["addon","charge","plan-product","product"],"type":"string","uniqueKey":"\\items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"currentMeasurementValue":{"oneOf":[{"type":"object","description":"The current measurement value of the item.","properties":{"id":{"readOnly":true,"example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.id","typeLabel":"string"},"measurement":{"type":"object","description":"The measurement of the item.","deprecated":false,"properties":{"unit":{"oneOf":[{"type":"object","description":"The unit of the measurement.","properties":{"id":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.id","typeLabel":"object"},"name":{"example":"Stück","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.name","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.0","typeLabel":"object"},{"type":"null","description":"The unit of the measurement.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.unit","typeLabel":"object | null"},"code":{"minLength":1,"maxLength":255,"description":"A unique code which can be used to identify the measurement.","example":"users","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.code","typeLabel":"string"},"id":{"readOnly":true,"description":"A unique identifier for the measurement.","example":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.id","typeLabel":"string"},"description":{"oneOf":[{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"string","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.description.oneOf.0","typeLabel":"string"},{"maxLength":255,"description":"A description of the measurement, which is shown in the summary of the usage data in the invoice.","example":"The number of users.","type":"null","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.description","typeLabel":"string | null"},"aggregationType":{"description":"The aggregation type of the measurement. Describes how the quantity is calculated. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `count`: The number of sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `count_unique`: The number of unique sent measurements in the billing interval, identified by the id given on event creation.\n * `max`: The maximum value of all sent measurements in the billing interval. Metered usage, which resets to 0 after each billing interval.\n * `sum`: The sum of all sent measurements in the billing interval.\n * `last_value`: The last sent measurement.\n * `average`: The average of all sent measurements in the billing interval.","default":"last_value","example":"sum","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.aggregationType","typeLabel":"any"},"fairBilling":{"description":"If set to false, the measurement will be billed for the whole billing interval, even if the quantity changes, or the item is cancelled / terminated during the billing interval.","default":true,"example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.fairBilling","typeLabel":"boolean"},"type":{"description":"The type of the measurement. This cannot be changed after creation, otherwise it would change the whole calculation for existing subscriptions.\n\nPossible values:\n * `instant_metered`: The measurement value is reset to 0 after each push. The measurement gets billed immediately and an invoice is created. The aggregation type must be \"last_value\".\n * `metered`: The measurement value is reset to 0 after each billing interval.\n * `recurring`: The measurement value is not reset to 0 after each billing interval and the last value is used for all following billing intervals. The aggregation type must be \"last_value\".","default":"recurring","example":"recurring","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement.type","typeLabel":"any"}},"required":["unit","code"],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measurement","typeLabel":"object"},"quantity":{"oneOf":[{"type":"number","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.quantity.oneOf.0","typeLabel":"number"},{"type":"null","description":"The tracked and measured quantity of the item.","example":1,"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.quantity","typeLabel":"number | null"},"measuredAt":{"description":"The date and time when the measurement was taken.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0.measuredAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.0","typeLabel":"object"},{"type":"null","description":"The current measurement value of the item.","uniqueKey":"\\items.items.[INDEX].currentMeasurementValue.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].currentMeasurementValue","typeLabel":"object | null"},"inheritedPeriod":{"readOnly":true,"description":"Is the period inherited from the subscription?","example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].inheritedPeriod","typeLabel":"boolean"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items","typeLabel":"object[]"},"billingGroup":{"oneOf":[{"type":"object","description":"The billing group defines the billing cycle of the subscription.","required":["name","type"],"properties":{"name":{"maxLength":255,"description":"The name of the billing group.","example":"Billing of payments at the end of the month","type":"string","isRequired":true,"uniqueKey":"billingGroup.oneOf.0.name","typeLabel":"string"},"type":{"readOnly":true,"description":"The type of the billing group.\n\nPossible values:\n * `start_of_month`: The billing group will be charged on the first day of the month.\n * `end_of_month`: The billing group will be charged on the last day of the month.\n * `start_of_year`: The billing group will be charged on the first day of the year.\n * `end_of_year`: The billing group will be charged on the last day of the year.\n * `custom`: The billing group will be charged on a custom day of the month.","example":"end_of_month","isRequired":true,"uniqueKey":"billingGroup.oneOf.0.type","typeLabel":"any"},"id":{"readOnly":true,"example":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","type":"string","uniqueKey":"billingGroup.oneOf.0.id","typeLabel":"string"},"customDay":{"oneOf":[{"exclusiveMinimum":0,"maximum":31,"readOnly":true,"description":"The custom day of the billing group, only used when type is \"custom\".","example":31,"type":"integer","uniqueKey":"billingGroup.oneOf.0.customDay.oneOf.0","typeLabel":"integer"},{"exclusiveMinimum":0,"maximum":31,"readOnly":true,"description":"The custom day of the billing group, only used when type is \"custom\".","example":31,"type":"null","uniqueKey":"billingGroup.oneOf.0.customDay.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingGroup.oneOf.0.customDay","typeLabel":"integer | null"},"customMonth":{"oneOf":[{"exclusiveMinimum":0,"maximum":12,"readOnly":true,"description":"The custom month of the billing group, only used when type is \"custom\".","example":12,"type":"integer","uniqueKey":"billingGroup.oneOf.0.customMonth.oneOf.0","typeLabel":"integer"},{"exclusiveMinimum":0,"maximum":12,"readOnly":true,"description":"The custom month of the billing group, only used when type is \"custom\".","example":12,"type":"null","uniqueKey":"billingGroup.oneOf.0.customMonth.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingGroup.oneOf.0.customMonth","typeLabel":"integer | null"}},"uniqueKey":"billingGroup.oneOf.0","typeLabel":"object"},{"type":"null","description":"The billing group defines the billing cycle of the subscription.","uniqueKey":"billingGroup.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingGroup","typeLabel":"object | null"},"periods":{"type":"array","items":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"periods.items.[INDEX].id","typeLabel":"string"},"contractPeriodCount":{"readOnly":true,"type":"integer","uniqueKey":"periods.items.[INDEX].contractPeriodCount","typeLabel":"integer"},"contractPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"periods.items.[INDEX].contractPeriod","typeLabel":"object"},"cancellationPeriod":{"type":"object","description":"","deprecated":false,"readOnly":true,"uniqueKey":"periods.items.[INDEX].cancellationPeriod","typeLabel":"object"},"createdAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"periods.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"periods.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"periods.items.[INDEX]","typeLabel":"object"},"uniqueKey":"periods","typeLabel":"object[]"},"status":{"readOnly":true,"description":"The status of the subscription.\n\nPossible values:\n * `draft`: The subscription is in draft mode and not active yet.\n * `active`: The subscription is active and will be billed.\n * `paused`: The subscription is paused and will not be billed.\n * `cancelled`: The subscription is cancelled and will not be billed anymore.\n * `terminated`: The subscription is terminated and will not be billed anymore.\n * `offer`: The subscription is an offer and waiting for acceptance.","example":"active","uniqueKey":"status","typeLabel":"any"},"activatedAt":{"oneOf":[{"readOnly":true,"description":"The date the subscription was activated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"activatedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the subscription was activated.","example":"2021-01-01T00:00:00+00:00","type":"null","format":"date-time","uniqueKey":"activatedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"activatedAt","typeLabel":"string\u003cdate-time> | null"},"poNumber":{"oneOf":[{"description":"The po number of the subscription.","example":"PO-00000001","type":"string","uniqueKey":"poNumber.oneOf.0","typeLabel":"string"},{"description":"The po number of the subscription.","example":"PO-00000001","type":"null","uniqueKey":"poNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"poNumber","typeLabel":"string | null"},"contractDetails":{"type":"object","description":"The contract details of the subscription.","deprecated":false,"properties":{"contractStart":{"description":"The start of the contract.","type":"string","format":"date-time","uniqueKey":"contractDetails.contractStart","typeLabel":"string\u003cdate-time>"},"contractEnd":{"oneOf":[{"description":"The end of the contract.","type":"string","format":"date-time","uniqueKey":"contractDetails.contractEnd.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"The end of the contract.","type":"null","format":"date-time","uniqueKey":"contractDetails.contractEnd.oneOf.1","typeLabel":"null"}],"uniqueKey":"contractDetails.contractEnd","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"contractDetails","typeLabel":"object"},"trialEndsOn":{"oneOf":[{"readOnly":true,"description":"The date the trial period ends.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"trialEndsOn.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the trial period ends.","example":"2021-01-01T00:00:00+00:00","type":"null","format":"date-time","uniqueKey":"trialEndsOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"trialEndsOn","typeLabel":"string\u003cdate-time> | null"},"customFields":{"oneOf":[{"additionalProperties":{"type":"string","uniqueKey":"customFields.oneOf.0.additionalProperties","typeLabel":"string"},"type":"object","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"customFields.oneOf.0","typeLabel":"object"},{"additionalProperties":{"type":"string","uniqueKey":"customFields.oneOf.1.additionalProperties","typeLabel":"string"},"type":"null","example":{"field1":"value1","field2":"value2"},"description":"Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under \\\"/custom-fields\\\" in the API documentation. The input is validated against the configuration. For more details see [Custom Fields Guide](/guide/tenant/custom-fields)","uniqueKey":"customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"customFields","typeLabel":"object | null"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"defaultPaymentMethod":{"readOnly":true,"description":"The payment method is null, we use the default payment method of the customer.","type":"boolean","uniqueKey":"defaultPaymentMethod","typeLabel":"boolean"},"defaultInvoiceAddress":{"readOnly":true,"description":"The invoice address is null, we use the default invoice address of the customer.","type":"boolean","uniqueKey":"defaultInvoiceAddress","typeLabel":"boolean"},"nextBillingDate":{"oneOf":[{"readOnly":true,"description":"The next billing date of the subscription.","type":"string","format":"date-time","uniqueKey":"nextBillingDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The next billing date of the subscription.","type":"null","format":"date-time","uniqueKey":"nextBillingDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextBillingDate","typeLabel":"string\u003cdate-time> | null"},"lastBillingAt":{"oneOf":[{"readOnly":true,"description":"The last billing date of the subscription.","type":"string","format":"date-time","uniqueKey":"lastBillingAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The last billing date of the subscription.","type":"null","format":"date-time","uniqueKey":"lastBillingAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"lastBillingAt","typeLabel":"string\u003cdate-time> | null"},"cancellationDate":{"oneOf":[{"readOnly":true,"description":"The date the subscription will be cancelled.","type":"string","format":"date-time","uniqueKey":"cancellationDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date the subscription will be cancelled.","type":"null","format":"date-time","uniqueKey":"cancellationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancellationDate","typeLabel":"string\u003cdate-time> | null"},"cancelledAt":{"oneOf":[{"readOnly":true,"description":"The date when the subscription was cancelled.","type":"string","format":"date-time","uniqueKey":"cancelledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"readOnly":true,"description":"The date when the subscription was cancelled.","type":"null","format":"date-time","uniqueKey":"cancelledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancelledAt","typeLabel":"string\u003cdate-time> | null"},"cancellationReason":{"oneOf":[{"type":"object","description":"The reason why the subscription was cancelled.","required":["code","name"],"properties":{"code":{"maxLength":255,"pattern":"^([a-zA-Z0-9_]+)$","description":"The code of the cancellation reason. This code is used for easier reference and should be unique within the tenant.","type":"string","isRequired":true,"uniqueKey":"cancellationReason.oneOf.0.code","typeLabel":"string"},"name":{"maxLength":255,"description":"The name of the cancellation reason. This is a human readable name for the cancellation reason.","type":"string","isRequired":true,"uniqueKey":"cancellationReason.oneOf.0.name","typeLabel":"string"},"id":{"readOnly":true,"type":"string","uniqueKey":"cancellationReason.oneOf.0.id","typeLabel":"string"},"createdAt":{"readOnly":true,"description":"The date and time when the resource was created.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"cancellationReason.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"description":"The date and time when the resource was last updated.","example":"2021-01-01T00:00:00+00:00","type":"string","format":"date-time","uniqueKey":"cancellationReason.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"cancellationReason.oneOf.0","typeLabel":"object"},{"type":"null","description":"The reason why the subscription was cancelled.","uniqueKey":"cancellationReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancellationReason","typeLabel":"object | null"},"isCancellationPending":{"readOnly":true,"description":"Indicates if the subscription is pending for cancellation. If true, the subscription will be cancelled in the future and the cancellation could be revoked.","type":"boolean","uniqueKey":"isCancellationPending","typeLabel":"boolean"},"nextPossibleCancellationDate":{"oneOf":[{"readOnly":true,"type":"array","items":{"type":"string","uniqueKey":"nextPossibleCancellationDate.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"nextPossibleCancellationDate.oneOf.0","typeLabel":"string[]"},{"readOnly":true,"type":"null","items":{"type":"string"},"uniqueKey":"nextPossibleCancellationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextPossibleCancellationDate","typeLabel":"string[] | null"},"partner":{"oneOf":[{"type":"object","description":"The partner of the customer.","properties":{"id":{"description":"The ID of the partner","example":"ad8f7e7d-3b3b-4b3b-8b3b-3b3b3b3b3b3b","type":"string","uniqueKey":"partner.oneOf.0.id","typeLabel":"string"},"name":{"description":"The name of the partner","example":"John Doe","type":"string","uniqueKey":"partner.oneOf.0.name","typeLabel":"string"},"number":{"description":"The customer number of the partner","example":"123456","type":"string","uniqueKey":"partner.oneOf.0.number","typeLabel":"string"},"email":{"oneOf":[{"description":"The email address of the partner","example":"partner@example.com","type":"string","uniqueKey":"partner.oneOf.0.email.oneOf.0","typeLabel":"string"},{"description":"The email address of the partner","example":"partner@example.com","type":"null","uniqueKey":"partner.oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"partner.oneOf.0.email","typeLabel":"string | null"}},"uniqueKey":"partner.oneOf.0","typeLabel":"object"},{"type":"null","description":"The partner of the customer.","uniqueKey":"partner.oneOf.1","typeLabel":"null"}],"uniqueKey":"partner","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","externalId":"\u003cstring>","paymentMethod":{"id":"c1a2b3c4-d5e6-4f7a-8b9b-0c1d2e3f4a5b","gatewayName":"wallet","type":"sepa_debit","default":true,"status":"active","enabled":true,"name":"Visa (4242)","creationDate":"2024-01-15T10:30:00+00:00","expirationDate":"2026-12-31T23:59:59+00:00","card":{"brand":"Visa","last4":"4242","expMonth":12,"expYear":2022,"cardHolder":"Max Mustermann"},"sepaDebit":{"iban":"DE8937*********3232","bic":"COBADEFFXXX","mandateReference":"MNDT-2021-123456","signingDate":"2021-01-01T00:00:00+00:00"},"paypal":{"email":"max@mustermann.de","billingAgreementId":"I-1J5gqz2eZvKYlo2C2X2X2X2X"}},"invoiceAddress":{"id":"\u003cstring>","vatId":"DE123456789","type":"TYPE_DEFAULT","default":"true","status":"active","city":"Berlin","zip":"12345","street":"Musterstraße","houseNumber":"1a","countryCode":"DE","companyName":"ACME Inc.","salutation":"Herr","addition":"c/o John Doe","costCentre":"123456789","firstName":"John","lastName":"Doe"},"number":"S-00000001","customer":{"id":"00000000-0000-0000-0000-000000000000","customerNumber":"CUSTOMER-000","timeZone":"Europe/Berlin","firstName":"John","lastName":"Doe","currencyCode":"EUR","companyName":"Acme Inc.","datevId":"123456789","status":"STATUS_ACTIVE"},"plan":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","family":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"basic-m2023","originProduct":{"type":"product","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"taxGroup":{},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","name":"Basic","description":"For small teams.","internalName":"Basic (Weekly)","invoiceVisibility":"always","costCentre":{},"costCentre2":{},"customFields":{"field1":"value1","field2":"value2"}},"allowCheckout":true,"status":"draft","changeBehaviour":"upgradeable_and_downgradeable","changeApplyBehaviour":"end_of_period","createdAt":"2023-11-07T05:31:56Z","name":"\u003cstring>","description":"\u003cstring>"},"name":"Fitness M","items":[{"id":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","parent":"\u003cunknown>","plan":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","family":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"basic-m2023","originProduct":{"type":"product","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"taxGroup":{},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","name":"Basic","description":"For small teams.","internalName":"Basic (Weekly)","invoiceVisibility":"always","costCentre":{},"costCentre2":{},"customFields":{"field1":"value1","field2":"value2"}},"allowCheckout":true,"status":"draft","changeBehaviour":"upgradeable_and_downgradeable","changeApplyBehaviour":"end_of_period","createdAt":"2023-11-07T05:31:56Z","name":"\u003cstring>","description":"\u003cstring>"},"measurementValues":[{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"quantity":1,"measuredAt":"2021-01-01T00:00:00+00:00"}],"billing":{"lastBilledAt":"2023-11-07T05:31:56Z","lastBilledTo":"2023-11-07T05:31:56Z","lastBilledFrom":"2023-11-07T05:31:56Z","nextBillingAt":"2023-11-07T05:31:56Z","billingInterval":"1M"},"name":"Fitness M","description":"Everything included","furtherInformation":"Additional agreements: The contract includes a free drink flatrate.","pricePlan":{"type":"flat_fee","currencyCode":"EUR","price":{"amount":123,"createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00","tenantId":"\u003cstring>"},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","internalName":"Exclusive pricing for partners.","status":"active","applyTrial":true,"payInAdvance":true,"proRata":true,"freeUnits":1,"billingInterval":"1M","showPricePerInterval":"1M","custom":true,"charge":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","productSetOption":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","inUse":true},"status":"active","product":{"type":"product","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"taxGroup":{},"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","name":"Basic","description":"For small teams.","internalName":"Basic (Weekly)","invoiceVisibility":"always","costCentre":{},"costCentre2":{},"customFields":{"field1":"value1","field2":"value2"}},"appliedDiscounts":[{"id":"\u003cstring>","coupon":{"code":"10OFF","name":"10% off","type":"percentage","frequency":"limited","id":"\u003cstring>","percentage":10,"fixedAmount":{},"frequencyInterval":3,"isEnabled":true,"createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"status":"active","discount":{"name":"10% off","type":"percentage","frequency":"limited","percentage":10,"fixedAmount":{},"frequencyInterval":3},"appliedIntervals":1}],"periods":[{"id":"\u003cstring>","contractPeriodCount":123,"contractPeriod":{},"cancellationPeriod":{},"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}],"activatedAt":"2021-01-01T00:00:00+00:00","type":"addon","currentMeasurementValue":{"id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","measurement":{"unit":{"id":{},"name":"Stück","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"code":"users","id":"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b","description":"The number of users.","aggregationType":"sum","fairBilling":true,"type":"recurring"},"quantity":1,"measuredAt":"2021-01-01T00:00:00+00:00"},"inheritedPeriod":true}],"billingGroup":{"name":"Billing of payments at the end of the month","type":"end_of_month","id":"01F9ZQZJZJQZJZJZJZJZJZJZJZ","customDay":31,"customMonth":12},"periods":[{"id":"\u003cstring>","contractPeriodCount":123,"contractPeriod":{},"cancellationPeriod":{},"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}],"status":"active","activatedAt":"2021-01-01T00:00:00+00:00","poNumber":"PO-00000001","contractDetails":{"contractStart":"2023-11-07T05:31:56Z","contractEnd":"2023-11-07T05:31:56Z"},"trialEndsOn":"2021-01-01T00:00:00+00:00","customFields":{"field1":"value1","field2":"value2"},"createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00","defaultPaymentMethod":true,"defaultInvoiceAddress":true,"nextBillingDate":"2023-11-07T05:31:56Z","lastBillingAt":"2023-11-07T05:31:56Z","cancellationDate":"2023-11-07T05:31:56Z","cancelledAt":"2023-11-07T05:31:56Z","cancellationReason":{"code":"\u003cstring>","name":"\u003cstring>","id":"\u003cstring>","createdAt":"2021-01-01T00:00:00+00:00","updatedAt":"2021-01-01T00:00:00+00:00"},"isCancellationPending":true,"nextPossibleCancellationDate":["\u003cstring>"],"partner":{"id":"ad8f7e7d-3b3b-4b3b-8b3b-3b3b3b3b3b3b","name":"John Doe","number":"123456","email":"partner@example.com"}}}},"exampleType":"generated"}},"links":{},"exampleType":"generated"},"e6aaf7e9-afbd-483f-9f8c-90fb2e7ae3db":{"description":"Invalid input","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"f65f273b-104b-4c49-81de-660289cc5fd0":{"description":"Resource not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"837ad042-9a47-43d3-8778-c942ddacafa2":{"description":"Unprocessable entity","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"15c88142-2edd-42ff-a4b1-5181dffa7155":{"JWT":{"type":"http","scheme":"bearer","scopes":["subscription:write"]}}},"servers":{"987b4dcd-9d5f-4357-a99f-0dbd47556601":{"url":"https://coreapi.io","description":"Production"},"a53b6fbc-bcf4-4920-9f87-1223f86cceba":{"url":"https://preview.coreapi.io","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":["subscription:write"]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"JWT","name":"Authorization"}],"title":"JWT"}]},"originalFileLocation":"assets/openapi.json"},"subdomain":"fynnsubscriptionbilling","siteName":"Fynn Docs","title":"Update invoice address - Fynn Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"de":{"href":"/api-reference/subscription/update-invoice-address","matchLevel":0},"en":{"href":"/en/introduction","matchLevel":4}}},"lastModified":"2026-01-28T23:39:16.490Z","originalFileLocation":"api-reference/subscription/update-invoice-address.mdx","locale":"de"},"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=\"Update the invoice address of the subscription. Required permissions: subscription:write\">\u003cmeta data-mint-head name=\"application-name\" content=\"Fynn Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update invoice address - Fynn Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update the invoice address of the subscription. Required permissions: subscription:write\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fynn Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fynnsubscriptionbilling.mintlify.app/_mintlify/api/og/v2?division=Subscription\u0026amp;title=Update+invoice+address\u0026amp;description=Update+the+invoice+address+of+the+subscription.%0A%0A%3Csup%3ERequired+permissions%3A+%60subscription%3Awrite%60%3C%2Fsup%3E\u0026amp;theme=4b76c1a49202070b198dd6e7\u0026amp;signature=e5b743de421f2de7ca489ab59aef082773fd16703a1706689b430891a5da1575\">\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=\"Update invoice address - Fynn Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update the invoice address of the subscription. Required permissions: subscription:write\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fynnsubscriptionbilling.mintlify.app/_mintlify/api/og/v2?division=Subscription\u0026amp;title=Update+invoice+address\u0026amp;description=Update+the+invoice+address+of+the+subscription.%0A%0A%3Csup%3ERequired+permissions%3A+%60subscription%3Awrite%60%3C%2Fsup%3E\u0026amp;theme=4b76c1a49202070b198dd6e7\u0026amp;signature=e5b743de421f2de7ca489ab59aef082773fd16703a1706689b430891a5da1575\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fynn Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/subscription/update-invoice-address.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fynn.eu/#organization\",\"name\":\"Fynn Docs\",\"url\":\"https://docs.fynn.eu\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fynnsubscriptionbilling/kPbBeWVEZfmEic9q/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=kPbBeWVEZfmEic9q\u0026q=85\u0026s=83e4b30a53d77c3809e0f22afa29335d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fynn.eu#website\",\"name\":\"Fynn Docs\",\"url\":\"https://docs.fynn.eu\",\"publisher\":{\"@id\":\"https://docs.fynn.eu/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address#webpage\",\"url\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address\",\"name\":\"Update invoice address\",\"description\":\"Update the invoice address of the subscription. Required permissions: subscription:write\",\"dateModified\":\"2026-01-28T23:39:16.490Z\",\"isPartOf\":{\"@id\":\"https://docs.fynn.eu#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Subscription\",\"item\":\"https://docs.fynn.eu/api-reference/subscription/get-all-subscriptions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update invoice address\",\"item\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address#apireference\",\"headline\":\"Update invoice address\",\"name\":\"Update invoice address\",\"description\":\"Update the invoice address of the subscription. Required permissions: subscription:write\",\"url\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fynn.eu/api-reference/subscription/update-invoice-address#webpage\"},\"dateModified\":\"2026-01-28T23:39:16.490Z\",\"publisher\":{\"@id\":\"https://docs.fynn.eu/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fynn.eu#website\"}}]}\u003c/script>","siteName":"Fynn Docs","nav":{"global":null,"languages":[{"language":"de","default":true,"tabs":[{"tab":"Dokumentation","pages":[{"title":"Dokumentation","href":"/introduction"}]},{"tab":"Integrationen","pages":[{"title":"Integrationen","href":"/integrations/overview"}]},{"tab":"API Referenz","groups":[{"group":"API documentation","pages":[{"title":"Getting started","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"group":"Guides","pages":[{"title":"Manage payment methods on your own payment page","href":"/api-reference/guides/add-payment-method"},{"title":"Collect Usage Data","href":"/api-reference/guides/collect-usage-data"},{"title":"Wallet Top-Up","href":"/api-reference/guides/wallet-top-up"},{"title":"Wallet Payout","href":"/api-reference/guides/wallet-payout"},{"title":"Enable manual invoice checks","href":"/api-reference/guides/enable-manual-invoice-check"},{"title":"Implement Self-Service Upgrades","sidebarTitle":"Upgrades \u0026 Downgrades","href":"/api-reference/guides/implement-upgrades"}]},{"group":"Migrations","pages":[{"title":"Migration: Measurements → Nutzungsmetriken","sidebarTitle":"Measurements Deprecation","href":"/api-reference/migrations/measurements-deprecation"}]},{"group":"Usage Events","pages":[{"title":"Usage Events API","href":"/api-reference/usage-events/overview"}]}]},{"group":"User","pages":[{"openapi":"post /auth/register","title":"Register a new user","href":"/api-reference/user/register-a-new-user"},{"openapi":"post /user/complete","title":"Complete the user registration","href":"/api-reference/user/complete-the-user-registration"},{"openapi":"get /user/accounts","title":"Get the current user's accounts","href":"/api-reference/user/get-the-current-users-accounts"},{"openapi":"post /user/default-tenant","title":"Set the default tenant of the current user","href":"/api-reference/user/set-the-default-tenant-of-the-current-user"},{"openapi":"get /user/login-activities","title":"Get all login activities","href":"/api-reference/user/get-all-login-activities"},{"openapi":"get /user/me","title":"Get the current user","href":"/api-reference/user/get-the-current-user"},{"group":"Api Tokens","pages":[{"openapi":"get /user/api-tokens","title":"Get all api tokens","href":"/api-reference/userapitoken/get-all-api-tokens"},{"openapi":"post /user/api-tokens","title":"Create api token","href":"/api-reference/userapitoken/create-api-token"},{"openapi":"delete /user/api-tokens/{id}","title":"Delete api token","href":"/api-reference/userapitoken/delete-api-token"}]}]},{"group":"Tenant","pages":[{"openapi":"post /tenants","title":"Create a new tenant","href":"/api-reference/tenant/create-a-new-tenant"},{"openapi":"get /tenants/{id}","title":"Get a tenant","href":"/api-reference/tenant/get-a-tenant"},{"openapi":"patch /tenants/{id}","title":"Update a tenant","href":"/api-reference/tenant/update-a-tenant"},{"openapi":"get /user/tenants","title":"Get the tenants of the current user","href":"/api-reference/tenant/get-the-tenants-of-the-current-user"}]},{"group":"Customer","pages":[{"openapi":"get /customers","title":"Get customers","href":"/api-reference/customer/get-customers"},{"openapi":"post /customers","title":"Create customer","href":"/api-reference/customer/create-customer"},{"openapi":"get /customers/{id}","title":"Get customer","href":"/api-reference/customer/get-customer"},{"openapi":"put /customers/{id}","title":"Update customer","href":"/api-reference/customer/update-customer"},{"openapi":"put /customers/{id}/archive","title":"Archive customer","href":"/api-reference/customer/archive-customer"},{"openapi":"delete /customers/{id}","title":"Delete customer","href":"/api-reference/customer/delete-customer"},{"openapi":"post /customers/{id}/comment","title":"Add comment","href":"/api-reference/customer/add-comment"},{"group":"Hierarchy","pages":[{"openapi":"put /customers/{customerId}/set-parent","title":"Set parent customer","href":"/api-reference/customer/set-parent-customer"},{"openapi":"put /customers/{customerId}/remove-parent","title":"Remove parent customer","href":"/api-reference/customer/remove-parent-customer"},{"openapi":"get /customers/{customerId}/children","title":"Get customer children","href":"/api-reference/customer/get-customer-children"},{"openapi":"get /customers/{customerId}/hierarchy","title":"Get customer hierarchy","href":"/api-reference/customer/get-customer-hierarchy"}]},{"group":"Address","pages":[{"openapi":"get /customers/{customerId}/addresses","title":"Get all customer addresses","href":"/api-reference/customeraddress/get-all-customer-addresses"},{"openapi":"post /customers/{customerId}/addresses","title":"Add a customer address","href":"/api-reference/customeraddress/add-a-customer-address"},{"openapi":"get /customer-addresses/{id}","title":"Get a customer address","href":"/api-reference/customeraddress/get-a-customer-address"},{"openapi":"put /customer-addresses/{id}","title":"Update a customer address","href":"/api-reference/customeraddress/update-a-customer-address"},{"openapi":"delete /customer-addresses/{id}","title":"Delete a customer address","href":"/api-reference/customeraddress/delete-a-customer-address"},{"openapi":"post /customer-addresses/{id}/default","title":"Set a customer address as default","href":"/api-reference/customeraddress/set-a-customer-address-as-default"},{"openapi":"put /customer-addresses/{id}/unset-default","title":"Unset a customer address as default","href":"/api-reference/customeraddress/unset-a-customer-address-as-default"}]},{"group":"Email","pages":[{"openapi":"get /customers/{customerId}/email-addresses","title":"Get customer email addresses","href":"/api-reference/customeremail/get-customer-email-addresses"},{"openapi":"post /customers/{customerId}/email-addresses","title":"Create customer email address","href":"/api-reference/customeremail/create-customer-email-address"},{"openapi":"get /customer-email-addresses/{id}","title":"Get customer email address","href":"/api-reference/customeremail/get-customer-email-address"},{"openapi":"patch /customer-email-addresses/{id}","title":"Update customer email address","href":"/api-reference/customeremail/update-customer-email-address"},{"openapi":"delete /customer-email-addresses/{id}","title":"Delete customer email address","href":"/api-reference/customeremail/delete-customer-email-address"},{"openapi":"post /customer-email-addresses/{id}/default","title":"Set default customer email address","href":"/api-reference/customeremail/set-default-customer-email-address"}]},{"group":"Settings","pages":[{"openapi":"get /customers/{id}/settings/{context}","title":"Get settings","href":"/api-reference/customersettings/get-settings"},{"openapi":"patch /customers/{id}/settings/{context}","title":"Update settings","href":"/api-reference/customersettings/update-settings"}]},{"group":"Authentication","pages":[{"openapi":"post /customers/{id}/authenticate","title":"Generate customer authentication","href":"/api-reference/customer/authenticate-customer"},{"openapi":"post /customers/{id}/send-login-email","title":"Send login email to customer","href":"/api-reference/customer/send-login-email"},{"openapi":"post /public/customer/request-login-link","title":"Request a login link for the customer portal","href":"/api-reference/customerotp/request-login-link"},{"openapi":"post /public/customer/request-otp","title":"Request a one time token for a customer","href":"/api-reference/customerotp/request-a-one-time-token-for-a-customer"}]}]},{"group":"Catalogue","pages":[{"group":"Unit","pages":[{"openapi":"get /units","title":"Get all units","href":"/api-reference/unit/get-all-units"},{"openapi":"post /units","title":"Create a unit","href":"/api-reference/unit/create-a-unit"},{"openapi":"get /units/{id}","title":"Get a unit","href":"/api-reference/unit/get-a-unit"},{"openapi":"put /units/{id}","title":"Update a unit","href":"/api-reference/unit/update-a-unit"}]},{"group":"Measurement","pages":[{"openapi":"get /catalogue/measurements","title":"Get all measurements.","href":"/api-reference/measurement/get-all-measurements"},{"openapi":"post /catalogue/measurements","title":"Create a measurement.","href":"/api-reference/measurement/create-a-measurement"},{"openapi":"get /catalogue/measurements/{id}","title":"Get a measurement.","href":"/api-reference/measurement/get-a-measurement"},{"openapi":"put /catalogue/measurements/{id}","title":"Update a measurement.","href":"/api-reference/measurement/update-a-measurement"},{"openapi":"delete /catalogue/measurements/{id}","title":"Delete a measurement.","href":"/api-reference/measurement/delete-a-measurement"}]},{"group":"Product","pages":[{"openapi":"get /catalogue/products","title":"Get products","href":"/api-reference/product/get-products"},{"openapi":"post /catalogue/products","title":"Create a product","href":"/api-reference/product/create-a-product"},{"openapi":"get /catalogue/products/{id}","title":"Get a product","href":"/api-reference/product/get-a-product"},{"openapi":"put /catalogue/products/{id}","title":"Update a product","href":"/api-reference/product/update-a-product"},{"openapi":"delete /catalogue/products/{id}","title":"Delete a product","href":"/api-reference/product/delete-a-product"},{"openapi":"put /catalogue/products/{id}/archive","title":"Archive a product","href":"/api-reference/product/archive-a-product"}]},{"group":"Product Family","pages":[{"openapi":"get /product-families","title":"Get a collection of product families","href":"/api-reference/productfamily/get-a-collection-of-product-families"},{"openapi":"post /product-families","title":"Create a product family","href":"/api-reference/productfamily/create-a-product-family"},{"openapi":"get /product-families/{id}","title":"Get a product family","href":"/api-reference/productfamily/get-a-product-family"},{"openapi":"put /product-families/{id}","title":"Update a product family","href":"/api-reference/productfamily/update-a-product-family"},{"openapi":"delete /product-families/{id}","title":"Delete a product family","href":"/api-reference/productfamily/delete-a-product-family"},{"openapi":"put /product-families/{id}/products","title":"Add products to a product family","href":"/api-reference/productfamily/add-products-to-a-product-family"},{"openapi":"get /product-family-tree","title":"Get a product family tree","href":"/api-reference/productfamily/get-a-product-family-tree"}]},{"group":"Product Group","pages":[{"openapi":"get /catalogue/product-groups","title":"Get product groups","href":"/api-reference/productgroup/get-product-groups"},{"openapi":"post /catalogue/product-groups","title":"Create a product group","href":"/api-reference/productgroup/create-product-group"},{"openapi":"get /catalogue/product-groups/{id}","title":"Get a product group","href":"/api-reference/productgroup/get-product-group"},{"openapi":"put /catalogue/product-groups/{id}","title":"Update a product group","href":"/api-reference/productgroup/update-product-group"},{"openapi":"delete /catalogue/product-groups/{id}","title":"Delete a product group","href":"/api-reference/productgroup/delete-product-group"},{"openapi":"put /subscription-items/{id}/product-group","title":"Enable Up- \u0026 Downgrades","sidebarTitle":"Enable Up- \u0026 Downgrades","href":"/api-reference/productgroup/assign-product-group"},{"openapi":"get /subscription-items/{id}/change-options","title":"Get change options","href":"/api-reference/productgroup/get-change-options"},{"openapi":"post /product-group-memberships/{id}/apply","title":"Change Tier","sidebarTitle":"Change Tier","href":"/api-reference/productgroup/apply-membership"}]},{"group":"Price Plan","pages":[{"openapi":"get /price-plans","title":"Get all prices.","href":"/api-reference/priceplan/get-all-prices"},{"openapi":"post /price-plans","title":"Create a new price plan.","href":"/api-reference/priceplan/create-a-new-price-plan"},{"openapi":"get /price-plans/{id}","title":"Get a price.","href":"/api-reference/priceplan/get-a-price"},{"openapi":"put /price-plans/{id}","title":"Update a price plan.","href":"/api-reference/priceplan/update-a-price-plan"},{"openapi":"put /price-plans/{id}/archive","title":"Archive a price plan.","href":"/api-reference/priceplan/archive-a-price-plan"}]},{"group":"Coupon","pages":[{"openapi":"get /coupons","title":"Get all coupons","href":"/api-reference/coupon/get-all-coupons"},{"openapi":"post /coupons","title":"Create a coupon","href":"/api-reference/coupon/create-a-coupon"},{"openapi":"get /coupons/{couponId}/redeemptions","title":"Get all redeemptions for a coupon","href":"/api-reference/coupon/get-all-redeemptions-for-a-coupon"},{"openapi":"get /coupons/{id}","title":"Get a coupon","href":"/api-reference/coupon/get-a-coupon"},{"openapi":"put /coupons/{id}","title":"Update a coupon","href":"/api-reference/coupon/update-a-coupon"},{"openapi":"delete /coupons/{id}","title":"Delete a coupon","href":"/api-reference/coupon/delete-a-coupon"},{"openapi":"put /coupons/{id}/toggle","title":"Toggle a coupon","href":"/api-reference/coupon/toggle-a-coupon"}]}]},{"group":"Subscription","pages":[{"openapi":"get /subscriptions","title":"Get all subscriptions","href":"/api-reference/subscription/get-all-subscriptions"},{"openapi":"post /subscriptions","title":"Create subscription","href":"/api-reference/subscription/create-subscription"},{"openapi":"post /subscriptions/from-plan","title":"Create subscription from plan","href":"/api-reference/subscription/create-subscription-from-plan"},{"openapi":"get /subscriptions/{id}","title":"Get subscription","href":"/api-reference/subscription/get-subscription"},{"openapi":"put /subscriptions/{id}","title":"Update subscription","href":"/api-reference/subscription/update-subscription"},{"openapi":"delete /subscriptions/{id}","title":"Delete subscription","href":"/api-reference/subscription/delete-subscription"},{"openapi":"put /subscriptions/{id}/activate","title":"Activate subscription","href":"/api-reference/subscription/activate-subscription"},{"openapi":"get /subscriptions/{id}/estimated-amount","title":"Get estimated amount","href":"/api-reference/subscription/get-estimated-amount"},{"openapi":"get /subscriptions/{id}/estimated-invoice","title":"Get estimated invoice","href":"/api-reference/subscription/get-estimated-invoice"},{"openapi":"put /subscriptions/{id}/extend-trial","title":"Extend trial","description":"Extends the trial period of the subscription.\n\n\u003csup>Required permissions: `subscription:write`\u003c/sup>","href":"/api-reference/subscription/extend-trial"},{"openapi":"put /subscriptions/{id}/invoice-address","title":"Update invoice address","href":"/api-reference/subscription/update-invoice-address"},{"openapi":"put /subscriptions/{id}/pause","title":"Pause subscription","description":"Pause the subscription. This will stop billing and the subscription will be inactive.\n\n\u003csup>Required permissions: `subscription:write`\u003c/sup>","href":"/api-reference/subscription/pause-subscription"},{"openapi":"put /subscriptions/{id}/payment-method","title":"Update payment method","href":"/api-reference/subscription/update-payment-method"},{"openapi":"post /subscriptions/{id}/products","title":"Order products","href":"/api-reference/subscription/order-products"},{"openapi":"put /subscriptions/{id}/resume","title":"Resume subscription","href":"/api-reference/subscription/resume-subscription"},{"openapi":"put /subscriptions/{id}/revoke-trial","title":"Revoke trial","href":"/api-reference/subscription/revoke-trial"},{"openapi":"put /subscriptions/{id}/cancel","title":"Cancel subscription","href":"/api-reference/subscription/cancel-subscription"},{"title":"Subscription Transition","href":"/api-reference/subscription/transition"},{"openapi":"post /subscriptions/{id}/comment","title":"Add comment","href":"/api-reference/subscription/add-comment"},{"group":"Item","pages":[{"openapi":"get /subscription-items/{id}","title":"Get a subscription item.","href":"/api-reference/subscriptionitem/get-a-subscription-item"},{"openapi":"patch /subscription-items/{id}","title":"Update a subscription item.","href":"/api-reference/subscriptionitem/update-a-subscription-item"},{"openapi":"delete /subscription-items/{id}","title":"Remove a subscription item.","href":"/api-reference/subscriptionitem/remove-a-subscription-item"},{"openapi":"get /subscription-item-applied-discounts/{id}","title":"Get a subscription item applied discount.","href":"/api-reference/subscriptionitem/get-a-subscription-item-applied-discount"},{"openapi":"get /subscription-items/{id}/estimated-amount","title":"Get estimated amount","href":"/api-reference/subscriptionitem/get-estimated-amount"}]},{"group":"Measurement","pages":[{"openapi":"post /subscription-measurements","title":"Add a subscription measurement.","href":"/api-reference/subscription-measurement/add-a-subscription-measurement"},{"openapi":"post /subscription-measurements/batch","title":"Add a batch of subscription measurement.","href":"/api-reference/subscription-measurement/add-a-batch-of-subscription-measurement"},{"openapi":"get /subscription-measurements/{id}","title":"Get a subscription measurement.","href":"/api-reference/subscription-measurement/get-a-subscription-measurement"}]},{"group":"Billing Group","pages":[{"openapi":"get /customers/{customerId}/billing-groups","title":"Get a collection of billing groups","href":"/api-reference/billinggroup/get-a-collection-of-billing-groups"},{"openapi":"post /billing-groups","title":"Create a billing group","href":"/api-reference/billinggroup/create-a-billing-group"},{"openapi":"get /billing-groups/{id}","title":"Get a billing group","href":"/api-reference/billinggroup/get-a-billing-group"}]}]},{"group":"Invoice","pages":[{"openapi":"get /invoices","title":"Get invoices","href":"/api-reference/invoice/get-invoices"},{"openapi":"post /invoices","title":"Create draft invoice","href":"/api-reference/invoice/create-draft-invoice"},{"openapi":"get /invoices/{id}","title":"Get invoice","href":"/api-reference/invoice/get-invoice"},{"openapi":"put /invoices/{id}","title":"Update draft invoice","href":"/api-reference/invoice/update-draft-invoice"},{"openapi":"delete /invoices/{id}","title":"Delete invoice","href":"/api-reference/invoice/delete-invoice"},{"openapi":"post /invoices/{id}/finalize","title":"Finalize invoice","href":"/api-reference/invoice/finalize-invoice"},{"openapi":"post /invoices/{id}/pdf","title":"Upload custom invoice PDF","href":"/api-reference/invoice/upload-invoice-pdf"},{"openapi":"post /invoices/{id}/cancel","title":"Cancel invoice","href":"/api-reference/invoice/cancel-invoice"},{"openapi":"post /invoices/{id}/credit","title":"Credit invoice","href":"/api-reference/invoice/credit-invoice"},{"openapi":"post /invoices/{id}/duplicate","title":"Duplicate invoice","href":"/api-reference/invoice/duplicate-invoice"},{"openapi":"put /invoices/{id}/resend","title":"Resend invoice","href":"/api-reference/invoice/resend-invoice"},{"openapi":"put /invoices/{id}/download-link","title":"Get invoice download link","href":"/api-reference/invoice/get-invoice-download-link"},{"openapi":"get /invoices/{id}/preview","title":"Get invoice preview","href":"/api-reference/invoice/get-invoice-preview"},{"openapi":"put /invoices/{id}/close","title":"Close invoice","href":"/api-reference/invoice/close-invoice"},{"openapi":"post /invoices/{id}/payments","title":"Add invoice payment","href":"/api-reference/invoice/add-invoice-payment"},{"openapi":"post /invoices/{id}/customer-address","title":"Set invoice customer address","href":"/api-reference/invoice/set-invoice-customer-address"},{"openapi":"post /invoices/{id}/payment-method","title":"Set invoice payment method","href":"/api-reference/invoice/set-invoice-payment-method"},{"openapi":"put /invoices/{id}/internal-note","title":"Set invoice note","href":"/api-reference/invoice/set-invoice-note"},{"openapi":"put /invoices/{id}/dunning","title":"Toggle dunning","href":"/api-reference/invoice/toggle-dunning"},{"openapi":"post /invoices/{id}/position-items","title":"Add invoice position items","href":"/api-reference/invoice/add-invoice-position-items"},{"openapi":"post /invoices/{id}/comment","title":"Add comment","href":"/api-reference/invoice/add-comment"},{"group":"Position Item","pages":[{"openapi":"get /invoice-position-items/{id}","title":"Get an invoice position item","href":"/api-reference/invoicepositionitem/get-an-invoice-position-item"},{"openapi":"put /invoice-position-items/{id}","title":"Update an invoice position item","href":"/api-reference/invoicepositionitem/update-an-invoice-position-item"},{"openapi":"delete /invoice-position-items/{id}","title":"Delete an invoice position item","href":"/api-reference/invoicepositionitem/delete-an-invoice-position-item"}]},{"group":"Billing Run","pages":[{"openapi":"get /invoices/{invoiceId}/billing-run","title":"Get billing run details for an invoice","href":"/api-reference/billingrun/get-billing-run-details-for-an-invoice"}]}]},{"group":"Payment","pages":[{"group":"Payment Method","pages":[{"openapi":"get /customers/{customerId}/payment-methods","title":"Get customer's payment methods","href":"/api-reference/paymentmethod/get-customers-payment-methods"},{"openapi":"post /payment-methods","title":"Create payment method","href":"/api-reference/paymentmethod/create-payment-method"},{"openapi":"post /payment-methods/link","title":"Create payment method link","href":"/api-reference/paymentmethod/create-payment-method-link"},{"openapi":"post /payment-methods/migrate/stripe","title":"Migrate stripe payment methods","href":"/api-reference/paymentmethod/migrate-stripe-payment-methods"},{"openapi":"post /payment-methods/{id}/document","title":"Upload a document for a payment method","href":"/api-reference/paymentmethod/upload-a-document-for-a-payment-method"}]},{"group":"Transaction","pages":[{"openapi":"get /payment/transactions","title":"Get transactions","href":"/api-reference/payment-transaction/get-transactions"},{"openapi":"get /payment/transactions/{id}","title":"Get transaction","href":"/api-reference/payment-transaction/get-transaction"}]},{"group":"SEPA XML","pages":[{"openapi":"get /sepa-xml-files","title":"Get a list of SEPA XML files","href":"/api-reference/sepaxmlstatement/get-a-list-of-sepa-xml-files"},{"openapi":"post /sepa-xml-files/generate","title":"Generate a SEPA XML file","href":"/api-reference/sepaxmlstatement/generate-a-sepa-xml-file"},{"openapi":"get /sepa-xml-files/{id}","title":"Get a SEPA XML file","href":"/api-reference/sepaxmlstatement/get-a-sepa-xml-file"},{"openapi":"delete /sepa-xml-files/{id}","title":"Delete a SEPA XML file","href":"/api-reference/sepaxmlstatement/delete-a-sepa-xml-file"},{"openapi":"put /sepa-xml-files/{id}/uploaded","title":"Mark a SEPA XML file as uploaded","href":"/api-reference/sepaxmlstatement/mark-a-sepa-xml-file-as-uploaded"},{"openapi":"get /sepa-xml-payments/{id}","title":"Get a Sepa XML payment","href":"/api-reference/sepa-xml-payments/get-a-sepa-xml-payment"}]},{"group":"Open Banking","pages":[{"openapi":"post /klarna/connect","title":"Connect Klarna","href":"/api-reference/open-banking/connect-klarna"},{"openapi":"get /open-banking-accounts","title":"Get connected open banking accounts","href":"/api-reference/open-banking/get-connected-open-banking-accounts"},{"openapi":"get /open-banking-accounts/{id}","title":"Get open banking account","href":"/api-reference/open-banking/get-open-banking-account"},{"openapi":"put /open-banking-accounts/{id}/disconnect","title":"Disconnect open banking account","href":"/api-reference/open-banking/disconnect-open-banking-account"},{"openapi":"post /api/open-banking-accounts/{id}/fetch-transactions","title":"Trigger a transaction fetch for an open banking account","href":"/api-reference/open-banking/fetch-open-banking-account-transactions"}]},{"group":"Bank Transaction","pages":[{"openapi":"get /payment/bank-account-transactions","title":"Get bank account transactions","href":"/api-reference/bankaccounttransaction/get-bank-account-transactions"},{"openapi":"get /payment/bank-account-transactions/{id}","title":"Get bank account transaction details","href":"/api-reference/bankaccounttransaction/get-bank-account-transaction-details"},{"openapi":"get /payment/bank-account-transaction-assignments/{id}","title":"Get a bank account transaction assignment","href":"/api-reference/bankaccounttransaction/get-a-bank-account-transaction-assignment"},{"openapi":"put /payment/bank-account-transactions/{id}/assign-invoices","title":"Assign invoices to the bank account transaction.","href":"/api-reference/bankaccounttransaction/assign-invoices-to-the-bank-account-transaction"},{"title":"Assign Invoices and Book the Remainder","sidebarTitle":"Assign with Disposition","href":"/api-reference/bankaccounttransaction/assign-with-disposition"},{"openapi":"put /payment/bank-account-transactions/accept-suggestions","title":"Accept the suggestions","href":"/api-reference/bankaccounttransaction/accept-the-suggestions"},{"openapi":"put /payment/bank-account-transactions/ignore","title":"Ignore bank account transactions.","href":"/api-reference/bankaccounttransaction/ignore-bank-account-transactions"},{"openapi":"get /payment/bank-account-transactions/status-count","title":"Get the status count of the bank account transactions","href":"/api-reference/bankaccounttransaction/get-the-status-count-of-the-bank-account-transactions"}]}]},{"group":"Dunning","pages":[{"openapi":"get /dunning/documents","title":"Get dunning documents","href":"/api-reference/dunningdocument/get-dunning-documents"},{"openapi":"get /dunning/documents/{id}","title":"Get dunning document","href":"/api-reference/dunningdocument/get-dunning-document"},{"openapi":"put /dunning/documents/{id}/cancel","title":"Cancel dunning document","href":"/api-reference/dunningdocument/cancel-dunning-document"},{"group":"Rules","pages":[{"openapi":"get /dunning/overdue-rules","title":"Get overdue rules","href":"/api-reference/overduerule/get-overdue-rules"},{"openapi":"put /dunning/overdue-rules/{id}","title":"Update overdue rule","href":"/api-reference/overduerule/update-overdue-rule"}]}]},{"group":"Offer","pages":[{"openapi":"get /offers","title":"Get offers","href":"/api-reference/offer/get-offers"},{"openapi":"post /subscriptions/{id}/offers","title":"[Deprecated, removed 2026-08-01] Create an offer","href":"/api-reference/offer/create-an-offer"},{"openapi":"get /offers/{id}","title":"[Deprecated, removed 2026-08-01] Get an offer","href":"/api-reference/offer/get-an-offer"},{"openapi":"put /offers/{id}","title":"Update an offer","href":"/api-reference/offer/update-an-offer"},{"openapi":"get /offers/{id}/document","title":"[Deprecated, removed 2026-08-01] Get a offer document","href":"/api-reference/offer/get-a-offer-document"},{"openapi":"get /public/offers/{id}","title":"[Deprecated, removed 2026-08-01] Get a public offer","href":"/api-reference/offer/get-a-public-offer"},{"openapi":"get /public/offers/{id}/document","title":"[Deprecated, removed 2026-08-01] Get a public offer document","href":"/api-reference/offer/get-a-public-offer-document"},{"openapi":"post /offers/{id}/recipients","title":"Add a recipient to an offer","href":"/api-reference/offer/add-a-recipient-to-an-offer"},{"openapi":"get /public/offers/{id}/sign","title":"[Deprecated, removed 2026-08-01] Start signing an offer","href":"/api-reference/offer/start-signing-an-offer"},{"group":"Recipient","pages":[{"openapi":"delete /offer-recipients/{id}","title":"Remove an offer recipient","href":"/api-reference/offerrecipient/remove-an-offer-recipient"},{"openapi":"put /offer-recipients/{id}/role","title":"Change the role of an offer recipient","href":"/api-reference/offerrecipient/change-the-role-of-an-offer-recipient"}]},{"group":"Template","pages":[{"openapi":"get /offer-templates","title":"Get offer templates","href":"/api-reference/offertemplate/get-offer-templates"},{"openapi":"post /offer-templates","title":"Create an offer template","href":"/api-reference/offertemplate/create-an-offer-template"},{"openapi":"get /offer-templates/{id}","title":"Get an offer template","href":"/api-reference/offertemplate/get-an-offer-template"},{"openapi":"put /offer-templates/{id}","title":"Update an offer template","href":"/api-reference/offertemplate/update-an-offer-template"}]}]},{"group":"Checkout","pages":[{"group":"Checkout Link","pages":[{"openapi":"post /checkout-links","title":"Create a checkout link","href":"/api-reference/checkoutlink/create-a-checkout-link"},{"openapi":"get /checkout-links/{id}","title":"Get a checkout link","href":"/api-reference/checkoutlink/get-a-checkout-link"},{"openapi":"put /checkout-links/{id}","title":"Update a checkout link","href":"/api-reference/checkoutlink/update-a-checkout-link"},{"openapi":"get /checkout-link-items/{id}","title":"Get a checkout link item","href":"/api-reference/checkoutlinkitem/get-a-checkout-link-item"},{"openapi":"post /checkout-links/{id}/cart","title":"Create a cart from a checkout link","href":"/api-reference/checkoutlink/create-a-cart-from-a-checkout-link"}]},{"group":"Cart","pages":[{"openapi":"get /checkout/carts","title":"Retrieves completed carts of the current tenant.","href":"/api-reference/cart/retrieves-completed-carts-of-the-current-tenant"},{"openapi":"get /checkout/carts/{id}","title":"Retrieves a cart by its ID.","href":"/api-reference/cart/retrieves-a-cart-by-its-id"},{"openapi":"get /public/checkout/cart/{id}","title":"Retrieves a cart by its ID.","href":"/api-reference/cart/retrieves-a-cart-by-its-id-1"},{"openapi":"put /public/checkout/cart/{id}/change-quantity","title":"Changes the quantity of a cart item.","href":"/api-reference/cart/changes-the-quantity-of-a-cart-item"},{"openapi":"put /public/checkout/cart/{id}/confirm","title":"Confirms a cart.","href":"/api-reference/cart/confirms-a-cart"},{"openapi":"put /public/checkout/cart/{id}/confirm-otp","title":"Confirms the OTP of a cart.","href":"/api-reference/cart/confirms-the-otp-of-a-cart"},{"openapi":"get /public/checkout/cart/{id}/invoice-addresses","title":"Retrieves the invoice addresses of a cart.","href":"/api-reference/cart/retrieves-the-invoice-addresses-of-a-cart"},{"openapi":"get /public/checkout/cart/{id}/payment-methods","title":"Retrieves the payment methods of a cart.","href":"/api-reference/cart/retrieves-the-payment-methods-of-a-cart"},{"openapi":"put /public/checkout/cart/{id}/prepare-stripe","title":"Prepares a cart for stripe.","href":"/api-reference/cart/prepares-a-cart-for-stripe"}]}]},{"group":"Feature \u0026 Entitlement","pages":[{"openapi":"get /entitlement/features","title":"Get features","href":"/api-reference/feature/get-features"},{"openapi":"post /entitlement/features","title":"Create feature","href":"/api-reference/feature/create-feature"},{"openapi":"get /entitlement/features/{id}","title":"Get feature","href":"/api-reference/feature/get-feature"},{"openapi":"put /entitlement/features/{id}","title":"Update feature","href":"/api-reference/feature/update-feature"},{"openapi":"put /entitlement/features/{id}/status","title":"Update feature status","href":"/api-reference/feature/update-feature-status"},{"openapi":"post /entitlement/feature-assignments","title":"Assign feature","href":"/api-reference/feature/assign-feature"},{"openapi":"delete /entitlement/feature-assignments/{id}","title":"Unassign feature","href":"/api-reference/feature/unassign-feature"},{"openapi":"get /entitlement/feature-assignments","title":"Get feature assignments","href":"/api-reference/feature/get-feature-assignments"},{"group":"Entitlement","pages":[{"openapi":"get /subscriptions/{id}/available-features","title":"Get available features","href":"/api-reference/entitlement/get-available-features"},{"openapi":"post /subscriptions/{subscriptionId}/entitlements","title":"Add subscription entitlement","href":"/api-reference/entitlement/add-subscription-entitlement"},{"openapi":"get /subscriptions/{subscriptionId}/entitlements","title":"Get subscription entitlements","href":"/api-reference/entitlement/get-subscription-entitlements"},{"openapi":"post /subscription-items/{subscriptionItemId}/entitlements","title":"Add subscription item entitlement","href":"/api-reference/entitlement/add-subscription-item-entitlement"},{"openapi":"get /subscription-items/{subscriptionItemId}/entitlements","title":"Get subscription item entitlements","href":"/api-reference/entitlement/get-subscription-item-entitlements"},{"openapi":"put /entitlements/{id}/status","title":"Update entitlement status","href":"/api-reference/entitlement/update-entitlement-status"},{"openapi":"delete /entitlements/{id}","title":"Delete entitlement","href":"/api-reference/entitlement/delete-entitlement"}]}]},{"group":"Analytics","pages":[{"openapi":"get /analytics/series/{type}","title":"Get series data","href":"/api-reference/analytics/get-series-data"},{"openapi":"get /analytics/subscription-revenue","title":"Get series data for subscription","href":"/api-reference/analytics/get-series-data-for-subscription"}]},{"group":"Accounting","pages":[{"openapi":"get /accounting/accounts","title":"Get accounts","href":"/api-reference/accounting/get-accounts"},{"openapi":"put /accounting/accounts/{id}","title":"Update account","href":"/api-reference/accounting/update-account"},{"openapi":"get /accounting/postings","title":"Get postings","href":"/api-reference/accounting/get-postings"},{"group":"Cost Centre","pages":[{"openapi":"get /accounting/cost-centres","title":"Get all cost centres","href":"/api-reference/costcentre/get-all-cost-centres"},{"openapi":"post /accounting/cost-centres","title":"Add a cost centre","href":"/api-reference/costcentre/add-a-cost-centre"},{"openapi":"post /accounting/cost-centres/import","title":"Import cost centres","href":"/api-reference/costcentre/import-cost-centres"},{"openapi":"get /accounting/cost-centres/{id}","title":"Get a cost centre","href":"/api-reference/costcentre/get-a-cost-centre"},{"openapi":"patch /accounting/cost-centres/{id}","title":"Update a cost centre","href":"/api-reference/costcentre/update-a-cost-centre"}]},{"group":"Tax","pages":[{"openapi":"get /tax-groups","title":"Get tax groups","href":"/api-reference/tax/get-tax-groups"},{"openapi":"get /tax-groups/{id}","title":"Get tax group","href":"/api-reference/tax/get-tax-group"}]}]},{"group":"Settings","pages":[{"openapi":"get /settings/{context}","title":"Get settings","href":"/api-reference/settings/get-settings"},{"openapi":"patch /settings/{context}","title":"Update settings key","href":"/api-reference/settings/update-settings-key"},{"group":"User \u0026 Permissions","pages":[{"openapi":"get /tenant/accounts","title":"Get all accounts of the current tenant.","href":"/api-reference/account/get-all-accounts-of-the-current-tenant"},{"openapi":"put /accounts/{id}/deactivate","title":"Deactivate account","href":"/api-reference/account/deactivate-account"},{"openapi":"put /accounts/{id}/reactivate","title":"Reactivate account","href":"/api-reference/account/reactivate-account"},{"openapi":"put /accounts/{id}/role","title":"Update account role","href":"/api-reference/account/update-account-role"}]},{"group":"Media","pages":[{"openapi":"get /media","title":"Get all medias","href":"/api-reference/media/get-all-medias"},{"openapi":"post /media","title":"Upload a file","href":"/api-reference/media/upload-a-file"},{"openapi":"get /media-folders","title":"Get media folders","href":"/api-reference/media/get-media-folders"},{"openapi":"get /media/{id}","title":"Get a media","href":"/api-reference/media/get-a-media"},{"openapi":"post /media/{id}/download-token","title":"Create download token","href":"/api-reference/media/create-download-token"},{"openapi":"get /media/{id}/download/{token}","title":"Download by token","href":"/api-reference/media/download-by-token"}]},{"group":"Webhook","pages":[{"openapi":"get /available-webhook-events","title":"Get available webhook events","href":"/api-reference/webhook/get-available-webhook-events"},{"openapi":"get /webhooks","title":"Get webhooks","href":"/api-reference/webhook/get-webhooks"},{"openapi":"post /webhooks","title":"Add webhook","href":"/api-reference/webhook/add-webhook"},{"openapi":"get /webhooks/{id}","title":"Get webhook","href":"/api-reference/webhook/get-webhook"},{"openapi":"patch /webhooks/{id}","title":"Update webhook","href":"/api-reference/webhook/update-webhook"},{"openapi":"delete /webhooks/{id}","title":"Delete webhook","href":"/api-reference/webhook/delete-webhook"},{"openapi":"get /webhook-results","title":"Get webhook results","href":"/api-reference/webhook/get-webhook-results"},{"openapi":"get /webhook-results/{id}","title":"Get webhook result","href":"/api-reference/webhook/get-webhook-result"}]},{"group":"Notification","pages":[{"openapi":"get /notifications","title":"Get notifications","href":"/api-reference/sentnotification/get-notifications"},{"openapi":"get /notifications/{id}","title":"Get a notification","href":"/api-reference/sentnotification/get-a-notification"}]}]}]},{"tab":"API V2","pages":[{"title":"API V2","href":"/v2-plans-api/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2026-07"}]}]},{"language":"en","pages":[{"title":"en","href":"/en/introduction"}]}]},"title":"Update invoice address - Fynn Docs","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}