Get Income Statement
curl --request GET \
--url https://api.meetcampfire.com/ca/api/get_income_statementimport requests
url = "https://api.meetcampfire.com/ca/api/get_income_statement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/get_income_statement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/ca/api/get_income_statement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/ca/api/get_income_statement"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/ca/api/get_income_statement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/get_income_statement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"income_statement": [
{
"account_id": "2555",
"account_name": "Sales, General, and Administrative Expenses",
"account_number": "600000",
"hierarchy": [
"OPERATING_EXPENSES",
"2555"
],
"2024-01-01_Total": 14883.910000000002
},
{
"account_id": "2556",
"account_name": "Sales",
"account_number": "400000",
"hierarchy": [
"REVENUE",
"2556"
],
"2024-01-01_Total": 766651
}
]
}Financial Statements
Get Income Statement
Returns account activity (revenue and expense movement) within the start_date-end_date range, split by cadence.
Unlike the balance sheet, the income statement reflects only the activity that falls inside the requested date range - start_date is the true start of the activity window.
Breakdowns: supports entity, department, vendor, and tag breakdowns/filters via group_by (pass group with a tag group ID when grouping by tag).
GET
/
ca
/
api
/
get_income_statement
Get Income Statement
curl --request GET \
--url https://api.meetcampfire.com/ca/api/get_income_statementimport requests
url = "https://api.meetcampfire.com/ca/api/get_income_statement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/get_income_statement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/ca/api/get_income_statement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/ca/api/get_income_statement"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/ca/api/get_income_statement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/get_income_statement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"income_statement": [
{
"account_id": "2555",
"account_name": "Sales, General, and Administrative Expenses",
"account_number": "600000",
"hierarchy": [
"OPERATING_EXPENSES",
"2555"
],
"2024-01-01_Total": 14883.910000000002
},
{
"account_id": "2556",
"account_name": "Sales",
"account_number": "400000",
"hierarchy": [
"REVENUE",
"2556"
],
"2024-01-01_Total": 766651
}
]
}Query Parameters
Available options:
daily, monthly, quarterly, weekly, yearly Latest date (inclusive) for which to retrieve data. Defaults to end of current month
Entity ID(s) to scope the report. Can be repeated (?entity=1&entity=2) or JSON array
If true, includes all data of children entities in consolidation
Earliest date (inclusive) for which to retrieve data. Defaults to six months ago