Instead of shuffling files around, FrontDoor.at connects to your accounting / ledger (KVS) system directly — through a GraphQL API. While a document is being processed, its business partner and cost center are resolved and assigned live from your system. Access is by key such as IBAN or cost-center number, or via free-text search with wildcards. Secured with a Bearer token.
The Tenant Integration Service (KVS) is a lean GraphQL API that FrontDoor.at consumes as a client. It serves the authoritative master data of your system — business partners (organizations/persons), cost centers and already-posted documents — and, in reverse, accepts new documents and organizations. This removes any manual master-data reconciliation: at the moment a document is processed, FrontDoor.at queries exactly the records needed for a correct assignment.
Every request carries an Authorization: Bearer … header. No valid token, no access.
Look up by key (IBAN, cost-center number) or free-text searchTerms with wildcards.
A unique hit → the business partner and cost center are assigned to the document.
Optional: a fully checked document is posted into the KVS via createDocument.
| Protocol | GraphQL over HTTP POST (a single endpoint) |
|---|---|
| Endpoint | http://172.20.240.18:8000/graphql/ |
| Authentication | HTTP header Authorization: Bearer <TOKEN> |
| Content-Type | application/json |
| Schema (SDL) | /integration/schema.graphqls — the full type definition |
A request always consists of exactly two JSON fields: query and variables.
POST /graphql/ HTTP/1.1
Host: 172.20.240.18:8000
Authorization: Bearer <TOKEN>
Content-Type: application/json
{
"query": "query($filter: BusinessPartnerFilter!){ businessPartners(filter:$filter){ name status } }",
"variables": { "filter": { "identifiers": [ { "type": "IBAN", "value": "AT611904300234573201" } ] } }
}
Business partners and cost centers are found either by a typed key
(exact match) or by free-text searchTerms.
searchTerms are OR-combined and allow
wildcards (e.g. Inter*).
| Key | GraphQL | Example value |
|---|---|---|
| IBAN (reverse lookup) | businessPartners · type: IBAN | AT61 1904 3002 3457 3201 |
| VAT ID | businessPartners · type: VAT_ID | ATU16093803 |
| Company register no. | businessPartners · type: COMPANY_REGISTER_NUMBER | FN 123456a |
| Cost-center number | costCenters · type: COST_CENTER | 60531000 |
| Case number | costCenters · type: CASE_NUMBER | Z01:111599 |
| Free text / wildcard | searchTerms: ["Inter*", "*bau*"] | name, address, … |
identifiers or
searchTerms) the values are combined with OR;
the dimensions (identifiers vs. status vs. search) are combined with AND.
Omitted dimensions impose no constraint.
The standard requests library is enough — no GraphQL SDK
required. A thin wrapper encapsulates the endpoint, token and error handling:
import requests
ENDPOINT = "http://172.20.240.18:8000/graphql/"
TOKEN = "<your-bearer-token>" # load from an environment variable / secret manager
def graphql(query: str, variables: dict | None = None) -> dict:
response = requests.post(
ENDPOINT,
json={"query": query, "variables": variables or {}},
headers={"Authorization": f"Bearer {TOKEN}"},
timeout=15,
)
response.raise_for_status()
payload = response.json()
if payload.get("errors"):
raise RuntimeError(payload["errors"])
return payload["data"]
data = graphql("query { health { time database } }")
print(data["health"]) # {'time': '2026-06-09T…+02:00', 'database': True}
BP_QUERY = """
query($filter: BusinessPartnerFilter!) {
businessPartners(filter: $filter) {
internalId guid name status
identifiers { type value }
}
}
"""
def partner_by_iban(iban: str) -> dict | None:
data = graphql(BP_QUERY, {
"filter": {"identifiers": [{"type": "IBAN", "value": iban.replace(" ", "")}]}
})
hits = data["businessPartners"]
return hits[0] if len(hits) == 1 else None # assign only on a unique hit
partner = partner_by_iban("AT61 1904 3002 3457 3201")
CC_QUERY = """
query($filter: CostCenterFilter!) {
costCenters(filter: $filter) {
costCenter caseNumber status bookingBlock
}
}
"""
def cost_center(number: str) -> dict | None:
data = graphql(CC_QUERY, {
"filter": {"identifiers": [{"type": "COST_CENTER", "value": number}]}
})
hits = data["costCenters"]
if len(hits) == 1 and hits[0]["bookingBlock"]:
print("Warning: booking block on", hits[0]["costCenter"])
return hits[0] if len(hits) == 1 else None
cc = cost_center("60531000")
# All partners whose text fields start with "Inter" OR contain "bau":
data = graphql(BP_QUERY, {"filter": {"searchTerms": ["Inter*", "*bau*"]}})
for bp in data["businessPartners"]:
print(bp["name"], "—", bp["status"])
CREATE_DOC = """
mutation($input: CreateDocumentInput!) {
createDocument(input: $input) {
data { documentNumber documentDate }
businessPartner { name }
}
}
"""
data = graphql(CREATE_DOC, {"input": {
"data": {"documentNumber": "RE-2026-0815", "documentDate": "2026-06-09"},
"partner": {"type": "IBAN", "value": "AT611904300234573201"},
"costCenterBookings": [
{"amount": "200.00", "costCenter": {"type": "COST_CENTER", "value": "60531000"},
"contraAccount": "5000"}
],
}})
| Query / Mutation | Purpose |
|---|---|
health | Liveness/readiness — server time + reachability of the data source. |
businessPartners(filter) | Business partners by identifier (IBAN, VAT ID, register no., …), status, geo proximity or searchTerms. |
costCenters(filter) | Cost centers by number/case number/BDKZ, life-cycle status, booking block, region, financing program or search. |
documents(filter) | Documents (number, document-date range). Default window: last 3 years. |
documentsByBusinessPartner | All documents of one partner within a period. |
documentsByCostCenter | All documents posted to one cost center within a period. |
createOrganization(input) | Register a new organization as a business partner. |
createDocument(input) | Create a document together with its cost-center postings. |
additionalData).
Amounts are Decimal (as a string, EUR); dates are ISO-8601.