Browse Documentation
GET Get profit and loss report

GET /api/v0.1/report/profit_and_loss

Get Profit and Loss Report


Query Parameters

The parameter below are to be a passed as Query strings.

Parameters
Type
Descriptions
report_date
string
Optional.  
If not set the the last month of the current year is used as Default
This is the report date.
Format: Y-m
Example: 2020 01

date_to_comparestring
Optional

Possible value:
        Previous Month 
  •         Previous Year, 
  •         Previous  Quarter,
  •         Previous Year
  •     
number_of_periodintegerOptional
Possible value is an integer between 1 and 11.

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \
-XGET \
https://dev.accounteer.com/api/v0.1/report/balance_sheet

Response

{
   "Rows":[
            {
              "RowType":"Account Class",
              "Title":"ASSET",
              "Rows":[
                      {
                       "RowType":"Acccount Type",
                       "Title":"FIXEDASSET",
                       "Rows":[
                                {
                                  "RowType":"Account",
                                  "Cells":[
                                            {
                                             "value":"41900",
                                             "id":"accountCode"
                                            },
                                            {
                                              "value":"Test Fixed Asset Account",
                                              "id":"accountName"
                                            },
                                            {
                                               "value":null,
                                               "id":"accountBalance"
                                            }
                                          ]
                                   }
                                 ]
                         },
                     {
                       "RowType":"Acccount Type",
                       "Title":"INVENTORY",
                       "Rows":[
                                {
                                  "RowType":"Account",
                                   "Cells":[
                                             {
                                               "value":"677001",
                                               "id":"accountCode"
                                              }
                                            ]
                                 }
                               ]
                        }
                     ]
                 }
              ],
      "ReportID":"Profit and Loss",
      "ReportName":"Profit and Loss",
      "ReportType":"Profit and Loss",
      "ReportTitle":["Profit and Loss","Test Organization","December 31, 2020"],
      "ReportDate":"December 31, 2020"
}