I have created a custom report layout for Profit and Loss report in Xero.
How can I use the API to fetch Profit and Loss report in said custom layout?
Xero API documentation talks about a parameter called standardLayout
If you set this parameter to "true" then no custom report layouts will be applied to response
But setting this parameter to true
or false
does not change result of the API call.
API call I making to retrieve Profit and Loss report: https://api.xero.com/api.xro/2.0/Reports/ProfitAndLoss?fromDate=2020-12-01&toDate=2020-12-31&periods=11&timeframe=MONTH&standardLayout=false