Skip to main content

Reference data and other lookups

Lookup tables and assorted catalog data: branch offices, risk groups, association types, leads, and business volume questionnaires.

All examples require a JWT — get one from the homepage first.

Branch offices

query listBranchOffices($first: Int) {
branchOffices(first: $first) {
totalCount
nodes {
id
name
}
}
}

Sortable fields: id, name. Filterable fields: id. Soft-deleted branch offices are excluded.

Risk groups

query listRiskGroups($first: Int) {
riskGroups(first: $first) {
totalCount
nodes {
id
name
description
externalId
isAccountingRequired
isStatutesRequired
isSummaryRequired
}
}
}

No where or order arguments are exposed for this query — only pagination. Use the id you find here when calling createOrganizationInvitation.

Association types

Returns the global catalog of organization association types (e.g. ApS, A/S, foundation). Not bank-scoped. Names live on associationTypeLocalizations keyed by language.

query listAssociationTypes($first: Int) {
associationType(first: $first) {
totalCount
nodes {
id
associationTypeLocalizations {
languageCode
name
}
}
}
}

Filterable fields: id (no order).

Leads

query listLeads($first: Int) {
leads(first: $first) {
totalCount
nodes {
id
state
createdDate
fulfillDate
organizationName
vatNumber
contactPerson {
name
email
phoneNumber
}
}
}
}

Sortable fields: createdDate, fulfillDate, state. Filterable fields: id, createdDate, fulfillDate, state.

Business volume questionnaires

These behave differently from the rest of the API: a revision body is returned as a Base64-encoded JSON string in the base64 field. You decode it client-side to inspect the questions, sections, and options.

query listBusinessVolumes($first: Int) {
businessVolumes(first: $first) {
totalCount
nodes {
id
name
questionnaireId
}
}
}

Sortable fields: id, name. Filterable fields: id, questionnaireId.

Get a specific revision

query getBusinessVolumeRevision($input: GetBusinessVolumeRevisionByIdInput!) {
businessVolumeRevision(input: $input) {
base64
}
}

The base64 string decodes (via standard atob or Buffer.from(base64, 'base64')) into a JSON object with sections, questions, examples, and options. Throws GraphQLException if the business volume doesn't belong to your bank or the revision number is out of range.

Deprecated: mainBusinessVolumeActiveRevision

A separate query returns "the main" revision in the same Base64 format. It's marked deprecated because the concept of a single main business volume no longer applies — use businessVolumes to find the volume you want, then businessVolumeRevision for a specific revision.