curl --request GET \
--url https://api.meetcampfire.com/ca/api/get_trial_balanceimport requests
url = "https://api.meetcampfire.com/ca/api/get_trial_balance"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/get_trial_balance', 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_trial_balance",
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_trial_balance"
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_trial_balance")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/get_trial_balance")
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{
"trial_balance": {
"accounts": [
{
"id": 2550,
"name": "Accounts Payable",
"number": "210000",
"balances": {
"2023-08-31": {
"debits": 0,
"credits": 123
},
"2023-09-30": {
"debits": 0,
"credits": 123
}
}
},
{
"id": 2551,
"name": "Credit Cards",
"number": "220000",
"balances": {
"2023-08-31": {
"debits": 1700.14,
"credits": 0
},
"2023-09-30": {
"debits": 1700.14,
"credits": 0
}
}
}
]
},
"start_date": "2023-10-01",
"end_date": "2023-11-30"
}Get Trial Balance
Returns debit and credit totals for each account over a date range.
The summation window depends on the account type:
- Balance sheet accounts (assets, liabilities, equity): totals are summed from the beginning of time through
end_date. - Income statement accounts (revenue, expenses): the window depends on
income_statement_basis. With the defaultperiodbasis, totals are summed fromstart_datethroughend_dateand a synthetic Net Income (Prior Periods) row carries current-fiscal-year income earned beforestart_date. Withfiscal_ytd, totals are summed from the fiscal-year start throughend_dateand no Net Income row is emitted.
The effective income-statement window start is returned as income_statement_start.
Each account also carries rollforward columns, all presented as one-sided debit/credit pairs: beginning_balances (balance as of the day before start_date; fiscal-window-scoped for income-statement accounts), activity (gross period debits and credits), and ending_balances (beginning + activity, the net one-sided presentation of the account’s balance). Beginning and ending columns each foot to zero across the report and period debits equal period credits.
Retained earnings is included as its own row. For balance sheet ending balances specifically, prefer GET /ca/api/get_balance_sheet.
curl --request GET \
--url https://api.meetcampfire.com/ca/api/get_trial_balanceimport requests
url = "https://api.meetcampfire.com/ca/api/get_trial_balance"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/ca/api/get_trial_balance', 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_trial_balance",
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_trial_balance"
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_trial_balance")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/get_trial_balance")
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{
"trial_balance": {
"accounts": [
{
"id": 2550,
"name": "Accounts Payable",
"number": "210000",
"balances": {
"2023-08-31": {
"debits": 0,
"credits": 123
},
"2023-09-30": {
"debits": 0,
"credits": 123
}
}
},
{
"id": 2551,
"name": "Credit Cards",
"number": "220000",
"balances": {
"2023-08-31": {
"debits": 1700.14,
"credits": 0
},
"2023-09-30": {
"debits": 1700.14,
"credits": 0
}
}
}
]
},
"start_date": "2023-10-01",
"end_date": "2023-11-30"
}Query Parameters
Filter by department ID. Can be specified multiple times for multiple departments
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
Income-statement window: selected period (default) or fiscal year-to-date.
fiscal_ytd, period Earliest date (inclusive) for which to retrieve data. Defaults to six months ago