Skip to main content
GET
/
v0
/
business
/
{business_id}
/
reports
/
general-ledger
Retrieve the General Ledger Report
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/reports/general-ledger \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "ledgers": [
      {
        "ledger": {
          "id": "<string>",
          "name": "<string>"
        },
        "lines": [
          {
            "date": "2023-11-07T05:31:56Z",
            "journal_entry_id": "<string>",
            "memo": "<string>",
            "split_ledgers": [
              {
                "id": "<string>",
                "name": "<string>"
              }
            ],
            "debit_credit": "debit",
            "amount": 123,
            "balance": 123
          }
        ]
      }
    ],
    "data_truncated": true
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Accept
Accept · array

Path Parameters

business_id
string<biz_string>
required

The ID of the Business

Query Parameters

start_datetime
string<date-time>
required

The start date (inclusive) in ISO-8601 format.

end_datetime
string<date-time>
required

The end date (inclusive) in ISO-8601 format.

Response

Successful Response

data
object
required