Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Profit and Loss report by account

Started by Tony Carter2 -   in API Endpoints

Hi,

I am trying to create ProfitAndLoss report broken down on account level. This is the command I have in C#:
var pal = Api.Reports.ProfitAndLoss(null, startDate, null, null, null, null,null,null,null,null,null);

What parameters do I need to specify for that?

I looked at this page for some parameters on Profit and Loss report: https://developer.xero.com/documentation/api/reports#ProfitAndLoss It does not have much detail on most of the parameters, such as: trackingCategoryID trackingOptionID trackingCategoryID2 trackingOptionID2 only generic comments.

Thanks.