Requires write:billing. Creates a one-off invoice as a draft for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (description + amountCents), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at dashboardUrl. Tax and processing fees follow the facility’s settings.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Car Storage Software","description":"Product guides for running your car storage facility — setup, customers, cars, payments, schedule, and more.","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/carstoragesoftware/QGG5QZL7lZNyMVPE/logo/light.svg?fit=max\u0026auto=format\u0026n=QGG5QZL7lZNyMVPE\u0026q=85\u0026s=0c1e167ce51917d10a38a768657460b3","dark":"https://mintcdn.com/carstoragesoftware/QGG5QZL7lZNyMVPE/logo/dark.svg?fit=max\u0026auto=format\u0026n=QGG5QZL7lZNyMVPE\u0026q=85\u0026s=34c271c05797abfe50481507fcfb5f9d","href":"https://www.carstoragesoftware.com"},"favicon":{"light":"https://mintcdn.com/carstoragesoftware/QGG5QZL7lZNyMVPE/logo/light.svg?fit=max\u0026auto=format\u0026n=QGG5QZL7lZNyMVPE\u0026q=85\u0026s=0c1e167ce51917d10a38a768657460b3","dark":"https://mintcdn.com/carstoragesoftware/QGG5QZL7lZNyMVPE/logo/dark.svg?fit=max\u0026auto=format\u0026n=QGG5QZL7lZNyMVPE\u0026q=85\u0026s=34c271c05797abfe50481507fcfb5f9d"},"api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"]}},"background":{"color":{"light":"#F8FAFC","dark":"#0F172A"}},"navbar":{"links":[{"href":"https://www.carstoragesoftware.com","label":"Website"},{"href":"https://www.carstoragesoftware.com/booking","label":"Get a demo"}],"primary":{"type":"button","label":"Log in","href":"https://www.carstoragesoftware.com/auth/signin"}},"footer":{"socials":{"website":"https://www.carstoragesoftware.com"}},"fonts":{"family":"Inter"},"thumbnails":{"background":"https://mintcdn.com/carstoragesoftware/QGG5QZL7lZNyMVPE/logo/light.svg?fit=max\u0026auto=format\u0026n=QGG5QZL7lZNyMVPE\u0026q=85\u0026s=0c1e167ce51917d10a38a768657460b3"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"carstoragesoftware","hasAudioNarration":false,"actualSubdomain":"carstoragesoftware","customDomains":["www.carstoragesoftware.com"],"gitSource":{"type":"github","owner":"softservesoftware","repo":"cars","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae62d9cb1d87e83eee6ce48","collectionId":"5316586a-464c-4133-bfa2-0ad6bc79e358","liveDeploymentHistoryId":"6ae62d9cb1d87e83eee6ce48","schemaVersion":"v3"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae63a3d671d00a2b2ee8618","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Guides","count":222},{"language":"default","tag":"API reference","count":143},{"language":"default","tag":"Marketing","count":70},{"language":"default","tag":"Cars","count":39},{"language":"default","tag":"Contacts","count":25},{"language":"default","tag":"Settings","count":25},{"language":"default","tag":"Campaigns","count":25},{"language":"default","tag":"Facility Web Pages","count":19},{"language":"default","tag":"Schedule","count":18},{"language":"default","tag":"AI Assistant","count":17}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@carstoragesoftware.com"}},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--sidebar-width:18rem}#sidebar-content{hyphens:manual}"}],"page":{"pagePath":"api-reference/billing/create-draft-invoice","slug":"/api-reference/billing/create-draft-invoice","pageMetadata":{"title":"Create draft invoice","description":"Requires `write:billing`. Creates a one-off invoice **as a draft** for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (`description` + `amountCents`), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at `dashboardUrl`. Tax and processing fees follow the facility's settings.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/invoices","href":"/api-reference/billing/create-draft-invoice","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Requires \", _jsx(_components.code, {\n children: \"write:billing\"\n }), \". Creates a one-off invoice \", _jsx(_components.strong, {\n children: \"as a draft\"\n }), \" for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (\", _jsx(_components.code, {\n children: \"description\"\n }), \" + \", _jsx(_components.code, {\n children: \"amountCents\"\n }), \"), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at \", _jsx(_components.code, {\n children: \"dashboardUrl\"\n }), \". Tax and processing fees follow the facility’s settings.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create draft invoice","description":"Requires `write:billing`. Creates a one-off invoice **as a draft** for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (`description` + `amountCents`), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at `dashboardUrl`. Tax and processing fees follow the facility's settings.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/invoices","href":"/api-reference/billing/create-draft-invoice","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create draft invoice","description":"Requires `write:billing`. Creates a one-off invoice **as a draft** for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (`description` + `amountCents`), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at `dashboardUrl`. Tax and processing fees follow the facility's settings.","tags":["Billing"],"security":["8b364095-ae7e-4268-9a6c-97d1755b7de5"],"requestBody":"3226a16d-dac9-498d-be9d-67a34617d017","responses":{"201":"974e6f80-1175-4955-8972-12177ead7acb","401":"be727837-7daa-4f33-87a0-c1c0d1ccea5c","403":"8fa2008c-3fd1-41d8-8dad-c132dd985025","404":"5a6cb623-1fce-4b73-bdc2-29162a349b89","409":"f890edc8-bbf5-4f2c-ab91-1c0d9c16d0b8","422":"c9b88691-5db8-4013-8734-d2e71a8fc9e1"},"method":"post","type":"path","servers":["e6d1230a-6539-4361-ad88-5c4d9dd284a6"],"path":"/api/v1/billing/invoices","baseUrlOptions":["https://www.carstoragesoftware.com"],"title":"Create draft invoice","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","description":"Customer id from `list_customers`.","isRequired":true,"uniqueKey":"customerId","typeLabel":"string\u003cuuid>"},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","description":"One-time product (from `list_billing_products`, type `one_off`).","uniqueKey":"\\items.items.[INDEX].productId","typeLabel":"string\u003cuuid>"},"priceId":{"type":"string","format":"uuid","description":"One of the product's prices; defaults to the product's price.","uniqueKey":"\\items.items.[INDEX].priceId","typeLabel":"string\u003cuuid>"},"description":{"type":"string","minLength":1,"maxLength":500,"description":"Line text. Required for a custom line (no productId), e.g. `Battery tender install`.","uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string"},"amountCents":{"type":"integer","minimum":1,"maximum":10000000,"description":"Unit price in cents, before tax and processing fees. Required for a custom line; with a productId it overrides the product's price.","uniqueKey":"\\items.items.[INDEX].amountCents","typeLabel":"integer"},"quantity":{"type":"integer","minimum":1,"maximum":100,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"carId":{"type":"string","format":"uuid","description":"Car this line is for.","uniqueKey":"\\items.items.[INDEX].carId","typeLabel":"string\u003cuuid>"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":25,"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"dueDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Due date (YYYY-MM-DD). Defaults to the facility's usual terms.","uniqueKey":"dueDate","typeLabel":"string"},"memo":{"type":"string","maxLength":500,"description":"Note shown on the invoice.","uniqueKey":"memo","typeLabel":"string"}},"required":["customerId","items"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"customerId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","items":[{"productId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","priceId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","description":"\u003cstring>","amountCents":5000000,"quantity":50,"carId":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}],"dueDate":"\u003cstring>","memo":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"974e6f80-1175-4955-8972-12177ead7acb":{"description":"Draft invoice created.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["dashboardUrl","id","number","customerId","status","currency","totalCents","amountDueCents","amountPaidCents","amountRemainingCents","dueDate","createdAt","paidAt","hostedInvoiceUrl","subscriptionId"],"properties":{"id":{"type":"string","description":"Stripe invoice id (`in_…`).","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"number":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.number.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.number","typeLabel":"string | null"},"customerId":{"oneOf":[{"type":"string","format":"uuid","description":"Car Storage Software customer id, when linked.","isRequired":true,"uniqueKey":"data.customerId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Car Storage Software customer id, when linked.","isRequired":true,"uniqueKey":"data.customerId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.customerId","typeLabel":"string\u003cuuid> | null"},"status":{"oneOf":[{"type":"string","description":"`draft`, `open`, `paid`, `void`, or `uncollectible`.","isRequired":true,"uniqueKey":"data.status.oneOf.0","typeLabel":"string"},{"type":"null","description":"`draft`, `open`, `paid`, `void`, or `uncollectible`.","isRequired":true,"uniqueKey":"data.status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.status","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"data.currency","typeLabel":"string"},"totalCents":{"type":"integer","isRequired":true,"uniqueKey":"data.totalCents","typeLabel":"integer"},"amountDueCents":{"type":"integer","isRequired":true,"uniqueKey":"data.amountDueCents","typeLabel":"integer"},"amountPaidCents":{"type":"integer","isRequired":true,"uniqueKey":"data.amountPaidCents","typeLabel":"integer"},"amountRemainingCents":{"type":"integer","isRequired":true,"uniqueKey":"data.amountRemainingCents","typeLabel":"integer"},"dueDate":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.dueDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.dueDate.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.dueDate","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.createdAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.createdAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time> | null"},"paidAt":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.paidAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.paidAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.paidAt","typeLabel":"string\u003cdate-time> | null"},"hostedInvoiceUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.hostedInvoiceUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.hostedInvoiceUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.hostedInvoiceUrl","typeLabel":"string | null"},"subscriptionId":{"oneOf":[{"type":"string","description":"Stripe subscription id, when recurring.","isRequired":true,"uniqueKey":"data.subscriptionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Stripe subscription id, when recurring.","isRequired":true,"uniqueKey":"data.subscriptionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.subscriptionId","typeLabel":"string | null"},"dashboardUrl":{"type":"string","description":"The draft in Payments, where staff can review and send it.","isRequired":true,"uniqueKey":"data.dashboardUrl","typeLabel":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"description":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].description","typeLabel":"string | null"},"amountCents":{"type":"integer","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].amountCents","typeLabel":"integer"},"quantity":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].quantity.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].quantity","typeLabel":"integer | null"}},"required":["description","amountCents","quantity"],"uniqueKey":"data.lines.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.lines","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"\u003cstring>","number":"\u003cstring>","customerId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"\u003cstring>","currency":"\u003cstring>","totalCents":123,"amountDueCents":123,"amountPaidCents":123,"amountRemainingCents":123,"dueDate":"2023-11-07T05:31:56Z","createdAt":"2023-11-07T05:31:56Z","paidAt":"2023-11-07T05:31:56Z","hostedInvoiceUrl":"\u003cstring>","subscriptionId":"\u003cstring>","dashboardUrl":"\u003cstring>","lines":[{"description":"\u003cstring>","amountCents":123,"quantity":123}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"be727837-7daa-4f33-87a0-c1c0d1ccea5c":{"description":"Missing, invalid, revoked, or expired API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"null"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","details":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8fa2008c-3fd1-41d8-8dad-c132dd985025":{"description":"API key missing required scope, or API disabled for team.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"null"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","details":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5a6cb623-1fce-4b73-bdc2-29162a349b89":{"description":"Resource not found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"null"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","details":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f890edc8-bbf5-4f2c-ab91-1c0d9c16d0b8":{"description":"Payments aren't set up for this facility (no connected Stripe account).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"null"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","details":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"},"c9b88691-5db8-4013-8734-d2e71a8fc9e1":{"description":"Request validation failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"null"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","details":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"8b364095-ae7e-4268-9a6c-97d1755b7de5":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Team API key from Settings → Integrations. Use `Authorization: Bearer \u003ckey>` or `x-api-key`.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"e6d1230a-6539-4361-ad88-5c4d9dd284a6":{"url":"https://www.carstoragesoftware.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Team API key from Settings → Integrations. Use `Authorization: Bearer \u003ckey>` or `x-api-key`.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Team API key from Settings → Integrations. Use `Authorization: Bearer \u003ckey>` or `x-api-key`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"carstoragesoftware","siteName":"Car Storage Software","title":"Create draft invoice - Car Storage Software","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-31T18:58:15.964Z","originalFileLocation":"api-reference/billing/create-draft-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=\"Requires write:billing. Creates a one-off invoice as a draft for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (description + amountCents), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at dashboardUrl. Tax and processing fees follow the facility\u0026#x27;s settings.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Car Storage Software\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create draft invoice - Car Storage Software\">\u003cmeta data-mint-head property=\"og:description\" content=\"Requires write:billing. Creates a one-off invoice as a draft for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (description + amountCents), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at dashboardUrl. Tax and processing fees follow the facility\u0026#x27;s settings.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Car Storage Software\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://carstoragesoftware.mintlify.app/_mintlify/api/og/v2?division=Billing\u0026amp;title=Create+draft+invoice\u0026amp;description=Requires+%60write%3Abilling%60.+Creates+a+one-off+invoice+**as+a+draft**+for+a+customer%2C+from+one-time+products+%28default+or+chosen+price%2C+or+a+custom+amount%29+and%2For+c\u0026amp;theme=8ad41e11371321e0017aa409\u0026amp;signature=a48722a2e0a3bef2ae106781a889756d6097e56f9f5674e889116972be450155\">\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=\"Create draft invoice - Car Storage Software\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Requires write:billing. Creates a one-off invoice as a draft for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (description + amountCents), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at dashboardUrl. Tax and processing fees follow the facility\u0026#x27;s settings.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://carstoragesoftware.mintlify.app/_mintlify/api/og/v2?division=Billing\u0026amp;title=Create+draft+invoice\u0026amp;description=Requires+%60write%3Abilling%60.+Creates+a+one-off+invoice+**as+a+draft**+for+a+customer%2C+from+one-time+products+%28default+or+chosen+price%2C+or+a+custom+amount%29+and%2For+c\u0026amp;theme=8ad41e11371321e0017aa409\u0026amp;signature=a48722a2e0a3bef2ae106781a889756d6097e56f9f5674e889116972be450155\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/carstoragesoftware/s_Dvgo6yXhr_zehh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Car Storage Software\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/billing/create-draft-invoice.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.carstoragesoftware.com/#organization\",\"name\":\"Car Storage Software\",\"url\":\"https://www.carstoragesoftware.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/carstoragesoftware/QGG5QZL7lZNyMVPE/logo/light.svg?fit=max\u0026auto=format\u0026n=QGG5QZL7lZNyMVPE\u0026q=85\u0026s=0c1e167ce51917d10a38a768657460b3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.carstoragesoftware.com/docs#website\",\"name\":\"Car Storage Software\",\"url\":\"https://www.carstoragesoftware.com/docs\",\"publisher\":{\"@id\":\"https://www.carstoragesoftware.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice#webpage\",\"url\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice\",\"name\":\"Create draft invoice\",\"description\":\"Requires write:billing. Creates a one-off invoice as a draft for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (description + amountCents), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at dashboardUrl. Tax and processing fees follow the facility's settings.\",\"dateModified\":\"2026-10-31T18:58:15.964Z\",\"isPartOf\":{\"@id\":\"https://www.carstoragesoftware.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Billing\",\"item\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/list-billing-products\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create draft invoice\",\"item\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice#apireference\",\"headline\":\"Create draft invoice\",\"name\":\"Create draft invoice\",\"description\":\"Requires write:billing. Creates a one-off invoice as a draft for a customer, from one-time products (default or chosen price, or a custom amount) and/or custom lines (description + amountCents), with an optional car per line, due date and memo. Nothing is sent or charged; sending is a separate action, and staff can also finish it at dashboardUrl. Tax and processing fees follow the facility's settings.\",\"url\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice\",\"mainEntityOfPage\":{\"@id\":\"https://www.carstoragesoftware.com/docs/api-reference/billing/create-draft-invoice#webpage\"},\"dateModified\":\"2026-10-31T18:58:15.964Z\",\"publisher\":{\"@id\":\"https://www.carstoragesoftware.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.carstoragesoftware.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Car Storage Software\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Car Storage Software","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Get started","icon":"code","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Pagination and filtering","href":"/api-reference/pagination-and-filtering"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Car intake workflow","href":"/api-reference/car-intake-workflow"},{"title":"Schedule an event","href":"/api-reference/schedule-an-event"}]},{"group":"Cars","icon":"car","pages":[{"group":"Cars","pages":[{"title":"List cars","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/cars","href":"/api-reference/cars/list-cars"},{"title":"Create car","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/cars","href":"/api-reference/cars/create-car"},{"title":"Get car","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/cars/{id}","href":"/api-reference/cars/get-car"},{"title":"Update car","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/cars/{id}","href":"/api-reference/cars/update-car"},{"title":"Delete car","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/cars/{id}","href":"/api-reference/cars/delete-car"}]},{"group":"Events \u0026 photos","pages":[{"title":"Create car event (drop-off / intake)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/cars/{id}/events","href":"/api-reference/cars/create-car-event-drop-off-intake"},{"title":"List car photos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/cars/{id}/photos","href":"/api-reference/cars/list-car-photos"},{"title":"Upload car photo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/cars/{id}/photos","href":"/api-reference/cars/upload-car-photo"}]}]},{"group":"Customers","icon":"users","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/customers","href":"/api-reference/customers/list-customers"},{"title":"Create customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/customers","href":"/api-reference/customers/create-customer"},{"title":"Get customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/customers/{id}","href":"/api-reference/customers/get-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/customers/{id}","href":"/api-reference/customers/update-customer"},{"title":"Delete customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/customers/{id}","href":"/api-reference/customers/delete-customer"}]},{"group":"Contacts","icon":"address-book","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/contacts","href":"/api-reference/contacts/create-contact"},{"title":"Get contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/contacts/{id}","href":"/api-reference/contacts/get-contact"},{"title":"Update contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/contacts/{id}","href":"/api-reference/contacts/update-contact"},{"title":"Delete contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/contacts/{id}","href":"/api-reference/contacts/delete-contact"}]},{"group":"Locations","icon":"location-dot","pages":[{"title":"List locations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/locations","href":"/api-reference/locations/list-locations"},{"title":"Create location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/locations","href":"/api-reference/locations/create-location"},{"title":"Get location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/locations/{id}","href":"/api-reference/locations/get-location"},{"title":"Update location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/locations/{id}","href":"/api-reference/locations/update-location"},{"title":"Delete location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/locations/{id}","href":"/api-reference/locations/delete-location"}]},{"group":"Parking","icon":"square-parking","pages":[{"group":"Parking zones","pages":[{"title":"List parking zones","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/parking-zones","href":"/api-reference/parking/list-parking-zones"},{"title":"Create parking zone","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/parking-zones","href":"/api-reference/parking/create-parking-zone"},{"title":"Get parking zone","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/parking-zones/{id}","href":"/api-reference/parking/get-parking-zone"},{"title":"Update parking zone","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/parking-zones/{id}","href":"/api-reference/parking/update-parking-zone"},{"title":"Delete parking zone","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/parking-zones/{id}","href":"/api-reference/parking/delete-parking-zone"}]},{"group":"Parking spots","pages":[{"title":"List parking spots","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/parking-spots","href":"/api-reference/parking/list-parking-spots"},{"title":"Create parking spot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/parking-spots","href":"/api-reference/parking/create-parking-spot"},{"title":"Get parking spot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/parking-spots/{id}","href":"/api-reference/parking/get-parking-spot"},{"title":"Update parking spot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/parking-spots/{id}","href":"/api-reference/parking/update-parking-spot"},{"title":"Delete parking spot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/parking-spots/{id}","href":"/api-reference/parking/delete-parking-spot"}]},{"group":"Parking assignments","pages":[{"title":"List parking assignments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/parking-assignments","href":"/api-reference/parking/list-parking-assignments"},{"title":"Create parking assignment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/parking-assignments","href":"/api-reference/parking/create-parking-assignment"},{"title":"Get parking assignment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/parking-assignments/{id}","href":"/api-reference/parking/get-parking-assignment"},{"title":"Update parking assignment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/parking-assignments/{id}","href":"/api-reference/parking/update-parking-assignment"},{"title":"Delete parking assignment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/parking-assignments/{id}","href":"/api-reference/parking/delete-parking-assignment"}]}]},{"group":"Event types","icon":"list-check","pages":[{"title":"List event types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/event-types","href":"/api-reference/event-types/list-event-types"}]},{"group":"Appointments","icon":"calendar","pages":[{"title":"List appointments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/appointments","href":"/api-reference/appointments/list-appointments"},{"title":"Create appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/appointments","href":"/api-reference/appointments/create-appointment"},{"title":"Get appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/appointments/{id}","href":"/api-reference/appointments/get-appointment"},{"title":"Update appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/appointments/{id}","href":"/api-reference/appointments/update-appointment"},{"title":"Delete appointment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/appointments/{id}","href":"/api-reference/appointments/delete-appointment"}]},{"group":"Billing","icon":"file-invoice-dollar","pages":[{"title":"List billing products","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/products","href":"/api-reference/billing/list-billing-products"},{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/subscriptions","href":"/api-reference/billing/list-subscriptions"},{"title":"Get subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/subscriptions/{id}","href":"/api-reference/billing/get-subscription"},{"title":"List invoices","description":"Requires `read:billing`. Invoices from the facility's Stripe account, newest first. Cursor pagination: pass the previous response's `nextStartingAfter` as `startingAfter`. Filter with `customerId` (our customer id) or `status`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/invoices","href":"/api-reference/billing/list-invoices"},{"title":"Create draft invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/invoices","href":"/api-reference/billing/create-draft-invoice"},{"title":"Get invoice","description":"Requires `read:billing`. One invoice with its line items and hosted payment link.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/invoices/{id}","href":"/api-reference/billing/get-invoice"},{"title":"Send invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/invoices/{id}/send","href":"/api-reference/billing/send-invoice"},{"title":"Void invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/invoices/{id}/void","href":"/api-reference/billing/void-invoice"},{"title":"Get customer billing summary","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/billing/customers/{id}","href":"/api-reference/billing/get-customer-billing-summary"},{"title":"Add a line to a plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/subscriptions/{id}/add-item","href":"/api-reference/billing/add-a-line-to-a-plan"},{"title":"Remove a line from a plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/subscriptions/{id}/remove-item","href":"/api-reference/billing/remove-a-line-from-a-plan"},{"title":"Change a line's price","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/subscriptions/{id}/change-price","href":"/api-reference/billing/change-a-lines-price"},{"title":"Replace a line's product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/billing/subscriptions/{id}/swap-product","href":"/api-reference/billing/replace-a-lines-product"}]},{"group":"Communications","icon":"comments","pages":[{"group":"Threads","pages":[{"title":"List communication threads","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/communication-threads","href":"/api-reference/communications/list-communication-threads"},{"title":"Create communication thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/communication-threads","href":"/api-reference/communications/create-communication-thread"},{"title":"Get communication thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/communication-threads/{id}","href":"/api-reference/communications/get-communication-thread"},{"title":"Update communication thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/communication-threads/{id}","href":"/api-reference/communications/update-communication-thread"},{"title":"Delete communication thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/communication-threads/{id}","href":"/api-reference/communications/delete-communication-thread"},{"title":"List thread messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/communication-threads/{id}/messages","href":"/api-reference/communications/list-thread-messages"},{"title":"Create (and optionally send) outbound message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/communication-threads/{id}/messages","href":"/api-reference/communications/create-and-optionally-send-outbound-message"}]},{"group":"Messages","pages":[{"title":"Get message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/communication-messages/{id}","href":"/api-reference/communications/get-message"},{"title":"Update message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/communication-messages/{id}","href":"/api-reference/communications/update-message"},{"title":"Delete message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/communication-messages/{id}","href":"/api-reference/communications/delete-message"}]}]},{"group":"Marketing","icon":"bullhorn","pages":[{"group":"Campaigns","pages":[{"title":"List campaigns","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/campaigns","href":"/api-reference/marketing/list-campaigns"},{"title":"Create campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns","href":"/api-reference/marketing/create-campaign"},{"title":"Get campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/campaigns/{id}","href":"/api-reference/marketing/get-campaign"},{"title":"Update campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/campaigns/{id}","href":"/api-reference/marketing/update-campaign"},{"title":"Delete campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/campaigns/{id}","href":"/api-reference/marketing/delete-campaign"},{"title":"List campaign content steps","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/campaigns/{id}/content","href":"/api-reference/marketing/list-campaign-content-steps"},{"title":"Create campaign content step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/content","href":"/api-reference/marketing/create-campaign-content-step"},{"title":"Get campaign content step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/campaigns/{id}/content/{stepId}","href":"/api-reference/marketing/get-campaign-content-step"},{"title":"Update campaign content step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/campaigns/{id}/content/{stepId}","href":"/api-reference/marketing/update-campaign-content-step"},{"title":"Delete campaign content step","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/campaigns/{id}/content/{stepId}","href":"/api-reference/marketing/delete-campaign-content-step"},{"title":"List campaign audience","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/campaigns/{id}/audience","href":"/api-reference/marketing/list-campaign-audience"},{"title":"Add campaign audience members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/audience","href":"/api-reference/marketing/add-campaign-audience-members"},{"title":"Remove campaign audience member","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/campaigns/{id}/audience/{audienceId}","href":"/api-reference/marketing/remove-campaign-audience-member"},{"title":"Bulk remove audience members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/audience/remove","href":"/api-reference/marketing/bulk-remove-audience-members"},{"title":"Schedule campaign send","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/schedule","href":"/api-reference/marketing/schedule-campaign-send"},{"title":"Send campaign now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/send","href":"/api-reference/marketing/send-campaign-now"},{"title":"Cancel scheduled campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/cancel","href":"/api-reference/marketing/cancel-scheduled-campaign"},{"title":"Pause campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/pause","href":"/api-reference/marketing/pause-campaign"},{"title":"Resume campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/resume","href":"/api-reference/marketing/resume-campaign"},{"title":"Duplicate campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/{id}/duplicate","href":"/api-reference/marketing/duplicate-campaign"},{"title":"Preview campaign readiness","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/campaigns/{id}/preview","href":"/api-reference/marketing/preview-campaign-readiness"},{"title":"Campaign activity","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/campaigns/{id}/activity","href":"/api-reference/marketing/campaign-activity"},{"title":"Send test email","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/test/email","href":"/api-reference/marketing/send-test-email"},{"title":"Send test SMS","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/test/sms","href":"/api-reference/marketing/send-test-sms"},{"title":"Send test push notification","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/campaigns/test/push","href":"/api-reference/marketing/send-test-push-notification"}]},{"group":"Templates","pages":[{"title":"List marketing templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/templates","href":"/api-reference/marketing/list-marketing-templates"},{"title":"Create marketing template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/templates","href":"/api-reference/marketing/create-marketing-template"},{"title":"Get marketing template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/templates/{id}","href":"/api-reference/marketing/get-marketing-template"},{"title":"Update marketing template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/templates/{id}","href":"/api-reference/marketing/update-marketing-template"},{"title":"Delete marketing template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/templates/{id}","href":"/api-reference/marketing/delete-marketing-template"}]},{"group":"Social posts","pages":[{"title":"List social posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-posts","href":"/api-reference/marketing/list-social-posts"},{"title":"Create social post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/social-posts","href":"/api-reference/marketing/create-social-post"},{"title":"Get social post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-posts/{id}","href":"/api-reference/marketing/get-social-post"},{"title":"Update social post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/social-posts/{id}","href":"/api-reference/marketing/update-social-post"},{"title":"Delete social post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/social-posts/{id}","href":"/api-reference/marketing/delete-social-post"}]},{"group":"Social accounts","pages":[{"title":"List connected social accounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-accounts","href":"/api-reference/marketing/list-connected-social-accounts"}]},{"group":"Social events","pages":[{"title":"List social events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-events","href":"/api-reference/marketing/list-social-events"},{"title":"Create social event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/social-events","href":"/api-reference/marketing/create-social-event"},{"title":"Get social event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-events/{id}","href":"/api-reference/marketing/get-social-event"},{"title":"Update social event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/social-events/{id}","href":"/api-reference/marketing/update-social-event"},{"title":"Delete social event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/social-events/{id}","href":"/api-reference/marketing/delete-social-event"},{"title":"Duplicate social event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/social-events/{id}/duplicate","href":"/api-reference/marketing/duplicate-social-event"},{"title":"List RSVP options","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-events/{id}/rsvp-options","href":"/api-reference/marketing/list-rsvp-options"},{"title":"Replace RSVP options","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /api/v1/marketing/social-events/{id}/rsvp-options","href":"/api-reference/marketing/replace-rsvp-options"},{"title":"List event invites","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-events/{id}/invites","href":"/api-reference/marketing/list-event-invites"},{"title":"Add event invites","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/social-events/{id}/invites","href":"/api-reference/marketing/add-event-invites"},{"title":"Remove event invite","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/social-events/{id}/invites/{customerId}","href":"/api-reference/marketing/remove-event-invite"},{"title":"List event RSVPs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/social-events/{id}/rsvps","href":"/api-reference/marketing/list-event-rsvps"},{"title":"Set RSVP option audience","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /api/v1/marketing/social-events/{id}/rsvp-options/{optionId}/audience","href":"/api-reference/marketing/set-rsvp-option-audience"}]},{"group":"Forms","pages":[{"title":"List forms","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/forms","href":"/api-reference/marketing/list-forms"},{"title":"Create form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/forms","href":"/api-reference/marketing/create-form"},{"title":"Get form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/forms/{id}","href":"/api-reference/marketing/get-form"},{"title":"Update form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/forms/{id}","href":"/api-reference/marketing/update-form"},{"title":"Delete form","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/forms/{id}","href":"/api-reference/marketing/delete-form"},{"title":"List form submissions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/forms/{id}/submissions","href":"/api-reference/marketing/list-form-submissions"},{"title":"Get form submission","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/forms/{id}/submissions/{submissionId}","href":"/api-reference/marketing/get-form-submission"},{"title":"Link or unlink submission customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/forms/{id}/submissions/{submissionId}","href":"/api-reference/marketing/link-or-unlink-submission-customer"}]},{"group":"Assets","pages":[{"title":"List marketing assets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/assets","href":"/api-reference/marketing/list-marketing-assets"},{"title":"Create marketing asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/assets","href":"/api-reference/marketing/create-marketing-asset"},{"title":"Get marketing asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/assets/{id}","href":"/api-reference/marketing/get-marketing-asset"},{"title":"Update marketing asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/assets/{id}","href":"/api-reference/marketing/update-marketing-asset"},{"title":"Delete marketing asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/assets/{id}","href":"/api-reference/marketing/delete-marketing-asset"},{"title":"Upload marketing asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/assets/upload","href":"/api-reference/marketing/upload-marketing-asset"},{"title":"Link platform photos as assets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/assets/link-photos","href":"/api-reference/marketing/link-platform-photos-as-assets"}]},{"group":"Asset folders","pages":[{"title":"List asset folders","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/asset-folders","href":"/api-reference/marketing/list-asset-folders"},{"title":"Create asset folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/marketing/asset-folders","href":"/api-reference/marketing/create-asset-folder"},{"title":"Get asset folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/asset-folders/{id}","href":"/api-reference/marketing/get-asset-folder"},{"title":"Update asset folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/marketing/asset-folders/{id}","href":"/api-reference/marketing/update-asset-folder"},{"title":"Delete asset folder","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/marketing/asset-folders/{id}","href":"/api-reference/marketing/delete-asset-folder"}]},{"group":"Calendar","pages":[{"title":"Marketing calendar aggregate","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/marketing/calendar","href":"/api-reference/marketing/marketing-calendar-aggregate"}]}]}]}]},"basePath":"","title":"Create draft invoice - Car Storage Software","buildId":"dpl_6cCEiK8XNNvaLBBkWzcBhdE9QfLC","deploymentId":"dpl_6cCEiK8XNNvaLBBkWzcBhdE9QfLC","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CLz2_Z5D.js","utils-7A5jZhOT.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BVWmkKuv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-4SOfrh0F.js","snippetPresets-CMc8KicP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ba9tX7z3.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Be8krXvv.js","shallow-CBC3K1uB.js","getApiPlaygroundDisplay-4tKcUAYo.js","CodeSnippet-C1Xa06ft.js","CodeSnippets-vqiz27A_.js","Page-DeQN5MDd.js","getPastedJson-NUwRfM32.js","icon-DkIVqWh9.js","MethodPill-qmhT7_wz.js","DuplicateIcon-_gWp1vhn.js","createIcon-NA1p_TVA.js","DynamicMarkdown-Bas9A7wq.js","SectionHeading-a1cS-24U.js","axios-vUo_bRtp.js","Markdown-D3ZTwq_a.js","clsx-BcghKhHb.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-B66mVNPp.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DmooSyTN.js"]}