curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/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.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"book": {
"type": "<string>",
"id": "<string>"
},
"as_of": "2023-12-25",
"assets": [
{
"account_id": "<string>",
"code": "<string>",
"name": "<string>",
"class": "<string>",
"amount": "<string>",
"books": [
"<unknown>"
]
}
],
"equity_liabilities": [
{
"account_id": "<string>",
"code": "<string>",
"name": "<string>",
"class": "<string>",
"amount": "<string>",
"books": [
"<unknown>"
]
}
],
"result_line": {},
"totals": {
"assets": 0,
"equity_liabilities": 0
},
"currency_code": "<string>",
"currency_exponent": 123
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}View balance sheet (organization)
Shows the management balance sheet of one book (organization space).
curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/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.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/balance-sheet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"book": {
"type": "<string>",
"id": "<string>"
},
"as_of": "2023-12-25",
"assets": [
{
"account_id": "<string>",
"code": "<string>",
"name": "<string>",
"class": "<string>",
"amount": "<string>",
"books": [
"<unknown>"
]
}
],
"equity_liabilities": [
{
"account_id": "<string>",
"code": "<string>",
"name": "<string>",
"class": "<string>",
"amount": "<string>",
"books": [
"<unknown>"
]
}
],
"result_line": {},
"totals": {
"assets": 0,
"equity_liabilities": 0
},
"currency_code": "<string>",
"currency_exponent": 123
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}journal_entries.viewreports
Conditions
- The accounting module must be part of the organization’s plan.
- In the organization space, the caller needs an accounting access grant on the book.
- The book must have a fiscal year that contains as_of (or today when nothing is sent), or the one named by fiscal_year_id; otherwise the call answers 404.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the book the report covers (27-character KSUID string): the organization itself or one of its companies of the session organization.
Query Parameters
Fiscal year used to find the report date and currency when as_of is not sent: the report is stated at its end date. When as_of is sent without it, the year containing that date is used.
Accepted but not used by this report; send fiscal_year_id or as_of instead.
Accepted but not used by this report; send as_of instead.
Accepted but not used by this report; send as_of instead.
Date to state the balance sheet at, ISO 8601 format. Defaults to the end date of the fiscal year used, or, without any year parameter, of the fiscal year containing today. Without fiscal_year_id, the book must have a fiscal year containing the date, otherwise the call answers 404.
Response
The book the report covers. In the client space it is the session client's book; in the organization space it is the book named in the URL.
Show child attributes
Show child attributes
Date the balance sheet is stated at, ISO 8601 date format: the requested as_of, or the end date of the fiscal year used when none was sent.
Asset lines (accounts of classes 2 and 3, and class 4 and 5 accounts whose balance is a debit). Each line has account_id, code, name, class and amount in minor units; contra-accounts carry a negative amount.
Show child attributes
Show child attributes
Equity and liability lines (accounts of class 1, and class 4 and 5 accounts whose balance is a credit). Same line shape as assets.
Show child attributes
Show child attributes
Result of the year shown on the 131 (profit) or 139 (loss) line: code, label, amount in minor units, and provisional. It is provisional and computed from the entries when the year is not closed yet, and the posted closing amount otherwise. Null when the year is closed and no 131/139 line is posted.
Totals of the two sides, assets and equity_liabilities, in minor units. The provisional result is added to the equity and liabilities side.
Show child attributes
Show child attributes
ISO 4217 code of the currency of every amount in the report.
Number of decimal places of the currency (0 for XOF). An amount in minor units divided by 10 to this power gives the amount in the currency.