Browse Documentation
- Report
- Overview
- Organizations
- GET Get Organisation
- POST Update Organisation
- Invoices
- POST Create Invoice
- GET Get Invoice
- PUT Update Invoice
- DELETE Delete Invoice
- POST Approve Invoice
- POST Add Attachment
- DELETE Delete Attachment from Invoice
- POST Send Invoice
- POST Pay Invoice
- Purchases
- POST Create Purchase
- GET Get Purchase
- PUT Update Purchase
- DELETE Delete Purchase
- POST Approve Purchase
- POST Add Attachment to Purchase
- DELETE Delete Attachment from Purchase
- POST Pay Purchase
- Pos sales
- GET Get POS Sales
- POST Create POS Sale
- PUT Update POS Sale
- DELETE Delete POS Sale
- POST Add POSSales Payment
- Offers
- POST Create Offer
- GET Get Offer
- PUT Update Offer
- DELETE Delete Offer
- POST Add Attachment to Offer
- DELETE Delete Attachment from Offer
- POST Send Offer
- POST Convert to Invoice
- Items
- POST Create Item
- GET Get Item
- POST Update Item
- POST Add Item Picture
- DELETE Delete Item Picture
- Item categories
- Contacts
- POST Create Contact
- GET Get Contact
- PUT Update Contact
- Account types
- GET Account Types
- Accounts
- POST Create Account
- GET Get Account
- Financial accounts
- Taxes
- POST Create Tax
- GET Get Tax
- Invoice template
- GET Get Template
- POST Update Invoice Template
- POST Upload Template Logo
- POST Create New Invoice Template
- DELETE Delete Invoice Temaplate
- Inbox
- POST Upload Attachment
- GET Get Attachments
- DELETE Delete Attachment
- Payments
- DELETE Delete Payment
- Journals
- GET Get journals
- Banks
- GET List banks
- Team
- POST Create Team Member
- GET List Team Members
- DELETE Remove Team Members
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_compare | string | Optional Previous Month
|
number_of_period | integer | Optional 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" }