General
Server Side SDKs
Core API
- Companies
- Invite Links
- Sync
- Passthrough
- Real Time
- Webhooks
Unified API
- Accounting
- Accounts
- Bank Accounts
- Bank Transactions
- Bills
- Bill Payments
- Bill Credit Notes
- Contacts
- Company Info
- Currencies
- Documents
- Expenses
- Invoice Credit Notes
- Invoices
- Invoice Payments
- Items
- Journal Entries
- Purchase Orders
- Sales Orders
- Goods Receipt Notes
- Projects
- Tax Rates
- Tracking Categories
- Balance Sheet
- Cash Flow Statements
- Income Statements
- Payments
- Ecommerce
- CRM
Get Income Statement
Retrieve Income Statement from the database.
curl --request GET \
--url https://api.rootfi.dev/v3/accounting/income_statement \
--header 'api_key: <api-key>'
{
"data": [
{
"rootfi_id": 157,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"period_start": "2023-10-01",
"period_end": "2024-01-31",
"currency_id": "00000000-0000-0000-0000-000000000000",
"revenue": [
{
"name": "Revenue",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"cost_of_goods_sold": [
{
"name": "Cost of Goods Sold",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"gross_profit": 123456,
"operating_expenses": [
{
"name": "Operating Expenses",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"operating_profit": 123456,
"non_operating_revenue": [
{
"name": "Non Operating Revenue",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"non_operating_expenses": [
{
"name": "Non Operating Expenses",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"earnings_before_taxes": 123456,
"taxes": [
{
"name": "Taxes",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"net_profit": 123456
}
],
"prev": "eyJyb290ZmlfaWQiOjQ0MDA2MX0=",
"next": "eyJyb291ZmlfaWQiOjQ0MDA2MX0=",
"total_count": 123
}
An income statement is a financial report that shows a business’s revenue, expenses, and net income or loss over a specific period of time. In an accounting platform, an income statement is typically generated automatically based on the financial transactions that have been recorded in the system.
Authorizations
Query Parameters
Filter by rootfi_updated_at Greater than or Equal To.
Filter by rootfi_company_id. You can filter by any field using this syntax field_name[operator]
Include deleted records. By default, deleted records are not included. Supported values are true and false
The period end date of the income statement
The period start date of the income statement
The period end date of the income statement
The period of the income statement. This is the monthly grouping of the income statement. For example - If period is 3, then the income statement will be grouped by quarter.
Response
The response object for the income statement endpoint.
The unique ID we assign for that data's information
The date at which RootFi first synced this data
The latest date at which RootFi updated this data
The ID of the company in the accounting platform
An unique custom RootFi ID made from platform's unique_id.
The date at which the data was deleted in the accounting platform
The ID of the data in the accounting platform.
A JSON containing fields that you can directly get from the accounting platform.
The hash of the data
The period start date of the income statement
The period end date of the income statement
The currency id of the income statement
The revenue of the income statement
The name of the line item
The value of the line item
The line items of the line item
The name of the line item
The value of the line item
The account id of the line item
The line items of the line item
The cost of goods sold of the income statement
The name of the line item
The value of the line item
The line items of the line item
The name of the line item
The value of the line item
The account id of the line item
The line items of the line item
The gross profit of the income statement
The operating expenses of the income statement
The name of the line item
The value of the line item
The line items of the line item
The name of the line item
The value of the line item
The account id of the line item
The line items of the line item
The operating profit of the income statement
The non operating revenue of the income statement
The name of the line item
The value of the line item
The line items of the line item
The name of the line item
The value of the line item
The account id of the line item
The line items of the line item
The non operating expenses of the income statement
The name of the line item
The value of the line item
The line items of the line item
The name of the line item
The value of the line item
The account id of the line item
The line items of the line item
The earnings before taxes of the income statement
The taxes of the income statement
The name of the line item
The value of the line item
The line items of the line item
The net profit of the income statement
The date the income statement was last updated
The previous page of objects to retrieve
The next page of objects to retrieve
The total count of the objects
curl --request GET \
--url https://api.rootfi.dev/v3/accounting/income_statement \
--header 'api_key: <api-key>'
{
"data": [
{
"rootfi_id": 157,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"period_start": "2023-10-01",
"period_end": "2024-01-31",
"currency_id": "00000000-0000-0000-0000-000000000000",
"revenue": [
{
"name": "Revenue",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"cost_of_goods_sold": [
{
"name": "Cost of Goods Sold",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"gross_profit": 123456,
"operating_expenses": [
{
"name": "Operating Expenses",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"operating_profit": 123456,
"non_operating_revenue": [
{
"name": "Non Operating Revenue",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"non_operating_expenses": [
{
"name": "Non Operating Expenses",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"earnings_before_taxes": 123456,
"taxes": [
{
"name": "Taxes",
"value": 123456.12,
"line_items": [
{
"name": "Otis Falls",
"value": 123456.12,
"account_id": "123456",
"line_items": []
}
]
}
],
"net_profit": 123456
}
],
"prev": "eyJyb290ZmlfaWQiOjQ0MDA2MX0=",
"next": "eyJyb291ZmlfaWQiOjQ0MDA2MX0=",
"total_count": 123
}