curl --request GET \
--url https://api.exowpee.com/v1/accounting/client/reports/statements/cash-flow \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/client/reports/statements/cash-flow"
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/client/reports/statements/cash-flow', 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/client/reports/statements/cash-flow",
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/client/reports/statements/cash-flow"
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/client/reports/statements/cash-flow")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/reports/statements/cash-flow")
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>"
},
"fiscal_year": {
"id": "<string>",
"label": "<string>",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"is_closed": true
},
"prior_fiscal_year": {
"id": "<string>",
"label": "<string>",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"is_closed": true
},
"opening": {
"code": "ZA",
"label": "Trésorerie nette au début de l'exercice",
"label_n": "<string>",
"label_n_1": "<string>",
"n": 123,
"n_1": 123
},
"lines": "<array>",
"closing": {
"code": "ZH",
"label": "Trésorerie nette à la clôture de l'exercice",
"label_n": "<string>",
"label_n_1": "<string>",
"n": 123,
"n_1": 123
},
"coherence": {
"expected": 123,
"actual": 123,
"ok": true
},
"currency_code": "<string>",
"currency_exponent": 123
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}View official cash flow (client account)
Shows the official SYSCOHADA cash flow statement of one book (client space).
curl --request GET \
--url https://api.exowpee.com/v1/accounting/client/reports/statements/cash-flow \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/client/reports/statements/cash-flow"
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/client/reports/statements/cash-flow', 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/client/reports/statements/cash-flow",
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/client/reports/statements/cash-flow"
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/client/reports/statements/cash-flow")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/reports/statements/cash-flow")
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>"
},
"fiscal_year": {
"id": "<string>",
"label": "<string>",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"is_closed": true
},
"prior_fiscal_year": {
"id": "<string>",
"label": "<string>",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"is_closed": true
},
"opening": {
"code": "ZA",
"label": "Trésorerie nette au début de l'exercice",
"label_n": "<string>",
"label_n_1": "<string>",
"n": 123,
"n_1": 123
},
"lines": "<array>",
"closing": {
"code": "ZH",
"label": "Trésorerie nette à la clôture de l'exercice",
"label_n": "<string>",
"label_n_1": "<string>",
"n": 123,
"n_1": 123
},
"coherence": {
"expected": 123,
"actual": 123,
"ok": true
},
"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 must have access to the book.
- The fiscal_year_id is required and must be a fiscal year of the book.
- An account with activity that no line of the statement layout claims makes the call fail with a business-rule error naming the account, rather than silently leaving it out.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Identifier of the fiscal year to report on (27-character KSUID string). Required. It must be a fiscal year of the selected book; a year of another book fails validation.
Opt-in so a filed statement keeps the plain document, without the per-line detail.
Response
The book (accounting owner) the statement was computed for.
Show child attributes
Show child attributes
The fiscal year the statement covers, as requested by fiscal_year_id.
Show child attributes
Show child attributes
The fiscal year of the same book that ended before this one started (the most recent one), used for the N-1 comparative column. Null when the book has no earlier year.
Show child attributes
Show child attributes
Net cash at the start of the year (line ZA of the statement).
Show child attributes
Show child attributes
Lines of the cash flow statement between opening and closing cash, in layout order, each with code, label, section, level, n and n_1, plus an accounts list only when with_accounts is true. Amounts are integers in minor units; the lines are all 0 when the layouts are not available.
Net cash at the end of the year (line ZH of the statement).
Show child attributes
Show child attributes
Cash check of the statement: expected, actual and ok. Closing cash should equal opening cash plus the variation; a mismatch is reported here, not refused.
Show child attributes
Show child attributes
ISO currency code of the fiscal year. All amounts of the response are in this currency.
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.