GET
/
v1
/
businesses
/
{businessId}
/
reports
/
profit-and-loss
/
lines
Fetch P&L line items
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/reports/profit-and-loss/lines \
  --header 'Authorization: Bearer <token>'
{
  "line_item_name": "<string>",
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z",
  "transactions": [
    "<any>"
  ],
  "total_amount": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to fetch the P&L line items for

Query Parameters

start_date
string<date-time>
required

Start date for the line item report (ISO 8601 format)

end_date
string<date-time>
required

End date for the line item report (ISO 8601 format)

line_item_name
string
required

Name of the specific line item to fetch details for

reporting_basis
enum<string>

Accounting basis for the report

Available options:
ACCRUAL,
CASH
structure
string

P&L structure template to use

Response

P&L line item detail report

line_item_name
string

Name of the line item

start_date
string<date-time>

Start date of the report period

end_date
string<date-time>

End date of the report period

transactions
any[]

Transactions contributing to this line item

total_amount
integer

Total amount for this line item in cents