curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger"
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/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.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger",
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/general-ledger"
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/general-ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger")
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>"
},
"account": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"normal_balance": "<string>"
},
"from": "2023-12-25",
"to": "2023-12-25",
"opening_balance": 123,
"closing_balance": 123,
"lines": {
"data": "<array>",
"meta": {
"per_page": 123,
"next_cursor": "<string>",
"prev_cursor": "<string>"
}
},
"currency_code": "<string>",
"currency_exponent": 123
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}View general ledger (organization)
Lists the movements of one account with opening and closing balances over a period, page by page (organization space).
curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger"
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/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.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger",
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/general-ledger"
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/general-ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{book}/reports/general-ledger")
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>"
},
"account": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"normal_balance": "<string>"
},
"from": "2023-12-25",
"to": "2023-12-25",
"opening_balance": 123,
"closing_balance": 123,
"lines": {
"data": "<array>",
"meta": {
"per_page": 123,
"next_cursor": "<string>",
"prev_cursor": "<string>"
}
},
"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 account parameter is required and must be an account of this book.
- per_page is an integer from 1 to 100; to must be on or after from.
- The book needs a fiscal year covering
to(any fiscal year whentois not sent) to supply the currency, 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 whose start and end dates define the window; when sent, from and to are ignored.
Accepted but not used by this report; use fiscal_year_id or from/to.
Start of the window, ISO 8601 date. Without it the ledger starts at the first line and the opening balance is 0. Ignored when fiscal_year_id is sent.
End of the window, ISO 8601 date, on or after from. Without it the ledger runs to the last line. The book needs a fiscal year containing this date (or, without it, any fiscal year) to supply the currency, otherwise the call answers 404.
Required. Identifier of the account to list (27-character KSUID string).
Number of items per page.
1 <= x <= 100Position in the list. Pass the meta.next_cursor or meta.prev_cursor value of the previous page; leave it out to get the first page.
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
The account whose movements are listed.
Show child attributes
Show child attributes
Start date of the window used, ISO 8601 date format; null when the request set none.
End date of the window used, ISO 8601 date format; null when the request set none.
Signed balance of the account (debits minus credits) over every line before from, in minor units of currency_code (divide by 10 to the power currency_exponent). 0 when there is no from.
Opening balance plus the signed movements of the window, in minor units of currency_code (divide by 10 to the power currency_exponent).
One page of movements, ordered by accounting date. An object with data and meta.
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.