Search your invoices, both subscription and standalone. Filters combine
with AND, and at least one must be provided (ordering alone is not enough).
Empty arrays are treated as omitted.
To list a customer’s standalone invoices, send customer_id with an explicit
subscription_id: null.
Statuses are the raw invoice statuses the response’s status field
reports. Voided invoices are included in results by default; they are excluded
only when a statuses filter is provided that does not include VOIDED.
Dates. All *_date_min / *_date_max bounds are inclusive and interpreted
in your account’s timezone (_min expands to start of day, _max to end of
day).
issued_date filters on the invoice’s billing-run date and paid_date on when
it was fully paid. A due_date range filters on the due date only — it does
not implicitly exclude paid invoices; combine with statuses to narrow.
Days past due is the number of whole days between the due date and now.
Invoices with no outstanding balance (fully paid, or nothing due) have no
days-past-due value and never match a days_past_due filter. For AR-aging
queries combine with "statuses": ["PAST_DUE"].
Amounts are integer minor currency units (e.g. cents). amount_due is the
remaining unpaid amount; paid_amount is the total paid so far, including
partial payments.
search_term matches invoice numbers, customer names, invoice UUIDs, and
amounts.
Ordering takes a single field name with an optional - prefix for
descending: issued_at, due_at, or amount_due (remaining amount). Defaults
to newest first.
Pagination is handled via query params (limit, offset).
Earliest due date (inclusive, start of day in your account's timezone). Filters on due date only — paid invoices are not implicitly excluded; combine with statuses to narrow.
Earliest invoice date (inclusive, start of day in your account's timezone). Filters on the invoice's billing-run date — the date the invoice was generated.
{"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":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"table.two-column td,table.two-column th{width:50%}"}],"page":{"pagePath":"api-reference/invoices/search-invoices","slug":"/api-reference/invoices/search-invoices","pageMetadata":{"title":"Search invoices","description":"\nSearch your invoices, both subscription and standalone. Filters combine\nwith AND, and at least one must be provided (`ordering` alone is not enough).\nEmpty arrays are treated as omitted.\n\nTo list a customer's standalone invoices, send `customer_id` with an explicit\n`subscription_id: null`.\n\n**Statuses** are the raw invoice statuses the response's `status` field\nreports. Voided invoices are included in results by default; they are excluded\nonly when a `statuses` filter is provided that does not include `VOIDED`.\n\n**Dates.** All `*_date_min` / `*_date_max` bounds are inclusive and interpreted\nin your account's timezone (`_min` expands to start of day, `_max` to end of\nday).\n`issued_date` filters on the invoice's billing-run date and `paid_date` on when\nit was fully paid. A `due_date` range filters on the due date only — it does\nnot implicitly exclude paid invoices; combine with `statuses` to narrow.\n\n**Days past due** is the number of whole days between the due date and now.\nInvoices with no outstanding balance (fully paid, or nothing due) have no\ndays-past-due value and never match a `days_past_due` filter. For AR-aging\nqueries combine with `\"statuses\": [\"PAST_DUE\"]`.\n\n**Amounts** are integer minor currency units (e.g. cents). `amount_due` is the\nremaining unpaid amount; `paid_amount` is the total paid so far, including\npartial payments.\n\n**`search_term`** matches invoice numbers, customer names, invoice UUIDs, and\namounts.\n\n**Ordering** takes a single field name with an optional `-` prefix for\ndescending: `issued_at`, `due_at`, or `amount_due` (remaining amount). Defaults\nto newest first.\n\nPagination is handled via query params (limit, offset).\n","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/search","href":"/api-reference/invoices/search-invoices","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 strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Search your invoices, both subscription and standalone. Filters combine\\nwith AND, and at least one must be provided (\", _jsx(_components.code, {\n children: \"ordering\"\n }), \" alone is not enough).\\nEmpty arrays are treated as omitted.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"To list a customer’s standalone invoices, send \", _jsx(_components.code, {\n children: \"customer_id\"\n }), \" with an explicit\\n\", _jsx(_components.code, {\n children: \"subscription_id: null\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Statuses\"\n }), \" are the raw invoice statuses the response’s \", _jsx(_components.code, {\n children: \"status\"\n }), \" field\\nreports. Voided invoices are included in results by default; they are excluded\\nonly when a \", _jsx(_components.code, {\n children: \"statuses\"\n }), \" filter is provided that does not include \", _jsx(_components.code, {\n children: \"VOIDED\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Dates.\"\n }), \" All \", _jsx(_components.code, {\n children: \"*_date_min\"\n }), \" / \", _jsx(_components.code, {\n children: \"*_date_max\"\n }), \" bounds are inclusive and interpreted\\nin your account’s timezone (\", _jsx(_components.code, {\n children: \"_min\"\n }), \" expands to start of day, \", _jsx(_components.code, {\n children: \"_max\"\n }), \" to end of\\nday).\\n\", _jsx(_components.code, {\n children: \"issued_date\"\n }), \" filters on the invoice’s billing-run date and \", _jsx(_components.code, {\n children: \"paid_date\"\n }), \" on when\\nit was fully paid. A \", _jsx(_components.code, {\n children: \"due_date\"\n }), \" range filters on the due date only — it does\\nnot implicitly exclude paid invoices; combine with \", _jsx(_components.code, {\n children: \"statuses\"\n }), \" to narrow.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Days past due\"\n }), \" is the number of whole days between the due date and now.\\nInvoices with no outstanding balance (fully paid, or nothing due) have no\\ndays-past-due value and never match a \", _jsx(_components.code, {\n children: \"days_past_due\"\n }), \" filter. For AR-aging\\nqueries combine with \", _jsx(_components.code, {\n children: \"\\\"statuses\\\": [\\\"PAST_DUE\\\"]\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Amounts\"\n }), \" are integer minor currency units (e.g. cents). \", _jsx(_components.code, {\n children: \"amount_due\"\n }), \" is the\\nremaining unpaid amount; \", _jsx(_components.code, {\n children: \"paid_amount\"\n }), \" is the total paid so far, including\\npartial payments.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: _jsx(_components.code, {\n children: \"search_term\"\n })\n }), \" matches invoice numbers, customer names, invoice UUIDs, and\\namounts.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Ordering\"\n }), \" takes a single field name with an optional \", _jsx(_components.code, {\n children: \"-\"\n }), \" prefix for\\ndescending: \", _jsx(_components.code, {\n children: \"issued_at\"\n }), \", \", _jsx(_components.code, {\n children: \"due_at\"\n }), \", or \", _jsx(_components.code, {\n children: \"amount_due\"\n }), \" (remaining amount). Defaults\\nto newest first.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Pagination is handled via query params (limit, offset).\"\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":"Search invoices","description":"\nSearch your invoices, both subscription and standalone. Filters combine\nwith AND, and at least one must be provided (`ordering` alone is not enough).\nEmpty arrays are treated as omitted.\n\nTo list a customer's standalone invoices, send `customer_id` with an explicit\n`subscription_id: null`.\n\n**Statuses** are the raw invoice statuses the response's `status` field\nreports. Voided invoices are included in results by default; they are excluded\nonly when a `statuses` filter is provided that does not include `VOIDED`.\n\n**Dates.** All `*_date_min` / `*_date_max` bounds are inclusive and interpreted\nin your account's timezone (`_min` expands to start of day, `_max` to end of\nday).\n`issued_date` filters on the invoice's billing-run date and `paid_date` on when\nit was fully paid. A `due_date` range filters on the due date only — it does\nnot implicitly exclude paid invoices; combine with `statuses` to narrow.\n\n**Days past due** is the number of whole days between the due date and now.\nInvoices with no outstanding balance (fully paid, or nothing due) have no\ndays-past-due value and never match a `days_past_due` filter. For AR-aging\nqueries combine with `\"statuses\": [\"PAST_DUE\"]`.\n\n**Amounts** are integer minor currency units (e.g. cents). `amount_due` is the\nremaining unpaid amount; `paid_amount` is the total paid so far, including\npartial payments.\n\n**`search_term`** matches invoice numbers, customer names, invoice UUIDs, and\namounts.\n\n**Ordering** takes a single field name with an optional `-` prefix for\ndescending: `issued_at`, `due_at`, or `amount_due` (remaining amount). Defaults\nto newest first.\n\nPagination is handled via query params (limit, offset).\n","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/search","href":"/api-reference/invoices/search-invoices","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"searchInvoices","description":"\nSearch your invoices, both subscription and standalone. Filters combine\nwith AND, and at least one must be provided (`ordering` alone is not enough).\nEmpty arrays are treated as omitted.\n\nTo list a customer's standalone invoices, send `customer_id` with an explicit\n`subscription_id: null`.\n\n**Statuses** are the raw invoice statuses the response's `status` field\nreports. Voided invoices are included in results by default; they are excluded\nonly when a `statuses` filter is provided that does not include `VOIDED`.\n\n**Dates.** All `*_date_min` / `*_date_max` bounds are inclusive and interpreted\nin your account's timezone (`_min` expands to start of day, `_max` to end of\nday).\n`issued_date` filters on the invoice's billing-run date and `paid_date` on when\nit was fully paid. A `due_date` range filters on the due date only — it does\nnot implicitly exclude paid invoices; combine with `statuses` to narrow.\n\n**Days past due** is the number of whole days between the due date and now.\nInvoices with no outstanding balance (fully paid, or nothing due) have no\ndays-past-due value and never match a `days_past_due` filter. For AR-aging\nqueries combine with `\"statuses\": [\"PAST_DUE\"]`.\n\n**Amounts** are integer minor currency units (e.g. cents). `amount_due` is the\nremaining unpaid amount; `paid_amount` is the total paid so far, including\npartial payments.\n\n**`search_term`** matches invoice numbers, customer names, invoice UUIDs, and\namounts.\n\n**Ordering** takes a single field name with an optional `-` prefix for\ndescending: `issued_at`, `due_at`, or `amount_due` (remaining amount). Defaults\nto newest first.\n\nPagination is handled via query params (limit, offset).\n","summary":"Search invoices","parameters":["0e08cdfe-6b9a-4b75-87fa-58963f1bd0dd","fdbcf058-c966-486c-9c3f-e6d1d6850834"],"tags":["Invoices"],"requestBody":"70770abf-8dfb-4915-be9c-2c83b124a647","responses":{"200":"cb9e6fec-ae34-4ed3-88e6-45609ecba9bc","400":"ddce4cc1-0f08-4230-a187-587e113dce96"},"method":"post","type":"path","servers":["473a595f-0b07-4538-b033-faf5582d0b46"],"security":["96e2b814-4b2f-4ec1-a062-fb177ecfca77"],"path":"/invoices/search","baseUrlOptions":["https://api.salesbricks.com/api/v2"],"title":"Search invoices","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0e08cdfe-6b9a-4b75-87fa-58963f1bd0dd":{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer","isRequired":false,"description":"Number of results to return per page.","uniqueKey":"","typeLabel":"integer"}},"fdbcf058-c966-486c-9c3f-e6d1d6850834":{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer","isRequired":false,"description":"The initial index from which to return the results.","uniqueKey":"","typeLabel":"integer"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Filters for searching your invoices.","properties":{"invoice_numbers":{"type":"array","items":{"type":"string","uniqueKey":"invoice_numbers.items.[INDEX]","typeLabel":"string"},"description":"Filter invoices by invoice number (e.g. '6c12021a-4')","uniqueKey":"invoice_numbers","typeLabel":"string[]"},"invoice_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"invoice_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"description":"Filter invoices by invoice ID","uniqueKey":"invoice_ids","typeLabel":"string\u003cuuid>[]"},"customer_id":{"type":"string","format":"uuid","description":"Filter invoices by customer ID","uniqueKey":"customer_id","typeLabel":"string\u003cuuid>"},"subscription_id":{"oneOf":[{"type":"string","format":"uuid","description":"Filter invoices by subscription ID. Pass null to match invoices with no subscription. Omit to apply no subscription filter.","uniqueKey":"subscription_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Filter invoices by subscription ID. Pass null to match invoices with no subscription. Omit to apply no subscription filter.","uniqueKey":"subscription_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription_id","typeLabel":"string\u003cuuid> | null"},"statuses":{"type":"array","items":{"enum":["MUTED","SCHEDULED","DRAFT","OUTSTANDING","DUE","PAST_DUE","PAID","PARTIALLY_PAID","ADJUSTED","CREDITED","UNPAID","PAUSED","VOIDED"],"type":"string","description":"* `MUTED` - Muted\n* `SCHEDULED` - Scheduled\n* `DRAFT` - Draft\n* `OUTSTANDING` - Outstanding\n* `DUE` - Due\n* `PAST_DUE` - Past due\n* `PAID` - Paid\n* `PARTIALLY_PAID` - Partially Paid\n* `ADJUSTED` - Adjusted\n* `CREDITED` - Credited\n* `UNPAID` - Unpaid\n* `PAUSED` - Paused\n* `VOIDED` - Voided","x-spec-enum-id":"67bd66efb8e391e6","uniqueKey":"statuses.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Filter invoices by status.\n\nCurrent status of the invoice. One of:\n\n- `MUTED` — Invoice will not be sent. Muted invoices come from migration cut-overs or from muting invoices in the product settings.\n- `SCHEDULED` — Scheduled to be issued on a future date.\n- `OUTSTANDING` — Issued and awaiting payment.\n- `DUE` — Payment is due.\n- `PAST_DUE` — Payment is past its due date.\n- `PAID` — Fully paid.\n- `PARTIALLY_PAID` — Partially paid, with a remaining balance.\n- `ADJUSTED` — Adjusted after issuance.\n- `CREDITED` — Settled by applying credit.\n- `UNPAID` — Unpaid.\n- `PAUSED` — Collection is paused.\n- `VOIDED` — Voided and no longer collectible.\n","uniqueKey":"statuses","typeLabel":"enum\u003cstring>[]"},"currencies":{"type":"array","items":{"enum":["USD","EUR","GBP","AUD","CAD","INR"],"type":"string","description":"* `USD` - United States Dollar\n* `EUR` - Euros\n* `GBP` - Great British Pound\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `INR` - Indian Rupee","x-spec-enum-id":"fde863feba7c4cf4","uniqueKey":"currencies.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Filter invoices by currency (e.g. USD, EUR)","uniqueKey":"currencies","typeLabel":"enum\u003cstring>[]"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"description":"Filter invoices by metadata. All supplied key/value pairs must be present on the invoice.","uniqueKey":"metadata","typeLabel":"object"},"due_date_min":{"type":"string","format":"date","description":"Earliest due date (inclusive, start of day in your account's timezone). Filters on due date only — paid invoices are not implicitly excluded; combine with statuses to narrow.","uniqueKey":"due_date_min","typeLabel":"string\u003cdate>"},"due_date_max":{"type":"string","format":"date","description":"Latest due date (inclusive, end of day in your account's timezone).","uniqueKey":"due_date_max","typeLabel":"string\u003cdate>"},"issued_date_min":{"type":"string","format":"date","description":"Earliest invoice date (inclusive, start of day in your account's timezone). Filters on the invoice's billing-run date — the date the invoice was generated.","uniqueKey":"issued_date_min","typeLabel":"string\u003cdate>"},"issued_date_max":{"type":"string","format":"date","description":"Latest invoice date (inclusive, end of day in your account's timezone).","uniqueKey":"issued_date_max","typeLabel":"string\u003cdate>"},"paid_date_min":{"type":"string","format":"date","description":"Earliest fully-paid date (inclusive, start of day in your account's timezone).","uniqueKey":"paid_date_min","typeLabel":"string\u003cdate>"},"paid_date_max":{"type":"string","format":"date","description":"Latest fully-paid date (inclusive, end of day in your account's timezone).","uniqueKey":"paid_date_max","typeLabel":"string\u003cdate>"},"days_past_due_min":{"type":"integer","minimum":0,"description":"Minimum days between the due date and now (inclusive). Invoices with no outstanding balance have no days-past-due value and never match this filter.","uniqueKey":"days_past_due_min","typeLabel":"integer"},"days_past_due_max":{"type":"integer","minimum":0,"description":"Maximum days between the due date and now (inclusive).","uniqueKey":"days_past_due_max","typeLabel":"integer"},"amount_due_min":{"type":"integer","description":"Minimum remaining unpaid amount in minor currency units (inclusive).","uniqueKey":"amount_due_min","typeLabel":"integer"},"amount_due_max":{"type":"integer","description":"Maximum remaining unpaid amount in minor currency units (inclusive).","uniqueKey":"amount_due_max","typeLabel":"integer"},"paid_amount_min":{"type":"integer","description":"Minimum total paid amount (including partial payments) in minor currency units (inclusive).","uniqueKey":"paid_amount_min","typeLabel":"integer"},"paid_amount_max":{"type":"integer","description":"Maximum total paid amount (including partial payments) in minor currency units (inclusive).","uniqueKey":"paid_amount_max","typeLabel":"integer"},"search_term":{"type":"string","description":"Free-text search across invoice numbers, customer names, invoice UUIDs, and amounts.","uniqueKey":"search_term","typeLabel":"string"},"ordering":{"enum":["issued_at","-issued_at","due_at","-due_at","amount_due","-amount_due"],"type":"string","x-spec-enum-id":"3e8c481f57f0bb02","description":"Order results by field, prefixed with '-' for descending. 'amount_due' is the remaining amount. Defaults to newest first.\n\n* `issued_at` - issued_at\n* `-issued_at` - -issued_at\n* `due_at` - due_at\n* `-due_at` - -due_at\n* `amount_due` - amount_due\n* `-amount_due` - -amount_due","uniqueKey":"ordering","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Past-dueInvoicesForACustomer":{"title":"Past-dueInvoicesForACustomer","value":{"customer_id":"11111111-2222-3333-4444-555555555555","statuses":["PAST_DUE"],"ordering":"-due_at"}},"UnpaidInvoicesDueThisQuarter":{"title":"UnpaidInvoicesDueThisQuarter","value":{"statuses":["DUE","OUTSTANDING","UNPAID","PAST_DUE","PARTIALLY_PAID"],"due_date_min":"2026-01-01","due_date_max":"2026-03-31"}},"ARAging:30+DaysPastDueOver$100":{"title":"ARAging:30+DaysPastDueOver$100","value":{"statuses":["PAST_DUE"],"days_past_due_min":30,"amount_due_min":10000,"ordering":"-amount_due"}}},"exampleType":"examples"},"application/x-www-form-urlencoded":{"schema":{"type":"object","description":"Filters for searching your invoices.","properties":{"invoice_numbers":{"type":"array","items":{"type":"string","uniqueKey":"invoice_numbers.items.[INDEX]","typeLabel":"string"},"description":"Filter invoices by invoice number (e.g. '6c12021a-4')","uniqueKey":"invoice_numbers","typeLabel":"string[]"},"invoice_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"invoice_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"description":"Filter invoices by invoice ID","uniqueKey":"invoice_ids","typeLabel":"string\u003cuuid>[]"},"customer_id":{"type":"string","format":"uuid","description":"Filter invoices by customer ID","uniqueKey":"customer_id","typeLabel":"string\u003cuuid>"},"subscription_id":{"oneOf":[{"type":"string","format":"uuid","description":"Filter invoices by subscription ID. Pass null to match invoices with no subscription. Omit to apply no subscription filter.","uniqueKey":"subscription_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Filter invoices by subscription ID. Pass null to match invoices with no subscription. Omit to apply no subscription filter.","uniqueKey":"subscription_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription_id","typeLabel":"string\u003cuuid> | null"},"statuses":{"type":"array","items":{"enum":["MUTED","SCHEDULED","DRAFT","OUTSTANDING","DUE","PAST_DUE","PAID","PARTIALLY_PAID","ADJUSTED","CREDITED","UNPAID","PAUSED","VOIDED"],"type":"string","description":"* `MUTED` - Muted\n* `SCHEDULED` - Scheduled\n* `DRAFT` - Draft\n* `OUTSTANDING` - Outstanding\n* `DUE` - Due\n* `PAST_DUE` - Past due\n* `PAID` - Paid\n* `PARTIALLY_PAID` - Partially Paid\n* `ADJUSTED` - Adjusted\n* `CREDITED` - Credited\n* `UNPAID` - Unpaid\n* `PAUSED` - Paused\n* `VOIDED` - Voided","x-spec-enum-id":"67bd66efb8e391e6","uniqueKey":"statuses.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Filter invoices by status.\n\nCurrent status of the invoice. One of:\n\n- `MUTED` — Invoice will not be sent. Muted invoices come from migration cut-overs or from muting invoices in the product settings.\n- `SCHEDULED` — Scheduled to be issued on a future date.\n- `OUTSTANDING` — Issued and awaiting payment.\n- `DUE` — Payment is due.\n- `PAST_DUE` — Payment is past its due date.\n- `PAID` — Fully paid.\n- `PARTIALLY_PAID` — Partially paid, with a remaining balance.\n- `ADJUSTED` — Adjusted after issuance.\n- `CREDITED` — Settled by applying credit.\n- `UNPAID` — Unpaid.\n- `PAUSED` — Collection is paused.\n- `VOIDED` — Voided and no longer collectible.\n","uniqueKey":"statuses","typeLabel":"enum\u003cstring>[]"},"currencies":{"type":"array","items":{"enum":["USD","EUR","GBP","AUD","CAD","INR"],"type":"string","description":"* `USD` - United States Dollar\n* `EUR` - Euros\n* `GBP` - Great British Pound\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `INR` - Indian Rupee","x-spec-enum-id":"fde863feba7c4cf4","uniqueKey":"currencies.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Filter invoices by currency (e.g. USD, EUR)","uniqueKey":"currencies","typeLabel":"enum\u003cstring>[]"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"description":"Filter invoices by metadata. All supplied key/value pairs must be present on the invoice.","uniqueKey":"metadata","typeLabel":"object"},"due_date_min":{"type":"string","format":"date","description":"Earliest due date (inclusive, start of day in your account's timezone). Filters on due date only — paid invoices are not implicitly excluded; combine with statuses to narrow.","uniqueKey":"due_date_min","typeLabel":"string\u003cdate>"},"due_date_max":{"type":"string","format":"date","description":"Latest due date (inclusive, end of day in your account's timezone).","uniqueKey":"due_date_max","typeLabel":"string\u003cdate>"},"issued_date_min":{"type":"string","format":"date","description":"Earliest invoice date (inclusive, start of day in your account's timezone). Filters on the invoice's billing-run date — the date the invoice was generated.","uniqueKey":"issued_date_min","typeLabel":"string\u003cdate>"},"issued_date_max":{"type":"string","format":"date","description":"Latest invoice date (inclusive, end of day in your account's timezone).","uniqueKey":"issued_date_max","typeLabel":"string\u003cdate>"},"paid_date_min":{"type":"string","format":"date","description":"Earliest fully-paid date (inclusive, start of day in your account's timezone).","uniqueKey":"paid_date_min","typeLabel":"string\u003cdate>"},"paid_date_max":{"type":"string","format":"date","description":"Latest fully-paid date (inclusive, end of day in your account's timezone).","uniqueKey":"paid_date_max","typeLabel":"string\u003cdate>"},"days_past_due_min":{"type":"integer","minimum":0,"description":"Minimum days between the due date and now (inclusive). Invoices with no outstanding balance have no days-past-due value and never match this filter.","uniqueKey":"days_past_due_min","typeLabel":"integer"},"days_past_due_max":{"type":"integer","minimum":0,"description":"Maximum days between the due date and now (inclusive).","uniqueKey":"days_past_due_max","typeLabel":"integer"},"amount_due_min":{"type":"integer","description":"Minimum remaining unpaid amount in minor currency units (inclusive).","uniqueKey":"amount_due_min","typeLabel":"integer"},"amount_due_max":{"type":"integer","description":"Maximum remaining unpaid amount in minor currency units (inclusive).","uniqueKey":"amount_due_max","typeLabel":"integer"},"paid_amount_min":{"type":"integer","description":"Minimum total paid amount (including partial payments) in minor currency units (inclusive).","uniqueKey":"paid_amount_min","typeLabel":"integer"},"paid_amount_max":{"type":"integer","description":"Maximum total paid amount (including partial payments) in minor currency units (inclusive).","uniqueKey":"paid_amount_max","typeLabel":"integer"},"search_term":{"type":"string","description":"Free-text search across invoice numbers, customer names, invoice UUIDs, and amounts.","uniqueKey":"search_term","typeLabel":"string"},"ordering":{"enum":["issued_at","-issued_at","due_at","-due_at","amount_due","-amount_due"],"type":"string","x-spec-enum-id":"3e8c481f57f0bb02","description":"Order results by field, prefixed with '-' for descending. 'amount_due' is the remaining amount. Defaults to newest first.\n\n* `issued_at` - issued_at\n* `-issued_at` - -issued_at\n* `due_at` - due_at\n* `-due_at` - -due_at\n* `amount_due` - amount_due\n* `-amount_due` - -amount_due","uniqueKey":"ordering","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invoice_numbers":["\u003cstring>"],"invoice_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"customer_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","subscription_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","statuses":[],"currencies":[],"metadata":{},"due_date_min":"2023-12-25","due_date_max":"2023-12-25","issued_date_min":"2023-12-25","issued_date_max":"2023-12-25","paid_date_min":"2023-12-25","paid_date_max":"2023-12-25","days_past_due_min":1,"days_past_due_max":1,"amount_due_min":123,"amount_due_max":123,"paid_amount_min":123,"paid_amount_max":123,"search_term":"\u003cstring>"}}},"exampleType":"generated"},"multipart/form-data":{"schema":{"type":"object","description":"Filters for searching your invoices.","properties":{"invoice_numbers":{"type":"array","items":{"type":"string","uniqueKey":"invoice_numbers.items.[INDEX]","typeLabel":"string"},"description":"Filter invoices by invoice number (e.g. '6c12021a-4')","uniqueKey":"invoice_numbers","typeLabel":"string[]"},"invoice_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"invoice_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"description":"Filter invoices by invoice ID","uniqueKey":"invoice_ids","typeLabel":"string\u003cuuid>[]"},"customer_id":{"type":"string","format":"uuid","description":"Filter invoices by customer ID","uniqueKey":"customer_id","typeLabel":"string\u003cuuid>"},"subscription_id":{"oneOf":[{"type":"string","format":"uuid","description":"Filter invoices by subscription ID. Pass null to match invoices with no subscription. Omit to apply no subscription filter.","uniqueKey":"subscription_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Filter invoices by subscription ID. Pass null to match invoices with no subscription. Omit to apply no subscription filter.","uniqueKey":"subscription_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription_id","typeLabel":"string\u003cuuid> | null"},"statuses":{"type":"array","items":{"enum":["MUTED","SCHEDULED","DRAFT","OUTSTANDING","DUE","PAST_DUE","PAID","PARTIALLY_PAID","ADJUSTED","CREDITED","UNPAID","PAUSED","VOIDED"],"type":"string","description":"* `MUTED` - Muted\n* `SCHEDULED` - Scheduled\n* `DRAFT` - Draft\n* `OUTSTANDING` - Outstanding\n* `DUE` - Due\n* `PAST_DUE` - Past due\n* `PAID` - Paid\n* `PARTIALLY_PAID` - Partially Paid\n* `ADJUSTED` - Adjusted\n* `CREDITED` - Credited\n* `UNPAID` - Unpaid\n* `PAUSED` - Paused\n* `VOIDED` - Voided","x-spec-enum-id":"67bd66efb8e391e6","uniqueKey":"statuses.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Filter invoices by status.\n\nCurrent status of the invoice. One of:\n\n- `MUTED` — Invoice will not be sent. Muted invoices come from migration cut-overs or from muting invoices in the product settings.\n- `SCHEDULED` — Scheduled to be issued on a future date.\n- `OUTSTANDING` — Issued and awaiting payment.\n- `DUE` — Payment is due.\n- `PAST_DUE` — Payment is past its due date.\n- `PAID` — Fully paid.\n- `PARTIALLY_PAID` — Partially paid, with a remaining balance.\n- `ADJUSTED` — Adjusted after issuance.\n- `CREDITED` — Settled by applying credit.\n- `UNPAID` — Unpaid.\n- `PAUSED` — Collection is paused.\n- `VOIDED` — Voided and no longer collectible.\n","uniqueKey":"statuses","typeLabel":"enum\u003cstring>[]"},"currencies":{"type":"array","items":{"enum":["USD","EUR","GBP","AUD","CAD","INR"],"type":"string","description":"* `USD` - United States Dollar\n* `EUR` - Euros\n* `GBP` - Great British Pound\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `INR` - Indian Rupee","x-spec-enum-id":"fde863feba7c4cf4","uniqueKey":"currencies.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Filter invoices by currency (e.g. USD, EUR)","uniqueKey":"currencies","typeLabel":"enum\u003cstring>[]"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"description":"Filter invoices by metadata. All supplied key/value pairs must be present on the invoice.","uniqueKey":"metadata","typeLabel":"object"},"due_date_min":{"type":"string","format":"date","description":"Earliest due date (inclusive, start of day in your account's timezone). Filters on due date only — paid invoices are not implicitly excluded; combine with statuses to narrow.","uniqueKey":"due_date_min","typeLabel":"string\u003cdate>"},"due_date_max":{"type":"string","format":"date","description":"Latest due date (inclusive, end of day in your account's timezone).","uniqueKey":"due_date_max","typeLabel":"string\u003cdate>"},"issued_date_min":{"type":"string","format":"date","description":"Earliest invoice date (inclusive, start of day in your account's timezone). Filters on the invoice's billing-run date — the date the invoice was generated.","uniqueKey":"issued_date_min","typeLabel":"string\u003cdate>"},"issued_date_max":{"type":"string","format":"date","description":"Latest invoice date (inclusive, end of day in your account's timezone).","uniqueKey":"issued_date_max","typeLabel":"string\u003cdate>"},"paid_date_min":{"type":"string","format":"date","description":"Earliest fully-paid date (inclusive, start of day in your account's timezone).","uniqueKey":"paid_date_min","typeLabel":"string\u003cdate>"},"paid_date_max":{"type":"string","format":"date","description":"Latest fully-paid date (inclusive, end of day in your account's timezone).","uniqueKey":"paid_date_max","typeLabel":"string\u003cdate>"},"days_past_due_min":{"type":"integer","minimum":0,"description":"Minimum days between the due date and now (inclusive). Invoices with no outstanding balance have no days-past-due value and never match this filter.","uniqueKey":"days_past_due_min","typeLabel":"integer"},"days_past_due_max":{"type":"integer","minimum":0,"description":"Maximum days between the due date and now (inclusive).","uniqueKey":"days_past_due_max","typeLabel":"integer"},"amount_due_min":{"type":"integer","description":"Minimum remaining unpaid amount in minor currency units (inclusive).","uniqueKey":"amount_due_min","typeLabel":"integer"},"amount_due_max":{"type":"integer","description":"Maximum remaining unpaid amount in minor currency units (inclusive).","uniqueKey":"amount_due_max","typeLabel":"integer"},"paid_amount_min":{"type":"integer","description":"Minimum total paid amount (including partial payments) in minor currency units (inclusive).","uniqueKey":"paid_amount_min","typeLabel":"integer"},"paid_amount_max":{"type":"integer","description":"Maximum total paid amount (including partial payments) in minor currency units (inclusive).","uniqueKey":"paid_amount_max","typeLabel":"integer"},"search_term":{"type":"string","description":"Free-text search across invoice numbers, customer names, invoice UUIDs, and amounts.","uniqueKey":"search_term","typeLabel":"string"},"ordering":{"enum":["issued_at","-issued_at","due_at","-due_at","amount_due","-amount_due"],"type":"string","x-spec-enum-id":"3e8c481f57f0bb02","description":"Order results by field, prefixed with '-' for descending. 'amount_due' is the remaining amount. Defaults to newest first.\n\n* `issued_at` - issued_at\n* `-issued_at` - -issued_at\n* `due_at` - due_at\n* `-due_at` - -due_at\n* `amount_due` - amount_due\n* `-amount_due` - -amount_due","uniqueKey":"ordering","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invoice_numbers":["\u003cstring>"],"invoice_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"customer_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","subscription_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","statuses":[],"currencies":[],"metadata":{},"due_date_min":"2023-12-25","due_date_max":"2023-12-25","issued_date_min":"2023-12-25","issued_date_max":"2023-12-25","paid_date_min":"2023-12-25","paid_date_max":"2023-12-25","days_past_due_min":1,"days_past_due_max":1,"amount_due_min":123,"amount_due_max":123,"paid_amount_min":123,"paid_amount_max":123,"search_term":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"examples"},"responses":{"cb9e6fec-ae34-4ed3-88e6-45609ecba9bc":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer","example":123,"description":"Total number of results across all pages","isRequired":true,"uniqueKey":"count","typeLabel":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"invoice_id":{"type":"string","format":"uuid","description":"Unique identifier for the invoice. If the id is null, this is an estimate","isRequired":true,"uniqueKey":"results.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid>"},"subscription_id":{"type":"string","format":"uuid","description":"ID of the subscription this invoice belongs to. Null for standalone (one-off) invoices.","isRequired":true,"uniqueKey":"results.items.[INDEX].subscription_id","typeLabel":"string\u003cuuid>"},"customer_id":{"type":"string","format":"uuid","description":"ID of the end customer this invoice is for — the company that consumes the subscription. Never collect or charge payment methods against this id: on a partner-billed invoice the paying party is a different company, and `billed_company_id` is always the id to collect against.","isRequired":true,"uniqueKey":"results.items.[INDEX].customer_id","typeLabel":"string\u003cuuid>"},"billed_company_id":{"type":"string","format":"uuid","description":"ID of the company actually billed for this invoice — the party whose Stripe customer `POST /invoices/{invoice_id}/pay` charges. Equal to `customer_id` unless the invoice is partner-billed, in which case it is the partner's company. Collect and list payment methods against this id, never `customer_id`. Always present and never null, including on the renewal estimate returned by `GET /subscriptions/{subscription_id}/invoices/next`, which resolves the company its renewal would bill.","isRequired":true,"uniqueKey":"results.items.[INDEX].billed_company_id","typeLabel":"string\u003cuuid>"},"invoice_number":{"type":"string","description":"Short form identifier for the invoice. If the invoice_number is null, this is an estimate","isRequired":true,"uniqueKey":"results.items.[INDEX].invoice_number","typeLabel":"string"},"due_at":{"type":"string","format":"date-time","description":"The date on which this invoice is expected to be paid by.","isRequired":true,"uniqueKey":"results.items.[INDEX].due_at","typeLabel":"string\u003cdate-time>"},"bill_at":{"type":"string","format":"date-time","description":"The date on which this invoice will be issued and potentially charged.","isRequired":true,"uniqueKey":"results.items.[INDEX].bill_at","typeLabel":"string\u003cdate-time>"},"issued_at":{"type":"string","format":"date-time","description":"The date on which this invoice was issued.","isRequired":true,"uniqueKey":"results.items.[INDEX].issued_at","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"Current status of the invoice. One of:\n\n- `MUTED` — Invoice will not be sent. Muted invoices come from migration cut-overs or from muting invoices in the product settings.\n- `SCHEDULED` — Scheduled to be issued on a future date.\n- `OUTSTANDING` — Issued and awaiting payment.\n- `DUE` — Payment is due.\n- `PAST_DUE` — Payment is past its due date.\n- `PAID` — Fully paid.\n- `PARTIALLY_PAID` — Partially paid, with a remaining balance.\n- `ADJUSTED` — Adjusted after issuance.\n- `CREDITED` — Settled by applying credit.\n- `UNPAID` — Unpaid.\n- `PAUSED` — Collection is paused.\n- `VOIDED` — Voided and no longer collectible.\n","isRequired":true,"uniqueKey":"results.items.[INDEX].status","typeLabel":"string"},"fully_paid_at":{"type":"string","format":"date-time","description":"The date on which this invoice was fully paid.","isRequired":true,"uniqueKey":"results.items.[INDEX].fully_paid_at","typeLabel":"string\u003cdate-time>"},"grand_total":{"type":"integer","description":"Total amount due for this invoice.\n\nInvoices that have not been generated yet (e.g. `SCHEDULED`) report the total expected at the time they were created. That figure does NOT include usage metered since — a usage invoice whose meters have not been priced reports 0. Pass `?calculate_expected_usage=true` to re-price against the order and include estimated usage instead; it is slower, so it is off by default on list endpoints.","isRequired":true,"uniqueKey":"results.items.[INDEX].grand_total","typeLabel":"integer"},"remaining_amount":{"type":"integer","description":"Remaining amount for this invoice.","isRequired":true,"uniqueKey":"results.items.[INDEX].remaining_amount","typeLabel":"integer"},"currency":{"type":"string","description":"The currency in which the invoice is denominated (e.g., USD, EUR).","isRequired":true,"uniqueKey":"results.items.[INDEX].currency","typeLabel":"string"},"is_renewal_estimate":{"type":"boolean","description":"This is an estimate for a renewal that has not yet closed, but is expected to.","isRequired":true,"uniqueKey":"results.items.[INDEX].is_renewal_estimate","typeLabel":"boolean"},"payment_url":{"oneOf":[{"type":"string","format":"uri","description":"Link to the page where your customer pays this invoice online, the same link the invoice PDF carries. Safe to send to your customer: it needs no token and does not expire. Null when you have no Stripe account that can take payments connected, when the invoice has not been issued yet (`SCHEDULED` or `DRAFT`), and on a renewal estimate. Not to be confused with `POST /invoices/{invoice_id}/pay`, which charges a saved payment method directly.","isRequired":true,"uniqueKey":"results.items.[INDEX].payment_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Link to the page where your customer pays this invoice online, the same link the invoice PDF carries. Safe to send to your customer: it needs no token and does not expire. Null when you have no Stripe account that can take payments connected, when the invoice has not been issued yet (`SCHEDULED` or `DRAFT`), and on a renewal estimate. Not to be confused with `POST /invoices/{invoice_id}/pay`, which charges a saved payment method directly.","isRequired":true,"uniqueKey":"results.items.[INDEX].payment_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].payment_url","typeLabel":"string\u003curi> | null"},"customer_name":{"type":"string","description":"Name of the customer who will pay this invoice","uniqueKey":"results.items.[INDEX].customer_name","typeLabel":"string"},"time_zone":{"type":"string","description":"Invoice timezone","uniqueKey":"results.items.[INDEX].time_zone","typeLabel":"string"},"payments":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string","format":"uuid","readOnly":true,"description":"Unique identifier for the payment","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].payment_id","typeLabel":"string\u003cuuid>"},"invoice_number":{"oneOf":[{"type":"string","readOnly":true,"description":"The invoice number this payment was made against, snapshotted from the invoice version current when the payment was recorded — it does not change when the invoice is later regenerated, so it may differ from the invoice's top-level `invoice_number`. Falls back to the invoice's current number when no version is linked. Join payments to invoices by ID, not by number.","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].invoice_number.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The invoice number this payment was made against, snapshotted from the invoice version current when the payment was recorded — it does not change when the invoice is later regenerated, so it may differ from the invoice's top-level `invoice_number`. Falls back to the invoice's current number when no version is linked. Join payments to invoices by ID, not by number.","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].invoice_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].invoice_number","typeLabel":"string | null"},"invoice_version_id":{"oneOf":[{"type":"string","format":"uuid","readOnly":true,"description":"Identifier of the invoice version this payment was made against — the version current when the payment was recorded. Null only when the invoice has no versions (it was never generated).","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].invoice_version_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","readOnly":true,"description":"Identifier of the invoice version this payment was made against — the version current when the payment was recorded. Null only when the invoice has no versions (it was never generated).","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].invoice_version_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].invoice_version_id","typeLabel":"string\u003cuuid> | null"},"paid_amount":{"oneOf":[{"type":"integer","readOnly":true,"description":"The amount paid","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].paid_amount.oneOf.0","typeLabel":"integer"},{"type":"null","readOnly":true,"description":"The amount paid","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].paid_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].paid_amount","typeLabel":"integer | null"},"paid_at":{"oneOf":[{"type":"string","format":"date-time","readOnly":true,"description":"the date at which this payment was paid","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].paid_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","readOnly":true,"description":"the date at which this payment was paid","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].paid_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].paid_at","typeLabel":"string\u003cdate-time> | null"},"currency":{"type":"string","readOnly":true,"description":"The currency in which the payment is denominated (e.g., USD, EUR)","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].currency","typeLabel":"string"},"error":{"oneOf":[{"type":"string","readOnly":true,"description":"Any errors that occured during this payment processing","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].error.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Any errors that occured during this payment processing","isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].payments.items.[INDEX].error","typeLabel":"string | null"}},"required":["currency","error","invoice_number","invoice_version_id","paid_amount","paid_at","payment_id"],"uniqueKey":"results.items.[INDEX].payments.items.[INDEX]","typeLabel":"object"},"description":"All payments made against this invoice, newest first.","uniqueKey":"results.items.[INDEX].payments","typeLabel":"object[]"},"attachments":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"results.items.[INDEX].attachments.items.[INDEX]","typeLabel":"any"},"description":"Current attachments for this invoice as a flat array. Each item includes 'target' field indicating invoice or subscription level. Sorted by unified order.","uniqueKey":"results.items.[INDEX].attachments","typeLabel":"any[]"},"line_items":{"type":"array","items":{"type":"object","properties":{"brick_name":{"type":"string","description":"Name of the brick","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].brick_name","typeLabel":"string"},"brick_id":{"oneOf":[{"type":"string","description":"Unique identifier of the brick","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].brick_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique identifier of the brick","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].brick_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].brick_id","typeLabel":"string | null"},"brick_code":{"oneOf":[{"type":"string","description":"The internal SKU code you set on the brick. Unlike `brick_id` it stays the same across environments and when a brick is recreated, so use it to map bricks to your own features. Null when the brick has no code.","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].brick_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The internal SKU code you set on the brick. Unlike `brick_id` it stays the same across environments and when a brick is recreated, so use it to map bricks to your own features. Null when the brick has no code.","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].brick_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].brick_code","typeLabel":"string | null"},"quantity":{"oneOf":[{"type":"integer","description":"Quantity of units. Fractional quantities are returned as a decimal","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].quantity.oneOf.0","typeLabel":"integer"},{"type":"number","description":"Quantity of units. Fractional quantities are returned as a decimal","format":"double","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].quantity.oneOf.1","typeLabel":"number\u003cdouble>"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].quantity","typeLabel":"integer | number\u003cdouble>"},"tax":{"type":"integer","description":"Tax amount in minor currency units","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].tax","typeLabel":"integer"},"grand_total":{"type":"integer","description":"Grand total in minor currency units","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].grand_total","typeLabel":"integer"},"starts_at":{"oneOf":[{"type":"string","format":"date-time","description":"Start of the period this line item covers","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].starts_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Start of the period this line item covers","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].starts_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].starts_at","typeLabel":"string\u003cdate-time> | null"},"ends_at":{"oneOf":[{"type":"string","format":"date-time","description":"End of the period this line item covers","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].ends_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"End of the period this line item covers","isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].ends_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX].ends_at","typeLabel":"string\u003cdate-time> | null"}},"required":["brick_code","brick_id","brick_name","ends_at","grand_total","quantity","starts_at","tax"],"uniqueKey":"results.items.[INDEX].line_items.items.[INDEX]","typeLabel":"object"},"description":"Line item breakdown for this invoice","uniqueKey":"results.items.[INDEX].line_items","typeLabel":"object[]"},"metadata":{"description":"Optional metadata stored against the invoice.","uniqueKey":"results.items.[INDEX].metadata","typeLabel":"any"},"purchase_order":{"oneOf":[{"type":"object","description":"Purchase order shown on this invoice: the invoice's own purchase order when it has one, otherwise the subscription's. Matches the PO printed on the invoice PDF. Null when neither carries one.","required":["code"],"properties":{"code":{"oneOf":[{"type":"string","description":"Internal identifier of the Purchase Order provided by Buyer","isRequired":true,"uniqueKey":"results.items.[INDEX].purchase_order.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal identifier of the Purchase Order provided by Buyer","isRequired":true,"uniqueKey":"results.items.[INDEX].purchase_order.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].purchase_order.oneOf.0.code","typeLabel":"string | null"}},"uniqueKey":"results.items.[INDEX].purchase_order.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"results.items.[INDEX].purchase_order.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].purchase_order","typeLabel":"object | null"}},"required":["bill_at","billed_company_id","currency","customer_id","due_at","fully_paid_at","grand_total","invoice_id","invoice_number","is_renewal_estimate","issued_at","payment_url","remaining_amount","status","subscription_id"],"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"description":"The results on this page","isRequired":true,"uniqueKey":"results","typeLabel":"object[]"},"next":{"oneOf":[{"type":"string","format":"uri","example":"http://api.example.org/accounts/?offset=400\u0026limit=100","description":"URL of the next page of results, or null on the last page","uniqueKey":"next.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","example":"http://api.example.org/accounts/?offset=400\u0026limit=100","description":"URL of the next page of results, or null on the last page","uniqueKey":"next.oneOf.1","typeLabel":"null"}],"uniqueKey":"next","typeLabel":"string\u003curi> | null"},"previous":{"oneOf":[{"type":"string","format":"uri","example":"http://api.example.org/accounts/?offset=200\u0026limit=100","description":"URL of the previous page of results, or null on the first page","uniqueKey":"previous.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","example":"http://api.example.org/accounts/?offset=200\u0026limit=100","description":"URL of the previous page of results, or null on the first page","uniqueKey":"previous.oneOf.1","typeLabel":"null"}],"uniqueKey":"previous","typeLabel":"string\u003curi> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"count":123,"results":[{"invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","subscription_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","customer_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","billed_company_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_number":"\u003cstring>","due_at":"2023-11-07T05:31:56Z","bill_at":"2023-11-07T05:31:56Z","issued_at":"2023-11-07T05:31:56Z","status":"\u003cstring>","fully_paid_at":"2023-11-07T05:31:56Z","grand_total":123,"remaining_amount":123,"currency":"\u003cstring>","is_renewal_estimate":true,"payment_url":"\u003cstring>","customer_name":"\u003cstring>","time_zone":"\u003cstring>","payments":[{"payment_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_number":"\u003cstring>","invoice_version_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","paid_amount":123,"paid_at":"2023-11-07T05:31:56Z","currency":"\u003cstring>","error":"\u003cstring>"}],"attachments":["\u003cunknown>"],"line_items":[{"brick_name":"\u003cstring>","brick_id":"\u003cstring>","brick_code":"\u003cstring>","quantity":123,"tax":123,"grand_total":123,"starts_at":"2023-11-07T05:31:56Z","ends_at":"2023-11-07T05:31:56Z"}],"metadata":"\u003cunknown>","purchase_order":{"code":"\u003cstring>"}}],"next":"http://api.example.org/accounts/?offset=400\u0026limit=100","previous":"http://api.example.org/accounts/?offset=200\u0026limit=100"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"},"ddce4cc1-0f08-4230-a187-587e113dce96":{"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":{"Example":{"title":"Example","value":{"error":{"code":"ERR_NOT_FOUND","message":"\u003cstring>","error_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}}},"exampleType":"generated"}},"description":"","exampleType":"generated"}},"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":"Search invoices - Salesbricks","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T23:31:30.435Z","originalFileLocation":"api-reference/invoices/search-invoices.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=\"Search your invoices, both subscription and standalone. Filters combine with AND, and at least one must be provided (ordering alone is not enough). Empty arrays are treated as omitted. To list a customer\u0026#x27;s standalone invoices, send customer_id with an explicit subscription_id: null. Statuses are the raw invoice statuses the response\u0026#x27;s status field reports. Voided invoices are included in results by default; they are excluded only when a statuses filter is provided that does not include VOIDED. Dates. All _date_min / _date_max bounds are inclusive and interpreted in your account\u0026#x27;s timezone (_min expands to start of day, _max to end of day). issued_date filters on the invoice\u0026#x27;s billing-run date and paid_date on when it was fully paid. A due_date range filters on the due date only — it does not implicitly exclude paid invoices; combine with statuses to narrow. Days past due is the number of whole days between the due date and now. Invoices with no outstanding balance (fully paid, or nothing due) have no days-past-due value and never match a days_past_due filter. For AR-aging queries combine with \u0026quot;statuses\u0026quot;: [\u0026quot;PAST_DUE\u0026quot;]. Amounts are integer minor currency units (e.g. cents). amount_due is the remaining unpaid amount; paid_amount is the total paid so far, including partial payments. search_term matches invoice numbers, customer names, invoice UUIDs, and amounts. Ordering takes a single field name with an optional - prefix for descending: issued_at, due_at, or amount_due (remaining amount). Defaults to newest first. Pagination is handled via query params (limit, offset).\">\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=\"Search invoices - Salesbricks\">\u003cmeta data-mint-head property=\"og:description\" content=\"Search your invoices, both subscription and standalone. Filters combine with AND, and at least one must be provided (ordering alone is not enough). Empty arrays are treated as omitted. To list a customer\u0026#x27;s standalone invoices, send customer_id with an explicit subscription_id: null. Statuses are the raw invoice statuses the response\u0026#x27;s status field reports. Voided invoices are included in results by default; they are excluded only when a statuses filter is provided that does not include VOIDED. Dates. All _date_min / _date_max bounds are inclusive and interpreted in your account\u0026#x27;s timezone (_min expands to start of day, _max to end of day). issued_date filters on the invoice\u0026#x27;s billing-run date and paid_date on when it was fully paid. A due_date range filters on the due date only — it does not implicitly exclude paid invoices; combine with statuses to narrow. Days past due is the number of whole days between the due date and now. Invoices with no outstanding balance (fully paid, or nothing due) have no days-past-due value and never match a days_past_due filter. For AR-aging queries combine with \u0026quot;statuses\u0026quot;: [\u0026quot;PAST_DUE\u0026quot;]. Amounts are integer minor currency units (e.g. cents). amount_due is the remaining unpaid amount; paid_amount is the total paid so far, including partial payments. search_term matches invoice numbers, customer names, invoice UUIDs, and amounts. Ordering takes a single field name with an optional - prefix for descending: issued_at, due_at, or amount_due (remaining amount). Defaults to newest first. Pagination is handled via query params (limit, offset).\">\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/search-invoices\">\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=Search+invoices\u0026amp;description=%0ASearch+your+invoices%2C+both+subscription+and+standalone.+Filters+combine%0Awith+AND%2C+and+at+least+one+must+be+provided+%28%60ordering%60+alone+is+not+enough%29.%0AEmpty+arr\u0026amp;theme=c38cf69ba54d28d8add3f8a9\u0026amp;signature=63162756bf91e2c8adc3c55075d237a887c467168d607eaa78f4caf29b434fac\">\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=\"Search invoices - Salesbricks\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Search your invoices, both subscription and standalone. Filters combine with AND, and at least one must be provided (ordering alone is not enough). Empty arrays are treated as omitted. To list a customer\u0026#x27;s standalone invoices, send customer_id with an explicit subscription_id: null. Statuses are the raw invoice statuses the response\u0026#x27;s status field reports. Voided invoices are included in results by default; they are excluded only when a statuses filter is provided that does not include VOIDED. Dates. All _date_min / _date_max bounds are inclusive and interpreted in your account\u0026#x27;s timezone (_min expands to start of day, _max to end of day). issued_date filters on the invoice\u0026#x27;s billing-run date and paid_date on when it was fully paid. A due_date range filters on the due date only — it does not implicitly exclude paid invoices; combine with statuses to narrow. Days past due is the number of whole days between the due date and now. Invoices with no outstanding balance (fully paid, or nothing due) have no days-past-due value and never match a days_past_due filter. For AR-aging queries combine with \u0026quot;statuses\u0026quot;: [\u0026quot;PAST_DUE\u0026quot;]. Amounts are integer minor currency units (e.g. cents). amount_due is the remaining unpaid amount; paid_amount is the total paid so far, including partial payments. search_term matches invoice numbers, customer names, invoice UUIDs, and amounts. Ordering takes a single field name with an optional - prefix for descending: issued_at, due_at, or amount_due (remaining amount). Defaults to newest first. Pagination is handled via query params (limit, offset).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://salesbricks.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Search+invoices\u0026amp;description=%0ASearch+your+invoices%2C+both+subscription+and+standalone.+Filters+combine%0Awith+AND%2C+and+at+least+one+must+be+provided+%28%60ordering%60+alone+is+not+enough%29.%0AEmpty+arr\u0026amp;theme=c38cf69ba54d28d8add3f8a9\u0026amp;signature=63162756bf91e2c8adc3c55075d237a887c467168d607eaa78f4caf29b434fac\">\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/search-invoices\">\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/search-invoices.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/search-invoices#webpage\",\"url\":\"https://docs.salesbricks.com/api-reference/invoices/search-invoices\",\"name\":\"Search invoices\",\"description\":\"Search your invoices, both subscription and standalone. Filters combine with AND, and at least one must be provided (ordering alone is not enough). Empty arrays are treated as omitted. To list a customer's standalone invoices, send customer_id with an explicit subscription_id: null. Statuses are the raw invoice statuses the response's status field reports. Voided invoices are included in results by default; they are excluded only when a statuses filter is provided that does not include VOIDED. Dates. All _date_min / _date_max bounds are inclusive and interpreted in your account's timezone (_min expands to start of day, _max to end of day). issued_date filters on the invoice's billing-run date and paid_date on when it was fully paid. A due_date range filters on the due date only — it does not implicitly exclude paid invoices; combine with statuses to narrow. Days past due is the number of whole days between the due date and now. Invoices with no outstanding balance (fully paid, or nothing due) have no days-past-due value and never match a days_past_due filter. For AR-aging queries combine with \\\"statuses\\\": [\\\"PAST_DUE\\\"]. Amounts are integer minor currency units (e.g. cents). amount_due is the remaining unpaid amount; paid_amount is the total paid so far, including partial payments. search_term matches invoice numbers, customer names, invoice UUIDs, and amounts. Ordering takes a single field name with an optional - prefix for descending: issued_at, due_at, or amount_due (remaining amount). Defaults to newest first. Pagination is handled via query params (limit, offset).\",\"dateModified\":\"2026-11-05T23:31:30.435Z\",\"isPartOf\":{\"@id\":\"https://docs.salesbricks.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/search-invoices#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/search-invoices#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\":\"Search invoices\",\"item\":\"https://docs.salesbricks.com/api-reference/invoices/search-invoices\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/search-invoices#apireference\",\"headline\":\"Search invoices\",\"name\":\"Search invoices\",\"description\":\"Search your invoices, both subscription and standalone. Filters combine with AND, and at least one must be provided (ordering alone is not enough). Empty arrays are treated as omitted. To list a customer's standalone invoices, send customer_id with an explicit subscription_id: null. Statuses are the raw invoice statuses the response's status field reports. Voided invoices are included in results by default; they are excluded only when a statuses filter is provided that does not include VOIDED. Dates. All _date_min / _date_max bounds are inclusive and interpreted in your account's timezone (_min expands to start of day, _max to end of day). issued_date filters on the invoice's billing-run date and paid_date on when it was fully paid. A due_date range filters on the due date only — it does not implicitly exclude paid invoices; combine with statuses to narrow. Days past due is the number of whole days between the due date and now. Invoices with no outstanding balance (fully paid, or nothing due) have no days-past-due value and never match a days_past_due filter. For AR-aging queries combine with \\\"statuses\\\": [\\\"PAST_DUE\\\"]. Amounts are integer minor currency units (e.g. cents). amount_due is the remaining unpaid amount; paid_amount is the total paid so far, including partial payments. search_term matches invoice numbers, customer names, invoice UUIDs, and amounts. Ordering takes a single field name with an optional - prefix for descending: issued_at, due_at, or amount_due (remaining amount). Defaults to newest first. Pagination is handled via query params (limit, offset).\",\"url\":\"https://docs.salesbricks.com/api-reference/invoices/search-invoices\",\"mainEntityOfPage\":{\"@id\":\"https://docs.salesbricks.com/api-reference/invoices/search-invoices#webpage\"},\"dateModified\":\"2026-11-05T23:31:30.435Z\",\"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","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","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","description":"Voids an invoice so it is no longer collectible, exactly as voiding it in the app does. The invoice's PDF is regenerated to show it as void, the customer's invoice recipients are emailed, the `invoice.voided` webhook fires, and the invoice is voided in your connected accounting system.\n\nAn invoice with any amount paid, or a payment still processing, cannot be voided — refund it first. Voiding an invoice that is already voided is refused rather than repeated.","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","description":"Returns a paginated list of invoices associated with the given subscription. Use this to show invoice history and billing status per subscription, display a timeline of past/current invoices, and let users download or inspect previous and current charges.","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":"Search invoices - 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"]}