Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.
Creates a new customer invoice that mirrors the estimate’s template, recipient, and positions. The original estimate is preserved and links back to the new invoice via its invoicesFromQuote field, so a single estimate can be converted multiple times if needed.The request body is optional:
openingDate — the opening date for the new invoice. Defaults to the current date.
isDraft — whether to create the new invoice as a draft. Defaults to true.
Draft estimates cannot be converted. Issue (or accept) the estimate first.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"infinity.swiss Dokumentation","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/nextbusiness/_uvxx-EX-DydCyun/logo/logo-b.svg?fit=max\u0026auto=format\u0026n=_uvxx-EX-DydCyun\u0026q=85\u0026s=d0f6544cce7c61da0bf7681ea0bdc48e","dark":"https://mintcdn.com/nextbusiness/_uvxx-EX-DydCyun/logo/logo-w.svg?fit=max\u0026auto=format\u0026n=_uvxx-EX-DydCyun\u0026q=85\u0026s=107e490939b14f1bdd38213edd8c66f4"},"favicon":"https://mintcdn.com/nextbusiness/MALrEwDR5qSS5n5h/favicon.png?fit=max\u0026auto=format\u0026n=MALrEwDR5qSS5n5h\u0026q=85\u0026s=a886ed2df852e514addd33a4551e32e5","api":{},"navbar":{"links":[{"icon":"envelope","href":"mailto:help@infinity.swiss","label":"Kontakt"},{"icon":"globe","href":"https://www.infinity.swiss","label":"Webseite"}]},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/nextbusiness"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nextbusiness","hasAudioNarration":false,"actualSubdomain":"nextbusiness","customDomains":["docs.infinity.swiss"],"gitSource":{"type":"github","owner":"nextbusiness","repo":"infinity","deployBranch":"main","contentDirectory":"apps/infinity-product-manual","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb6f2d25425974785d477e","collectionId":"853898f3-b5b1-4f2b-a0d3-37154f8f1096","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb6f2d25425974785d477e"},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6adb6f2d25425974785d477e","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"de","tag":"Benutzerhandbuch","count":92},{"language":"default","tag":"Infinity API","count":56},{"language":"de","tag":"Buchhaltung führen","count":41},{"language":"de","tag":"Lohnbuchhaltung","count":18},{"language":"de","tag":"Verkauf","count":16},{"language":"default","tag":"Invoices","count":14},{"language":"de","tag":"Live Accounting","count":14},{"language":"default","tag":"Estimates","count":12},{"language":"de","tag":"Forderungen \u0026 Offerten","count":10},{"language":"de","tag":"Mehr","count":9},{"language":"default","tag":"Accounting","count":8},{"language":"de","tag":"Buchhaltung","count":8},{"language":"de","tag":"Löhne abrechnen","count":7},{"language":"de","tag":"Mehrwertsteuer","count":6},{"language":"default","tag":"Chart of accounts","count":5},{"language":"default","tag":"Contacts","count":5},{"language":"default","tag":"Work entries","count":4},{"language":"default","tag":"MCP server","count":3},{"language":"default","tag":"Projects","count":2},{"language":"default","tag":"Receipts","count":2}]},"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":"#localization-select-trigger{display:none}#localization-select-content div[role=menuitem] div:has(img),#localization-select-trigger div:has(img){display:none}@media screen and (min-width:1024px){#localization-select-trigger{margin:.4rem .6rem}}#navbar img.nav-logo,#sidebar-content img.nav-logo{height:1.3rem}"}],"page":{"pagePath":"api/estimates/convert-to-invoice","slug":"/api/estimates/convert-to-invoice","pageMetadata":{"title":"Convert estimate to invoice","openapi":"POST /v1/estimates/{estimateId}/convert-to-invoice","description":"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.","href":"/api/estimates/convert-to-invoice"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`converting-an-estimate`,children:`Converting an estimate`}),`\n`,_jsxs(_components.p,{children:[`Creates a new customer invoice that mirrors the estimate’s template, recipient, and positions. The original estimate is preserved and links back to the new invoice via its `,_jsx(_components.code,{children:`invoicesFromQuote`}),` field, so a single estimate can be converted multiple times if needed.`]}),`\n`,_jsx(_components.p,{children:`The request body is optional:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`openingDate`}),` — the opening date for the new invoice. Defaults to the current date.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`isDraft`}),` — whether to create the new invoice as a draft. Defaults to `,_jsx(_components.code,{children:`true`}),`.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Draft estimates cannot be converted. Issue (or accept) the estimate first.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Convert estimate to invoice","openapi":"POST /v1/estimates/{estimateId}/convert-to-invoice","description":"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.","href":"/api/estimates/convert-to-invoice"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Converting an estimate","slug":"converting-an-estimate","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Convert estimate to invoice","tags":[],"operationId":"convert-estimate-to-invoice-v1","description":"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.","requestBody":"417c9de2-b0dc-404b-bfb9-a97e0044337b","responses":{"201":"f180314d-8c17-49dd-bea1-dae43b47cb1c","400":"050ad2c6-3041-4cb7-89df-ab733dde2811","401":"35ebeacd-43a6-4a9f-9240-4952a944f4cd","404":"4f6f54e9-8d9a-458a-8d25-31d6a21f88f7","409":"1aa846b8-667a-40c3-aa13-46132ba50728"},"method":"post","type":"path","servers":["947b1917-c8ba-4b36-b10e-d86bb1675414"],"security":["11b85fb9-a5f0-4688-b598-979407fae43d"],"path":"/v1/estimates/{estimateId}/convert-to-invoice","baseUrlOptions":["https://api.infinity.swiss"],"title":"Convert estimate to invoice","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0c870275-2493-436f-93cc-17913a6363d2":{"schema":{"type":"string","isRequired":true,"description":"The id of the estimate to convert.","uniqueKey":"","typeLabel":"string"},"name":"estimateId","in":"path","description":"The id of the estimate to convert.","required":true}},"requestBody":{"description":"Optional conversion overrides.","content":{"application/json":{"schema":{"title":"ConvertToInvoiceInput","type":"object","description":"Request body for converting an estimate to an invoice. All fields are optional.","properties":{"openingDate":{"type":"string","format":"date","description":"The opening date for the new invoice in YYYY-MM-DD format. Defaults to the current date.","uniqueKey":"openingDate","typeLabel":"string\u003cdate>"},"isDraft":{"type":"boolean","default":true,"description":"When `true` (the default) the new invoice is created as a draft.","uniqueKey":"isDraft","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"ConvertToInvoiceInput · object"},"examples":{"Example":{"title":"Example","value":{"openingDate":"2023-12-25","isDraft":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f180314d-8c17-49dd-bea1-dae43b47cb1c":{"description":"The estimate was converted to an invoice.","content":{"application/json":{"schema":{"type":"object","properties":{"invoice":{"type":"object","title":"Invoice","description":"The full representation of a customer invoice.","required":["isQrInvoice","totalAmountPaid","totalRestAmount","isPaid","isOverpaid","isAnnulled","id","isDraft","number","organisation","template","openingDate","dueDate","positions","totalAmount","totalNetAmount","totalVatDebt"],"properties":{"id":{"type":"string","description":"A unique hex identifier for the document.","readOnly":true,"isRequired":true,"uniqueKey":"invoice.id","typeLabel":"string"},"isDraft":{"type":"boolean","isRequired":true,"uniqueKey":"invoice.isDraft","typeLabel":"boolean"},"number":{"type":"string","description":"The formatted document number. May be empty for drafts that have not yet been issued.","isRequired":true,"uniqueKey":"invoice.number","typeLabel":"string"},"organisation":{"type":"string","description":"The id of the owning organisation.","readOnly":true,"isRequired":true,"uniqueKey":"invoice.organisation","typeLabel":"string"},"template":{"type":"string","description":"The id of the template used to render the document.","isRequired":true,"uniqueKey":"invoice.template","typeLabel":"string"},"openingDate":{"type":"string","format":"date","isRequired":true,"uniqueKey":"invoice.openingDate","typeLabel":"string\u003cdate>"},"dueDate":{"type":"string","format":"date","isRequired":true,"uniqueKey":"invoice.dueDate","typeLabel":"string\u003cdate>"},"positions":{"type":"array","items":{"oneOf":[{"type":"object","title":"ProductPosition","description":"A standard billable line item with a quantity, single amount, and contra account. Most invoice and estimate positions are of this type.","required":["type","name","singleAmount","quantity","contraAccount"],"properties":{"type":{"type":"string","enum":["product"],"description":"Discriminator for the position type.","isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","maxLength":256,"description":"The name of the product or service for this position.","isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.name","typeLabel":"string"},"singleAmount":{"type":"integer","description":"The unit amount in cents. May be expressed gross or net depending on the document's `amountMode`.","example":12000,"isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.singleAmount","typeLabel":"integer"},"quantity":{"type":"number","description":"The number of units billed for this position.","example":2,"isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.quantity","typeLabel":"number"},"contraAccount":{"type":"integer","minimum":1000,"maximum":9999,"description":"The contra account number this position books against (typically a revenue account).","isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.contraAccount","typeLabel":"integer"},"id":{"type":"string","description":"Server-assigned identifier for the position. Present on responses; omit when creating.","readOnly":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.id","typeLabel":"string"},"unit":{"type":"string","maxLength":4,"description":"Optional unit, e.g. `h`, `kg`, `pcs`.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.unit","typeLabel":"string"},"taxCode":{"oneOf":[{"type":"string","title":"TaxCode","description":"A VAT tax code. See [Liste der MWST-Codes](https://docs.infinity.swiss/de/docs/accounting/vat/tax-codes) for details. The empty string indicates no VAT.","enum":[""],"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.taxCode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"TaxCode","description":"A VAT tax code. See [Liste der MWST-Codes](https://docs.infinity.swiss/de/docs/accounting/vat/tax-codes) for details. The empty string indicates no VAT.","enum":["UN81","UN77","UR26","UR25","US38","US37","UO81","UO77","BZB81","BZB77","BZM81","BZM77","VM81","VM38","VM26","VB81","VB38","VB26","VM77","VM37","VM25","VB77","VB37","VB25","ES81","ES26","ES77","ES25","UNO","UEX","ULA","ZOLLM","ZOLLB"],"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.taxCode.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.taxCode","typeLabel":"enum\u003cstring>"},"articleNumber":{"type":"string","maxLength":48,"description":"Optional article or SKU number to display alongside the position.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.articleNumber","typeLabel":"string"},"description":{"type":"string","maxLength":2000,"description":"Optional multi-line description of the position.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.description","typeLabel":"string"},"date":{"type":"string","maxLength":12,"description":"Optional free-text date column for the position, e.g. service date.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.date","typeLabel":"string"},"discountRate":{"type":"number","minimum":0,"maximum":100,"description":"Optional per-position discount rate in percent.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.discountRate","typeLabel":"number"},"customTextColumns":{"title":"CustomTextColumns","type":"object","description":"Optional values for the three custom text columns on a product position.","properties":{"customTextColumn1":{"type":"string","maxLength":64,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.customTextColumns.customTextColumn1","typeLabel":"string"},"customTextColumn2":{"type":"string","maxLength":64,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.customTextColumns.customTextColumn2","typeLabel":"string"},"customTextColumn3":{"type":"string","maxLength":64,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.customTextColumns.customTextColumn3","typeLabel":"string"}},"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.customTextColumns","typeLabel":"CustomTextColumns · object"},"totalAmount":{"type":"integer","readOnly":true,"description":"The total amount of this position (gross), in cents. Computed by the server.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.totalAmount","typeLabel":"integer"},"vatDebt":{"type":"integer","readOnly":true,"description":"The VAT debt for this position, in cents. Computed by the server.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.vatDebt","typeLabel":"integer"},"originalCurrency":{"type":"string","minLength":3,"maxLength":3,"readOnly":true,"description":"The 3-character ISO 4217 currency code in which this position was originally entered, if different from the primary accounting currency.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.originalCurrency","typeLabel":"string"},"exchangeRate":{"type":"number","readOnly":true,"description":"The exchange rate used to convert the original currency amount.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.0.exchangeRate","typeLabel":"number"}},"uniqueKey":"invoice.positions.items.[INDEX].oneOf.0","typeLabel":"ProductPosition · object"},{"type":"object","title":"DiscountPosition","description":"A discount line that reduces the sum of the preceding positions either by a percentage or by an absolute amount.","required":["type"],"properties":{"type":{"type":"string","enum":["discount"],"isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","readOnly":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.1.id","typeLabel":"string"},"percentage":{"type":"number","minimum":0,"maximum":100,"description":"A percentage discount applied to the preceding positions. Exactly one of `percentage` or `amount` must be set.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.1.percentage","typeLabel":"number"},"amount":{"type":"integer","minimum":0,"description":"An absolute discount amount in cents. Exactly one of `percentage` or `amount` must be set.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.1.amount","typeLabel":"integer"},"discountText":{"type":"string","maxLength":256,"description":"Optional display text for the discount, e.g. \"Rabatt\".","uniqueKey":"invoice.positions.items.[INDEX].oneOf.1.discountText","typeLabel":"string"}},"uniqueKey":"invoice.positions.items.[INDEX].oneOf.1","typeLabel":"DiscountPosition · object"},{"type":"object","title":"TextPosition","description":"A non-billable text line that is rendered between positions for organisation or commentary.","required":["type","content"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","maxLength":2000,"description":"The text content to render.","isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.2.content","typeLabel":"string"},"id":{"type":"string","readOnly":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.2.id","typeLabel":"string"},"style":{"type":"string","enum":["normal","headline","fine-print"],"description":"The visual style of the text line.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.2.style","typeLabel":"enum\u003cstring>"}},"uniqueKey":"invoice.positions.items.[INDEX].oneOf.2","typeLabel":"TextPosition · object"},{"type":"object","title":"SubtotalPosition","description":"A line that renders the running subtotal of all preceding positions, optionally with a custom label.","required":["type"],"properties":{"type":{"type":"string","enum":["subtotal"],"isRequired":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","readOnly":true,"uniqueKey":"invoice.positions.items.[INDEX].oneOf.3.id","typeLabel":"string"},"label":{"type":"string","maxLength":128,"description":"Optional label for the subtotal line.","uniqueKey":"invoice.positions.items.[INDEX].oneOf.3.label","typeLabel":"string"}},"uniqueKey":"invoice.positions.items.[INDEX].oneOf.3","typeLabel":"SubtotalPosition · object"}],"uniqueKey":"invoice.positions.items.[INDEX]","typeLabel":"ProductPosition · object | DiscountPosition · object | TextPosition · object | SubtotalPosition · object"},"isRequired":true,"uniqueKey":"invoice.positions","typeLabel":"(ProductPosition · object | DiscountPosition · object | TextPosition · object | SubtotalPosition · object)[]"},"totalAmount":{"type":"integer","description":"Total gross amount in cents (e.g. 12030 = 120.30).","isRequired":true,"uniqueKey":"invoice.totalAmount","typeLabel":"integer"},"totalNetAmount":{"type":"integer","description":"Total net amount in cents.","isRequired":true,"uniqueKey":"invoice.totalNetAmount","typeLabel":"integer"},"totalVatDebt":{"type":"integer","description":"Total VAT debt in cents.","isRequired":true,"uniqueKey":"invoice.totalVatDebt","typeLabel":"integer"},"isQrInvoice":{"type":"boolean","description":"`true` when the document is rendered as a Swiss QR-bill.","isRequired":true,"uniqueKey":"invoice.isQrInvoice","typeLabel":"boolean"},"totalAmountPaid":{"type":"integer","description":"Sum of all recorded payments in cents.","isRequired":true,"uniqueKey":"invoice.totalAmountPaid","typeLabel":"integer"},"totalRestAmount":{"type":"integer","description":"Outstanding balance in cents.","isRequired":true,"uniqueKey":"invoice.totalRestAmount","typeLabel":"integer"},"isPaid":{"type":"boolean","description":"`true` once the invoice is fully paid.","isRequired":true,"uniqueKey":"invoice.isPaid","typeLabel":"boolean"},"isOverpaid":{"type":"boolean","isRequired":true,"uniqueKey":"invoice.isOverpaid","typeLabel":"boolean"},"isAnnulled":{"type":"boolean","description":"`true` once the invoice has been annulled.","isRequired":true,"uniqueKey":"invoice.isAnnulled","typeLabel":"boolean"},"recipient":{"type":"string","description":"The id of the contact this document is addressed to.","uniqueKey":"invoice.recipient","typeLabel":"string"},"customRecipientText":{"type":"string","uniqueKey":"invoice.customRecipientText","typeLabel":"string"},"externalReference":{"type":"string","maxLength":128,"description":"An optional reference for this document in an external system.","uniqueKey":"invoice.externalReference","typeLabel":"string"},"title":{"type":"string","uniqueKey":"invoice.title","typeLabel":"string"},"payableInDays":{"type":"integer","uniqueKey":"invoice.payableInDays","typeLabel":"integer"},"introductoryText":{"type":"string","uniqueKey":"invoice.introductoryText","typeLabel":"string"},"closingText":{"type":"string","uniqueKey":"invoice.closingText","typeLabel":"string"},"amountMode":{"title":"AmountMode","type":"string","description":"Whether position amounts are entered gross (including VAT) or net (excluding VAT).","enum":["gross","net"],"uniqueKey":"invoice.amountMode","typeLabel":"enum\u003cstring>"},"language":{"title":"InvoiceLanguage","type":"string","description":"The language used to render the document.","enum":["de","en","fr","it"],"uniqueKey":"invoice.language","typeLabel":"enum\u003cstring>"},"originalCurrency":{"type":"string","minLength":3,"maxLength":3,"description":"ISO 4217 currency code for the original document currency. Omitted for documents in the primary accounting currency.","uniqueKey":"invoice.originalCurrency","typeLabel":"string"},"exchangeRate":{"type":"number","description":"Exchange rate from the original currency to the primary accounting currency, if applicable.","uniqueKey":"invoice.exchangeRate","typeLabel":"number"},"columns":{"type":"array","items":{"title":"InvoiceColumn","description":"A column that can be shown on the rendered invoice or estimate.","type":"string","enum":["quantity","unit","articleNumber","name","date","vatDebt","vatRate","singleAmount","totalAmount","discountRate","positionNumber","customTextColumn1","customTextColumn2","customTextColumn3"],"uniqueKey":"invoice.columns.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"invoice.columns","typeLabel":"enum\u003cstring>[]"},"emailDeliveries":{"type":"array","description":"Log of any email delivery attempts for this document.","items":{"title":"EmailDelivery","type":"object","description":"A record of an attempt to send the document by email.","required":["recipientEmail","status","timestamp"],"properties":{"recipientEmail":{"type":"string","format":"email","description":"The address the document was sent to.","isRequired":true,"uniqueKey":"invoice.emailDeliveries.items.[INDEX].recipientEmail","typeLabel":"string\u003cemail>"},"status":{"type":"string","description":"The delivery status reported by the email provider.","isRequired":true,"uniqueKey":"invoice.emailDeliveries.items.[INDEX].status","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the delivery was recorded.","isRequired":true,"uniqueKey":"invoice.emailDeliveries.items.[INDEX].timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"invoice.emailDeliveries.items.[INDEX]","typeLabel":"EmailDelivery · object"},"uniqueKey":"invoice.emailDeliveries","typeLabel":"EmailDelivery · object[]"},"publicPdfUrl":{"type":"string","description":"A public URL for downloading the rendered PDF without authentication. May be omitted while the URL is being generated.","uniqueKey":"invoice.publicPdfUrl","typeLabel":"string"}},"uniqueKey":"invoice","typeLabel":"Invoice · object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invoice":{"id":"\u003cstring>","isDraft":true,"number":"\u003cstring>","organisation":"\u003cstring>","template":"\u003cstring>","openingDate":"2023-12-25","dueDate":"2023-12-25","positions":[{"type":"product","name":"\u003cstring>","singleAmount":12000,"quantity":2,"contraAccount":5499,"id":"\u003cstring>","unit":"\u003cstring>","taxCode":"","articleNumber":"\u003cstring>","description":"\u003cstring>","date":"\u003cstring>","discountRate":50,"customTextColumns":{"customTextColumn1":"\u003cstring>","customTextColumn2":"\u003cstring>","customTextColumn3":"\u003cstring>"},"totalAmount":123,"vatDebt":123,"originalCurrency":"\u003cstring>","exchangeRate":123}],"totalAmount":123,"totalNetAmount":123,"totalVatDebt":123,"isQrInvoice":true,"totalAmountPaid":123,"totalRestAmount":123,"isPaid":true,"isOverpaid":true,"isAnnulled":true,"recipient":"\u003cstring>","customRecipientText":"\u003cstring>","externalReference":"\u003cstring>","title":"\u003cstring>","payableInDays":123,"introductoryText":"\u003cstring>","closingText":"\u003cstring>","amountMode":"gross","language":"de","originalCurrency":"\u003cstring>","exchangeRate":123,"columns":["quantity"],"emailDeliveries":[{"recipientEmail":"jsmith@example.com","status":"\u003cstring>","timestamp":"2023-11-07T05:31:56Z"}],"publicPdfUrl":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"050ad2c6-3041-4cb7-89df-ab733dde2811":{"description":"A bad request is thrown if the estimate is a draft or the payload is invalid.","content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The specific error code for this request. May be:\n- `customer-invoice/is-draft`\n- `general/malformed-request`\n- `general/invalid-date`","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"invalidFields":{"type":"array","items":{"type":"string","uniqueKey":"invalidFields.items.[INDEX]","typeLabel":"string"},"uniqueKey":"invalidFields","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","invalidFields":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"35ebeacd-43a6-4a9f-9240-4952a944f4cd":{"description":"An unauthorised request was submitted. You may be using an incorrect or expired API token, or are attempting to access a document outside of the scope of the token.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","x-stoplight":{"id":"08hkw8ukmi2lp"},"description":"Specific error code","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Unauthorised request":{"title":"Unauthorised request","value":{"code":"general/unauthorised"}}},"exampleType":"examples"}},"exampleType":"examples"},"4f6f54e9-8d9a-458a-8d25-31d6a21f88f7":{"description":"No invoice or estimate with the given id could be found in this organisation. Also returned when the id refers to the other kind of document, e.g. an estimate id on an invoice endpoint.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Specific error code.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Not found":{"title":"Not found","value":{"code":"customer-invoices/not-found"}}},"exampleType":"examples"}},"exampleType":"examples"},"1aa846b8-667a-40c3-aa13-46132ba50728":{"description":"Another invoice already uses this external reference.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"The error code `customer-invoices/external-reference-already-exists`.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"11b85fb9-a5f0-4688-b598-979407fae43d":{"apiKey":{"name":"x-api-token","type":"apiKey","in":"header","description":"API token for authentication. Obtain from your Infinity account settings.","scopes":[],"schemeName":"apiKey"}}},"servers":{"947b1917-c8ba-4b36-b10e-d86bb1675414":{"url":"https://api.infinity.swiss"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"name":"x-api-token","type":"apiKey","in":"header","description":"API token for authentication. Obtain from your Infinity account settings.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-token","type":"string","description":"API token for authentication. Obtain from your Infinity account settings.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-token"}],"title":"apiKey"}]},"originalFileLocation":"api/openapi.json"},"subdomain":"nextbusiness","siteName":"infinity.swiss Dokumentation","title":"Convert estimate to invoice - infinity.swiss Dokumentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-22T12:53:08.713Z","originalFileLocation":"api/estimates/convert-to-invoice.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.\">\u003cmeta data-mint-head name=\"application-name\" content=\"infinity.swiss Dokumentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nextbusiness/PAri2jzuPcm6byUj/_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/nextbusiness/PAri2jzuPcm6byUj/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nextbusiness/PAri2jzuPcm6byUj/_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/nextbusiness/PAri2jzuPcm6byUj/_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/nextbusiness/PAri2jzuPcm6byUj/_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/nextbusiness/PAri2jzuPcm6byUj/_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/nextbusiness/PAri2jzuPcm6byUj/_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/nextbusiness/PAri2jzuPcm6byUj/_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/nextbusiness/PAri2jzuPcm6byUj/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Convert estimate to invoice - infinity.swiss Dokumentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"infinity.swiss Dokumentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.infinity.swiss/api/estimates/convert-to-invoice\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nextbusiness.mintlify.app/_mintlify/api/og/v2?division=Estimates\u0026amp;title=Convert+estimate+to+invoice\u0026amp;description=Creates+a+new+customer+invoice+based+on+the+estimate.+The+original+estimate+is+preserved+and+links+back+to+the+new+invoice+via+the+conversion.+Draft+estimates+c\u0026amp;theme=56d81c116af6b46de0c9557c\u0026amp;signature=0a9efe9a0c7febeed23c6c949c158d21285999033ce6185d20b7f1b3e7f2e1bd\">\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=\"Convert estimate to invoice - infinity.swiss Dokumentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nextbusiness.mintlify.app/_mintlify/api/og/v2?division=Estimates\u0026amp;title=Convert+estimate+to+invoice\u0026amp;description=Creates+a+new+customer+invoice+based+on+the+estimate.+The+original+estimate+is+preserved+and+links+back+to+the+new+invoice+via+the+conversion.+Draft+estimates+c\u0026amp;theme=56d81c116af6b46de0c9557c\u0026amp;signature=0a9efe9a0c7febeed23c6c949c158d21285999033ce6185d20b7f1b3e7f2e1bd\">\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/nextbusiness/PAri2jzuPcm6byUj/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"infinity.swiss Dokumentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.infinity.swiss/api/estimates/convert-to-invoice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/estimates/convert-to-invoice.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.infinity.swiss/#organization\",\"name\":\"infinity.swiss Dokumentation\",\"url\":\"https://docs.infinity.swiss\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nextbusiness/_uvxx-EX-DydCyun/logo/logo-b.svg?fit=max\u0026auto=format\u0026n=_uvxx-EX-DydCyun\u0026q=85\u0026s=d0f6544cce7c61da0bf7681ea0bdc48e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.infinity.swiss#website\",\"name\":\"infinity.swiss Dokumentation\",\"url\":\"https://docs.infinity.swiss\",\"publisher\":{\"@id\":\"https://docs.infinity.swiss/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice#webpage\",\"url\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice\",\"name\":\"Convert estimate to invoice\",\"description\":\"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.\",\"dateModified\":\"2026-05-22T12:53:08.713Z\",\"isPartOf\":{\"@id\":\"https://docs.infinity.swiss#website\"},\"breadcrumb\":{\"@id\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Estimates\",\"item\":\"https://docs.infinity.swiss/api/estimates/find\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Convert estimate to invoice\",\"item\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice#apireference\",\"headline\":\"Convert estimate to invoice\",\"name\":\"Convert estimate to invoice\",\"description\":\"Creates a new customer invoice based on the estimate. The original estimate is preserved and links back to the new invoice via the conversion. Draft estimates cannot be converted.\",\"url\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice\",\"mainEntityOfPage\":{\"@id\":\"https://docs.infinity.swiss/api/estimates/convert-to-invoice#webpage\"},\"dateModified\":\"2026-05-22T12:53:08.713Z\",\"publisher\":{\"@id\":\"https://docs.infinity.swiss/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.infinity.swiss#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"infinity.swiss Dokumentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"infinity.swiss Dokumentation","nav":{"global":null,"products":[{"product":"Benutzerhandbuch","description":"So verwendest du infinity.swiss","pages":[{"title":"Benutzerhandbuch","href":"/de/introduction"}]},{"product":"Infinity API","description":"Dokumentation für Entwickler","groups":[{"group":"For developers","pages":[{"title":"Introduction to the Infinity API","icon":"globe","href":"/api/introduction"}]},{"group":"MCP server","pages":[{"title":"MCP server","icon":"plug","href":"/api/mcp/overview"},{"title":"Connect a client","icon":"link","href":"/api/mcp/connect"},{"title":"Tools","icon":"wrench","href":"/api/mcp/tools"}]},{"group":"Accounting","pages":[{"title":"Post a ledger entry","openapi":"POST /v1/ledger-entries","href":"/api/accounting/create"},{"title":"Modify a ledger entry","openapi":"PATCH /v1/ledger-entries/{ledgerEntryId}","href":"/api/accounting/modify"},{"title":"Find ledger entries","openapi":"GET /v1/ledger-entries","href":"/api/accounting/find"},{"title":"Get specific ledger entry","openapi":"GET /v1/ledger-entries/{ledgerEntryId}","href":"/api/accounting/get"},{"title":"Delete a ledger entry","openapi":"DELETE /v1/ledger-entries/{ledgerEntryId}","href":"/api/accounting/delete"},{"title":"Ledger entry sources","href":"/api/accounting/sources"},{"title":"List fiscal years","openapi":"GET /v1/fiscal-years","href":"/api/accounting/fiscal-years"},{"title":"List available tax codes","openapi":"GET /v1/tax-codes","href":"/api/accounting/tax-codes"}]},{"group":"Chart of accounts","pages":[{"title":"List the chart of accounts","openapi":"GET /v1/accounts","href":"/api/accounting/accounts/find"},{"title":"List account balances","openapi":"GET /v1/accounts/balances","href":"/api/accounting/accounts/balances"},{"title":"Create an account","openapi":"POST /v1/accounts","href":"/api/accounting/accounts/create"},{"title":"Modify an account","openapi":"PATCH /v1/accounts/{accountNumber}","href":"/api/accounting/accounts/modify"},{"title":"Delete an account","openapi":"DELETE /v1/accounts/{accountNumber}","href":"/api/accounting/accounts/delete"}]},{"group":"Receipts","pages":[{"title":"Upload a receipt","openapi":"POST /v1/receipts","href":"/api/receipts/upload"},{"title":"Attach a receipt to a ledger entry","openapi":"POST /v1/receipts/{receiptId}/attach","href":"/api/receipts/attach"}]},{"group":"Contacts","pages":[{"title":"Find contacts","openapi":"GET /v1/contacts","href":"/api/contacts/find"},{"title":"Get specific contact","openapi":"GET /v1/contacts/{contactId}","href":"/api/contacts/get-specific"},{"title":"Create contact","openapi":"POST /v1/contacts","href":"/api/contacts/create"},{"title":"Modify contact","openapi":"PATCH /v1/contacts/{contactId}","href":"/api/contacts/modify"},{"title":"Delete contact","openapi":"DELETE /v1/contacts/{contactId}","href":"/api/contacts/delete"}]},{"group":"Invoices","pages":[{"title":"Find invoices","openapi":"GET /v1/invoices","href":"/api/invoices/find"},{"title":"Get specific invoice","openapi":"GET /v1/invoices/{invoiceId}","href":"/api/invoices/get-specific"},{"title":"Create invoice","openapi":"POST /v1/invoices","href":"/api/invoices/create"},{"title":"Modify invoice","openapi":"PATCH /v1/invoices/{invoiceId}","href":"/api/invoices/modify"},{"title":"Delete invoice","openapi":"DELETE /v1/invoices/{invoiceId}","href":"/api/invoices/delete"},{"title":"Download invoice PDF","openapi":"GET /v1/invoices/{invoiceId}/pdf","href":"/api/invoices/pdf"},{"title":"List invoice PDF attachments","openapi":"GET /v1/invoices/{invoiceId}/pdf-attachments","href":"/api/invoices/pdf-attachments-list"},{"title":"Add an invoice PDF attachment","openapi":"POST /v1/invoices/{invoiceId}/pdf-attachments","href":"/api/invoices/pdf-attachments-add"},{"title":"Remove an invoice PDF attachment","openapi":"DELETE /v1/invoices/{invoiceId}/pdf-attachments/{attachmentId}","href":"/api/invoices/pdf-attachments-remove"},{"title":"Record a payment","openapi":"POST /v1/invoices/{invoiceId}/payments","href":"/api/invoices/record-payment"},{"title":"Send invoice by email","openapi":"POST /v1/invoices/{invoiceId}/send","href":"/api/invoices/send"},{"title":"Annul invoice","openapi":"POST /v1/invoices/{invoiceId}/annulment","href":"/api/invoices/annul"},{"title":"Undo annulment","openapi":"DELETE /v1/invoices/{invoiceId}/annulment","href":"/api/invoices/undo-annulment"},{"title":"List invoice templates","openapi":"GET /v1/invoice-templates","href":"/api/invoices/templates"}]},{"group":"Estimates","pages":[{"title":"Find estimates","openapi":"GET /v1/estimates","href":"/api/estimates/find"},{"title":"Get specific estimate","openapi":"GET /v1/estimates/{estimateId}","href":"/api/estimates/get-specific"},{"title":"Create estimate","openapi":"POST /v1/estimates","href":"/api/estimates/create"},{"title":"Modify estimate","openapi":"PATCH /v1/estimates/{estimateId}","href":"/api/estimates/modify"},{"title":"Delete estimate","openapi":"DELETE /v1/estimates/{estimateId}","href":"/api/estimates/delete"},{"title":"Download estimate PDF","openapi":"GET /v1/estimates/{estimateId}/pdf","href":"/api/estimates/pdf"},{"title":"List estimate PDF attachments","openapi":"GET /v1/estimates/{estimateId}/pdf-attachments","href":"/api/estimates/pdf-attachments-list"},{"title":"Add an estimate PDF attachment","openapi":"POST /v1/estimates/{estimateId}/pdf-attachments","href":"/api/estimates/pdf-attachments-add"},{"title":"Remove an estimate PDF attachment","openapi":"DELETE /v1/estimates/{estimateId}/pdf-attachments/{attachmentId}","href":"/api/estimates/pdf-attachments-remove"},{"title":"Send estimate by email","openapi":"POST /v1/estimates/{estimateId}/send","href":"/api/estimates/send"},{"title":"Set estimate status","openapi":"PUT /v1/estimates/{estimateId}/status","description":"Updates the status of the estimate.","href":"/api/estimates/set-status"},{"title":"Convert estimate to invoice","openapi":"POST /v1/estimates/{estimateId}/convert-to-invoice","href":"/api/estimates/convert-to-invoice"}]},{"group":"Projects","pages":[{"title":"Find projects","openapi":"GET /v1/projects","description":"Finds matching projects in the organisation. Returns slim preview objects suitable for listings. Use this to resolve the project id that work entries should be recorded on.","href":"/api/projects/find"},{"title":"Get specific project","openapi":"GET /v1/projects/{projectId}","href":"/api/projects/get-specific"}]},{"group":"Work entries","pages":[{"title":"Find work entries","openapi":"GET /v1/projects/{projectId}/work-entries","href":"/api/projects/work-entries/find"},{"title":"Record a work entry","openapi":"POST /v1/projects/{projectId}/work-entries","href":"/api/projects/work-entries/create"},{"title":"Modify work entry","openapi":"PATCH /v1/projects/{projectId}/work-entries/{workEntryId}","href":"/api/projects/work-entries/modify"},{"title":"Delete work entry","openapi":"DELETE /v1/projects/{projectId}/work-entries/{workEntryId}","href":"/api/projects/work-entries/delete"}]}]}]},"title":"Convert estimate to invoice - infinity.swiss Dokumentation","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-n7I5XbKb.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}