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

# Trial balance

> Trial balance

### Query parameters

<ParamField query="as_of_date" type="string">
  Report date in `YYYY-MM-DD` format. Defaults to today (UTC).
</ParamField>

### Responses

<ResponseField name="200" type="TrialBalanceResponse" />

<ResponseField name="400" type="ErrorBody" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.stateset.com/api/v1/gl/trial-balance' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "as_of_date": "string",
    "is_balanced": true,
    "lines": [
      {
        "account_id": "string",
        "account_name": "string",
        "account_number": "string",
        "account_type": "string",
        "credit_balance": "string",
        "debit_balance": "string"
      }
    ],
    "total_credits": "string",
    "total_debits": "string"
  }
  ```
</ResponseExample>
