General
Server Side SDKs
Core API
- Companies
- Invite Links
- Integrations
- Sync
- Jobs
- Passthrough
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
Income Statements
Get Income Statement
Retrieve income statement from the database based on the ID
POST
/
accounting
/
income_statement
/
all
curl --request POST \
--url https://api.rootfi.dev/accounting/income_statement/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"period_start": "asc"
},
"filter": {
"period_start": {
"eq": "2021-01-01"
}
}
}'
{
"data": {
"data": [
{
"platform_id": "2023-08-01_2023-08-31",
"currency_id": null,
"period_start": null,
"period_end": null,
"revenue": [
{
"name": "Operating Revenue",
"value": 0,
"line_items": [
{
"name": "Discount",
"value": 0,
"account_id": "3770712000000000406"
},
{
"name": "General Income",
"value": 0,
"account_id": "3770712000000000391"
}
]
}
],
"cost_of_goods_sold": [
{
"name": "Cost of Goods Sold",
"value": 0,
"line_items": [
{
"name": "Cost of Goods Sold",
"value": 0,
"account_id": "3770712000000034003"
},
{
"name": "Job Costing",
"value": 0,
"account_id": "3770712000000076066"
}
]
}
],
"gross_profit": 34,
"operating_expenses": [
{
"name": "Operating Expenses",
"value": 345,
"line_items": [
{
"name": "Automobile Expense",
"value": 0,
"account_id": "3770712000000000424"
},
{
"name": "Consultant Expense",
"value": -8.5,
"account_id": "3770712000000000454"
}
]
}
],
"operating_profit": 234,
"non_operating_revenue": [
{
"name": "Non Operating Revenue",
"value": 0,
"line_items": []
}
],
"non_operating_expenses": [
{
"name": "Non Operating Expenses",
"value": 0,
"line_items": []
}
],
"earnings_before_taxes": 34,
"taxes": [],
"net_profit": 2345,
"updated_at": "2000-12-31T18:30:00.000Z"
}
],
"total_count": 123
},
"request_timestamp": "2000-12-31T18:30:00.000Z",
"response_timestamp": "2021-06-01T00:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
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.
curl --request POST \
--url https://api.rootfi.dev/accounting/income_statement/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"period_start": "asc"
},
"filter": {
"period_start": {
"eq": "2021-01-01"
}
}
}'
Authorizations
Body
application/json
Response
200 - application/json
The response is of type object
.
curl --request POST \
--url https://api.rootfi.dev/accounting/income_statement/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"period_start": "asc"
},
"filter": {
"period_start": {
"eq": "2021-01-01"
}
}
}'
{
"data": {
"data": [
{
"platform_id": "2023-08-01_2023-08-31",
"currency_id": null,
"period_start": null,
"period_end": null,
"revenue": [
{
"name": "Operating Revenue",
"value": 0,
"line_items": [
{
"name": "Discount",
"value": 0,
"account_id": "3770712000000000406"
},
{
"name": "General Income",
"value": 0,
"account_id": "3770712000000000391"
}
]
}
],
"cost_of_goods_sold": [
{
"name": "Cost of Goods Sold",
"value": 0,
"line_items": [
{
"name": "Cost of Goods Sold",
"value": 0,
"account_id": "3770712000000034003"
},
{
"name": "Job Costing",
"value": 0,
"account_id": "3770712000000076066"
}
]
}
],
"gross_profit": 34,
"operating_expenses": [
{
"name": "Operating Expenses",
"value": 345,
"line_items": [
{
"name": "Automobile Expense",
"value": 0,
"account_id": "3770712000000000424"
},
{
"name": "Consultant Expense",
"value": -8.5,
"account_id": "3770712000000000454"
}
]
}
],
"operating_profit": 234,
"non_operating_revenue": [
{
"name": "Non Operating Revenue",
"value": 0,
"line_items": []
}
],
"non_operating_expenses": [
{
"name": "Non Operating Expenses",
"value": 0,
"line_items": []
}
],
"earnings_before_taxes": 34,
"taxes": [],
"net_profit": 2345,
"updated_at": "2000-12-31T18:30:00.000Z"
}
],
"total_count": 123
},
"request_timestamp": "2000-12-31T18:30:00.000Z",
"response_timestamp": "2021-06-01T00:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
Assistant
Responses are generated using AI and may contain mistakes.