GET
/
v0
/
business
/
{business_id}
/
reports
/
ledger-statement
/
{ledger_id}
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/reports/ledger-statement/{ledger_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "ledger_id": "<string>",
    "start_datetime": "2023-11-07T05:31:56Z",
    "end_datetime": "2023-11-07T05:31:56Z",
    "balances": {
      "all_time_balance": 123,
      "range_balance": 123
    },
    "entries": [
      {
        "id": "je_R2fAXCjqJPdpYata112zyW",
        "business_id": "biz_Pk2fNFDd8wj7EFeLWJywc7",
        "transaction_id": "txn_WQMDNUHpBThYSNh4AprDBo",
        "datetime": "2023-11-07T05:31:56Z",
        "description": "Walmart purchase",
        "clean_description": "Walmart purchase",
        "line_entries": [
          {
            "ledger_id": "ldg_Ns6rRRLYVZPh4cVB7MDby5",
            "description": "<string>",
            "debit_credit": "<string>",
            "amount": 123,
            "id": "le_GA6EG2qFxA97NZHtxeLPUy",
            "journal_entry_id": "je_R2fAXCjqJPdpYata112zyW",
            "transaction_id": "txn_WQMDNUHpBThYSNh4AprDBo"
          }
        ]
      }
    ],
    "pagination": {
      "next_page_token": "<string>",
      "previous_page_token": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

business_id
string
required

The ID of the Business

ledger_id
string
required

The ID of the Ledger

Query Parameters

start_datetime
string
required

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

end_datetime
string
required

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

page_token
string | null
page_size
integer
default:100
Required range: 1 <= x <= 100

Response

200
application/json
Successful Response

The response is of type object.