← Overview DE · EN

PROCON DATA · FOR TECHNICIANS Direct integration via the Tenant Integration Service

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.

GraphQL Bearer token Reverse IBAN lookup Wildcard search schema.org / JSON-LD

1 The principle of direct integration

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.

🔑 Authentication

Every request carries an Authorization: Bearer … header. No valid token, no access.

🔎 Query

Look up by key (IBAN, cost-center number) or free-text searchTerms with wildcards.

🧭 Assignment

A unique hit → the business partner and cost center are assigned to the document.

📝 Write-back

Optional: a fully checked document is posted into the KVS via createDocument.

2 Endpoint & security (Bearer token)

ProtocolGraphQL over HTTP POST (a single endpoint)
Endpointhttp://172.20.240.18:8000/graphql/
AuthenticationHTTP header Authorization: Bearer <TOKEN>
Content-Typeapplication/json
Schema (SDL)/integration/schema.graphqls — the full type definition
Security: the Bearer token is a secret — keep it in a secure store (environment variable, secret manager), never in source code or logs. In production the endpoint is served over TLS (HTTPS); a token without transport encryption can be intercepted. Tokens should be rotatable and scoped per tenant / integration.

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" } ] } }
}

3 Access by key & wildcard search

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*).

KeyGraphQLExample value
IBAN (reverse lookup)businessPartners · type: IBANAT61 1904 3002 3457 3201
VAT IDbusinessPartners · type: VAT_IDATU16093803
Company register no.businessPartners · type: COMPANY_REGISTER_NUMBERFN 123456a
Cost-center numbercostCenters · type: COST_CENTER60531000
Case numbercostCenters · type: CASE_NUMBERZ01:111599
Free text / wildcardsearchTerms: ["Inter*", "*bau*"]name, address, …
Within a list (e.g. multiple 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.

4 Implementing it in Python

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"]

Health probe

data = graphql("query { health { time database } }")
print(data["health"])        # {'time': '2026-06-09T…+02:00', 'database': True}

Resolve a business partner by IBAN (reverse lookup)

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")

Check a cost center by number

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")

Free-text search with wildcards

# 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"])

Write a document back into the KVS (optional)

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"}
    ],
}})

5 The data model at a glance

Query / MutationPurpose
healthLiveness/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.
documentsByBusinessPartnerAll documents of one partner within a period.
documentsByCostCenterAll 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.
Addresses follow schema.org/PostalAddress; unstructured extras travel as JSON-LD (additionalData). Amounts are Decimal (as a string, EUR); dates are ISO-8601.