curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/reports/balance-sheet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/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/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/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/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/reports/balance-sheet")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/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{
"books": [
"<unknown>"
],
"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,
"conversion": [
"<string>"
]
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}View combined balance sheet
Shows a balance sheet that combines several books of the organization.
curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/reports/balance-sheet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/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/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/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/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/reports/balance-sheet")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/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{
"books": [
"<unknown>"
],
"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,
"conversion": [
"<string>"
]
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}journal_entries.viewreports
Conditions
- The accounting module must be part of the organization’s plan.
- Not available to the client space: combined reports exist only in the organization space.
- books[] is optional, must be a list of at most 100 distinct identifiers, and every id must be a book you have an accounting access grant on; each refused id is reported at its index with a validation error. Without books[], every book you can access is combined.
- A book whose currency differs from the organization currency needs an exchange rate valid on the report date (the end date or as_of); without one the call is refused.
- The combination is a plain sum of the books: flows between the books are not removed, so it is not a consolidation.
- as_of is required.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Optional. Identifiers of the books to combine (27-character KSUID strings), each one a book you have an accounting access grant on. Without it every accessible book is combined.
Required. Date to state the combined balance sheet at, ISO 8601 format.
Response
The books included in the report: for each, type, id and name. These are the books you may access, narrowed to books[] when it was sent.
Date the combined balance sheet is stated at, ISO 8601 date format, as requested.
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 on the 131 (profit) or 139 (loss) line: code, label, amount, provisional and books (the share of each book, with its original amount). Provisional and computed from the entries of unclosed years, or the posted closing amount. Null when no year is open 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 organization currency, in which every amount is stated.
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.
Audit of the currency conversion into the organization currency. An object with target_currency_code, target_currency_exponent, rate_date and conversions (one entry per book: source currency, exchange rate id, rate, rate origin and the rounding adjustment on the debit and credit sides). conversions is an empty list when no book had any amount to convert. A rate valid on the report date (the end date or as_of) must exist for each book whose currency differs, otherwise the call is refused.
0 element