curl --request GET \
--url https://api.exowpee.com/v1/accounting/client/reports/income-statement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/client/reports/income-statement"
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/income-statement', 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/income-statement",
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/income-statement"
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/income-statement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/reports/income-statement")
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>"
},
"from": "2023-12-25",
"to": "2023-12-25",
"produits": {},
"charges": {},
"hao": {
"charges": {},
"produits": {}
},
"participation_line": {},
"income_tax_line": {},
"result": 123,
"currency_code": "<string>",
"currency_exponent": 123
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}View income statement (client account)
Shows the management income statement of one book (client space).
curl --request GET \
--url https://api.exowpee.com/v1/accounting/client/reports/income-statement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/client/reports/income-statement"
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/income-statement', 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/income-statement",
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/income-statement"
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/income-statement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/reports/income-statement")
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>"
},
"from": "2023-12-25",
"to": "2023-12-25",
"produits": {},
"charges": {},
"hao": {
"charges": {},
"produits": {}
},
"participation_line": {},
"income_tax_line": {},
"result": 123,
"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.
- At least one of fiscal_year_id, fiscal_period_id or a from and to pair must be sent; otherwise the call is refused with a validation error.
- to must be on or after from.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Identifier of a fiscal year of this book (27-character KSUID string). At least one of fiscal_year_id, fiscal_period_id or a from and to pair is required.
Identifier of a fiscal period of this book (27-character KSUID string). Takes precedence over the fiscal year and over from/to.
Start of the range, a date in ISO 8601 format. Used together with to; a range given alone is ignored. A from/to pair takes precedence over fiscal_year_id.
End of the range, a date in ISO 8601 format, on or after from. Used together with from.
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
Start date of the window actually used, in ISO 8601 date format.
End date of the window actually used, in ISO 8601 date format.
Revenue (class 7 accounts). An object with rows (accounts of the bucket: account_id, code, name, amount; plus books in a combined report) and total. Amounts are in minor units of currency_code (divide by 10 to the power currency_exponent). Closing entries of the year are left out.
Expenses (class 6 accounts). An object with rows (accounts of the bucket: account_id, code, name, amount; plus books in a combined report) and total. Amounts are in minor units of currency_code (divide by 10 to the power currency_exponent). Closing entries are left out.
Out-of-ordinary-activity items (class 8 accounts), split into charges and produits.
Show child attributes
Show child attributes
Employee profit-sharing line of the statement. An object with rows (accounts of the bucket: account_id, code, name, amount; plus books in a combined report) and total. Amounts are in minor units of currency_code (divide by 10 to the power currency_exponent).
Income tax line of the statement (accounts of the income-tax prefix 89). An object with rows (accounts of the bucket: account_id, code, name, amount; plus books in a combined report) and total. Amounts are in minor units of currency_code (divide by 10 to the power currency_exponent).
Net result: revenue minus expenses, plus out-of-ordinary income minus out-of-ordinary expenses, minus profit-sharing and income tax. Positive for a profit, negative for a loss, in minor units of currency_code (divide by 10 to the power currency_exponent).
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.