Counts the invoices that the filters of GET /v1/invoices select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status.
Requires the role invoices:read.
GET
/
v1
/
invoices
/
status-summary
Fetch invoice status summary
curl --request GET \ --url https://api.useaira.com/v1/invoices/status-summary \ --header 'X-API-KEY: <api-key>'
Free-text search over the invoice number, the customer name and the names of the customers whose usage the invoice bills, such as the subsidiaries of an organization.
customerIds[]
string<uuid>[]
Only return invoices billing these customers.
status[]
enum<string>[]
Only return invoices in these statuses. Canceled invoices are controlled by includeCanceled, not by this filter.
Available options:
open,
in_review,
issued,
synced,
pending,
paid,
overdue,
canceled,
failed
includeCanceled
boolean
default:false
When false, canceled invoices are excluded. When true, canceled invoices are added to the statuses selected in status[]; if no status[] is provided, only canceled invoices are returned.
hideZeroAmount
boolean
default:false
When true, invoices with a zero total amount are excluded.
invoiceDate.gte
string<date>
Only return invoices whose invoice date is on or after this date.
invoiceDate.lte
string<date>
Only return invoices whose invoice date is on or before this date.
contractIds[]
string<uuid>[]
Only return the invoices of these contracts.
productIds[]
string<uuid>[]
Only return the invoices with at least one line item of these products.
paymentAccountIds[]
string<uuid>[]
Only return the invoices that bill these payment accounts.
legalEntityIds[]
string<uuid>[]
Only return the invoices of these legal entities: an invoice of a contract when its contract names one of them, and an invoice without a contract, such as a one-off invoice, when one of them is the default legal entity of the tenant.
customField
object
Only return the invoices whose records hold these custom field values, keyed by the record and then by the key of the custom field, as in customField[contract][region][]=south. An invoice matches a key when the record holds one of its values, and it matches the filter when it matches every key.
Show child attributes
Response
The number of the invoices that match the filters and the sum of their total amounts, for each invoice status and in total.
byStatus
object[]
required
One item for each invoice status that the settings of the tenant list, in their order, with zeros for a status that no selected invoice holds.
Show child attributes
totalCount
number
required
The number of selected invoices across the statuses of byStatus.
totalAmount
number
required
The sum of the total amounts of the selected invoices across the statuses of byStatus, in cents.
⌘I
Fetch invoice status summary
curl --request GET \ --url https://api.useaira.com/v1/invoices/status-summary \ --header 'X-API-KEY: <api-key>'
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Aira","colors":{"primary":"#542691","light":"#B197FC","dark":"#3F1B6E"},"logo":{"light":"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/logo/light.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=d222c0199c2a89d6e27d97ba6ef28275","dark":"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/logo/dark.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=5ccb5cfecbe2f539cba0bffdece168a1"},"favicon":"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/favicon.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=824a706ab0a0bbf9242b5b7f152905b1","api":{"mdx":{"server":["https://api.useaira.com"]}},"navbar":{"links":[{"href":"mailto:contato@useaira.com","label":"Suporte"}],"primary":{"type":"button","label":"Login","href":"https://app.useaira.com"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/useaira"}},"search":{},"fonts":{"family":"Geist"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aira-e93056c6","hasAudioNarration":false,"actualSubdomain":"aira-e93056c6","customDomains":["docs.useaira.com"],"gitSource":{"type":"github","owner":"aira-dev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b08e304c08b84f405fb34a1","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Referência da API","count":294},{"language":"default","tag":"Invoices","count":43},{"language":"default","tag":"Documentação","count":39},{"language":"default","tag":"Guias","count":16},{"language":"default","tag":"Integrações","count":11},{"language":"default","tag":"Contracts","count":11},{"language":"default","tag":"Dunning","count":11},{"language":"default","tag":"Plan Instances","count":11},{"language":"default","tag":"Contratos","count":10},{"language":"default","tag":"Faturas","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* vietnamese */\n@font-face {\n font-family: 'Newsreader';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/newsreader/v26/cY9VfjOCX1hbuyalUrK49dLafXjalZCsZBsgBgbCJYQraA.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Newsreader';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/newsreader/v26/cY9VfjOCX1hbuyalUrK49dLafXjalZCsZBsgBgbDJYQraA.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Newsreader';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/newsreader/v26/cY9VfjOCX1hbuyalUrK49dLafXjalZCsZBsgBgbNJYQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n#page-title,.aira-display{font-family:\"Newsreader\", Georgia, \"Times New Roman\", serif;font-weight:400}#page-title{font-size:2.125rem;line-height:2.5rem;letter-spacing:-0.02em}@media (min-width: 640px){#page-title{font-size:2.5rem;line-height:2.875rem}}div.eyebrow{font-weight:500;letter-spacing:0.06em;text-transform:uppercase}div.sidebar-group-header{color:rgb(var(--primary));font-size:0.6875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}.dark div.sidebar-group-header{color:rgb(var(--primary-light))}#content-area a.link{color:rgb(var(--primary));font-weight:500;border-bottom-color:rgb(var(--primary-light))}#content-area a.link:hover{border-bottom-color:rgb(var(--primary))}.dark #content-area a.link{color:rgb(var(--primary-light));border-bottom-color:rgb(var(--primary-light) / 0.4)}.dark #content-area a.link:hover{border-bottom-color:rgb(var(--primary-light))}#content-area table thead{border-bottom:none}#content-area table th{background-color:#f3f4f6;color:#4f545b;font-weight:500}#content-area table th:first-child,#content-area table td:first-child{padding-left:0.75rem}#content-area table th:first-child{border-radius:6px 0 0 6px}#content-area table th:last-child{border-radius:0 6px 6px 0}.dark #content-area table th{background-color:rgb(255 255 255 / 0.05);color:#d4d4d8}[data-component-part=\"step-number\"]>div{background-color:rgb(var(--primary) / 0.1);color:rgb(var(--primary))}.dark [data-component-part=\"step-number\"]>div{background-color:rgb(var(--primary-light) / 0.12);color:rgb(var(--primary-light))}"}]}
{"page":{"pagePath":"api-reference/invoices/fetch-invoice-status-summary","slug":"/api-reference/invoices/fetch-invoice-status-summary","pageMetadata":{"title":"Fetch invoice status summary","description":"Counts the invoices that the filters of `GET /v1/invoices` select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status.\n\nRequires the role `invoices:read`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/status-summary","href":"/api-reference/invoices/fetch-invoice-status-summary","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 ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Counts the invoices that the filters of \", _jsx(_components.code, {\n children: \"GET /v1/invoices\"\n }), \" select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Requires the role \", _jsx(_components.code, {\n children: \"invoices:read\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Fetch invoice status summary","description":"Counts the invoices that the filters of `GET /v1/invoices` select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status.\n\nRequires the role `invoices:read`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/status-summary","href":"/api-reference/invoices/fetch-invoice-status-summary","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Fetch invoice status summary","tags":["Invoices"],"description":"Counts the invoices that the filters of `GET /v1/invoices` select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status.\n\nRequires the role `invoices:read`.","parameters":["0dfb4dba-41c0-40b6-a413-36664a54a97d","553c7038-c1ef-4957-b63f-3aa296b2fff4","31e75733-2a70-4802-9ab0-298d94fdac26","ea04cf72-5944-4b28-ac5e-5d38dccfbc3c","835f6e9d-f568-430b-9ca4-a0d3e0e69a1d","f35ff078-9a14-473e-b1f0-fad18f2c620c","0ed37598-0c4d-4d28-8a0a-8ad61e8cc6d2","21a5153d-14cf-42e9-a04c-047a2120f138","29c8d460-708a-4c9f-81c8-eeb2446ed9e8","01fb1f58-7c25-423c-b476-1eee5e076398","6a19553b-d92e-4617-8d0a-4a8e47717289","f5c0f3f1-9685-4774-bb8c-7fec6b0a1246"],"x-public-api":true,"x-errors":[{"status":400,"code":"invalid_custom_fields","when":"a key of the `customField` filter names no custom field of the tenant for its record"},{"status":429,"code":"too_many_reads_per_second","when":"the tenant already made 50 reads in this second"},{"status":429,"code":"too_many_reads_in_flight","when":"the tenant already has 20 reads in flight"}],"x-required-roles":["invoices:read"],"responses":{"200":"b5409d19-ef62-4d0b-8e9a-694d7ff91e83","400":"e9e057f3-ac41-4a1b-aa68-e727243b7859","401":"6e13826e-f5db-447d-b545-c77b190bfd10","403":"a8b65a34-2cec-44cd-86d1-ba52f6a93219","429":"9013d457-9f62-49ba-bb49-68808e18ea41"},"method":"get","type":"path","servers":["6423522f-10c2-4bfd-9612-2aa2feb25713"],"security":["673eb9be-1b9d-496c-955b-95753f212bd5"],"path":"/v1/invoices/status-summary","baseUrlOptions":["https://api.useaira.com"],"title":"Fetch invoice status summary","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0dfb4dba-41c0-40b6-a413-36664a54a97d":{"schema":{"type":"string","isRequired":false,"description":"Free-text search over the invoice number, the customer name and the names of the customers whose usage the invoice bills, such as the subsidiaries of an organization.","uniqueKey":"","typeLabel":"string"},"example":"Mercado Bom Preço","in":"query","name":"search","required":false,"description":"Free-text search over the invoice number, the customer name and the names of the customers whose usage the invoice bills, such as the subsidiaries of an organization."},"553c7038-c1ef-4957-b63f-3aa296b2fff4":{"schema":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":false,"description":"Only return invoices billing these customers.","uniqueKey":"","typeLabel":"string\u003cuuid>[]"},"in":"query","name":"customerIds[]","required":false,"description":"Only return invoices billing these customers."},"31e75733-2a70-4802-9ab0-298d94fdac26":{"schema":{"type":"array","items":{"type":"string","enum":["open","in_review","issued","synced","pending","paid","overdue","canceled","failed"],"uniqueKey":"items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":false,"description":"Only return invoices in these statuses. Canceled invoices are controlled by includeCanceled, not by this filter.","uniqueKey":"","typeLabel":"enum\u003cstring>[]"},"in":"query","name":"status[]","required":false,"description":"Only return invoices in these statuses. Canceled invoices are controlled by includeCanceled, not by this filter."},"ea04cf72-5944-4b28-ac5e-5d38dccfbc3c":{"schema":{"type":"boolean","default":false,"isRequired":false,"description":"When false, canceled invoices are excluded. When true, canceled invoices are added to the statuses selected in status[]; if no status[] is provided, only canceled invoices are returned.","uniqueKey":"","typeLabel":"boolean"},"in":"query","name":"includeCanceled","required":false,"description":"When false, canceled invoices are excluded. When true, canceled invoices are added to the statuses selected in status[]; if no status[] is provided, only canceled invoices are returned."},"835f6e9d-f568-430b-9ca4-a0d3e0e69a1d":{"schema":{"type":"boolean","default":false,"isRequired":false,"description":"When true, invoices with a zero total amount are excluded.","uniqueKey":"","typeLabel":"boolean"},"in":"query","name":"hideZeroAmount","required":false,"description":"When true, invoices with a zero total amount are excluded."},"f35ff078-9a14-473e-b1f0-fad18f2c620c":{"schema":{"type":"string","format":"date","isRequired":false,"description":"Only return invoices whose invoice date is on or after this date.","uniqueKey":"","typeLabel":"string\u003cdate>"},"in":"query","name":"invoiceDate.gte","required":false,"description":"Only return invoices whose invoice date is on or after this date."},"0ed37598-0c4d-4d28-8a0a-8ad61e8cc6d2":{"schema":{"type":"string","format":"date","isRequired":false,"description":"Only return invoices whose invoice date is on or before this date.","uniqueKey":"","typeLabel":"string\u003cdate>"},"in":"query","name":"invoiceDate.lte","required":false,"description":"Only return invoices whose invoice date is on or before this date."},"21a5153d-14cf-42e9-a04c-047a2120f138":{"schema":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":false,"description":"Only return the invoices of these contracts.","uniqueKey":"","typeLabel":"string\u003cuuid>[]"},"in":"query","name":"contractIds[]","required":false,"description":"Only return the invoices of these contracts."},"29c8d460-708a-4c9f-81c8-eeb2446ed9e8":{"schema":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":false,"description":"Only return the invoices with at least one line item of these products.","uniqueKey":"","typeLabel":"string\u003cuuid>[]"},"in":"query","name":"productIds[]","required":false,"description":"Only return the invoices with at least one line item of these products."},"01fb1f58-7c25-423c-b476-1eee5e076398":{"schema":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":false,"description":"Only return the invoices that bill these payment accounts.","uniqueKey":"","typeLabel":"string\u003cuuid>[]"},"in":"query","name":"paymentAccountIds[]","required":false,"description":"Only return the invoices that bill these payment accounts."},"6a19553b-d92e-4617-8d0a-4a8e47717289":{"schema":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":false,"description":"Only return the invoices of these legal entities: an invoice of a contract when its contract names one of them, and an invoice without a contract, such as a one-off invoice, when one of them is the default legal entity of the tenant.","uniqueKey":"","typeLabel":"string\u003cuuid>[]"},"in":"query","name":"legalEntityIds[]","required":false,"description":"Only return the invoices of these legal entities: an invoice of a contract when its contract names one of them, and an invoice without a contract, such as a one-off invoice, when one of them is the default legal entity of the tenant."},"f5c0f3f1-9685-4774-bb8c-7fec6b0a1246":{"schema":{"type":"object","properties":{"contract":{"type":"object","description":"The custom field values of the contract of the invoice. An invoice without a contract never matches.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"contract.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"contract.additionalProperties.oneOf.1.items.[INDEX]","typeLabel":"string"},"uniqueKey":"contract.additionalProperties.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"contract.additionalProperties","typeLabel":"string | string[]"},"default":{},"examples":[{"customField1":"value1","customField2":["value2","value3"]}],"uniqueKey":"contract","typeLabel":"object"},"customer":{"type":"object","description":"The custom field values of the customer of the invoice.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"customer.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"customer.additionalProperties.oneOf.1.items.[INDEX]","typeLabel":"string"},"uniqueKey":"customer.additionalProperties.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"customer.additionalProperties","typeLabel":"string | string[]"},"default":{},"examples":[{"customField1":"value1","customField2":["value2","value3"]}],"uniqueKey":"customer","typeLabel":"object"},"product":{"type":"object","description":"The custom field values of a product. An invoice matches when at least one of its line items bills a product that holds them.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"product.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"product.additionalProperties.oneOf.1.items.[INDEX]","typeLabel":"string"},"uniqueKey":"product.additionalProperties.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"product.additionalProperties","typeLabel":"string | string[]"},"default":{},"examples":[{"customField1":"value1","customField2":["value2","value3"]}],"uniqueKey":"product","typeLabel":"object"},"item":{"type":"object","description":"The custom field values of an item. An invoice matches when at least one of its line items bills an item that holds them.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"item.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"item.additionalProperties.oneOf.1.items.[INDEX]","typeLabel":"string"},"uniqueKey":"item.additionalProperties.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"item.additionalProperties","typeLabel":"string | string[]"},"default":{},"examples":[{"customField1":"value1","customField2":["value2","value3"]}],"uniqueKey":"item","typeLabel":"object"}},"additionalProperties":false,"isRequired":false,"description":"Only return the invoices whose records hold these custom field values, keyed by the record and then by the key of the custom field, as in `customField[contract][region][]=south`. An invoice matches a key when the record holds one of its values, and it matches the filter when it matches every key.","uniqueKey":"","typeLabel":"object"},"in":"query","name":"customField","required":false,"description":"Only return the invoices whose records hold these custom field values, keyed by the record and then by the key of the custom field, as in `customField[contract][region][]=south`. An invoice matches a key when the record holds one of its values, and it matches the filter when it matches every key."}},"responses":{"b5409d19-ef62-4d0b-8e9a-694d7ff91e83":{"description":"The number of the invoices that match the filters and the sum of their total amounts, for each invoice status and in total.","content":{"application/json":{"schema":{"type":"object","properties":{"byStatus":{"type":"array","description":"One item for each invoice status that the settings of the tenant list, in their order, with zeros for a status that no selected invoice holds.","items":{"type":"object","properties":{"status":{"type":"string","enum":["open","in_review","issued","synced","pending","paid","overdue","canceled","failed"],"description":"The invoice status.","isRequired":true,"uniqueKey":"byStatus.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"count":{"type":"number","description":"The number of selected invoices in this status.","isRequired":true,"uniqueKey":"byStatus.items.[INDEX].count","typeLabel":"number"},"totalAmount":{"type":"number","description":"The sum of the total amounts of the selected invoices in this status, in cents.","isRequired":true,"uniqueKey":"byStatus.items.[INDEX].totalAmount","typeLabel":"number"}},"required":["status","count","totalAmount"],"additionalProperties":false,"uniqueKey":"byStatus.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"byStatus","typeLabel":"object[]"},"totalCount":{"type":"number","description":"The number of selected invoices across the statuses of `byStatus`.","isRequired":true,"uniqueKey":"totalCount","typeLabel":"number"},"totalAmount":{"type":"number","description":"The sum of the total amounts of the selected invoices across the statuses of `byStatus`, in cents.","isRequired":true,"uniqueKey":"totalAmount","typeLabel":"number"}},"required":["byStatus","totalCount","totalAmount"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"byStatus":[{"status":"open","count":123,"totalAmount":123}],"totalCount":123,"totalAmount":123}}},"exampleType":"generated"}},"exampleType":"generated"},"e9e057f3-ac41-4a1b-aa68-e727243b7859":{"description":"The request cannot succeed as sent.\n\n- `json_schema_validation_error`: a query parameter breaks the schema of the endpoint.\n- `invalid_custom_fields`: a key of the `customField` filter names no custom field of the tenant for its record.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["json_schema_validation_error","invalid_custom_fields"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"json_schema_validation_error":{"title":"json_schema_validation_error","value":{"message":"'search' must be string","code":"json_schema_validation_error"}},"invalid_custom_fields":{"title":"invalid_custom_fields","value":{"message":"Unknown custom field(s) for {entity}: {value}","code":"invalid_custom_fields"}}},"exampleType":"examples"}},"exampleType":"examples"},"6e13826e-f5db-447d-b545-c77b190bfd10":{"description":"The request carries no API key.\n\n- `no_authorization`: the request carries no API key in the `X-API-KEY` header.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["no_authorization"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"no_authorization":{"title":"no_authorization","value":{"message":"No authorization provided","code":"no_authorization"}}},"exampleType":"examples"}},"exampleType":"examples"},"a8b65a34-2cec-44cd-86d1-ba52f6a93219":{"description":"The API key cannot call the endpoint.\n\n- `bad_auth`: the API key does not hold the role that the endpoint requires.\n- `invalid_api_key`: the API key does not exist.\n- `deactivated_api_key`: the API key is deactivated.\n- `revoked_api_key`: the API key is revoked.\n- `expired_api_key`: the API key is past its expiry date.\n- `ip_not_allowed`: the tenant does not allow the IP of the request.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["bad_auth","invalid_api_key","deactivated_api_key","revoked_api_key","expired_api_key","ip_not_allowed"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"bad_auth":{"title":"bad_auth","value":{"message":"role invoices:read can not be satisfied","code":"bad_auth"}},"invalid_api_key":{"title":"invalid_api_key","value":{"message":"Invalid API key","code":"invalid_api_key"}},"deactivated_api_key":{"title":"deactivated_api_key","value":{"message":"Deactivated API key","code":"deactivated_api_key"}},"revoked_api_key":{"title":"revoked_api_key","value":{"message":"Revoked API key","code":"revoked_api_key"}},"expired_api_key":{"title":"expired_api_key","value":{"message":"Expired API key","code":"expired_api_key"}},"ip_not_allowed":{"title":"ip_not_allowed","value":{"message":"IP not allowed","code":"ip_not_allowed"}}},"exampleType":"examples"}},"exampleType":"examples"},"9013d457-9f62-49ba-bb49-68808e18ea41":{"description":"The tenant reached one of its limits of reads.\n\n- `too_many_reads_per_second`: the tenant already made 50 reads in this second.\n- `too_many_reads_in_flight`: the tenant already has 20 reads in flight.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"The seconds to wait before the next read."},"RateLimit-Limit":{"schema":{"type":"integer"},"description":"The limit that the read hit: 20 for the reads in flight, 50 for the reads per second."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"The reads left under that limit, which is 0."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"The seconds to wait before the next read, as in Retry-After. The limit of reads per second takes new reads in the next second, but the limit of reads in flight takes a new read only once one of the reads in flight ends."}},"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["too_many_reads_per_second","too_many_reads_in_flight"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"too_many_reads_per_second":{"title":"too_many_reads_per_second","value":{"message":"Too many reads: a tenant can make at most 50 reads per second. Retry after 1 second.","code":"too_many_reads_per_second"}},"too_many_reads_in_flight":{"title":"too_many_reads_in_flight","value":{"message":"Too many reads in flight: a tenant can have at most 20 reads in flight. Retry after 1 second.","code":"too_many_reads_in_flight"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"673eb9be-1b9d-496c-955b-95753f212bd5":{"ApiKey":{"type":"apiKey","description":"API Key Authentication.","name":"X-API-KEY","in":"header","scopes":[],"schemeName":"ApiKey"}}},"servers":{"6423522f-10c2-4bfd-9612-2aa2feb25713":{"url":"https://api.useaira.com","description":"API base URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"API Key Authentication.","name":"X-API-KEY","in":"header","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"X-API-KEY","type":"string","description":"API Key Authentication.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"X-API-KEY"}],"title":"ApiKey"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"aira-e93056c6","siteName":"Aira","title":"Fetch invoice status summary - Aira","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-27T01:55:28.929Z","originalFileLocation":"api-reference/invoices/fetch-invoice-status-summary.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=\"Counts the invoices that the filters of GET /v1/invoices select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status. Requires the role invoices:read.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aira\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Fetch invoice status summary - Aira\">\u003cmeta data-mint-head property=\"og:description\" content=\"Counts the invoices that the filters of GET /v1/invoices select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status. Requires the role invoices:read.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aira\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aira-e93056c6.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Fetch+invoice+status+summary\u0026amp;description=Counts+the+invoices+that+the+filters+of+%60GET+%2Fv1%2Finvoices%60+select+and+sums+their+total+amounts%2C+for+each+status+and+in+total%2C+so+that+one+call+totals+the+invoic\u0026amp;theme=8169730228d89f2c41115879\u0026amp;signature=48cfb1f7543e8b2a1346ffadd68c1a38180ccda4dbe2668422f65cd00fadf834\">\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=\"Fetch invoice status summary - Aira\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Counts the invoices that the filters of GET /v1/invoices select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status. Requires the role invoices:read.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aira-e93056c6.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Fetch+invoice+status+summary\u0026amp;description=Counts+the+invoices+that+the+filters+of+%60GET+%2Fv1%2Finvoices%60+select+and+sums+their+total+amounts%2C+for+each+status+and+in+total%2C+so+that+one+call+totals+the+invoic\u0026amp;theme=8169730228d89f2c41115879\u0026amp;signature=48cfb1f7543e8b2a1346ffadd68c1a38180ccda4dbe2668422f65cd00fadf834\">\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/aira-e93056c6/rFHNG1I4T4E6tM9X/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aira\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#542691\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary\">\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/fetch-invoice-status-summary.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.useaira.com/#organization\",\"name\":\"Aira\",\"url\":\"https://docs.useaira.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/logo/light.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=d222c0199c2a89d6e27d97ba6ef28275\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.useaira.com#website\",\"name\":\"Aira\",\"url\":\"https://docs.useaira.com\",\"publisher\":{\"@id\":\"https://docs.useaira.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary#webpage\",\"url\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary\",\"name\":\"Fetch invoice status summary\",\"description\":\"Counts the invoices that the filters of GET /v1/invoices select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status. Requires the role invoices:read.\",\"dateModified\":\"2026-11-27T01:55:28.929Z\",\"isPartOf\":{\"@id\":\"https://docs.useaira.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Referência da API\",\"item\":\"https://docs.useaira.com/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Invoices\",\"item\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Fetch invoice status summary\",\"item\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary#apireference\",\"headline\":\"Fetch invoice status summary\",\"name\":\"Fetch invoice status summary\",\"description\":\"Counts the invoices that the filters of GET /v1/invoices select and sums their total amounts, for each status and in total, so that one call totals the invoices of a customer, a period or a status. Requires the role invoices:read.\",\"url\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary\",\"mainEntityOfPage\":{\"@id\":\"https://docs.useaira.com/api-reference/invoices/fetch-invoice-status-summary#webpage\"},\"dateModified\":\"2026-11-27T01:55:28.929Z\",\"publisher\":{\"@id\":\"https://docs.useaira.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.useaira.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aira\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aira\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/invoices/fetch-invoice-status-summary.md","siteName":"Aira","nav":{"global":null,"tabs":[{"tab":"Documentação","pages":[{"title":"Documentação","href":""}]},{"tab":"Guias","pages":[{"title":"Guias","href":"/clientes/criar-clientes"}]},{"tab":"Integrações","pages":[{"title":"Integrações","href":"/integracoes/visao-geral"}]},{"tab":"Referência da API","groups":[{"group":"Referência da API","pages":[{"title":"Referência da API","sidebarTitle":"Visão geral","icon":"square-terminal","href":"/api-reference/introduction"},{"title":"Autenticação","sidebarTitle":"Autenticação","icon":"key","href":"/api-reference/autenticacao"},{"title":"Paginação e limites","sidebarTitle":"Paginação e limites","icon":"gauge","href":"/api-reference/paginacao-e-limites"},{"title":"Webhooks","sidebarTitle":"Webhooks","icon":"webhook","href":"/api-reference/webhooks"},{"title":"Respostas de erro","sidebarTitle":"Respostas de erro","icon":"circle-x","href":"/api-reference/error-responses"},{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/","href":"/api-reference/customers/list-customers"},{"title":"Create customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/customers/","href":"/api-reference/customers/create-customer"},{"title":"Fetch customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/{id}","href":"/api-reference/customers/fetch-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/customers/{id}","href":"/api-reference/customers/update-customer"},{"title":"Delete customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/customers/{id}","href":"/api-reference/customers/delete-customer"},{"title":"Fetch customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/by-external-id/{externalId}","href":"/api-reference/customers/fetch-customer-by-external-id"},{"title":"Update customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/customers/by-external-id/{externalId}","href":"/api-reference/customers/update-customer-by-external-id"},{"title":"Delete customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/customers/by-external-id/{externalId}","href":"/api-reference/customers/delete-customer-by-external-id"},{"title":"List customer subsidiaries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/{id}/subsidiaries","href":"/api-reference/customers/list-customer-subsidiaries"}]},{"group":"Resources","pages":[{"title":"List resources","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/resources/","href":"/api-reference/resources/list-resources"},{"title":"Create resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/resources/","href":"/api-reference/resources/create-resource"},{"title":"Fetch resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/resources/{id}","href":"/api-reference/resources/fetch-resource"},{"title":"Update resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/resources/{id}","href":"/api-reference/resources/update-resource"},{"title":"Delete resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/resources/{id}","href":"/api-reference/resources/delete-resource"},{"title":"Archive resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/resources/{id}/archive","href":"/api-reference/resources/archive-resource"},{"title":"Unarchive resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/resources/{id}/unarchive","href":"/api-reference/resources/unarchive-resource"}]},{"group":"Revenue Traceability","pages":[{"title":"List revenue items","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/revenue-items/","href":"/api-reference/revenue-traceability/list-revenue-items"},{"title":"List revenue traceabilities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/revenue-traceability/","href":"/api-reference/revenue-traceability/list-revenue-traceabilities"},{"title":"List the products that a contract bills","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/revenue-traceability/contract-products","href":"/api-reference/revenue-traceability/list-the-products-that-a-contract-bills"},{"title":"Replace revenue traceabilities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/revenue-traceability/{contractId}","href":"/api-reference/revenue-traceability/replace-revenue-traceabilities"}]},{"group":"Invoices","pages":[{"title":"Fetch invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}","href":"/api-reference/invoices/fetch-invoice"},{"title":"Fetch invoice by provider ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/by-provider-id/{providerId}","href":"/api-reference/invoices/fetch-invoice-by-provider-id"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/","href":"/api-reference/invoices/list-invoices"},{"title":"Create invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/","href":"/api-reference/invoices/create-invoice"},{"title":"Download invoice PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/pdf","href":"/api-reference/invoices/download-invoice-pdf"},{"title":"List invoice discounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/discounts","href":"/api-reference/invoices/list-invoice-discounts"},{"title":"Create invoice discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/discounts","href":"/api-reference/invoices/create-invoice-discount"},{"title":"Download the fiscal document of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/fiscal-invoice/download","href":"/api-reference/invoices/download-the-fiscal-document-of-an-invoice"},{"title":"List the additional charges of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/additional-charges","href":"/api-reference/invoices/list-the-additional-charges-of-an-invoice"},{"title":"Add an additional charge to an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/additional-charges","href":"/api-reference/invoices/add-an-additional-charge-to-an-invoice"},{"title":"List the attachments of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/attachments","href":"/api-reference/invoices/list-the-attachments-of-an-invoice"},{"title":"Upload attachments to an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/attachments","href":"/api-reference/invoices/upload-attachments-to-an-invoice"},{"title":"Download an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/attachments/{attachmentId}/download","href":"/api-reference/invoices/download-an-attachment-of-an-invoice"},{"title":"Download an invoice artifact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/artifacts/{invoiceArtifactId}","href":"/api-reference/invoices/download-an-invoice-artifact"},{"title":"List invoice syncs","description":"Lists the invoice syncs of the tenant: the sends of its issued invoices to its ERP, with their results. The list orders them by the end of their last attempt, newest first, and places an invoice sync with no attempt yet by the time that Aira created it. An invoice has at most one invoice sync in the list, because a retry replaces the failed invoice sync of the invoice.\n\nRequires the role `invoices:read`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/sync","href":"/api-reference/invoices/list-invoice-syncs"},{"title":"Fetch invoice status summary","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/status-summary","href":"/api-reference/invoices/fetch-invoice-status-summary"},{"title":"Fetch a download link of the invoice PDF","description":"Answers a URL that downloads the file of `GET /v1/invoices/:id/pdf` with no API key for five minutes, after the same checks, for a client that cannot receive a file, such as a chat client.\n\nRequires the role `invoices:read`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/pdf/link","href":"/api-reference/invoices/fetch-a-download-link-of-the-invoice-pdf"},{"title":"Fetch a download link of an invoice artifact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/artifacts/{invoiceArtifactId}/link","href":"/api-reference/invoices/fetch-a-download-link-of-an-invoice-artifact"},{"title":"Fetch a download link of an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/attachments/{attachmentId}/download/link","href":"/api-reference/invoices/fetch-a-download-link-of-an-attachment-of-an-invoice"},{"title":"Fetch a download link of the fiscal document of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/fiscal-invoice/download/link","href":"/api-reference/invoices/fetch-a-download-link-of-the-fiscal-document-of-an-invoice"},{"title":"Update invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}","href":"/api-reference/invoices/update-invoice"},{"title":"Cancel invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/cancel","href":"/api-reference/invoices/cancel-invoice"},{"title":"Mark invoice as in review","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/in-review","href":"/api-reference/invoices/mark-invoice-as-in-review"},{"title":"Issue invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/issue","href":"/api-reference/invoices/issue-invoice"},{"title":"Mark invoice as paid","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/pay","href":"/api-reference/invoices/mark-invoice-as-paid"},{"title":"Recalculate invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/recalculate","href":"/api-reference/invoices/recalculate-invoices"},{"title":"Create invoice line item group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/line-item-groups","href":"/api-reference/invoices/create-invoice-line-item-group"},{"title":"Update invoice line item group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/line-item-groups/{lineItemGroupId}","href":"/api-reference/invoices/update-invoice-line-item-group"},{"title":"Delete invoice line item group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/line-item-groups/{lineItemGroupId}","href":"/api-reference/invoices/delete-invoice-line-item-group"},{"title":"Create invoice line item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/line-items","href":"/api-reference/invoices/create-invoice-line-item"},{"title":"Update invoice line item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/line-items/{lineItemId}","href":"/api-reference/invoices/update-invoice-line-item"},{"title":"Delete invoice line item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/line-items/{lineItemId}","href":"/api-reference/invoices/delete-invoice-line-item"},{"title":"Update invoice discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/discounts/{discountId}","href":"/api-reference/invoices/update-invoice-discount"},{"title":"Delete invoice discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/discounts/{discountId}","href":"/api-reference/invoices/delete-invoice-discount"},{"title":"Undo a manual mark as paid","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{id}/unpay","href":"/api-reference/invoices/undo-a-manual-mark-as-paid"},{"title":"Reopen an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{id}/reopen","href":"/api-reference/invoices/reopen-an-invoice"},{"title":"Update the custom fields of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{id}/custom-fields","href":"/api-reference/invoices/update-the-custom-fields-of-an-invoice"},{"title":"Send an invoice by e-mail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{id}/send-email","href":"/api-reference/invoices/send-an-invoice-by-e-mail"},{"title":"Replace an additional charge of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/additional-charges/{lineItemId}","href":"/api-reference/invoices/replace-an-additional-charge-of-an-invoice"},{"title":"Delete an additional charge of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/additional-charges/{lineItemId}","href":"/api-reference/invoices/delete-an-additional-charge-of-an-invoice"},{"title":"Delete an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/attachments/{attachmentId}","href":"/api-reference/invoices/delete-an-attachment-of-an-invoice"},{"title":"Update an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/invoices/{invoiceId}/attachments/{attachmentId}","href":"/api-reference/invoices/update-an-attachment-of-an-invoice"},{"title":"Retry failed invoice syncs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/sync/retry","href":"/api-reference/invoices/retry-failed-invoice-syncs"}]},{"group":"Events","pages":[{"title":"List events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/events/","href":"/api-reference/events/list-events"},{"title":"Ingest events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/events/ingest","href":"/api-reference/events/ingest-events"},{"title":"Archive events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/events/archive","href":"/api-reference/events/archive-events"},{"title":"Overwrite event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/events/{idempotencyKey}","href":"/api-reference/events/overwrite-event"}]},{"group":"Licenses","pages":[{"title":"Report license balances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/licenses/report-balances","href":"/api-reference/licenses/report-license-balances"},{"title":"List licenses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/licenses/","href":"/api-reference/licenses/list-licenses"}]},{"group":"Contracts","pages":[{"title":"List contracts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/contracts/","href":"/api-reference/contracts/list-contracts"},{"title":"Create contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/","href":"/api-reference/contracts/create-contract"},{"title":"Update draft contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/contracts/{id}/draft","href":"/api-reference/contracts/update-draft-contract"},{"title":"Update active contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/contracts/{id}/active","href":"/api-reference/contracts/update-active-contract"},{"title":"Activate contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/activate","href":"/api-reference/contracts/activate-contract"},{"title":"Duplicate contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/duplicate","href":"/api-reference/contracts/duplicate-contract"},{"title":"List contract recurring discounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/contracts/{id}/recurring-discounts","href":"/api-reference/contracts/list-contract-recurring-discounts"},{"title":"Create contract recurring discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/recurring-discounts","href":"/api-reference/contracts/create-contract-recurring-discount"},{"title":"Deactivate contract recurring discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/recurring-discounts/{contractRecurringDiscountId}/deactivate","href":"/api-reference/contracts/deactivate-contract-recurring-discount"},{"title":"Update contract recurring discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/contracts/{id}/recurring-discounts/{contractRecurringDiscountId}","href":"/api-reference/contracts/update-contract-recurring-discount"},{"title":"Fetch contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/contracts/{id}","href":"/api-reference/contracts/fetch-contract"}]},{"group":"Plan Instances","pages":[{"title":"List plan instances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instances/","href":"/api-reference/plan-instances/list-plan-instances"},{"title":"Create plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/","href":"/api-reference/plan-instances/create-plan-instance"},{"title":"Fetch plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instances/{id}","href":"/api-reference/plan-instances/fetch-plan-instance"},{"title":"Update plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/plan-instances/{id}","href":"/api-reference/plan-instances/update-plan-instance"},{"title":"Delete plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/plan-instances/{id}","href":"/api-reference/plan-instances/delete-plan-instance"},{"title":"Cancel plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/{id}/cancel","href":"/api-reference/plan-instances/cancel-plan-instance"},{"title":"Apply rate adjustment to plan instances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/rate-adjust","href":"/api-reference/plan-instances/apply-rate-adjustment-to-plan-instances"},{"title":"Update plan instances to latest plan version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/update-to-latest-plan-version","href":"/api-reference/plan-instances/update-plan-instances-to-latest-plan-version"},{"title":"List plan instance versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instance-versions/","href":"/api-reference/plan-instances/list-plan-instance-versions"},{"title":"Fetch plan instance version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instance-versions/{id}","href":"/api-reference/plan-instances/fetch-plan-instance-version"},{"title":"Restore plan instance version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instance-versions/{id}/rollback","href":"/api-reference/plan-instances/restore-plan-instance-version"}]},{"group":"Plans","pages":[{"title":"List plans","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plans/","href":"/api-reference/plans/list-plans"}]},{"group":"Legal Entities","pages":[{"title":"List legal entities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/legal-entities/","href":"/api-reference/legal-entities/list-legal-entities"}]},{"group":"Watchtower","pages":[{"title":"Upload a contract PDF for ingestion","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/watchtower/contract-ingestion","href":"/api-reference/watchtower/upload-a-contract-pdf-for-ingestion"}]},{"group":"Payment Accounts","pages":[{"title":"Create payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-accounts/","href":"/api-reference/payment-accounts/create-payment-account"},{"title":"Update payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/payment-accounts/{id}","href":"/api-reference/payment-accounts/update-payment-account"},{"title":"Archive payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-accounts/{id}/archive","href":"/api-reference/payment-accounts/archive-payment-account"},{"title":"Unarchive payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-accounts/{id}/unarchive","href":"/api-reference/payment-accounts/unarchive-payment-account"},{"title":"List customer payment accounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payment-accounts/by-customer","href":"/api-reference/payment-accounts/list-customer-payment-accounts"}]},{"group":"Products","pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/products/","href":"/api-reference/products/list-products"},{"title":"Create product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/products/","href":"/api-reference/products/create-product"},{"title":"Update product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/products/{id}","href":"/api-reference/products/update-product"},{"title":"Delete product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/products/{id}","href":"/api-reference/products/delete-product"},{"title":"Archive product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/products/{id}/archive","href":"/api-reference/products/archive-product"},{"title":"Unarchive product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/products/{id}/unarchive","href":"/api-reference/products/unarchive-product"}]},{"group":"Items","pages":[{"title":"List items","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/items/","href":"/api-reference/items/list-items"},{"title":"Create item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/items/","href":"/api-reference/items/create-item"},{"title":"Update item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/items/{id}","href":"/api-reference/items/update-item"},{"title":"Delete item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/items/{id}","href":"/api-reference/items/delete-item"},{"title":"Archive item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/items/{id}/archive","href":"/api-reference/items/archive-item"},{"title":"Unarchive item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/items/{id}/unarchive","href":"/api-reference/items/unarchive-item"}]},{"group":"Emails","pages":[{"title":"List emails","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/","href":"/api-reference/emails/list-emails"},{"title":"Fetch email","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/{id}","href":"/api-reference/emails/fetch-email"},{"title":"Download email attachment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/{id}/attachments/{attachmentIndex}/download","href":"/api-reference/emails/download-email-attachment"},{"title":"Fetch a download link of an email attachment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/{id}/attachments/{attachmentIndex}/download/link","href":"/api-reference/emails/fetch-a-download-link-of-an-email-attachment"}]},{"group":"Tenants","pages":[{"title":"Fetch tenant settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/tenants/settings","href":"/api-reference/tenants/fetch-tenant-settings"}]},{"group":"Webhooks","pages":[{"title":"List webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/webhook-settings/","href":"/api-reference/webhooks/list-webhook-settings"},{"title":"Create webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/webhook-settings/","href":"/api-reference/webhooks/create-webhook-settings"},{"title":"Fetch webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/webhook-settings/{id}","href":"/api-reference/webhooks/fetch-webhook-settings"},{"title":"Delete webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/webhook-settings/{id}","href":"/api-reference/webhooks/delete-webhook-settings"},{"title":"Update webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/webhook-settings/{id}","href":"/api-reference/webhooks/update-webhook-settings"}]},{"group":"Api Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/api-keys/","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/api-keys/","href":"/api-reference/api-keys/create-api-key"},{"title":"Update API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/api-keys/{id}","href":"/api-reference/api-keys/update-api-key"}]},{"group":"Payments","pages":[{"title":"Fetch payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{id}","href":"/api-reference/payments/fetch-payment"},{"title":"Download the boleto or Pix file of a payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{id}/files/download","href":"/api-reference/payments/download-the-boleto-or-pix-file-of-a-payment"},{"title":"Fetch a download link of the boleto or Pix of a payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{id}/files/download/link","href":"/api-reference/payments/fetch-a-download-link-of-the-boleto-or-pix-of-a-payment"}]},{"group":"Dunning","pages":[{"title":"List dunning schedules","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/dunning-schedules/","href":"/api-reference/dunning/list-dunning-schedules"},{"title":"Create dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/","href":"/api-reference/dunning/create-dunning-schedule"},{"title":"Fetch dunning settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/dunning-schedules/settings","href":"/api-reference/dunning/fetch-dunning-settings"},{"title":"Update dunning settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/dunning-schedules/settings","href":"/api-reference/dunning/update-dunning-settings"},{"title":"Upload dunning e-mail logo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/settings/logo","href":"/api-reference/dunning/upload-dunning-e-mail-logo"},{"title":"Fetch dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/dunning-schedules/{id}","href":"/api-reference/dunning/fetch-dunning-schedule"},{"title":"Update dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/dunning-schedules/{id}","href":"/api-reference/dunning/update-dunning-schedule"},{"title":"Delete dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/dunning-schedules/{id}","href":"/api-reference/dunning/delete-dunning-schedule"},{"title":"Archive dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/{id}/archive","href":"/api-reference/dunning/archive-dunning-schedule"},{"title":"Unarchive dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/{id}/unarchive","href":"/api-reference/dunning/unarchive-dunning-schedule"},{"title":"Duplicate dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/{id}/duplicate","href":"/api-reference/dunning/duplicate-dunning-schedule"}]},{"group":"Email Domains","pages":[{"title":"List email domains","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/email-domains/","href":"/api-reference/email-domains/list-email-domains"},{"title":"Register email domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/email-domains/","href":"/api-reference/email-domains/register-email-domain"},{"title":"Delete email domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/email-domains/{id}","href":"/api-reference/email-domains/delete-email-domain"},{"title":"Verify email domain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/email-domains/{id}/verify","href":"/api-reference/email-domains/verify-email-domain"}]}]}]}]},"basePath":"","title":"Fetch invoice status summary - Aira","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","SectionHeading-B08KBUKT.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}