Skip to main content
Version: v2

Aggregate service

The Aggregate service is aimed to aggregate bank transactions of a household (or client) and combine this with the profile of the household. In the contrary to the Pivot service, the transactions are now organized to a personalized scheme. The scheme also contains underlying system categories.

LinX offers the following aggregate results:

  • Averages per category per month
  • A household profile, containing the by LinX detectable values.

The Aggregate Service requires at least twelve months of data as input, else it will throw an error.

Calling the Aggregate service

Endpoint:      https://linx.invers.nl:8100/api/linx/aggregate
Method: POST

Header: ApiKey: string (required)
X-Request-ID: string (required)
ClientId: string (optional)
InputHash: string (optional)
SchemaId: int (optional)
In the absence of a Schema ID, our standard scheme will be used

Body: Data: byte[] (required)

Errors: 400, 403 or 500

Information

FieldTypeDescription
AggregatedAggregatedAggregate according to scheme
ProfileHouseholdProfile based on Nibud

Aggregated

FieldTypeDescription
IdIntegerInternal parameter
NameStringScheme name
TitleStringScheme title
DescriptionStringInternal parameter
NodesArray of Nodes
TransactionsIntegerNumber of transactions
CategorizedIntegerNumber of transactions with a category
AmountDecimalTotal amount
DebitDecimalTotal debited
CreditDecimalTotaal credited
FromDateDate of first transaction
ToDateDate of last transaction
ImportedbooleanInternal parameter

Node

Contains information about groups

FieldTypeDescription
IdIntegerGroup identifier
NameStringGroup name
TitleStringGroup title
DescriptionStringInternal Parameter
TooltipStringInternal Parameter
TypeEnumInternal Parameter
CosttypeEnumInternal Parameter
VoorbeeldIntegerInternal Parameter
BasisIntegerInternal Parameter
NodesArray of Nodes
CategoriesArray of CategoryRubrieken
PostenArray of ItemsNibud items
AmountDecimal
ValueDecimalRounded off amount
InterpolatedAmountDecimal
isEnabledbooleanInternal Parameter
isVisiblebooleanInternal Parameter
SyncKeyUUIDInternal Parameter

Category

FieldTypeDescription
IdIntegerCategory identifier
NameStringCategory name
TypeEnumCategory type:
None = 0
Income = 1
Expenses = 2
AmountDecimal
ValueIntegerRounded off amount
CountIntegerInternal parameter

Items

Item (Or Posts) are part of the Nibud scheme.

FieldTypeDescription
IdIntegerItem identifier
PostStringItem
NameStringItem name
VoorbeeldIntegerInternal parameter
BasisIntegerInternal parameter

Profile

FieldTypeDescription
BesteedbaarInkomenDecimalNet disposable income per month
HoofdpersonenArray of main charactersMain household characters
HuisgenotenArray of HousematesHousemates of the household
KinderenArray of ChildrenChildren
AutosArray of CarsCars
WoningResidenceInformation on the residence
IncomesArrayInformation on the income sources

For more information on the contents of the profile output, see Profiling Service.

Output (example)


{
"aggregated": {
"id": 0,
"name": "string",
"title": "string",
"description": "string",
"nodes": [
{
"id": 0,
"name": "string",
"title": "string",
"description": "string",
"tooltip": "string",
"type": "none",
"costType": "none",
"voorbeeld": 0,
"basis": 0,
"nodes": [
null
],
"categories": [
{
"id": 0,
"name": "string",
"type": "none",
"amount": 0,
"value": 0,
"count": 0
}
],
"posten": [
{
"id": 0,
"post": "string",
"name": "string",
"voorbeeld": 0,
"basis": 0
}
],
"amount": 0,
"value": 0,
"interpolatedAmount": 0,
"isEnabled": true,
"isVisible": true,
"syncKey": "string"
}
],
"transactions": 0,
"categorized": 0,
"amount": 0,
"debit": 0,
"credit": 0,
"from": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"to": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"imported": true
},
"profile": {
"besteedbaarInkomen": 0,
"hoofdpersonen": [
{
"valid": true,
"geboortedatum": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"geslacht": "man",
"eigenRisico": "categorie1"
}
],
"huisgenoten": [
{
"valid": true,
"geboortedatum": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"geslacht": "man"
}
],
"kinderen": [
{
"valid": true,
"geboortedatum": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"geslacht": "man",
"schooltype": "basis",
"woonsituatie": "thuiswonend",
"leeftijd": "nul_tot_en_met_vijf",
"kinderbijslag": 0,
"toelichting": "string"
}
],
"autos": [
{
"valid": true,
"kilometersPerJaar": 0,
"nieuwwaarde": 0,
"status": "nieuw",
"soort": "geen",
"kilometer": "less_Then_10000",
"voertuig": {
"kenteken": "string",
"voertuigsoort": "string",
"merk": "string",
"handelsbenaming": "string",
"inrichting": "string",
"datum_tenaamstelling": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"zuinigheidslabel": "string",
"catalogusprijs": 0,
"aantal_zitplaatsen": 0,
"vervaldatum_apk": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"type": "string",
"variant": "string",
"taxi_indicator": "string",
"wam_verzekerd": "string",
"api_gekentekende_voertuigen_brandstof": "string",
"brandstof": [
{
"brandstof_omschrijving": "string",
"brandstof_volgnummer": 0,
"brandstofverbruik_buiten": 0,
"brandstofverbruik_gecombineerd": 0,
"brandstofverbruik_stad": 0,
"co2_uitstoot_gecombineerd": 0,
"emissiecode_omschrijving": "string",
"geluidsniveau_stationair": 0,
"kenteken": "string",
"milieuklasse_eg_goedkeuring_licht": "string",
"nettomaximumvermogen": 0,
"toerental_geluidsniveau": 0
}
]
}
}
],
"woning": {
"wozWaarde": 0,
"woz": "less_Then_150000",
"valid": true,
"bouwjaar": "na2001",
"energielabel": "a",
"soort": "huurwoning",
"typeWoning": "vrijstaandGroot",
"huurPerMaand": 0,
"hypotheekPerMaand": 0,
"gemeenteId": 0,
"adres": {
"id": "string",
"default": true,
"street": "string",
"houseNumber": "string",
"houseNumberAddition": "string",
"zipcode": "string",
"city": {
"id": "string",
"name": "string"
},
"municipality": {
"id": "string",
"name": "string"
},
"province": {
"id": "string",
"name": "string"
},
"country": "string",
"type": "string",
"purpose": "unknown",
"surface": 0,
"surfaceArea": 0,
"latitude": 0,
"longitude": 0
}
},
"incomes": [
{
"id": 0,
"partner": true,
"title": "string",
"tooltip": "string",
"unit": "none",
"div": 0,
"value": 0,
"categories": [
{
"id": 0,
"amount": 0
}
]
}
]
}
}