curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/books/{analyticSection}/reports/analytic/section/{analytic_section}/lines \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{analyticSection}/reports/analytic/section/{analytic_section}/lines"
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/{analyticSection}/reports/analytic/section/{analytic_section}/lines', 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/{analyticSection}/reports/analytic/section/{analytic_section}/lines",
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/{analyticSection}/reports/analytic/section/{analytic_section}/lines"
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/{analyticSection}/reports/analytic/section/{analytic_section}/lines")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{analyticSection}/reports/analytic/section/{analytic_section}/lines")
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>"
},
"section": {
"id": "<string>",
"code": "<string>",
"label": "<string>",
"axis": {
"id": "<string>",
"code": "<string>",
"label": "<string>"
}
},
"from": "2023-12-25",
"to": "2023-12-25",
"lines": {
"data": "<array>",
"meta": {
"per_page": 123,
"next_cursor": "<string>",
"prev_cursor": "<string>"
}
},
"currency_code": "<string>",
"currency_exponent": 123
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}List section entry lines (organization)
See the individual entry lines allocated to one analytic section.
curl --request GET \
--url https://api.exowpee.com/v1/accounting/organization/books/{analyticSection}/reports/analytic/section/{analytic_section}/lines \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{analyticSection}/reports/analytic/section/{analytic_section}/lines"
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/{analyticSection}/reports/analytic/section/{analytic_section}/lines', 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/{analyticSection}/reports/analytic/section/{analytic_section}/lines",
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/{analyticSection}/reports/analytic/section/{analytic_section}/lines"
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/{analyticSection}/reports/analytic/section/{analytic_section}/lines")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{analyticSection}/reports/analytic/section/{analytic_section}/lines")
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>"
},
"section": {
"id": "<string>",
"code": "<string>",
"label": "<string>",
"axis": {
"id": "<string>",
"code": "<string>",
"label": "<string>"
}
},
"from": "2023-12-25",
"to": "2023-12-25",
"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 included in the plan of the organization.
- The caller must have been granted access to the book named in the path.
- The section must belong to the book.
- fiscal_year_id and fiscal_period_id, when sent, must belong to this book.
- to must not be before from.
- The period is taken from fiscal_period_id first, then fiscal_year_id, then from/to; when none is sent the fiscal year covering today is used, and the call is refused when no fiscal year covers today.
- per_page must be between 1 and 100.
- When the period has an end date, a fiscal year of the book must cover that date to read the currency; otherwise the call answers not found. With only a start date, the latest fiscal year of the book is used.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the book (27-character KSUID string): the organization itself or one of its companies. The generated name is misleading; this segment is the book, not the line or section.
Identifier of the analytic section (27-character KSUID string) whose lines are listed.
Response
The book the report was computed for.
Show child attributes
Show child attributes
The analytic section whose lines are listed.
Show child attributes
Show child attributes
Start of the period covered, as a date (YYYY-MM-DD). Null when the range was given with only a to date.
End of the period covered, as a date (YYYY-MM-DD). Null when the range was given with only a from date.
A cursor page of the allocations on this section within the period, ordered by accounting date then allocation id.
Show child attributes
Show child attributes
ISO currency code of the fiscal year covering the end of the period (the latest fiscal year of the book when the period has no end date); all amounts 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.