Skip to main content
GET
/
v0
/
business
/
{business_id}
/
reports
/
profit-and-loss
Retrieve the Profit & Loss Report
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/reports/profit-and-loss \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "period": "<string>",
      "records": [
        {
          "name": "<string>",
          "amount": 123,
          "total_amount": 123,
          "has_entries": false,
          "ledger_id": null,
          "children": [
            {
              "amount": 21980.5,
              "children": [],
              "ledger_id": "ldg_WQMDNUHpBThYSNh4AprDBo",
              "name": "Child Group",
              "total_amount": 21980.5
            }
          ]
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Headers

Accept
(enum<string> | string)[] | null

The content type of the response

Available options:
application/json,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Path Parameters

business_id
string<biz_string>
required

The ID of the Business

Example:

"biz_GA6EG2qFxA97NZHtxeLPUy"

Query Parameters

start_datetime
string<date-time>
required

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

Example:

"2025-01-01T00:00:00Z"

end_datetime
string<date-time>
required

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

Example:

"2026-01-01T00:00:00Z"

period
enum<string> | null
default:all

The period used to partition the report details.

Available options:
month,
quarter,
year,
all
Example:

"year"

Response

Successful Response

data
PLPeriodReport · object[]
required