Profit/Loss Report
GET https://api.freshbooks.com/accounting/account/{{accountId}}/reports/accounting/profitloss_entity
The Profit/Loss Report shows all the information involving both your profits and losses
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
start_date | string | created during or after the given date i.e. 2019-01-01 | |
end_date | string | created during or before the given date i.e. 2019-05-01 | |
currency_code | string | reports using the given currency as primary currency i.e. "USD" | |
cash_based | boolean | True ignores billed payments and uses just collected payments i.e. true , false | |
resolution | string | specifies how often data is calculated and stored. For example, "3m" would specify to return data grouped in three month intervals. i.e. "3m" |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"response":{"result":{"profitloss":{"cash_based":false,"company_name":"Postman Sandbox","currency_code":"USD","download_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50aWQiOiJ3a01kMmciLCJ1c2VyaWQiOjEsImNvbnRhY3RpZCI6LTEsImxldmVsIjozLCJ0eXBlIjoicmVwb3J0Iiwib2JqZWN0aWQiOiJwcm9maXRsb3NzIiwicGFyYW1zIjp7InN0YXJ0X2RhdGUiOiIyMDE5LTA0LTI0IiwiZW5kX2RhdGUiOiIyMDE5LTA0LTI0IiwicmVzb2x1dGlvbiI6bnVsbCwiY3VycmVuY3lfY29kZSI6IlVTRCIsImNhc2hfYmFzZWQiOmZhbHNlLCJyZXBvcnRfbW9kZSI6Im1vZGVybl9lbnRpdHkifSwiaWF0IjoxNTU2MTMwNTkzLCJleHAiOjE1NTg3MjI1OTN9.YbSTjVO5hTVP_l2bo0w2m5i_11IlLBD_KePsJp5FPIg","end_date":"2019-04-24","expenses":[{"children":[{"children":[],"data":[],"description":"Gas","entry_type":"debit","total":{"amount":"141.12","code":"USD"}}],"data":[],"description":"Car \u0026 Truck Expenses","entry_type":"debit","total":{"amount":"141.12","code":"USD"}}],"income":[{"children":[],"data":[],"description":"Sales","entry_type":"credit","total":{"amount":"0.00","code":"USD"}},{"children":[],"data":[],"description":"Cost of Goods Sold","entry_type":"credit","total":{"amount":"0.00","code":"USD"}}],"labels":[],"net_profit":{"children":[],"data":[],"description":"Net Profit (USD)","entry_type":"credit","total":{"amount":"-141.12","code":"USD"}},"resolution":null,"start_date":"2019-04-24","total_expenses":{"children":[],"data":[],"description":"Total Expenses","entry_type":"debit","total":{"amount":"141.12","code":"USD"}},"total_income":{"children":[],"data":[],"description":"Gross Profit","entry_type":"credit","total":{"amount":"0.00","code":"USD"}}}}}}