Get General Ledger
curl --request GET \
--url https://api.meetcampfire.com/coa/api/general-ledgerimport requests
url = "https://api.meetcampfire.com/coa/api/general-ledger"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/general-ledger', 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/general-ledger",
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/general-ledger"
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/general-ledger")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/general-ledger")
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{
"results": [
{
"id": 123,
"entity": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"account_id": 123,
"account_number": "<string>",
"account_name": "<string>",
"account_type": "<string>",
"posted_at": "2023-12-25",
"debit_amount": 0,
"credit_amount": 0,
"debit_amount_book": 0,
"credit_amount_book": 0,
"debit_amount_native": 0,
"credit_amount_native": 0,
"balance_before_transaction": 0,
"balance_after_transaction": 123,
"balance_after_transaction_book": 123,
"balance_before_transaction_native": 0,
"balance_after_transaction_native": 123,
"bank_description": "<string>",
"journal": 123,
"journal_order": "<string>",
"journal_currency": "<string>",
"intercompany_journal": 123,
"department": 123,
"department_name": "<string>",
"vendor": 123,
"vendor_name": "<string>",
"tags": [
{
"id": "<string>",
"name": "<string>",
"group": "<string>",
"group_name": "<string>",
"parent": "<string>",
"parent_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z"
}
],
"opposing_account_name": "<string>",
"opposing_account_number": "<string>"
}
],
"count": 123,
"has_next": true,
"current_page": 123,
"total_pages": 123
}Financial Statements
Get General Ledger
Returns general-ledger transactions with running balances.
Each row includes a tags array with the transaction’s tags; a tag’s group/group_name identify the tag group (dimension) it belongs to. List a customer’s tag groups via /coa/api/tag-group and tags via /coa/api/tag.
GET
/
coa
/
api
/
general-ledger
Get General Ledger
curl --request GET \
--url https://api.meetcampfire.com/coa/api/general-ledgerimport requests
url = "https://api.meetcampfire.com/coa/api/general-ledger"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/general-ledger', 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/general-ledger",
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/general-ledger"
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/general-ledger")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/general-ledger")
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{
"results": [
{
"id": 123,
"entity": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"account_id": 123,
"account_number": "<string>",
"account_name": "<string>",
"account_type": "<string>",
"posted_at": "2023-12-25",
"debit_amount": 0,
"credit_amount": 0,
"debit_amount_book": 0,
"credit_amount_book": 0,
"debit_amount_native": 0,
"credit_amount_native": 0,
"balance_before_transaction": 0,
"balance_after_transaction": 123,
"balance_after_transaction_book": 123,
"balance_before_transaction_native": 0,
"balance_after_transaction_native": 123,
"bank_description": "<string>",
"journal": 123,
"journal_order": "<string>",
"journal_currency": "<string>",
"intercompany_journal": 123,
"department": 123,
"department_name": "<string>",
"vendor": 123,
"vendor_name": "<string>",
"tags": [
{
"id": "<string>",
"name": "<string>",
"group": "<string>",
"group_name": "<string>",
"parent": "<string>",
"parent_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z"
}
],
"opposing_account_name": "<string>",
"opposing_account_number": "<string>"
}
],
"count": 123,
"has_next": true,
"current_page": 123,
"total_pages": 123
}