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": [
      {
        "cost_of_goods_sold": [
          {
            "line_items": [
              {
                "account_id": "3770712000000034003",
                "name": "Cost of Goods Sold",
                "value": 0
              },
              {
                "account_id": "3770712000000076066",
                "name": "Job Costing",
                "value": 0
              }
            ],
            "name": "Cost of Goods Sold",
            "value": 0
          }
        ],
        "currency_id": null,
        "earnings_before_taxes": 34,
        "gross_profit": 34,
        "net_profit": 2345,
        "non_operating_expenses": [
          {
            "line_items": [],
            "name": "Non Operating Expenses",
            "value": 0
          }
        ],
        "non_operating_revenue": [
          {
            "line_items": [],
            "name": "Non Operating Revenue",
            "value": 0
          }
        ],
        "operating_expenses": [
          {
            "line_items": [
              {
                "account_id": "3770712000000000424",
                "name": "Automobile Expense",
                "value": 0
              },
              {
                "account_id": "3770712000000000454",
                "name": "Consultant Expense",
                "value": -8.5
              }
            ],
            "name": "Operating Expenses",
            "value": 345
          }
        ],
        "operating_profit": 234,
        "period_end": null,
        "period_start": null,
        "platform_id": "2023-08-01_2023-08-31",
        "revenue": [
          {
            "line_items": [
              {
                "account_id": "3770712000000000406",
                "name": "Discount",
                "value": 0
              },
              {
                "account_id": "3770712000000000391",
                "name": "General Income",
                "value": 0
              }
            ],
            "name": "Operating Revenue",
            "value": 0
          }
        ],
        "taxes": [],
        "updated_at": "2000-12-31T18:30:00.000Z"
      }
    ],
    "total_count": 123
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2000-12-31T18:30:00.000Z",
  "response_timestamp": "2021-06-01T00:00:00.000Z"
}

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

api_key
string
headerrequired

Body

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

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

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