curl --request GET \
--url https://api.meetcampfire.com/ca/api/get_balance_sheetimport requests
url = "https://api.meetcampfire.com/ca/api/get_balance_sheet"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/get_balance_sheet', 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_balance_sheet",
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_balance_sheet"
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_balance_sheet")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/get_balance_sheet")
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{
"balance_sheet": [
{
"account_id": "12172",
"account_name": "Bill.com Money Out Clearing",
"account_number": "111000",
"hierarchy": [
"ASSET",
"12093",
"12172"
],
"2022-11-01_Jupiter Consulting, LLC": 5.73,
"2022-11-01_Total": 5.36
}
]
}Get Balance Sheet
Returns ending account balances for each period between start_date and end_date (both inclusive), split by cadence. This is the recommended endpoint for balance sheet ending balances.
How the date range works: start_date is not the date balances are calculated from. Account balances are always accumulated from the beginning of time through each period end. start_date, end_date, and cadence only determine how the report is split into periods (columns).
Retained earnings: included as its own row.
Breakdowns: the report can be broken down or filtered by entity, department, and tag dimensions via group_by (pass group with a tag group ID when grouping by tag).
curl --request GET \
--url https://api.meetcampfire.com/ca/api/get_balance_sheetimport requests
url = "https://api.meetcampfire.com/ca/api/get_balance_sheet"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/get_balance_sheet', 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_balance_sheet",
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_balance_sheet"
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_balance_sheet")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/get_balance_sheet")
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{
"balance_sheet": [
{
"account_id": "12172",
"account_name": "Bill.com Money Out Clearing",
"account_number": "111000",
"hierarchy": [
"ASSET",
"12093",
"12172"
],
"2022-11-01_Jupiter Consulting, LLC": 5.73,
"2022-11-01_Total": 5.36
}
]
}Query Parameters
Earliest period (inclusive) shown in the report. NOTE: balances are NOT calculated starting from this date - account balances are always accumulated from the beginning of time through each period end. start_date, end_date, and cadence only control how the report is split into periods (columns). Defaults to six months ago.