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"
}Retrieve income statement from the database based on the ID
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"
}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"
}
}
}'
Show child attributes
asc, desc asc, desc asc, desc asc, desc asc, desc Show child attributes
Show child attributes
List of Income Statement
Show child attributes
The accounting Platform’s id for the income statement
currency of the income statement
start date of the income statement report
end date of the income statement report
line_items for revenue of income statement report
gross profit of the income statement report
line_items for operating_expenses of income statement report
operating profit of the income statement report
non operating revenue of the income statement report
non operating expenses of the income statement report
earnings before taxes of the income statement report
net profit of the income statement report
The last ISO 8601 timestamp that the data was updated at
Total Count of response object
The time at which the request was received by the server
The time at which the response was sent by the server
The unique ID of the request