Allows you to retrieve report for ProfitAndLoss
GET {{baseUrl}}/Reports/ProfitAndLoss?fromDate=<date>&toDate=<date>&periods=<integer>&timeframe=<string>&trackingCategoryID=<string>&trackingCategoryID2=<string>&trackingOptionID=<string>&trackingOptionID2=<string>&standardLayout=<boolean>&paymentsOnly=<boolean>
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fromDate | string | The from date for the ProfitAndLoss report e.g. 2018-03-31 | |
toDate | string | The to date for the ProfitAndLoss report e.g. 2018-03-31 | |
periods | string | The number of periods to compare (integer between 1 and 12) | |
timeframe | string | The period size to compare to (MONTH, QUARTER, YEAR) | |
trackingCategoryID | string | The trackingCategory 1 for the ProfitAndLoss report | |
trackingCategoryID2 | string | The trackingCategory 2 for the ProfitAndLoss report | |
trackingOptionID | string | The tracking option 1 for the ProfitAndLoss report | |
trackingOptionID2 | string | The tracking option 2 for the ProfitAndLoss report | |
standardLayout | string | Return the standard layout for the ProfitAndLoss report | |
paymentsOnly | string | Return cash only basis for the ProfitAndLoss report |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
xero-tenant-id | string | (Required) Xero identifier for Tenant |
RESPONSES
status: OK
{"Reports":[{"ReportID":"anim sint magna","ReportName":"nostrud id","ReportTitle":"veniam sint laborum irure","ReportType":"reprehenderit Excepteur","ReportTitles":["ut est pariatur","sunt ut sed minim"],"ReportDate":"dolore","Rows":[{"RowType":"Section","Title":"dolore proident in id","Cells":[{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"Rows":[{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]},{"RowType":"Section","Title":"et dolor","Cells":[{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"Rows":[{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]}],"UpdatedDateUTC":"/Date(1573755038314)/","Fields":[{"FieldID":"ex ea","Description":"mollit ","Value":"Excepteur ad nulla in"},{"FieldID":"pariatur do amet","Description":"eu qui Duis","Value":"ut adipisicing tempor"}]},{"ReportID":"exerc","ReportName":"con","ReportTitle":"est eu labore","ReportType":"cons","ReportTitles":["ex amet eu ut","cillum Excepteur do voluptate"],"ReportDate":"dolor anim nisi","Rows":[{"RowType":"Section","Title":"in","Cells":[{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"Rows":[{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]},{"RowType":"Header","Title":"eu exercitation elit","Cells":[{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"Value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Attributes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"Rows":[{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"RowType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Title":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"Cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]}],"UpdatedDateUTC":"/Date(1573755038314)/","Fields":[{"FieldID":"sint veniam","Description":"culp","Value":"laborum in dolore"},{"FieldID":"ad cillum ut ex","Description":"officia","Value":"veniam laborum consectetur proident dolore"}]}]}