Skip to main content
Version: v2

Pivot group service

The Pivot group service is intended to aggregate the bank transactions of a household (or client). Transactions of multiple accounts (possibly several different banks) are merged and totalized after which averages will be calculated.

LinX offers the following pivot results:

  • Total per category per period. Aggregated per day, week, month, quarter, semester or year.
  • Averages per category per period.

Note: Averages are calculated over continuous periods of complete months, i.e. transactions from the first day until the last day of each month. Incomplete months are ignored.

The categories that are used in the Pivot group service can be found in the standard scheme (See Nibud scheme)

Calling the Pivot group service

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

Header: ApiKey: string (required)
X-Request-ID: string (required)
ClientId: string (optional)
InputHash: string (optional)
Options: int (optional) (default = 33)
Unit: int (optional) (default = 0)
KvK: json (optional)
SBI: string (optional)

Possible values: 0 = None
1 = Day
2 = Week
3 = Month
4 = Quarter
5 = Semester
6 = Year

Body: Data: byte[] (required)

Errors: 400, 403 or 500

Information

FieldTypeDescription
fromDatumDate of first transaction
toDatumDate of last transaction
unitEnumNone=0
Day=1
Week=2
Month=3
Quarter=4
Semester=5
Year=6
groupsArray of groupsGroups

Group

FieldTypeDescription
idIntegerGroup identifier
nameStringGroup name
categoriesArray of 0 CategoriesCategories, dummy variable
amountFloatTotaal bedrag
averageFloatAverage amount
countIntegerNumber of aggregated transactions
valuesArray of the valuesThe value(s) of the aggregation

Value

FieldTypeDescription
fromDateStart date
toDateEnd date
amountFloatAmount
countIntegerNumber of transactions in this period

Output (example)


{
"from": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"to": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"unit": "none",
"groups": [
{
"id": 0,
"name": "string",
"categories": [
{
"id": 0,
"name": "string",
"type": "none",
"amount": 0,
"average": 0,
"count": 0,
"values": [
{
"from": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"to": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"amount": 0,
"count": 0
}
]
}
],
"amount": 0,
"average": 0,
"count": 0,
"values": [
{
"from": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"to": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"amount": 0,
"count": 0
}
]
}
]
}