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

api_key
string
header
required

Body

application/json
take
integer | null
skip
integer | null
orderBy
object
filter
object

Response

200 - application/json
data
object
required
request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server

request_id
string
required

The unique ID of the request