> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tight.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accounting Reports

## How it works

Tight's Financial Reporting API makes it easy for you to provide your users with accounting reports. Take a look at our [Financial Reporting docs](/v5.0/products/financial-statements) for an overview on how to easily generate reports for your users.

## Pick the most applicable accounting report

Depending on your target user's profile and your app's positioning, the best income report for your use case may vary. Tight provides the following accounting reports, all of which can be [customized to match your branding](/v5.0/products/financial-statements#7-customizing-reports-to-match-your-branding):

| Title               | Available Formats    | Name (for use in code) |
| :------------------ | :------------------- | :--------------------- |
| Balance Sheet       | HTML, PDF, XLS, JSON | balanceSheet           |
| Cash Flow Statement | HTML, PDF, XLS, JSON | cashFlowStatement      |
| Profit & Loss       | HTML, PDF, XLS, JSON | profitAndLoss          |
| Trial Balance       | HTML, PDF, XLS, JSON | trialBalance           |

## Populate the desired parameters

Each report has a varying list of available parameters, e.g. to filter data to a certain date range. The list of available parameters for each of the expense reports is listed below:

| Report name       | Available parameters |
| :---------------- | :------------------- |
| balanceSheet      | endDate              |
| cashFlowStatement | beginDate, endDate   |
| profitAndLoss     | beginDate, endDate   |
| trialBalance      | beginDate, endDate   |

The format for each parameter is listed below:

| Parameter name | Format       | Example      |
| :------------- | :----------- | :----------- |
| beginDate      | `YYYY-MM-DD` | "2020-01-01" |
| endDate        | `YYYY-MM-DD` | "2020-12-31" |

## Generate your accounting report

Once you've decided on the desired report, you can build a report JSON object, including the `name` of your report, as well as any desired `params`. To [generate the report](/v5.0/products/financial-statements#4-generating-a-financial-report), simply create a POST call, as shown below:

```curl theme={null}
curl \
  --request POST \
  --url https://sandbox.hurdlr.com/rest/v5/reports/report \
  --header 'Authorization: Bearer ${access_token}' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "balanceSheet",
    "params": {
      "endDate": "2021-08-31",
    },
    "exportType": "PDF"
  }'
```

## Display an interactive report

The Tight Embedded experience provides you with the capability to embed interactive (drill-down) reports in your product, with options for customizing the time period grouping of the report:

a) [Balance Sheet component](/v5.0/embeddable-ui/financial-statements/balance-sheet-component)

b) [Cash Flow Statement component](/v5.0/embeddable-ui/financial-statements/cash-flow-statement-component)

c) [Profit & Loss component](/v5.0/embeddable-ui/financial-statements/profit-and-loss-component)

d) [Trial Balance component](/v5.0/embeddable-ui/financial-statements/trial-balance-component)
