curl --request GET \
--url https://api.meetcampfire.com/coa/api/chart-account-settingsimport requests
url = "https://api.meetcampfire.com/coa/api/chart-account-settings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/chart-account-settings', 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/coa/api/chart-account-settings",
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/coa/api/chart-account-settings"
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/coa/api/chart-account-settings")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/chart-account-settings")
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{
"id": 123,
"uncategorized_name_and_number": "<string>",
"accounts_payable_name_and_number": "<string>",
"accounts_receivable_name_and_number": "<string>",
"deferred_revenue_name_and_number": "<string>",
"accrued_revenue_name_and_number": "<string>",
"unrealized_gain_loss_name_and_number": "<string>",
"realized_gain_loss_name_and_number": "<string>",
"rounding_account_name_and_number": "<string>",
"unapplied_credits_name_and_number": "<string>",
"unapplied_debits_name_and_number": "<string>",
"unbilled_revenue_name_and_number": "<string>",
"default_clearing_name_and_number": "<string>",
"discount_account_name_and_number": "<string>",
"accrued_discount_account_name_and_number": "<string>",
"unbilled_discount_account_name_and_number": "<string>",
"refund_account_name_and_number": "<string>",
"processing_fees_name_and_number": "<string>",
"platform_fees_name_and_number": "<string>",
"deferred_processing_fees_name_and_number": "<string>",
"tax_account_name_and_number": "<string>",
"payout_account_name_and_number": "<string>",
"cta_account_name_and_number": "<string>",
"oci_translation_account_name_and_number": "<string>",
"fixed_asset_disposal_name_and_number": "<string>",
"fixed_asset_impairment_loss_name_and_number": "<string>",
"bad_debt_account_name_and_number": "<string>",
"dispute_expense_account_name_and_number": "<string>",
"dispute_reinstatement_account_name_and_number": "<string>",
"retained_earnings_name_and_number": "<string>",
"customer": 123,
"recognize_discounts_as_contra_revenue": true,
"enable_mid_month_convention": true,
"mid_month_threshold": 15,
"use_whole_month_accounting_for_prepaids": true,
"mid_month_threshold_for_prepaids": 16,
"split_invoice_payments_by_line": true,
"split_eliminations_by_department": true,
"fold_retained_earnings": true,
"uncategorized": 123,
"accounts_payable": 123,
"accounts_receivable": 123,
"deferred_revenue": 123,
"accrued_revenue": 123,
"unrealized_gain_loss": 123,
"realized_gain_loss": 123,
"rounding_account": 123,
"unapplied_credits": 123,
"unapplied_debits": 123,
"unbilled_revenue": 123,
"default_clearing": 123,
"discount_account": 123,
"accrued_discount_account": 123,
"unbilled_discount_account": 123,
"refund_account": 123,
"processing_fees": 123,
"platform_fees": 123,
"deferred_processing_fees": 123,
"tax_account": 123,
"payout_account": 123,
"cta_account": 123,
"oci_translation_account": 123,
"fixed_asset_disposal": 123,
"fixed_asset_impairment_loss": 123,
"bad_debt_account": 123,
"dispute_expense_account": 123,
"dispute_reinstatement_account": 123,
"retained_earnings": 123
}Retrieve Chart Account Settings
These are the defaults chart accounts to be used across the platform. Each input is the id to an existing chart account.
curl --request GET \
--url https://api.meetcampfire.com/coa/api/chart-account-settingsimport requests
url = "https://api.meetcampfire.com/coa/api/chart-account-settings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/chart-account-settings', 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/coa/api/chart-account-settings",
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/coa/api/chart-account-settings"
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/coa/api/chart-account-settings")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/chart-account-settings")
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{
"id": 123,
"uncategorized_name_and_number": "<string>",
"accounts_payable_name_and_number": "<string>",
"accounts_receivable_name_and_number": "<string>",
"deferred_revenue_name_and_number": "<string>",
"accrued_revenue_name_and_number": "<string>",
"unrealized_gain_loss_name_and_number": "<string>",
"realized_gain_loss_name_and_number": "<string>",
"rounding_account_name_and_number": "<string>",
"unapplied_credits_name_and_number": "<string>",
"unapplied_debits_name_and_number": "<string>",
"unbilled_revenue_name_and_number": "<string>",
"default_clearing_name_and_number": "<string>",
"discount_account_name_and_number": "<string>",
"accrued_discount_account_name_and_number": "<string>",
"unbilled_discount_account_name_and_number": "<string>",
"refund_account_name_and_number": "<string>",
"processing_fees_name_and_number": "<string>",
"platform_fees_name_and_number": "<string>",
"deferred_processing_fees_name_and_number": "<string>",
"tax_account_name_and_number": "<string>",
"payout_account_name_and_number": "<string>",
"cta_account_name_and_number": "<string>",
"oci_translation_account_name_and_number": "<string>",
"fixed_asset_disposal_name_and_number": "<string>",
"fixed_asset_impairment_loss_name_and_number": "<string>",
"bad_debt_account_name_and_number": "<string>",
"dispute_expense_account_name_and_number": "<string>",
"dispute_reinstatement_account_name_and_number": "<string>",
"retained_earnings_name_and_number": "<string>",
"customer": 123,
"recognize_discounts_as_contra_revenue": true,
"enable_mid_month_convention": true,
"mid_month_threshold": 15,
"use_whole_month_accounting_for_prepaids": true,
"mid_month_threshold_for_prepaids": 16,
"split_invoice_payments_by_line": true,
"split_eliminations_by_department": true,
"fold_retained_earnings": true,
"uncategorized": 123,
"accounts_payable": 123,
"accounts_receivable": 123,
"deferred_revenue": 123,
"accrued_revenue": 123,
"unrealized_gain_loss": 123,
"realized_gain_loss": 123,
"rounding_account": 123,
"unapplied_credits": 123,
"unapplied_debits": 123,
"unbilled_revenue": 123,
"default_clearing": 123,
"discount_account": 123,
"accrued_discount_account": 123,
"unbilled_discount_account": 123,
"refund_account": 123,
"processing_fees": 123,
"platform_fees": 123,
"deferred_processing_fees": 123,
"tax_account": 123,
"payout_account": 123,
"cta_account": 123,
"oci_translation_account": 123,
"fixed_asset_disposal": 123,
"fixed_asset_impairment_loss": 123,
"bad_debt_account": 123,
"dispute_expense_account": 123,
"dispute_reinstatement_account": 123,
"retained_earnings": 123
}Response
When enabled, recognized discounts post to the discount account instead of netting into revenue.
When enabled, fixed assets placed in service after the threshold day will begin depreciation the following month (full-month depreciation only)
Day of month threshold (0-31). Assets placed in service AFTER this day will start depreciation the following month
0 <= x <= 31When enabled, prepaid amortizations will use whole-month accounting (no proration of first/last months)
Day of month threshold (1-31), or blank to disable. Whole-month prepaid amortizations starting AFTER this day begin their schedule the following month; the end date is unchanged
1 <= x <= 31When enabled, invoice payments will be split by line items
When enabled, elimination entries are broken out by department in addition to account and entity
When enabled, the Retained Earnings account's directly posted balances combine with the calculated retained earnings into a single line on the balance sheet and trial balance.
Account for Stripe platform/subscription fees. Falls back to processing_fees if not set.
Account for dispute withdrawals (debit) and dispute reinstatement reversals (credit). Falls back to bad_debt_account if not set.
Account credited when a dispute is reinstated (won). Falls back to dispute_expense_account if not set.
Equity account that holds a migrated opening Retained Earnings balance. When folding is enabled, its directly posted balances combine with the calculated retained earnings into a single line on reports.