Number of records to return. Defaults to 20, maximum 100.
next / prev
Cursor pagination. Both are returned in the response — pass one back to page forward or backward.
expand
Comma-separated list of related objects to include inline. The supported values differ per data model; see the model’s API reference page.
include_deleted_records
Boolean. Include records deleted since the last sync. Deleted records are excluded by default.
return_count
Boolean. total_count is returned by default. Pass return_count=false to skip the count query and get a faster response when you don’t need the total; total_count then comes back as 0.
sort[field]
asc or desc. Only certain fields are sortable per model.
period
Integer. Rolls up consecutive monthly rows on income_statements, balance_sheets, and cash_flow_statements only. See Financial statement rollup.
Filters use the form field[operator]=value. These operators are supported:
Operator
Meaning
eq
Exact match
in
Matches any value in a comma-separated list
gte
Greater than or equal to
lte
Less than or equal to
is_null
true: only records where the field is null. false: only records where it is not null
not_null
true: only records where the field is not null. false: only records where it is null
curl -X GET "https://api.integrations.commenda.io/v4/core/companies/694/invoices?status[eq]=PAID&limit=50" \ -H "api_key: YOUR_API_KEY"
Filtering by an updated-at range is the usual way to pull everything that changed since your last sync:
?rootfi_updated_at[gte]=2024-01-01T00:00:00.000Z
Not every field is filterable. Each data model exposes its own set of filterable fields — a filter on an unsupported field is ignored rather than applied. Check the model’s API reference page for the fields it accepts.
Operators cannot be combined on the same field. These all return 400:
eq together with in
eq together with gte or lte
in together with gte or lte
is_null or not_null together with any other operator, including each other
is_null and not_null accept only true or false, and only on fields that can be null; on a field that is never null they return 400. To filter on a missing value, use contact_type[is_null]=true rather than eq with null.Filtering an enum field on a value outside the enum returns 400 with the list of valid values. Currency codes are stored uppercase but accept lowercase input.
Records can include raw_data — the untouched response from the source platform.
raw_data is only included for paying customers — it is stripped from read responses otherwise. Contact support@commenda.io if you need it enabled.
When it is returned it carries the full upstream payload for every record, so responses are heavier than the documented field list suggests. Lower limit if you hit slow responses or size limits.See Raw Data for how to use it, including on writes.
income_statements, balance_sheets, and cash_flow_statements are stored as monthly rows. Pass period to roll consecutive months into larger buckets — period=3 for quarters, period=12 for years.period requires both period_start[gte] and period_end[lte] — omitting either returns 400. It returns the complete rolled-up list rather than a page, so passing next or prev alongside it returns 400, as does combining it with expand.
curl -X GET "https://api.integrations.commenda.io/v4/core/companies/694/income_statements?period=3&period_start[gte]=2024-01-01&period_end[lte]=2024-12-31" \ -H "api_key: YOUR_API_KEY"
The rollup loads every statement row in the requested window before bucketing, and rejects the request with 400 above 10,000 rows. If you hit it, narrow period_start[gte] / period_end[lte].
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Integrations by Commenda","colors":{"primary":"#026EB9","light":"#026EB9","dark":"#026EB9"},"logo":{"light":"https://mintcdn.com/rootfi-commenda/JtuWvvYArO9DY7fx/images/logo/light.svg?fit=max\u0026auto=format\u0026n=JtuWvvYArO9DY7fx\u0026q=85\u0026s=c4be5f750642af21c9e7cadb00956f3d","dark":"https://mintcdn.com/rootfi-commenda/JtuWvvYArO9DY7fx/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=JtuWvvYArO9DY7fx\u0026q=85\u0026s=97898e15d7a4d649ed69d5fe9fb44de8"},"favicon":"https://mintcdn.com/rootfi-commenda/TwcBuJbylfnuRx_I/images/logo/Favicon%20(1).ico?fit=max\u0026auto=format\u0026n=TwcBuJbylfnuRx_I\u0026q=85\u0026s=03509b4fe29370432ab2dd3eb18a553e","api":{"openapi":["openapi_v3.yml","openapi_v4_core.json"]},"navbar":{"links":[{"href":"https://integrations.docs.commenda.io/openapi_v4_core.json","label":"OpenAPI Spec"}],"primary":{"type":"button","label":"Log In","href":"https://integrations.commenda.io"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/commenda","website":"https://www.commenda.io/"}},"search":{"prompt":"Ask any question (powered by ChatGPT)"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Data Coverage Tool","icon":"globe","href":"https://coverage.integrationlabs.co/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rootfi-commenda","hasAudioNarration":false,"actualSubdomain":"rootfi-commenda","customDomains":["integrations.docs.commenda.io"],"gitSource":{"type":"github","owner":"commenda-eng","repo":"rootfi-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af2ececfbd1ac70aabe40fc","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":390},{"language":"default","tag":"Unified API","count":317},{"language":"default","tag":"Accounting","count":208},{"language":"default","tag":"Payments","count":72},{"language":"default","tag":"CRM","count":54},{"language":"default","tag":"Core","count":47},{"language":"default","tag":"Documentation","count":41},{"language":"default","tag":"Accounting Integrations","count":36},{"language":"default","tag":"E-Commerce","count":30},{"language":"default","tag":"Core API","count":21}]},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"documentation/concepts/reading-data","slug":"/documentation/concepts/reading-data","pageMetadata":{"title":"Reading Data","description":"Use our read APIs for quick easy access to your customers data","icon":"book","href":"/documentation/concepts/reading-data"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use our read APIs for quick easy access to your customers data\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Data is read over REST. Every unified data model is available under a company:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /v4/core/companies/{companyId}/{data_model}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /v4/core/companies/{companyId}/{data_model}/{id}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsxs(_components.td,{children:[`Number of records to return. Defaults to `,_jsx(_components.strong,{children:`20`}),`, maximum `,_jsx(_components.strong,{children:`100`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`next`}),` / `,_jsx(_components.code,{children:`prev`})]}),_jsx(_components.td,{children:`Cursor pagination. Both are returned in the response — pass one back to page forward or backward.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expand`})}),_jsx(_components.td,{children:`Comma-separated list of related objects to include inline. The supported values differ per data model; see the model’s API reference page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`include_deleted_records`})}),_jsx(_components.td,{children:`Boolean. Include records deleted since the last sync. Deleted records are excluded by default.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`return_count`})}),_jsxs(_components.td,{children:[`Boolean. `,_jsx(_components.code,{children:`total_count`}),` is returned by default. Pass `,_jsx(_components.code,{children:`return_count=false`}),` to skip the count query and get a faster response when you don’t need the total; `,_jsx(_components.code,{children:`total_count`}),` then comes back as `,_jsx(_components.code,{children:`0`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sort[field]`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`asc`}),` or `,_jsx(_components.code,{children:`desc`}),`. Only certain fields are sortable per model.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`period`})}),_jsxs(_components.td,{children:[`Integer. Rolls up consecutive monthly rows on `,_jsx(_components.code,{children:`income_statements`}),`, `,_jsx(_components.code,{children:`balance_sheets`}),`, and `,_jsx(_components.code,{children:`cash_flow_statements`}),` only. See `,_jsx(_components.a,{href:`#financial-statement-rollup`,children:`Financial statement rollup`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`filtering`,children:`Filtering`}),`\n`,_jsxs(_components.p,{children:[`Filters use the form `,_jsx(_components.code,{children:`field[operator]=value`}),`. These operators are supported:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Operator`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eq`})}),_jsx(_components.td,{children:`Exact match`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`in`})}),_jsx(_components.td,{children:`Matches any value in a comma-separated list`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gte`})}),_jsx(_components.td,{children:`Greater than or equal to`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lte`})}),_jsx(_components.td,{children:`Less than or equal to`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`is_null`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),`: only records where the field is null. `,_jsx(_components.code,{children:`false`}),`: only records where it is not null`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`not_null`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),`: only records where the field is not null. `,_jsx(_components.code,{children:`false`}),`: only records where it is null`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.integrations.commenda.io/v4/core/companies/694/invoices?status[eq]=PAID\u0026limit=50\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api_key: YOUR_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Filtering by an updated-at range is the usual way to pull everything that changed since your last sync:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`?rootfi_updated_at[gte]=2024-01-01T00:00:00.000Z`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Not every field is filterable.`}),` Each data model exposes its own set of filterable fields — a filter on an unsupported field is ignored rather than applied. Check the model’s API reference page for the fields it accepts.`]})}),`\n`,_jsxs(_components.p,{children:[`Operators cannot be combined on the same field. These all return `,_jsx(_components.code,{children:`400`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`eq`}),` together with `,_jsx(_components.code,{children:`in`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`eq`}),` together with `,_jsx(_components.code,{children:`gte`}),` or `,_jsx(_components.code,{children:`lte`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`in`}),` together with `,_jsx(_components.code,{children:`gte`}),` or `,_jsx(_components.code,{children:`lte`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`is_null`}),` or `,_jsx(_components.code,{children:`not_null`}),` together with any other operator, including each other`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`is_null`}),` and `,_jsx(_components.code,{children:`not_null`}),` accept only `,_jsx(_components.code,{children:`true`}),` or `,_jsx(_components.code,{children:`false`}),`, and only on fields that can be null; on a field that is never null they return `,_jsx(_components.code,{children:`400`}),`. To filter on a missing value, use `,_jsx(_components.code,{children:`contact_type[is_null]=true`}),` rather than `,_jsx(_components.code,{children:`eq`}),` with `,_jsx(_components.code,{children:`null`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Filtering an enum field on a value outside the enum returns `,_jsx(_components.code,{children:`400`}),` with the list of valid values. Currency codes are stored uppercase but accept lowercase input.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response-shape`,children:`Response shape`}),`\n`,_jsxs(_components.p,{children:[`List responses return the records at `,_jsx(_components.code,{children:`data`}),`, with pagination as a sibling:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"rootfi_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pagination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`143`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prev\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"req_...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Single-record responses return the object at `,_jsx(_components.code,{children:`data`}),`, with no `,_jsx(_components.code,{children:`pagination`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`total_count`}),` is populated unless you pass `,_jsx(_components.code,{children:`return_count=false`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`raw-platform-data`,children:`Raw platform data`}),`\n`,_jsxs(_components.p,{children:[`Records can include `,_jsx(_components.code,{children:`raw_data`}),` — the untouched response from the source platform.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`raw_data`}),` is only included for paying customers — it is stripped from read responses otherwise. Contact `,_jsx(_components.a,{href:`mailto:support@commenda.io`,children:`support@commenda.io`}),` if you need it enabled.`]})}),`\n`,_jsxs(_components.p,{children:[`When it is returned it carries the full upstream payload for every record, so responses are heavier than the documented field list suggests. Lower `,_jsx(_components.code,{children:`limit`}),` if you hit slow responses or size limits.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/documentation/concepts/supplemental-data/raw-data`,children:`Raw Data`}),` for how to use it, including on writes.`]}),`\n`,_jsx(Heading,{level:`2`,id:`financial-statement-rollup`,children:`Financial statement rollup`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`income_statements`}),`, `,_jsx(_components.code,{children:`balance_sheets`}),`, and `,_jsx(_components.code,{children:`cash_flow_statements`}),` are stored as monthly rows. Pass `,_jsx(_components.code,{children:`period`}),` to roll consecutive months into larger buckets — `,_jsx(_components.code,{children:`period=3`}),` for quarters, `,_jsx(_components.code,{children:`period=12`}),` for years.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`period`}),` requires both `,_jsx(_components.code,{children:`period_start[gte]`}),` and `,_jsx(_components.code,{children:`period_end[lte]`}),` — omitting either returns `,_jsx(_components.code,{children:`400`}),`. It returns the complete rolled-up list rather than a page, so passing `,_jsx(_components.code,{children:`next`}),` or `,_jsx(_components.code,{children:`prev`}),` alongside it returns `,_jsx(_components.code,{children:`400`}),`, as does combining it with `,_jsx(_components.code,{children:`expand`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.integrations.commenda.io/v4/core/companies/694/income_statements?period=3\u0026period_start[gte]=2024-01-01\u0026period_end[lte]=2024-12-31\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api_key: YOUR_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The rollup loads every statement row in the requested window before bucketing, and rejects the request with `,_jsx(_components.code,{children:`400`}),` above 10,000 rows. If you hit it, narrow `,_jsx(_components.code,{children:`period_start[gte]`}),` / `,_jsx(_components.code,{children:`period_end[lte]`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Reading Data","description":"Use our read APIs for quick easy access to your customers data","icon":"book","href":"/documentation/concepts/reading-data"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Query parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Filtering","slug":"filtering","depth":2,"children":[]},{"title":"Response shape","slug":"response-shape","depth":2,"children":[]},{"title":"Raw platform data","slug":"raw-platform-data","depth":2,"children":[]},{"title":"Financial statement rollup","slug":"financial-statement-rollup","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rootfi-commenda","siteName":"Integrations by Commenda","title":"Reading Data - Integrations by Commenda","navMaps":{"firstHrefInVersion":{"v4":{"href":"/documentation/concepts/reading-data","matchLevel":0},"v3":{"href":"/v3/documentation/concepts/rootfi-connect/introduction","matchLevel":2}},"firstHrefInLanguage":{}},"lastModified":"2026-11-10T10:08:01.443Z","originalFileLocation":"documentation/concepts/reading-data.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=\"Use our read APIs for quick easy access to your customers data\">\u003cmeta data-mint-head name=\"application-name\" content=\"Integrations by Commenda\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rootfi-commenda/hW8169fi4IOqrs3e/_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/rootfi-commenda/hW8169fi4IOqrs3e/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rootfi-commenda/hW8169fi4IOqrs3e/_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/rootfi-commenda/hW8169fi4IOqrs3e/_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/rootfi-commenda/hW8169fi4IOqrs3e/_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/rootfi-commenda/hW8169fi4IOqrs3e/_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/rootfi-commenda/hW8169fi4IOqrs3e/_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/rootfi-commenda/hW8169fi4IOqrs3e/_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/rootfi-commenda/hW8169fi4IOqrs3e/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Reading Data - Integrations by Commenda\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use our read APIs for quick easy access to your customers data\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Integrations by Commenda\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://integrations.docs.commenda.io/documentation/concepts/reading-data\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rootfi-commenda.mintlify.site/_mintlify/api/og/v2?division=Core+Features\u0026amp;title=Reading+Data\u0026amp;description=Use+our+read+APIs+for+quick+easy+access+to+your+customers+data\u0026amp;theme=4fb0ac713ba6df3adf7808e7\u0026amp;signature=cb03b10a41b5b41b66e3837b49491489b2fdef812d8bc9550282625e5fa9599e\">\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=\"Reading Data - Integrations by Commenda\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use our read APIs for quick easy access to your customers data\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rootfi-commenda.mintlify.site/_mintlify/api/og/v2?division=Core+Features\u0026amp;title=Reading+Data\u0026amp;description=Use+our+read+APIs+for+quick+easy+access+to+your+customers+data\u0026amp;theme=4fb0ac713ba6df3adf7808e7\u0026amp;signature=cb03b10a41b5b41b66e3837b49491489b2fdef812d8bc9550282625e5fa9599e\">\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/rootfi-commenda/hW8169fi4IOqrs3e/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Integrations by Commenda\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#026EB9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://integrations.docs.commenda.io/documentation/concepts/reading-data\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/documentation/concepts/reading-data.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://integrations.docs.commenda.io/#organization\",\"name\":\"Integrations by Commenda\",\"url\":\"https://integrations.docs.commenda.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rootfi-commenda/JtuWvvYArO9DY7fx/images/logo/light.svg?fit=max\u0026auto=format\u0026n=JtuWvvYArO9DY7fx\u0026q=85\u0026s=c4be5f750642af21c9e7cadb00956f3d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://integrations.docs.commenda.io#website\",\"name\":\"Integrations by Commenda\",\"url\":\"https://integrations.docs.commenda.io\",\"publisher\":{\"@id\":\"https://integrations.docs.commenda.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data#webpage\",\"url\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data\",\"name\":\"Reading Data\",\"description\":\"Use our read APIs for quick easy access to your customers data\",\"dateModified\":\"2026-11-10T10:08:01.443Z\",\"isPartOf\":{\"@id\":\"https://integrations.docs.commenda.io#website\"},\"breadcrumb\":{\"@id\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core Features\",\"item\":\"https://integrations.docs.commenda.io/documentation/concepts/rootfi-connect/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reading Data\",\"item\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data#article\",\"headline\":\"Reading Data\",\"name\":\"Reading Data\",\"description\":\"Use our read APIs for quick easy access to your customers data\",\"url\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data\",\"mainEntityOfPage\":{\"@id\":\"https://integrations.docs.commenda.io/documentation/concepts/reading-data#webpage\"},\"dateModified\":\"2026-11-10T10:08:01.443Z\",\"publisher\":{\"@id\":\"https://integrations.docs.commenda.io/#organization\"},\"isPartOf\":{\"@id\":\"https://integrations.docs.commenda.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Integrations by Commenda\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Integrations by Commenda","nav":{"global":{"anchors":[{"anchor":"Data Coverage Tool","icon":"globe","href":"https://coverage.integrationlabs.co/"}]},"versions":[{"version":"v4","tabs":[{"tab":"Documentation","groups":[{"group":"General","pages":[{"title":"Introduction","icon":"hand-wave","href":"/documentation/general/introduction"},{"title":"Glossary","icon":"book","href":"/documentation/general/glossary-key-terms"}]},{"group":"Use Case Guides","pages":[{"title":"Expense Management","icon":"credit-card","href":"/guides/expense-management"},{"title":"Payroll","icon":"envelope-open-dollar","href":"/guides/payroll"},{"title":"Accounts Payable (AP)","icon":"receipt","href":"/guides/accounts-payable"},{"title":"Accounts Receivable (AR)","icon":"file-invoice","href":"/guides/accounts-receivable"},{"title":"Point-Of-Sale (POS)","icon":"tag","href":"/guides/pos"}]},{"group":"Core Features","pages":[{"group":"Connect by Commenda","pages":[{"title":"Introduction","icon":"hand-wave","href":"/documentation/concepts/rootfi-connect/introduction"},{"title":"Invite Link","icon":"link","href":"/documentation/concepts/rootfi-connect/invite-link"},{"title":"Embedded SDK","icon":"code","href":"/documentation/concepts/rootfi-connect/embedded-sdk"}]},{"title":"Syncing Data","description":"Learn how we keep your customers data up-to date","icon":"rotate","href":"/documentation/concepts/syncing-data"},{"title":"Reading Data","icon":"book","href":"/documentation/concepts/reading-data"},{"title":"Writing Data","description":"Push data to your customers' platform through a single API.","icon":"pen","href":"/documentation/concepts/writing-data"}]},{"group":"Advanced Features","pages":[{"title":"Raw Data","icon":"database","href":"/documentation/concepts/supplemental-data/raw-data"},{"title":"Passthrough API","icon":"right-left","href":"/documentation/concepts/supplemental-data/passthrough-api"},{"title":"Sync Frequency \u0026 Scopes","icon":"microscope","href":"/documentation/concepts/sync-config"},{"title":"Webhooks","icon":"webhook","href":"/documentation/concepts/webhooks"},{"title":"Error Handling","icon":"bug","href":"/documentation/concepts/error-handling"},{"title":"Data Storage","icon":"anchor","href":"/documentation/concepts/data-storage"},{"title":"Partner Credentials","icon":"handshake","href":"/documentation/concepts/partner-credentials"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/v4/overview/environments"}]},{"tab":"Accounting","pages":[{"title":"Accounting","href":"/accounting-integrations/accounting-integrations-overview"}]},{"tab":"E-Commerce","pages":[{"title":"E-Commerce","href":"/ecommerce-integrations/ecommerce-integrations-overview"}]},{"tab":"Payments","pages":[{"title":"Payments","href":"/payment-integrations/payment-integrations-overview"}]},{"tab":"CRM","pages":[{"title":"CRM","href":"/crm-integrations/crm-integrations-overview"}]}]},{"version":"v3","pages":[{"title":"v3","href":"/v3/documentation/concepts/rootfi-connect/introduction"}]}]},"basePath":"","title":"Reading Data - Integrations by Commenda","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":[],"chunks":[]}