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

KeyDatatypeRequiredDescription
start_datestringcreated during or after the given date i.e. 2019-01-01
end_datestringcreated during or before the given date i.e. 2019-05-01
currency_codestringreports using the given currency as primary currency i.e. "USD"
cash_basedbooleanTrue ignores billed payments and uses just collected payments i.e. true, false
resolutionstringspecifies how often data is calculated and stored. For example, "3m" would specify to return data grouped in three month intervals. i.e. "3m"

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

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"}}}}}}