Accounting
booking_headers
Booking headers from the general ledger, enriched with cost centre, person and creditor references and the associated floor area in m².
GET
/
v1
/
accounting
/
booking_headers
booking_headers
curl --request GET \
--url https://api.trassets.ai/v1/accounting/booking_headers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.trassets.ai/v1/accounting/booking_headers"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trassets.ai/v1/accounting/booking_headers', 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.trassets.ai/v1/accounting/booking_headers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.trassets.ai/v1/accounting/booking_headers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.trassets.ai/v1/accounting/booking_headers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trassets.ai/v1/accounting/booking_headers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"property_id": "<string>",
"creditor_id": "<string>",
"person_id": "<string>",
"booking_header_id": 123,
"booking_nr": 123,
"cost_center_id_name_concat": "<string>",
"booking_text": "<string>",
"initial_booking_text": "<string>",
"booking_barcode": "<string>",
"dms_link": "<string>",
"booking_date": "2023-12-25",
"booking_value": 123,
"m2": 123,
"property_structure_account_id": "<string>"
}
],
"count": 123,
"next_cursor": "<string>",
"total": 123
}{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "Missing required filter(s): ['property_id']",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "API key required",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Invalid or disabled API key",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Category or table not found",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Conflict",
"status": 409,
"detail": "Table was re-synced during pagination; restart without cursor.",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "query -> limit: Input should be greater than or equal to 1",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "Rate limit exceeded: 500 per 1 hour",
"instance": "/v1/accounting/booking_headers"
}Autorisierungen
Abfrageparameter
Maximum number of rows to return (max 100,000).
Erforderlicher Bereich:
1 <= x <= 100000Opaque pagination cursor from next_cursor in the response body of the previous page. Omit for the first page. When next_cursor is null, all rows have been fetched. Offset pagination is not supported on /v1/ endpoints.
Filter by property_id
Filter by booking_date
Filter by person_id
Filter by creditor_id
Antwort
Successful Response
Show child attributes
Show child attributes
Number of rows in data.
Pass as cursor for the next page; null on the last page.
Rows matching the query from the cursor position onward (on the first page: all matching rows).
⌘I
booking_headers
curl --request GET \
--url https://api.trassets.ai/v1/accounting/booking_headers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.trassets.ai/v1/accounting/booking_headers"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trassets.ai/v1/accounting/booking_headers', 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.trassets.ai/v1/accounting/booking_headers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.trassets.ai/v1/accounting/booking_headers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.trassets.ai/v1/accounting/booking_headers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trassets.ai/v1/accounting/booking_headers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"property_id": "<string>",
"creditor_id": "<string>",
"person_id": "<string>",
"booking_header_id": 123,
"booking_nr": 123,
"cost_center_id_name_concat": "<string>",
"booking_text": "<string>",
"initial_booking_text": "<string>",
"booking_barcode": "<string>",
"dms_link": "<string>",
"booking_date": "2023-12-25",
"booking_value": 123,
"m2": 123,
"property_structure_account_id": "<string>"
}
],
"count": 123,
"next_cursor": "<string>",
"total": 123
}{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "Missing required filter(s): ['property_id']",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "API key required",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Invalid or disabled API key",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Category or table not found",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Conflict",
"status": 409,
"detail": "Table was re-synced during pagination; restart without cursor.",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "query -> limit: Input should be greater than or equal to 1",
"instance": "/v1/accounting/booking_headers"
}{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "Rate limit exceeded: 500 per 1 hour",
"instance": "/v1/accounting/booking_headers"
}