Update an invoice with override fields, line item descriptions, and/or PDF attachments.
Field
Affects this invoice
Persists to future invoices
due_at
✓
✗
purchase_order
✓
✓ (if persist_purchase_order=true)
billing_address
✓
✓ (Updates subscription)
company_name
✓
✓ (Updates subscription)
accounts_payable_emails
✓
✓ (Updates subscription)
invoice_memo
✓
✓ (if persist_memo=true)
line_item_overrides
✓
✗
Upload PDF attachments as multipart form data using the pdf_attachments field.
Edits to invoices that have not been issued yet (SCHEDULED, DRAFT) are saved
without generating a PDF, a new version or a new invoice number, and
send_invoice is ignored. These happen when the invoice is issued.
Whether to persist the purchase order number on all future invoices. Defaults to false. When true, the PO number will be applied to all future invoices for this subscription. When false, the PO number is only set for this specific invoice.
Configuration for managing attachments. Each item specifies either an existing attachment to keep (by attachment_id) or a new file to add (by new_file_index), along with a 'target' to specify where to store it ('invoice' or 'subscription'). The order in this array determines the unified order of attachments in the PDF. Existing attachments NOT in this list will be DELETED. If omitted, pdf_attachments will replace all existing invoice-level attachments.
Whether to enable automatic retries for failed payments. When enabled, failed invoice payments will be retried using saved payment methods. Defaults to False.
Optional metadata to add to the invoice. Pass null for no change. Sending an empty map will delete all keys. Keys prefixed with _ are private and will be ignored.
Signed URL to download the invoice PDF. Expires in 1 hour. Empty for invoices that have not been issued yet (SCHEDULED, DRAFT); their PDF is generated when they are issued.
Current attachments for this invoice as a flat array. Array order reflects the PDF merge order (unified across both levels).
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Salesbricks","colors":{"primary":"#197F78","light":"#26BFB4","dark":"#197F78"},"logo":{"light":"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/logo/light.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=ead3e65ff72970d53a9cd22de50bd8fc","dark":"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/logo/dark.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=786876a66955115a9896bb4ce9e0f779","href":"https://www.salesbricks.com"},"favicon":"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/favicon.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=149c42d5e530bbd556361118b756ccb8","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"key"},"server":["https://api.salesbricks.com"]}},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"primary":{"type":"button","label":"Log in","href":"https://app.salesbricks.com/login"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/salesbricks","x":"https://twitter.com/getsalesbricks","instagram":"https://www.instagram.com/salesbricks"}},"search":{"prompt":"Search Salesbricks docs..."},"seo":{"indexing":"navigable"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"salesbricks","hasAudioNarration":false,"actualSubdomain":"salesbricks","customDomains":["docs.salesbricks.com"],"gitSource":{"type":"github","owner":"goderecho","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4d297f0f0e506e23495aa","collectionId":"e22ee52d-f716-4e2e-b522-09bd305a1646","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4d297f0f0e506e23495aa"},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed16ea8eec1bf8be06828a","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"APIs \u0026 Webhooks","count":127},{"language":"default","tag":"REST API Endpoints","count":83},{"language":"default","tag":"Documentation","count":40},{"language":"default","tag":"Webhooks","count":34},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Invoices","count":13},{"language":"default","tag":"Subscriptions","count":12},{"language":"default","tag":"Usage","count":11},{"language":"default","tag":"Payment Methods","count":11},{"language":"default","tag":"Order Webhooks","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"table.two-column td,table.two-column th{width:50%}"}],"page":{"pagePath":"api-reference/invoices/update-an-invoice","slug":"/api-reference/invoices/update-an-invoice","pageMetadata":{"title":"Update an invoice","description":"\nUpdate an invoice with override fields, line item descriptions, and/or PDF attachments.\n\n| Field | Affects this invoice | Persists to future invoices |\n|-------|---------------------|----------------------------|\n| `due_at` | ✓ | ✗ |\n| `purchase_order` | ✓ | ✓ (if `persist_purchase_order=true`) |\n| `billing_address` | ✓ | ✓ (Updates subscription) |\n| `company_name` | ✓ | ✓ (Updates subscription) |\n| `accounts_payable_emails` | ✓ | ✓ (Updates subscription) |\n| `invoice_memo` | ✓ | ✓ (if `persist_memo=true`) |\n| `line_item_overrides` | ✓ | ✗ |\n\nUpload PDF attachments as multipart form data using the `pdf_attachments` field.\n\nEdits to invoices that have not been issued yet (`SCHEDULED`, `DRAFT`) are saved\nwithout generating a PDF, a new version or a new invoice number, and\n`send_invoice` is ignored. These happen when the invoice is issued.\n","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /invoices/{invoice_id}","href":"/api-reference/invoices/update-an-invoice","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Update an invoice with override fields, line item descriptions, and/or PDF attachments.\"\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"Field\"\n }), _jsx(_components.th, {\n children: \"Affects this invoice\"\n }), _jsx(_components.th, {\n children: \"Persists to future invoices\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"due_at\"\n })\n }), _jsx(_components.td, {\n children: \"✓\"\n }), _jsx(_components.td, {\n children: \"✗\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"purchase_order\"\n })\n }), _jsx(_components.td, {\n children: \"✓\"\n }), _jsxs(_components.td, {\n children: [\"✓ (if \", _jsx(_components.code, {\n children: \"persist_purchase_order=true\"\n }), \")\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"billing_address\"\n })\n }), _jsx(_components.td, {\n children: \"✓\"\n }), _jsx(_components.td, {\n children: \"✓ (Updates subscription)\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"company_name\"\n })\n }), _jsx(_components.td, {\n children: \"✓\"\n }), _jsx(_components.td, {\n children: \"✓ (Updates subscription)\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"accounts_payable_emails\"\n })\n }), _jsx(_components.td, {\n children: \"✓\"\n }), _jsx(_components.td, {\n children: \"✓ (Updates subscription)\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"invoice_memo\"\n })\n }), _jsx(_components.td, {\n children: \"✓\"\n }), _jsxs(_components.td, {\n children: [\"✓ (if \", _jsx(_components.code, {\n children: \"persist_memo=true\"\n }), \")\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"line_item_overrides\"\n })\n }), _jsx(_components.td, {\n children: \"✓\"\n }), _jsx(_components.td, {\n children: \"✗\"\n })]\n })]\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Upload PDF attachments as multipart form data using the \", _jsx(_components.code, {\n children: \"pdf_attachments\"\n }), \" field.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Edits to invoices that have not been issued yet (\", _jsx(_components.code, {\n children: \"SCHEDULED\"\n }), \", \", _jsx(_components.code, {\n children: \"DRAFT\"\n }), \") are saved\\nwithout generating a PDF, a new version or a new invoice number, and\\n\", _jsx(_components.code, {\n children: \"send_invoice\"\n }), \" is ignored. These happen when the invoice is issued.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update an invoice","description":"\nUpdate an invoice with override fields, line item descriptions, and/or PDF attachments.\n\n| Field | Affects this invoice | Persists to future invoices |\n|-------|---------------------|----------------------------|\n| `due_at` | ✓ | ✗ |\n| `purchase_order` | ✓ | ✓ (if `persist_purchase_order=true`) |\n| `billing_address` | ✓ | ✓ (Updates subscription) |\n| `company_name` | ✓ | ✓ (Updates subscription) |\n| `accounts_payable_emails` | ✓ | ✓ (Updates subscription) |\n| `invoice_memo` | ✓ | ✓ (if `persist_memo=true`) |\n| `line_item_overrides` | ✓ | ✗ |\n\nUpload PDF attachments as multipart form data using the `pdf_attachments` field.\n\nEdits to invoices that have not been issued yet (`SCHEDULED`, `DRAFT`) are saved\nwithout generating a PDF, a new version or a new invoice number, and\n`send_invoice` is ignored. These happen when the invoice is issued.\n","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /invoices/{invoice_id}","href":"/api-reference/invoices/update-an-invoice","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateInvoice","description":"\nUpdate an invoice with override fields, line item descriptions, and/or PDF attachments.\n\n| Field | Affects this invoice | Persists to future invoices |\n|-------|---------------------|----------------------------|\n| `due_at` | ✓ | ✗ |\n| `purchase_order` | ✓ | ✓ (if `persist_purchase_order=true`) |\n| `billing_address` | ✓ | ✓ (Updates subscription) |\n| `company_name` | ✓ | ✓ (Updates subscription) |\n| `accounts_payable_emails` | ✓ | ✓ (Updates subscription) |\n| `invoice_memo` | ✓ | ✓ (if `persist_memo=true`) |\n| `line_item_overrides` | ✓ | ✗ |\n\nUpload PDF attachments as multipart form data using the `pdf_attachments` field.\n\nEdits to invoices that have not been issued yet (`SCHEDULED`, `DRAFT`) are saved\nwithout generating a PDF, a new version or a new invoice number, and\n`send_invoice` is ignored. These happen when the invoice is issued.\n","summary":"Update an invoice","parameters":["e45d34a1-786f-43b5-8a37-ef741e2c1a19"],"tags":["Invoices"],"requestBody":"2a18cb5b-24f6-4463-8c3d-378479b422c1","responses":{"200":"df7e114a-7ff2-417a-85bd-ea5c585d89cd","400":"010c53a7-cf8a-4248-98a7-9bb92132bac8","404":"97aadd92-59b5-4372-b54f-d6a246e468fe","500":"0848feb0-fc23-480a-9c30-9470a19828ad"},"method":"patch","type":"path","servers":["473a595f-0b07-4538-b033-faf5582d0b46"],"security":["96e2b814-4b2f-4ec1-a062-fb177ecfca77"],"path":"/invoices/{invoice_id}","baseUrlOptions":["https://api.salesbricks.com/api/v2"],"title":"Update an invoice","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e45d34a1-786f-43b5-8a37-ef741e2c1a19":{"in":"path","name":"invoice_id","schema":{"type":"string","pattern":"^([a-zA-Z\\d\\-]+)$","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","description":"Input serializer for updating an invoice.","properties":{"due_at":{"oneOf":[{"type":"string","format":"date","description":"Override the due date for this invoice. Pass null for no change.","uniqueKey":"due_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Override the due date for this invoice. Pass null for no change.","uniqueKey":"due_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"due_at","typeLabel":"string\u003cdate> | null"},"issued_at":{"oneOf":[{"type":"string","format":"date","description":"Override the issue date for this invoice. Pass null for no change.","uniqueKey":"issued_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Override the issue date for this invoice. Pass null for no change.","uniqueKey":"issued_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"issued_at","typeLabel":"string\u003cdate> | null"},"purchase_order":{"oneOf":[{"type":"object","description":"Purchase order with code. Pass null for no change, empty object or empty code to clear.","properties":{"code":{"oneOf":[{"type":"string","description":"Internal identifier of the Purchase Order provided by Buyer","maxLength":255,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal identifier of the Purchase Order provided by Buyer","maxLength":255,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"purchase_order.oneOf.0.code","typeLabel":"string | null"}},"uniqueKey":"purchase_order.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"purchase_order.oneOf.1","typeLabel":"null"}],"uniqueKey":"purchase_order","typeLabel":"object | null"},"billing_address":{"oneOf":[{"type":"object","description":"Billing address. Pass null for no change. **Changes will reflect in the subscription.**","required":["city","country","line_1","zip"],"properties":{"line_1":{"type":"string","description":"The first line of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.line_1","typeLabel":"string"},"city":{"type":"string","description":"The city of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.city","typeLabel":"string"},"zip":{"type":"string","description":"The zip code of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.zip","typeLabel":"string"},"country":{"type":"string","description":"The country (ISO 3166: 2 character code) of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.country","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","description":"The second line of the address input","uniqueKey":"billing_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","description":"The second line of the address input","uniqueKey":"billing_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.oneOf.0.line_2","typeLabel":"string | null"},"region":{"type":"string","description":"The region (ISO 3166: 2 character code) of the address input","uniqueKey":"billing_address.oneOf.0.region","typeLabel":"string"}},"uniqueKey":"billing_address.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"billing_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address","typeLabel":"object | null"},"company_name":{"oneOf":[{"type":"string","description":"Company name for the invoice. Pass null for no change, empty string to clear. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Company name for the invoice. Pass null for no change, empty string to clear. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"company_name","typeLabel":"string | null"},"accounts_payable_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","uniqueKey":"accounts_payable_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"List of accounts payable contact emails. Pass null for no change, empty array to clear. **Changes will reflect in the subscription.**","uniqueKey":"accounts_payable_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email"},"description":"List of accounts payable contact emails. Pass null for no change, empty array to clear. **Changes will reflect in the subscription.**","uniqueKey":"accounts_payable_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"accounts_payable_emails","typeLabel":"string\u003cemail>[] | null"},"invoice_memo":{"oneOf":[{"type":"string","description":"Memo or notes to appear on the invoice. Pass empty string to clear.","maxLength":2000,"uniqueKey":"invoice_memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo or notes to appear on the invoice. Pass empty string to clear.","maxLength":2000,"uniqueKey":"invoice_memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoice_memo","typeLabel":"string | null"},"reason_for_updating":{"oneOf":[{"type":"string","description":"Internal reason for updating the invoice (for audit purposes)","maxLength":500,"uniqueKey":"reason_for_updating.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal reason for updating the invoice (for audit purposes)","maxLength":500,"uniqueKey":"reason_for_updating.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason_for_updating","typeLabel":"string | null"},"line_item_overrides":{"type":"array","items":{"type":"object","description":"Override for individual invoice line items.\n\nNote: Line item overrides only affect this invoice and do not persist\nto future invoices or the subscription.","properties":{"brick_id":{"type":"string","format":"uuid","description":"The unique identifier of the brick to override","isRequired":true,"uniqueKey":"line_item_overrides.items.[INDEX].brick_id","typeLabel":"string\u003cuuid>"},"brick_description":{"oneOf":[{"type":"string","description":"Custom description override for this brick on this invoice only","uniqueKey":"line_item_overrides.items.[INDEX].brick_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom description override for this brick on this invoice only","uniqueKey":"line_item_overrides.items.[INDEX].brick_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_item_overrides.items.[INDEX].brick_description","typeLabel":"string | null"}},"required":["brick_id"],"uniqueKey":"line_item_overrides.items.[INDEX]","typeLabel":"object"},"description":"Override descriptions for specific line items. **Only affects this invoice, does not persist to future invoices.**","uniqueKey":"line_item_overrides","typeLabel":"object[]"},"send_invoice":{"type":"boolean","default":false,"description":"Whether to send the invoice to the customer after updating. Defaults to false.","uniqueKey":"send_invoice","typeLabel":"boolean"},"persist_memo":{"type":"boolean","default":false,"description":"Whether to persist the invoice memo on all future invoices. Defaults to false. ","uniqueKey":"persist_memo","typeLabel":"boolean"},"persist_purchase_order":{"type":"boolean","default":false,"description":"Whether to persist the purchase order number on all future invoices. Defaults to false. When true, the PO number will be applied to all future invoices for this subscription. When false, the PO number is only set for this specific invoice.","uniqueKey":"persist_purchase_order","typeLabel":"boolean"},"show_brick_descriptions":{"type":"boolean","description":"Whether to show brick descriptions on the invoice PDF. Defaults to true if not specified.","uniqueKey":"show_brick_descriptions","typeLabel":"boolean"},"pdf_attachments":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"pdf_attachments.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"PDF files to attach to the invoice.","uniqueKey":"pdf_attachments","typeLabel":"string\u003curi>[]"},"pdf_attachments_config":{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"pdf_attachments_config.items.[INDEX].additionalProperties","typeLabel":"any"},"uniqueKey":"pdf_attachments_config.items.[INDEX]","typeLabel":"object"},"description":"Configuration for managing attachments. Each item specifies either an existing attachment to keep (by attachment_id) or a new file to add (by new_file_index), along with a 'target' to specify where to store it ('invoice' or 'subscription'). The order in this array determines the unified order of attachments in the PDF. Existing attachments NOT in this list will be DELETED. If omitted, pdf_attachments will replace all existing invoice-level attachments.","uniqueKey":"pdf_attachments_config","typeLabel":"object[]"},"tax_id":{"oneOf":[{"type":"string","description":"Tax ID for the invoice. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"tax_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax ID for the invoice. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"tax_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tax_id","typeLabel":"string | null"},"dunning_auto_retries":{"oneOf":[{"type":"boolean","description":"Whether to enable automatic retries for failed payments. When enabled, failed invoice payments will be retried using saved payment methods. Defaults to False.","uniqueKey":"dunning_auto_retries.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to enable automatic retries for failed payments. When enabled, failed invoice payments will be retried using saved payment methods. Defaults to False.","uniqueKey":"dunning_auto_retries.oneOf.1","typeLabel":"null"}],"uniqueKey":"dunning_auto_retries","typeLabel":"boolean | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.0.additionalProperties","typeLabel":"any"},"description":"Optional metadata to add to the invoice. Pass null for no change. Sending an empty map will delete all keys. Keys prefixed with _ are private and will be ignored.","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.1.additionalProperties","typeLabel":"any"},"description":"Optional metadata to add to the invoice. Pass null for no change. Sending an empty map will delete all keys. Keys prefixed with _ are private and will be ignored.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"due_at":"2023-12-25","issued_at":"2023-12-25","purchase_order":{"code":"\u003cstring>"},"billing_address":{"line_1":"\u003cstring>","city":"\u003cstring>","zip":"\u003cstring>","country":"\u003cstring>","line_2":"\u003cstring>","region":"\u003cstring>"},"company_name":"\u003cstring>","accounts_payable_emails":["jsmith@example.com"],"invoice_memo":"\u003cstring>","reason_for_updating":"\u003cstring>","line_item_overrides":[{"brick_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","brick_description":"\u003cstring>"}],"send_invoice":false,"persist_memo":false,"persist_purchase_order":false,"show_brick_descriptions":true,"pdf_attachments":["\u003cstring>"],"pdf_attachments_config":[{}],"tax_id":"\u003cstring>","dunning_auto_retries":true,"metadata":{}}}},"exampleType":"generated"},"application/x-www-form-urlencoded":{"schema":{"type":"object","description":"Input serializer for updating an invoice.","properties":{"due_at":{"oneOf":[{"type":"string","format":"date","description":"Override the due date for this invoice. Pass null for no change.","uniqueKey":"due_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Override the due date for this invoice. Pass null for no change.","uniqueKey":"due_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"due_at","typeLabel":"string\u003cdate> | null"},"issued_at":{"oneOf":[{"type":"string","format":"date","description":"Override the issue date for this invoice. Pass null for no change.","uniqueKey":"issued_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Override the issue date for this invoice. Pass null for no change.","uniqueKey":"issued_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"issued_at","typeLabel":"string\u003cdate> | null"},"purchase_order":{"oneOf":[{"type":"object","description":"Purchase order with code. Pass null for no change, empty object or empty code to clear.","properties":{"code":{"oneOf":[{"type":"string","description":"Internal identifier of the Purchase Order provided by Buyer","maxLength":255,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal identifier of the Purchase Order provided by Buyer","maxLength":255,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"purchase_order.oneOf.0.code","typeLabel":"string | null"}},"uniqueKey":"purchase_order.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"purchase_order.oneOf.1","typeLabel":"null"}],"uniqueKey":"purchase_order","typeLabel":"object | null"},"billing_address":{"oneOf":[{"type":"object","description":"Billing address. Pass null for no change. **Changes will reflect in the subscription.**","required":["city","country","line_1","zip"],"properties":{"line_1":{"type":"string","description":"The first line of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.line_1","typeLabel":"string"},"city":{"type":"string","description":"The city of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.city","typeLabel":"string"},"zip":{"type":"string","description":"The zip code of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.zip","typeLabel":"string"},"country":{"type":"string","description":"The country (ISO 3166: 2 character code) of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.country","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","description":"The second line of the address input","uniqueKey":"billing_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","description":"The second line of the address input","uniqueKey":"billing_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.oneOf.0.line_2","typeLabel":"string | null"},"region":{"type":"string","description":"The region (ISO 3166: 2 character code) of the address input","uniqueKey":"billing_address.oneOf.0.region","typeLabel":"string"}},"uniqueKey":"billing_address.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"billing_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address","typeLabel":"object | null"},"company_name":{"oneOf":[{"type":"string","description":"Company name for the invoice. Pass null for no change, empty string to clear. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Company name for the invoice. Pass null for no change, empty string to clear. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"company_name","typeLabel":"string | null"},"accounts_payable_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","uniqueKey":"accounts_payable_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"List of accounts payable contact emails. Pass null for no change, empty array to clear. **Changes will reflect in the subscription.**","uniqueKey":"accounts_payable_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email"},"description":"List of accounts payable contact emails. Pass null for no change, empty array to clear. **Changes will reflect in the subscription.**","uniqueKey":"accounts_payable_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"accounts_payable_emails","typeLabel":"string\u003cemail>[] | null"},"invoice_memo":{"oneOf":[{"type":"string","description":"Memo or notes to appear on the invoice. Pass empty string to clear.","maxLength":2000,"uniqueKey":"invoice_memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo or notes to appear on the invoice. Pass empty string to clear.","maxLength":2000,"uniqueKey":"invoice_memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoice_memo","typeLabel":"string | null"},"reason_for_updating":{"oneOf":[{"type":"string","description":"Internal reason for updating the invoice (for audit purposes)","maxLength":500,"uniqueKey":"reason_for_updating.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal reason for updating the invoice (for audit purposes)","maxLength":500,"uniqueKey":"reason_for_updating.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason_for_updating","typeLabel":"string | null"},"line_item_overrides":{"type":"array","items":{"type":"object","description":"Override for individual invoice line items.\n\nNote: Line item overrides only affect this invoice and do not persist\nto future invoices or the subscription.","properties":{"brick_id":{"type":"string","format":"uuid","description":"The unique identifier of the brick to override","isRequired":true,"uniqueKey":"line_item_overrides.items.[INDEX].brick_id","typeLabel":"string\u003cuuid>"},"brick_description":{"oneOf":[{"type":"string","description":"Custom description override for this brick on this invoice only","uniqueKey":"line_item_overrides.items.[INDEX].brick_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom description override for this brick on this invoice only","uniqueKey":"line_item_overrides.items.[INDEX].brick_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_item_overrides.items.[INDEX].brick_description","typeLabel":"string | null"}},"required":["brick_id"],"uniqueKey":"line_item_overrides.items.[INDEX]","typeLabel":"object"},"description":"Override descriptions for specific line items. **Only affects this invoice, does not persist to future invoices.**","uniqueKey":"line_item_overrides","typeLabel":"object[]"},"send_invoice":{"type":"boolean","default":false,"description":"Whether to send the invoice to the customer after updating. Defaults to false.","uniqueKey":"send_invoice","typeLabel":"boolean"},"persist_memo":{"type":"boolean","default":false,"description":"Whether to persist the invoice memo on all future invoices. Defaults to false. ","uniqueKey":"persist_memo","typeLabel":"boolean"},"persist_purchase_order":{"type":"boolean","default":false,"description":"Whether to persist the purchase order number on all future invoices. Defaults to false. When true, the PO number will be applied to all future invoices for this subscription. When false, the PO number is only set for this specific invoice.","uniqueKey":"persist_purchase_order","typeLabel":"boolean"},"show_brick_descriptions":{"type":"boolean","description":"Whether to show brick descriptions on the invoice PDF. Defaults to true if not specified.","uniqueKey":"show_brick_descriptions","typeLabel":"boolean"},"pdf_attachments":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"pdf_attachments.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"PDF files to attach to the invoice.","uniqueKey":"pdf_attachments","typeLabel":"string\u003curi>[]"},"pdf_attachments_config":{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"pdf_attachments_config.items.[INDEX].additionalProperties","typeLabel":"any"},"uniqueKey":"pdf_attachments_config.items.[INDEX]","typeLabel":"object"},"description":"Configuration for managing attachments. Each item specifies either an existing attachment to keep (by attachment_id) or a new file to add (by new_file_index), along with a 'target' to specify where to store it ('invoice' or 'subscription'). The order in this array determines the unified order of attachments in the PDF. Existing attachments NOT in this list will be DELETED. If omitted, pdf_attachments will replace all existing invoice-level attachments.","uniqueKey":"pdf_attachments_config","typeLabel":"object[]"},"tax_id":{"oneOf":[{"type":"string","description":"Tax ID for the invoice. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"tax_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax ID for the invoice. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"tax_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tax_id","typeLabel":"string | null"},"dunning_auto_retries":{"oneOf":[{"type":"boolean","description":"Whether to enable automatic retries for failed payments. When enabled, failed invoice payments will be retried using saved payment methods. Defaults to False.","uniqueKey":"dunning_auto_retries.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to enable automatic retries for failed payments. When enabled, failed invoice payments will be retried using saved payment methods. Defaults to False.","uniqueKey":"dunning_auto_retries.oneOf.1","typeLabel":"null"}],"uniqueKey":"dunning_auto_retries","typeLabel":"boolean | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.0.additionalProperties","typeLabel":"any"},"description":"Optional metadata to add to the invoice. Pass null for no change. Sending an empty map will delete all keys. Keys prefixed with _ are private and will be ignored.","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.1.additionalProperties","typeLabel":"any"},"description":"Optional metadata to add to the invoice. Pass null for no change. Sending an empty map will delete all keys. Keys prefixed with _ are private and will be ignored.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"due_at":"2023-12-25","issued_at":"2023-12-25","purchase_order":{"code":"\u003cstring>"},"billing_address":{"line_1":"\u003cstring>","city":"\u003cstring>","zip":"\u003cstring>","country":"\u003cstring>","line_2":"\u003cstring>","region":"\u003cstring>"},"company_name":"\u003cstring>","accounts_payable_emails":["jsmith@example.com"],"invoice_memo":"\u003cstring>","reason_for_updating":"\u003cstring>","line_item_overrides":[{"brick_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","brick_description":"\u003cstring>"}],"send_invoice":false,"persist_memo":false,"persist_purchase_order":false,"show_brick_descriptions":true,"pdf_attachments":["\u003cstring>"],"pdf_attachments_config":[{}],"tax_id":"\u003cstring>","dunning_auto_retries":true,"metadata":{}}}},"exampleType":"generated"},"application/json":{"schema":{"type":"object","description":"Input serializer for updating an invoice.","properties":{"due_at":{"oneOf":[{"type":"string","format":"date","description":"Override the due date for this invoice. Pass null for no change.","uniqueKey":"due_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Override the due date for this invoice. Pass null for no change.","uniqueKey":"due_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"due_at","typeLabel":"string\u003cdate> | null"},"issued_at":{"oneOf":[{"type":"string","format":"date","description":"Override the issue date for this invoice. Pass null for no change.","uniqueKey":"issued_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Override the issue date for this invoice. Pass null for no change.","uniqueKey":"issued_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"issued_at","typeLabel":"string\u003cdate> | null"},"purchase_order":{"oneOf":[{"type":"object","description":"Purchase order with code. Pass null for no change, empty object or empty code to clear.","properties":{"code":{"oneOf":[{"type":"string","description":"Internal identifier of the Purchase Order provided by Buyer","maxLength":255,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal identifier of the Purchase Order provided by Buyer","maxLength":255,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"purchase_order.oneOf.0.code","typeLabel":"string | null"}},"uniqueKey":"purchase_order.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"purchase_order.oneOf.1","typeLabel":"null"}],"uniqueKey":"purchase_order","typeLabel":"object | null"},"billing_address":{"oneOf":[{"type":"object","description":"Billing address. Pass null for no change. **Changes will reflect in the subscription.**","required":["city","country","line_1","zip"],"properties":{"line_1":{"type":"string","description":"The first line of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.line_1","typeLabel":"string"},"city":{"type":"string","description":"The city of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.city","typeLabel":"string"},"zip":{"type":"string","description":"The zip code of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.zip","typeLabel":"string"},"country":{"type":"string","description":"The country (ISO 3166: 2 character code) of the address input","isRequired":true,"uniqueKey":"billing_address.oneOf.0.country","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","description":"The second line of the address input","uniqueKey":"billing_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","description":"The second line of the address input","uniqueKey":"billing_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.oneOf.0.line_2","typeLabel":"string | null"},"region":{"type":"string","description":"The region (ISO 3166: 2 character code) of the address input","uniqueKey":"billing_address.oneOf.0.region","typeLabel":"string"}},"uniqueKey":"billing_address.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"billing_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address","typeLabel":"object | null"},"company_name":{"oneOf":[{"type":"string","description":"Company name for the invoice. Pass null for no change, empty string to clear. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Company name for the invoice. Pass null for no change, empty string to clear. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"company_name","typeLabel":"string | null"},"accounts_payable_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","uniqueKey":"accounts_payable_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"List of accounts payable contact emails. Pass null for no change, empty array to clear. **Changes will reflect in the subscription.**","uniqueKey":"accounts_payable_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email"},"description":"List of accounts payable contact emails. Pass null for no change, empty array to clear. **Changes will reflect in the subscription.**","uniqueKey":"accounts_payable_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"accounts_payable_emails","typeLabel":"string\u003cemail>[] | null"},"invoice_memo":{"oneOf":[{"type":"string","description":"Memo or notes to appear on the invoice. Pass empty string to clear.","maxLength":2000,"uniqueKey":"invoice_memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo or notes to appear on the invoice. Pass empty string to clear.","maxLength":2000,"uniqueKey":"invoice_memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoice_memo","typeLabel":"string | null"},"reason_for_updating":{"oneOf":[{"type":"string","description":"Internal reason for updating the invoice (for audit purposes)","maxLength":500,"uniqueKey":"reason_for_updating.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal reason for updating the invoice (for audit purposes)","maxLength":500,"uniqueKey":"reason_for_updating.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason_for_updating","typeLabel":"string | null"},"line_item_overrides":{"type":"array","items":{"type":"object","description":"Override for individual invoice line items.\n\nNote: Line item overrides only affect this invoice and do not persist\nto future invoices or the subscription.","properties":{"brick_id":{"type":"string","format":"uuid","description":"The unique identifier of the brick to override","isRequired":true,"uniqueKey":"line_item_overrides.items.[INDEX].brick_id","typeLabel":"string\u003cuuid>"},"brick_description":{"oneOf":[{"type":"string","description":"Custom description override for this brick on this invoice only","uniqueKey":"line_item_overrides.items.[INDEX].brick_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom description override for this brick on this invoice only","uniqueKey":"line_item_overrides.items.[INDEX].brick_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_item_overrides.items.[INDEX].brick_description","typeLabel":"string | null"}},"required":["brick_id"],"uniqueKey":"line_item_overrides.items.[INDEX]","typeLabel":"object"},"description":"Override descriptions for specific line items. **Only affects this invoice, does not persist to future invoices.**","uniqueKey":"line_item_overrides","typeLabel":"object[]"},"send_invoice":{"type":"boolean","default":false,"description":"Whether to send the invoice to the customer after updating. Defaults to false.","uniqueKey":"send_invoice","typeLabel":"boolean"},"persist_memo":{"type":"boolean","default":false,"description":"Whether to persist the invoice memo on all future invoices. Defaults to false. ","uniqueKey":"persist_memo","typeLabel":"boolean"},"persist_purchase_order":{"type":"boolean","default":false,"description":"Whether to persist the purchase order number on all future invoices. Defaults to false. When true, the PO number will be applied to all future invoices for this subscription. When false, the PO number is only set for this specific invoice.","uniqueKey":"persist_purchase_order","typeLabel":"boolean"},"show_brick_descriptions":{"type":"boolean","description":"Whether to show brick descriptions on the invoice PDF. Defaults to true if not specified.","uniqueKey":"show_brick_descriptions","typeLabel":"boolean"},"pdf_attachments":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"pdf_attachments.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"PDF files to attach to the invoice.","uniqueKey":"pdf_attachments","typeLabel":"string\u003curi>[]"},"pdf_attachments_config":{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"pdf_attachments_config.items.[INDEX].additionalProperties","typeLabel":"any"},"uniqueKey":"pdf_attachments_config.items.[INDEX]","typeLabel":"object"},"description":"Configuration for managing attachments. Each item specifies either an existing attachment to keep (by attachment_id) or a new file to add (by new_file_index), along with a 'target' to specify where to store it ('invoice' or 'subscription'). The order in this array determines the unified order of attachments in the PDF. Existing attachments NOT in this list will be DELETED. If omitted, pdf_attachments will replace all existing invoice-level attachments.","uniqueKey":"pdf_attachments_config","typeLabel":"object[]"},"tax_id":{"oneOf":[{"type":"string","description":"Tax ID for the invoice. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"tax_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax ID for the invoice. **Changes will reflect in the subscription.**","maxLength":255,"uniqueKey":"tax_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tax_id","typeLabel":"string | null"},"dunning_auto_retries":{"oneOf":[{"type":"boolean","description":"Whether to enable automatic retries for failed payments. When enabled, failed invoice payments will be retried using saved payment methods. Defaults to False.","uniqueKey":"dunning_auto_retries.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to enable automatic retries for failed payments. When enabled, failed invoice payments will be retried using saved payment methods. Defaults to False.","uniqueKey":"dunning_auto_retries.oneOf.1","typeLabel":"null"}],"uniqueKey":"dunning_auto_retries","typeLabel":"boolean | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.0.additionalProperties","typeLabel":"any"},"description":"Optional metadata to add to the invoice. Pass null for no change. Sending an empty map will delete all keys. Keys prefixed with _ are private and will be ignored.","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.oneOf.1.additionalProperties","typeLabel":"any"},"description":"Optional metadata to add to the invoice. Pass null for no change. Sending an empty map will delete all keys. Keys prefixed with _ are private and will be ignored.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"UpdateInvoiceRequest":{"title":"UpdateInvoiceRequest","value":{"due_at":"2024-02-15T00:00:00Z","purchase_order":{"code":"PO-2024-001"},"billing_address":{"line_1":"123 Main Street","line_2":"Suite 100","city":"San Francisco","region":"CA","zip":"94102","country":"US"},"company_name":"Acme Corporation","accounts_payable_emails":["ap@acme.com","billing@acme.com"],"invoice_memo":"Net 30 payment terms","persist_memo":false,"send_invoice":true,"reason_for_updating":"Updated billing address per customer request"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"df7e114a-7ff2-417a-85bd-ea5c585d89cd":{"content":{"application/json":{"schema":{"type":"object","description":"Output serializer for successful invoice update.","properties":{"invoice_id":{"type":"string","format":"uuid","description":"The unique identifier of the updated invoice","isRequired":true,"uniqueKey":"invoice_id","typeLabel":"string\u003cuuid>"},"signed_pdf_url":{"type":"string","format":"uri","description":"Signed URL to download the invoice PDF. Expires in 1 hour. Empty for invoices that have not been issued yet (`SCHEDULED`, `DRAFT`); their PDF is generated when they are issued.","isRequired":true,"uniqueKey":"signed_pdf_url","typeLabel":"string\u003curi>"},"attachments":{"type":"array","items":{"type":"object","description":"Serializer for a single attachment in the response.\n\nMirrors the input format (pdf_attachments_config) with additional read-only fields.\nThis allows the frontend to easily pass the data back for updates.","properties":{"attachment_id":{"type":"string","format":"uuid","description":"Unique identifier for this attachment","isRequired":true,"uniqueKey":"attachments.items.[INDEX].attachment_id","typeLabel":"string\u003cuuid>"},"target":{"enum":["invoice","subscription"],"type":"string","x-spec-enum-id":"3970fdc4ffe95396","description":"Where this attachment is stored: 'invoice' or 'subscription'\n\n* `invoice` - invoice\n* `subscription` - subscription","isRequired":true,"uniqueKey":"attachments.items.[INDEX].target","typeLabel":"enum\u003cstring>"},"file_name":{"type":"string","description":"Original filename of the attachment","isRequired":true,"uniqueKey":"attachments.items.[INDEX].file_name","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"When this attachment was created","isRequired":true,"uniqueKey":"attachments.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"}},"required":["attachment_id","created_at","file_name","target"],"uniqueKey":"attachments.items.[INDEX]","typeLabel":"object"},"description":"Current attachments for this invoice as a flat array. Array order reflects the PDF merge order (unified across both levels).","uniqueKey":"attachments","typeLabel":"object[]"}},"required":["invoice_id","signed_pdf_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","signed_pdf_url":"\u003cstring>","attachments":[{"attachment_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","target":"invoice","file_name":"\u003cstring>","created_at":"2023-11-07T05:31:56Z"}]}}},"exampleType":"generated"}},"description":"","exampleType":"generated"},"010c53a7-cf8a-4248-98a7-9bb92132bac8":{"content":{"application/json":{"schema":{"type":"object","description":"Standardizes API error responses with a consistent structure containing error code and message.","properties":{"error":{"type":"object","description":"The error that caused the request to fail","required":["code","message"],"properties":{"code":{"enum":["ERR_NOT_FOUND","ERR_BAD_REQUEST","ERR_SERVER_ERROR"],"type":"string","x-spec-enum-id":"dc5a5d6feae1b697","description":"Error code indicating the type of error: NOT_FOUND for missing resources, BAD_REQUEST for invalid input, SERVER_ERROR for internal server issues\n\n* `ERR_NOT_FOUND` - ERR_NOT_FOUND\n* `ERR_BAD_REQUEST` - ERR_BAD_REQUEST\n* `ERR_SERVER_ERROR` - ERR_SERVER_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"error_id":{"type":"string","format":"uuid","description":"Correlation handle for SERVER_ERROR responses — quote this when contacting support; it joins to the structured server log line for the failure. Not present on 4xx responses.","uniqueKey":"error.error_id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"BadRequestResponse":{"title":"BadRequestResponse","value":{"error":{"code":"ERR_BAD_REQUEST","message":"Bad request — the input payload is malformed, missing required fields, or contains invalid data."}}},"InvoiceAlreadyPaid":{"title":"InvoiceAlreadyPaid","value":{"error":{"code":"ERR_BAD_REQUEST","message":"Invoice is already paid and cannot be edited."}}}},"exampleType":"examples"}},"description":"","exampleType":"examples"},"97aadd92-59b5-4372-b54f-d6a246e468fe":{"content":{"application/json":{"schema":{"type":"object","description":"Standardizes API error responses with a consistent structure containing error code and message.","properties":{"error":{"type":"object","description":"The error that caused the request to fail","required":["code","message"],"properties":{"code":{"enum":["ERR_NOT_FOUND","ERR_BAD_REQUEST","ERR_SERVER_ERROR"],"type":"string","x-spec-enum-id":"dc5a5d6feae1b697","description":"Error code indicating the type of error: NOT_FOUND for missing resources, BAD_REQUEST for invalid input, SERVER_ERROR for internal server issues\n\n* `ERR_NOT_FOUND` - ERR_NOT_FOUND\n* `ERR_BAD_REQUEST` - ERR_BAD_REQUEST\n* `ERR_SERVER_ERROR` - ERR_SERVER_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"error_id":{"type":"string","format":"uuid","description":"Correlation handle for SERVER_ERROR responses — quote this when contacting support; it joins to the structured server log line for the failure. Not present on 4xx responses.","uniqueKey":"error.error_id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"NotFoundResponse":{"title":"NotFoundResponse","value":{"error":{"code":"ERR_NOT_FOUND","message":"Not found — the resource you are looking for does not exist."}}}},"exampleType":"examples"}},"description":"","exampleType":"examples"},"0848feb0-fc23-480a-9c30-9470a19828ad":{"content":{"application/json":{"schema":{"type":"object","description":"Standardizes API error responses with a consistent structure containing error code and message.","properties":{"error":{"type":"object","description":"The error that caused the request to fail","required":["code","message"],"properties":{"code":{"enum":["ERR_NOT_FOUND","ERR_BAD_REQUEST","ERR_SERVER_ERROR"],"type":"string","x-spec-enum-id":"dc5a5d6feae1b697","description":"Error code indicating the type of error: NOT_FOUND for missing resources, BAD_REQUEST for invalid input, SERVER_ERROR for internal server issues\n\n* `ERR_NOT_FOUND` - ERR_NOT_FOUND\n* `ERR_BAD_REQUEST` - ERR_BAD_REQUEST\n* `ERR_SERVER_ERROR` - ERR_SERVER_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"error_id":{"type":"string","format":"uuid","description":"Correlation handle for SERVER_ERROR responses — quote this when contacting support; it joins to the structured server log line for the failure. Not present on 4xx responses.","uniqueKey":"error.error_id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"ServerErrorResponse":{"title":"ServerErrorResponse","value":{"error":{"code":"ERR_PDF_GENERATION_FAILED","message":"Failed to generate invoice PDF after update."}}}},"exampleType":"examples"}},"description":"","exampleType":"examples"}},"security":{"96e2b814-4b2f-4ec1-a062-fb177ecfca77":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-SALESBRICKS-KEY","description":"API key for authentication","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"473a595f-0b07-4538-b033-faf5582d0b46":{"url":"https://api.salesbricks.com/api/v2","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-SALESBRICKS-KEY","description":"API key for authentication","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-SALESBRICKS-KEY","type":"string","description":"API key for authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-SALESBRICKS-KEY"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://api.salesbricks.com/api/v2/openapi.yaml"},"subdomain":"salesbricks","siteName":"Salesbricks","title":"Update an invoice - Salesbricks","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T23:31:30.334Z","originalFileLocation":"api-reference/invoices/update-an-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=\"Update an invoice with override fields, line item descriptions, and/or PDF attachments. | Field | Affects this invoice | Persists to future invoices | |-------|---------------------|----------------------------| | due_at | ✓ | ✗ | | purchase_order | ✓ | ✓ (if persist_purchase_order=true) | | billing_address | ✓ | ✓ (Updates subscription) | | company_name | ✓ | ✓ (Updates subscription) | | accounts_payable_emails | ✓ | ✓ (Updates subscription) | | invoice_memo | ✓ | ✓ (if persist_memo=true) | | line_item_overrides | ✓ | ✗ | Upload PDF attachments as multipart form data using the pdf_attachments field. Edits to invoices that have not been issued yet (SCHEDULED, DRAFT) are saved without generating a PDF, a new version or a new invoice number, and send_invoice is ignored. These happen when the invoice is issued.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Salesbricks\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update an invoice - Salesbricks\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update an invoice with override fields, line item descriptions, and/or PDF attachments. | Field | Affects this invoice | Persists to future invoices | |-------|---------------------|----------------------------| | due_at | ✓ | ✗ | | purchase_order | ✓ | ✓ (if persist_purchase_order=true) | | billing_address | ✓ | ✓ (Updates subscription) | | company_name | ✓ | ✓ (Updates subscription) | | accounts_payable_emails | ✓ | ✓ (Updates subscription) | | invoice_memo | ✓ | ✓ (if persist_memo=true) | | line_item_overrides | ✓ | ✗ | Upload PDF attachments as multipart form data using the pdf_attachments field. Edits to invoices that have not been issued yet (SCHEDULED, DRAFT) are saved without generating a PDF, a new version or a new invoice number, and send_invoice is ignored. These happen when the invoice is issued.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Salesbricks\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://salesbricks.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Update+an+invoice\u0026amp;description=%0AUpdate+an+invoice+with+override+fields%2C+line+item+descriptions%2C+and%2For+PDF+attachments.%0A%0A%7C+Field+%7C+Affects+this+invoice+%7C+Persists+to+future+invoices+%7C%0A%7C------\u0026amp;theme=c38cf69ba54d28d8add3f8a9\u0026amp;signature=2f2da0c361799dd715b4b21c72d696a9603f255639ee2883a30ba25502f17175\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update an invoice - Salesbricks\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update an invoice with override fields, line item descriptions, and/or PDF attachments. | Field | Affects this invoice | Persists to future invoices | |-------|---------------------|----------------------------| | due_at | ✓ | ✗ | | purchase_order | ✓ | ✓ (if persist_purchase_order=true) | | billing_address | ✓ | ✓ (Updates subscription) | | company_name | ✓ | ✓ (Updates subscription) | | accounts_payable_emails | ✓ | ✓ (Updates subscription) | | invoice_memo | ✓ | ✓ (if persist_memo=true) | | line_item_overrides | ✓ | ✗ | Upload PDF attachments as multipart form data using the pdf_attachments field. Edits to invoices that have not been issued yet (SCHEDULED, DRAFT) are saved without generating a PDF, a new version or a new invoice number, and send_invoice is ignored. These happen when the invoice is issued.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://salesbricks.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Update+an+invoice\u0026amp;description=%0AUpdate+an+invoice+with+override+fields%2C+line+item+descriptions%2C+and%2For+PDF+attachments.%0A%0A%7C+Field+%7C+Affects+this+invoice+%7C+Persists+to+future+invoices+%7C%0A%7C------\u0026amp;theme=c38cf69ba54d28d8add3f8a9\u0026amp;signature=2f2da0c361799dd715b4b21c72d696a9603f255639ee2883a30ba25502f17175\">\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/salesbricks/Q_HZP6fZfruEcDCT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Salesbricks\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#197F78\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/invoices/update-an-invoice.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.salesbricks.com/#organization\",\"name\":\"Salesbricks\",\"url\":\"https://docs.salesbricks.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/logo/light.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=ead3e65ff72970d53a9cd22de50bd8fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.salesbricks.com#website\",\"name\":\"Salesbricks\",\"url\":\"https://docs.salesbricks.com\",\"publisher\":{\"@id\":\"https://docs.salesbricks.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice#webpage\",\"url\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice\",\"name\":\"Update an invoice\",\"description\":\"Update an invoice with override fields, line item descriptions, and/or PDF attachments. | Field | Affects this invoice | Persists to future invoices | |-------|---------------------|----------------------------| | due_at | ✓ | ✗ | | purchase_order | ✓ | ✓ (if persist_purchase_order=true) | | billing_address | ✓ | ✓ (Updates subscription) | | company_name | ✓ | ✓ (Updates subscription) | | accounts_payable_emails | ✓ | ✓ (Updates subscription) | | invoice_memo | ✓ | ✓ (if persist_memo=true) | | line_item_overrides | ✓ | ✗ | Upload PDF attachments as multipart form data using the pdf_attachments field. Edits to invoices that have not been issued yet (SCHEDULED, DRAFT) are saved without generating a PDF, a new version or a new invoice number, and send_invoice is ignored. These happen when the invoice is issued.\",\"dateModified\":\"2026-11-05T23:31:30.334Z\",\"isPartOf\":{\"@id\":\"https://docs.salesbricks.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API Endpoints\",\"item\":\"https://docs.salesbricks.com/api-reference/customers/list-all-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Invoices\",\"item\":\"https://docs.salesbricks.com/api-reference/invoices/list-all-customer-invoices\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update an invoice\",\"item\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice#apireference\",\"headline\":\"Update an invoice\",\"name\":\"Update an invoice\",\"description\":\"Update an invoice with override fields, line item descriptions, and/or PDF attachments. | Field | Affects this invoice | Persists to future invoices | |-------|---------------------|----------------------------| | due_at | ✓ | ✗ | | purchase_order | ✓ | ✓ (if persist_purchase_order=true) | | billing_address | ✓ | ✓ (Updates subscription) | | company_name | ✓ | ✓ (Updates subscription) | | accounts_payable_emails | ✓ | ✓ (Updates subscription) | | invoice_memo | ✓ | ✓ (if persist_memo=true) | | line_item_overrides | ✓ | ✗ | Upload PDF attachments as multipart form data using the pdf_attachments field. Edits to invoices that have not been issued yet (SCHEDULED, DRAFT) are saved without generating a PDF, a new version or a new invoice number, and send_invoice is ignored. These happen when the invoice is issued.\",\"url\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice\",\"mainEntityOfPage\":{\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/update-an-invoice#webpage\"},\"dateModified\":\"2026-11-05T23:31:30.334Z\",\"publisher\":{\"@id\":\"https://docs.salesbricks.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.salesbricks.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Salesbricks\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Salesbricks","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/quickstart-guide/introduction"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/salesforce/overview"}]},{"tab":"APIs \u0026 Webhooks","groups":[{"group":"APIs","icon":"code","pages":[{"title":"REST API Overview","href":"/api-reference/getting-started/overview"},{"title":"Authentication","href":"/api-reference/getting-started/authentication"},{"title":"Starting a Subscription","href":"/api-reference/getting-started/starting-a-subscription"},{"title":"Idempotent Requests","href":"/api-reference/getting-started/idempotent-requests"},{"title":"GraphQL API (Legacy)","href":"/api-reference/getting-started/graphql"},{"title":"Manage My Subscription","href":"/api-reference/manage-my-subscription"}]},{"group":"REST API Endpoints","icon":"server","pages":[{"group":"Customers","pages":[{"title":"List all customers","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers","href":"/api-reference/customers/list-all-customers"},{"title":"Create a customer","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers","href":"/api-reference/customers/create-a-customer"},{"title":"Retrieve a customer","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}","href":"/api-reference/customers/retrieve-a-customer"},{"title":"Update a customer","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /customers/{customer_id}","href":"/api-reference/customers/update-a-customer"},{"title":"Search customers","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers/search","href":"/api-reference/customers/search-customers"}]},{"group":"Invoices","pages":[{"title":"List all customer invoices","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}/invoices","href":"/api-reference/invoices/list-all-customer-invoices"},{"title":"Create standalone invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices","href":"/api-reference/invoices/create-standalone-invoice"},{"title":"Retrieve an invoice","description":"Retrieves the invoice details by ID.","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}","href":"/api-reference/invoices/retrieve-an-invoice"},{"title":"Update an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /invoices/{invoice_id}","href":"/api-reference/invoices/update-an-invoice"},{"title":"Finalize an invoice","description":"Issues a draft invoice. Final tax is committed, the date of issue and due date are stamped, the invoice leaves draft for its terminal status, and it is sent to the customer's invoice recipients. Only drafts can be issued.\n\n`due_date_basis` is optional — omit it and the invoice inherits the order's default, or keeps a due date already set by editing it. Sending a basis re-derives the due date and replaces an edited one. Send `CUSTOM` with a `due_at` to name the due date outright; either one without the other is rejected.\n\n## Waiting for the document\n\nBy default the request is held until the invoice's PDF has rendered, so a `200` means the invoice is issued and its document is ready to retrieve.\n\nPass `async=true` to queue the issue and get an answer immediately, with the draft as it stands. Poll the invoice to see it issued.\n\nA `202` means the work is still in flight: with `async=true` the invoice has been accepted for issuing, and without it the invoice is issued but its PDF is still rendering. Neither is a failure — an invoice that could not be issued at all comes back `400`.","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/finalize","href":"/api-reference/invoices/finalize-an-invoice"},{"title":"Pay an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/pay","href":"/api-reference/invoices/pay-an-invoice"},{"title":"Create a payment","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/payments","href":"/api-reference/invoices/create-a-payment"},{"title":"Retrieve an invoice PDF","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}/pdf","href":"/api-reference/invoices/retrieve-an-invoice-pdf"},{"title":"Regenerate an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/regenerate","href":"/api-reference/invoices/regenerate-an-invoice"},{"title":"Void an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/void","href":"/api-reference/invoices/void-an-invoice"},{"title":"Search invoices","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/search","href":"/api-reference/invoices/search-invoices"},{"title":"List all subscription invoices","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/invoices","href":"/api-reference/invoices/list-all-subscription-invoices"},{"title":"Retrieve next subscription invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/invoices/next","href":"/api-reference/invoices/retrieve-next-subscription-invoice"}]},{"group":"Payment Methods","pages":[{"title":"List all payment methods","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}/payment-methods","href":"/api-reference/payment-methods/list-all-payment-methods"},{"title":"Setup a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers/{customer_id}/payment-methods","href":"/api-reference/payment-methods/setup-a-payment-method"},{"title":"Retrieve default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}/payment-methods/default","href":"/api-reference/payment-methods/retrieve-default-payment-method"},{"title":"Set default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml put /customers/{customer_id}/payment-methods/default","href":"/api-reference/payment-methods/set-default-payment-method"},{"title":"Delete a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /customers/{customer_id}/payment-methods/detail","href":"/api-reference/payment-methods/delete-a-payment-method"},{"title":"List the payment methods for an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}/payment-methods","href":"/api-reference/payment-methods/list-the-payment-methods-for-an-invoice"},{"title":"List all payment methods","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/payment-methods","href":"/api-reference/payment-methods/list-all-payment-methods-1"},{"title":"Setup a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/payment-methods","href":"/api-reference/payment-methods/setup-a-payment-method-1"},{"title":"Retrieve default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/payment-methods/default","href":"/api-reference/payment-methods/retrieve-default-payment-method-1"},{"title":"Set default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml put /subscriptions/{subscription_id}/payment-methods/default","href":"/api-reference/payment-methods/set-default-payment-method-1"},{"title":"Delete a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/payment-methods/detail","href":"/api-reference/payment-methods/delete-a-payment-method-1"}]},{"group":"Customer Contacts","pages":[{"title":"Create a customer contact","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers/{customer_id}/persons","href":"/api-reference/customer-contacts/create-a-customer-contact"},{"title":"Update a customer contact","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /customers/{customer_id}/persons/{person_id}","href":"/api-reference/customer-contacts/update-a-customer-contact"},{"title":"Search customer contacts","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /persons/search","href":"/api-reference/customer-contacts/search-customer-contacts"}]},{"group":"Discount Coupons","pages":[{"title":"List all discount coupons","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /discount-coupons","href":"/api-reference/discount-coupons/list-all-discount-coupons"},{"title":"Retrieve a discount coupon","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /discount-coupons/{code}","href":"/api-reference/discount-coupons/retrieve-a-discount-coupon"}]},{"group":"Invoice Versions","pages":[{"title":"List all invoice versions","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}/versions","href":"/api-reference/invoice-versions/list-all-invoice-versions"}]},{"group":"Legal Entities","pages":[{"title":"List all legal entities","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /legal-entities","href":"/api-reference/legal-entities/list-all-legal-entities"}]},{"group":"Plans","pages":[{"title":"List all plans","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /plans","href":"/api-reference/plans/list-all-plans"},{"title":"Retrieve a plan","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /plans/{plan_id}","href":"/api-reference/plans/retrieve-a-plan"}]},{"group":"Revenue","pages":[{"title":"Get per-subscription revenue by month","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /revenue/subscriptions","href":"/api-reference/revenue/get-per-subscription-revenue-by-month"}]},{"group":"Subscriptions","pages":[{"title":"Create a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions","href":"/api-reference/subscriptions/create-a-subscription"},{"title":"Retrieve a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}","href":"/api-reference/subscriptions/retrieve-a-subscription"},{"title":"Update a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}","href":"/api-reference/subscriptions/update-a-subscription"},{"title":"Retrieve subscription checkout URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/checkout","href":"/api-reference/subscriptions/retrieve-subscription-checkout-url"},{"title":"Update a subscription pause","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml put /subscriptions/{subscription_id}/pause","href":"/api-reference/subscriptions/update-a-subscription-pause"},{"title":"Pause a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/pause","href":"/api-reference/subscriptions/pause-a-subscription"},{"title":"Cancel an upcoming subscription pause","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/pause","href":"/api-reference/subscriptions/cancel-an-upcoming-subscription-pause"},{"title":"Resume a paused subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/resume","href":"/api-reference/subscriptions/resume-a-paused-subscription"},{"title":"Retrieve subscription sign URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/sign","href":"/api-reference/subscriptions/retrieve-subscription-sign-url"},{"title":"Start a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/start","href":"/api-reference/subscriptions/start-a-subscription"},{"title":"Terminate a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/terminate","href":"/api-reference/subscriptions/terminate-a-subscription"},{"title":"Estimate a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/estimate","href":"/api-reference/subscriptions/estimate-a-subscription"}]},{"group":"Subscription Management","pages":[{"title":"Retrieve subscription management URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/billing-portal","href":"/api-reference/subscription-management/retrieve-subscription-management-url"}]},{"group":"Subscription State","pages":[{"title":"List all subscription bricks","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks","href":"/api-reference/subscription-state/list-all-subscription-bricks"},{"title":"Retrieve current subscription state","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/current","href":"/api-reference/subscription-state/retrieve-current-subscription-state"},{"title":"Update details for a closed subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}/current","href":"/api-reference/subscription-state/update-details-for-a-closed-subscription"},{"title":"Retrieve current subscription order form PDF","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/current/pdf","href":"/api-reference/subscription-state/retrieve-current-subscription-order-form-pdf"},{"title":"Retrieve a subscription order form PDF","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/pdf","href":"/api-reference/subscription-state/retrieve-a-subscription-order-form-pdf"}]},{"group":"Usage","pages":[{"title":"Retrieve brick usage","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks/{brick_id}/usage","href":"/api-reference/usage/retrieve-brick-usage"},{"title":"List individual usage entries","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks/{brick_id}/usage/entries","href":"/api-reference/usage/list-individual-usage-entries"},{"title":"Retrieve brick usage time series","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks/{brick_id}/usage/series","href":"/api-reference/usage/retrieve-brick-usage-time-series"},{"title":"Create a usage entry","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /usage/","href":"/api-reference/usage/create-a-usage-entry"},{"title":"Delete a usage entry","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /usage/","href":"/api-reference/usage/delete-a-usage-entry"},{"title":"Update a usage entry","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /usage/","href":"/api-reference/usage/update-a-usage-entry"},{"title":"Get usage transaction details","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /usage/transactions/{transaction_id}/","href":"/api-reference/usage/get-usage-transaction-details"}]},{"group":"Subscription Milestones","pages":[{"title":"List all subscription milestones","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/milestones","href":"/api-reference/subscription-milestones/list-all-subscription-milestones"},{"title":"Complete a subscription milestone","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/milestones/{milestone_id}/complete","href":"/api-reference/subscription-milestones/complete-a-subscription-milestone"}]},{"group":"Subscription History","pages":[{"title":"List all subscription orders","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/orders","href":"/api-reference/subscription-history/list-all-subscription-orders"}]},{"group":"Subscription Recasts","pages":[{"title":"List all subscription recast open orders","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/recast","href":"/api-reference/subscription-recasts/list-all-subscription-recast-open-orders"},{"title":"Create a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast","href":"/api-reference/subscription-recasts/create-a-subscription-recast"},{"title":"Delete a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/recast/{order_id}","href":"/api-reference/subscription-recasts/delete-a-subscription-recast"},{"title":"Update a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}/recast/{order_id}","href":"/api-reference/subscription-recasts/update-a-subscription-recast"},{"title":"Retrieve subscription recast checkout URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/recast/{order_id}/checkout","href":"/api-reference/subscription-recasts/retrieve-subscription-recast-checkout-url"},{"title":"Retrieve subscription recast sign URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast/{order_id}/sign","href":"/api-reference/subscription-recasts/retrieve-subscription-recast-sign-url"},{"title":"Start a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast/{order_id}/start","href":"/api-reference/subscription-recasts/start-a-subscription-recast"},{"title":"Estimate a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast/estimate","href":"/api-reference/subscription-recasts/estimate-a-subscription-recast"}]},{"group":"Subscription Upgrades","pages":[{"title":"List all subscription upgrade open orders","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/upgrade","href":"/api-reference/subscription-upgrades/list-all-subscription-upgrade-open-orders"},{"title":"Create a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade","href":"/api-reference/subscription-upgrades/create-a-subscription-upgrade"},{"title":"Delete a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/upgrade/{order_id}","href":"/api-reference/subscription-upgrades/delete-a-subscription-upgrade"},{"title":"Update a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}/upgrade/{order_id}","href":"/api-reference/subscription-upgrades/update-a-subscription-upgrade"},{"title":"Retrieve subscription upgrade checkout URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/upgrade/{order_id}/checkout","href":"/api-reference/subscription-upgrades/retrieve-subscription-upgrade-checkout-url"},{"title":"Retrieve subscription upgrade sign URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade/{order_id}/sign","href":"/api-reference/subscription-upgrades/retrieve-subscription-upgrade-sign-url"},{"title":"Start a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade/{order_id}/start","href":"/api-reference/subscription-upgrades/start-a-subscription-upgrade"},{"title":"Estimate a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade/estimate","href":"/api-reference/subscription-upgrades/estimate-a-subscription-upgrade"}]}]},{"group":"Usage","icon":"gauge-high","pages":[{"title":"Overview","href":"/api-reference/usage/overview"},{"title":"Submit a usage entry","openapi":"POST /usage","href":"/api-reference/usage/post"},{"title":"Update a usage entry","openapi":"PATCH /usage","href":"/api-reference/usage/patch"},{"title":"Delete a usage entry","openapi":"DELETE /usage","href":"/api-reference/usage/delete"}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Overview","href":"/api-reference/webhooks/overview"},{"title":"Schemas","href":"/api-reference/webhooks/schemas"},{"group":"Order Webhooks","pages":[{"title":"Order Webhook Payload","mode":"wide","href":"/api-reference/webhooks/order/payload"},{"title":"order.stage.change","href":"/api-reference/webhooks/order/stage-change"},{"title":"order.approval.status.changed","href":"/api-reference/webhooks/order/approval-status-changed"},{"title":"order.complete","href":"/api-reference/webhooks/order/complete"},{"title":"order.closed.lost","href":"/api-reference/webhooks/order/closed-lost"},{"title":"order.closed.delete","href":"/api-reference/webhooks/order/closed-delete"},{"title":"order.end","href":"/api-reference/webhooks/order/end"},{"title":"order.new-ramping-period","href":"/api-reference/webhooks/order/new-ramping-period"},{"title":"order.terminated","href":"/api-reference/webhooks/order/terminated"},{"title":"order.reinstated","href":"/api-reference/webhooks/order/reinstated"}]},{"group":"Subscription Webhooks","pages":[{"title":"Subscription Inactive Payload","mode":"wide","href":"/api-reference/webhooks/subscription/payload"},{"title":"subscription.inactive","href":"/api-reference/webhooks/subscription/inactive"}]},{"group":"Invoice Webhooks","pages":[{"title":"Invoice Webhook Payload","mode":"wide","href":"/api-reference/webhooks/invoice/payload"},{"title":"invoice.start","href":"/api-reference/webhooks/invoice/start"},{"title":"invoice.upcoming.due","href":"/api-reference/webhooks/invoice/upcoming-due"},{"title":"invoice.past.due","href":"/api-reference/webhooks/invoice/past-due"},{"title":"invoice.payment.succeeded","href":"/api-reference/webhooks/invoice/payment/succeeded"},{"title":"invoice.payment.failed","href":"/api-reference/webhooks/invoice/payment/failed"},{"title":"invoice.refunded","href":"/api-reference/webhooks/invoice/refunded"},{"title":"invoice.voided","href":"/api-reference/webhooks/invoice/voided"}]},{"group":"Payment Webhooks","pages":[{"title":"Payment Webhook Payload","mode":"wide","href":"/api-reference/webhooks/payment/payload"}]},{"group":"Usage Webhooks","pages":[{"title":"Usage Threshold Payload","mode":"wide","href":"/api-reference/webhooks/usage/payload"},{"title":"usage.threshold.exceeded.precommitment","href":"/api-reference/webhooks/usage/threshold-exceeded-precommitment"},{"title":"usage.threshold.exceeded.units","href":"/api-reference/webhooks/usage/threshold-exceeded-units"},{"title":"usage.threshold.exceeded.money","href":"/api-reference/webhooks/usage/threshold-exceeded-money"}]},{"group":"Plan Webhooks","pages":[{"title":"plan.published","href":"/api-reference/webhooks/plan/published"}]},{"group":"Company Webhooks","pages":[{"title":"Company Webhook Payload","mode":"wide","href":"/api-reference/webhooks/company/payload"},{"title":"company.created","href":"/api-reference/webhooks/company/created"},{"title":"company.updated","href":"/api-reference/webhooks/company/updated"}]},{"group":"Person Webhooks","pages":[{"title":"Person Webhook Payload","mode":"wide","href":"/api-reference/webhooks/person/payload"},{"title":"person.created","href":"/api-reference/webhooks/person/created"},{"title":"person.updated","href":"/api-reference/webhooks/person/updated"}]}]}]},{"tab":"What's new","pages":[{"title":"What's new","href":"/whats-new"}]},{"tab":"Knowledge Base","href":"https://support.salesbricks.com"}]},"basePath":"","title":"Update an invoice - Salesbricks","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}