Get Income Statement
curl --request GET \
--url https://api.rootfi.dev/v3/accounting/income_statement \
--header 'api_key: <api-key>'import requests
url = "https://api.rootfi.dev/v3/accounting/income_statement"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.rootfi.dev/v3/accounting/income_statement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rootfi.dev/v3/accounting/income_statement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rootfi.dev/v3/accounting/income_statement"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rootfi.dev/v3/accounting/income_statement")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootfi.dev/v3/accounting/income_statement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}Income Statements
Get Income Statement
Retrieve Income Statement from the database.
GET
/
accounting
/
income_statement
Get Income Statement
curl --request GET \
--url https://api.rootfi.dev/v3/accounting/income_statement \
--header 'api_key: <api-key>'import requests
url = "https://api.rootfi.dev/v3/accounting/income_statement"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.rootfi.dev/v3/accounting/income_statement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rootfi.dev/v3/accounting/income_statement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rootfi.dev/v3/accounting/income_statement"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rootfi.dev/v3/accounting/income_statement")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootfi.dev/v3/accounting/income_statement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}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.