Skip to main content
Version: v2

Periodical expenses service

The Periodical expenses service is intended to predict fixed and frequent expenses. Among other thing this covers:

  • Contract (rent, energy, telephone, internet, water, etc.)
  • Insurance (medical, home, liability, travel, life, etc.)
  • Subscriptions (streaming services, newspapers, magazines, etc.)
  • Contributions (sports, associations, school fees, etc.)
  • Taxes
  • Charges (sewage costs, etc.)
  • Transactions to (internal) accounts

Calling the Periodical Expenses Service

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

Header: ApiKey: string (required)
X-Request-ID: string (required)
ClientId: string (optional)
InputHash: string (optional)
Options: int (optional) (default = 33)

Body: Data: byte[] (required)

Errors: 400, 403 or 500

Information

FieldTypeDescription
accountStringBank Account Number
itemsArray of itemsPeriodical Expenses

Account

FieldTypeDescription
numberStringBank account number without layout formatting
formattedNumberStringBank account number with layout formatting
ibanStringIBAN
bicStringBIC
beginBalanceDateDateDate of opening balance
beginBalanceDecimalValue of opening balance
endBalanceDateDateDate of closing balance
endBalanceDecimalValue of closing balance
countryStringCountry code in ISO 2 characters

Items

FieldTypeDescription
probabilityEnumLow
Medium
High
frequencyTypeEnumNone
Daily
Weekly
Monthly
Yearly
intervalIntegerInterval of recurrency (i.e. 3 months)
contractStringIBAN
dateDateDate of recurrence
amountDecimal
typeStringPayment code
categoryCategoryCategory
accountString[Contra Account](#Contra Account)
nameStringName
patternStringInternal parameter
transactionsArray of transactionsTransactions

Category

FieldTypeDescription
idIntegerCategory identifier
nameStringCategory name
typeEnumNone
Income
Expenses
costTypeNone
Fix
Variable
isInternalBooleanTrue if it is an internal transaction
isStrictBooleanInternal Parameter
colorIntegerInternal parameter
taxpostStringTaxpost
SyncKeyUUIDInternal Parameter
groupIdGroupGroup identifier to which the category belongs

Contra Account

FieldTypeDescription
numberStringBank account number
formattedNumberStringBank account number with layout formatting
ibanStringIBAN
incassantStringCollection identifier
mandateStringCollection mandate
idIntegerInternal parameter
countryStringCountry code ISO 2 characters
nameStringname of contra account
originalNameStringOriginal name of the contra account
referenceStringMutation reference
businessIdIntegerBusiness identifier of the counterpart. Can be empty.

Transactions

FieldTypeDescription
bookDateDateBook date
interestDateDateInterest date
amountDecimalAmount of mutation
endBalanceDecimalEnd balance
beneficiaryBeneficiaryCounterpart of the mutation
codeTransactionCodeMutation type, see Properties and transaction types
descriptionStringDetected description of the transaction
originaldescriptionStringOrginal, unrefined, description
flagsFlagsInternal parameter
sequenceIntegerserial number

Beneficiary

FieldTypeDescription
numberStringBank account number without layout formatting
formattedNumberStringBank account number with layout formatting
ibanStringIBAN
incassantStringIdentity in case of collection
mandateStringCollection mandate
targetBusinessIdIntegerIdentity of the real counterpart (in case of a payment service such as iDeal)
idIntegerInternal parameter
countryStringCountry code ISO 2 characters
nameStringName Counterpart
originalNameStringOriginal, unrefined, name of counterpart
referenceStringReference of the transaction
businessIdIntegerBusiness identifier of the counterpart, may be empty

Business

FieldTypeDescription
idIntegerCounterpart identifier
nameStringName of counterpart
countryStringCountry code ISO 2 characters
numberStringChamber of Commerce (KvK) number
tradenamesArray

Output (Example)


[
{
"account": {
"iban": "string",
"bic": "string",
"id": 0,
"country": "string",
"name": "string",
"originalName": "string",
"reference": "string",
"businessId": 0,
"business": {
"id": 0,
"name": "string",
"country": "string",
"number": "string",
"subsidiary": "string",
"addresses": [
{
"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
}
],
"contacts": [
{
"type": "email",
"value": "string"
}
],
"activities": [
{
"code": "string",
"name": "string",
"isMain": true
}
],
"tradenames": [
"string"
]
},
"number": "string",
"formattedNumber": "string",
"beginBalanceDate": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"beginBalance": 0,
"endBalanceDate": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"endBalance": 0,
"transactions": [
{
"id": "string",
"bookDate": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"interestDate": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"amount": 0,
"endBalance": 0,
"beneficiary": {
"id": 0,
"country": "string",
"name": "string",
"originalName": "string",
"reference": "string",
"businessId": 0,
"business": {
"id": 0,
"name": "string",
"country": "string",
"number": "string",
"subsidiary": "string",
"addresses": [
{
"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
}
],
"contacts": [
{
"type": "email",
"value": "string"
}
],
"activities": [
{
"code": "string",
"name": "string",
"isMain": true
}
],
"tradenames": [
"string"
]
}
},
"code": {
"id": 0,
"type": "aC",
"code": "string",
"numeric": 0,
"name": "string"
},
"description": "string",
"originalDescription": "string",
"flags": "none",
"sequence": 0,
"categoryId": 0,
"category": {
"id": 0,
"name": "string",
"type": "none",
"costType": "none",
"isInternal": true,
"isStrict": true,
"color": 0,
"taxPost": "string",
"syncKey": "string",
"groupId": 0,
"nibuds": [
0
],
"group": {
"id": 0,
"name": "string",
"type": "none",
"isInternal": true,
"color": 0,
"syncKey": "string",
"categories": [
null
]
},
"posten": [
{
"id": 0,
"name": "string",
"description": "string",
"years": [
0
]
}
]
},
"naceId": 0,
"nace": {
"id": 0,
"code": "string",
"description": "string"
},
"properties": [
{
"id": 0,
"type": "none",
"context": "transaction",
"name": "string",
"value": "string",
"properties": [
null
]
}
],
"contract": "string"
}
]
},
"items": [
{
"probability": "medium",
"frequenceType": "none",
"interval": 0,
"contract": "string",
"date": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"amount": 0,
"type": "aC",
"category": {
"id": 0,
"name": "string",
"type": "none",
"costType": "none",
"isInternal": true,
"isStrict": true,
"color": 0,
"taxPost": "string",
"syncKey": "string",
"groupId": 0,
"nibuds": [
0
],
"group": {
"id": 0,
"name": "string",
"type": "none",
"isInternal": true,
"color": 0,
"syncKey": "string",
"categories": [
null
]
},
"posten": [
{
"id": 0,
"name": "string",
"description": "string",
"years": [
0
]
}
]
},
"nace": {
"id": 0,
"code": "string",
"description": "string"
},
"account": {
"iban": "string",
"bic": "string",
"id": 0,
"country": "string",
"name": "string",
"originalName": "string",
"reference": "string",
"businessId": 0,
"business": {
"id": 0,
"name": "string",
"country": "string",
"number": "string",
"subsidiary": "string",
"addresses": [
{
"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
}
],
"contacts": [
{
"type": "email",
"value": "string"
}
],
"activities": [
{
"code": "string",
"name": "string",
"isMain": true
}
],
"tradenames": [
"string"
]
},
"number": "string",
"formattedNumber": "string",
"incassant": "string",
"mandate": "string",
"targetBusinessId": 0,
"targetBusiness": {
"id": 0,
"name": "string",
"country": "string",
"number": "string",
"subsidiary": "string",
"addresses": [
{
"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
}
],
"contacts": [
{
"type": "email",
"value": "string"
}
],
"activities": [
{
"code": "string",
"name": "string",
"isMain": true
}
],
"tradenames": [
"string"
]
},
"targetName": "string"
},
"business": {
"id": 0,
"name": "string",
"country": "string",
"number": "string",
"subsidiary": "string",
"addresses": [
{
"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
}
],
"contacts": [
{
"type": "email",
"value": "string"
}
],
"activities": [
{
"code": "string",
"name": "string",
"isMain": true
}
],
"tradenames": [
"string"
]
},
"name": "string",
"description": "string",
"pattern": "string",
"transactions": [
{
"id": "string",
"bookDate": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"interestDate": "YYYY-MM-DDTHH:MM:SS+HH:MM",
"amount": 0,
"endBalance": 0,
"beneficiary": {
"id": 0,
"country": "string",
"name": "string",
"originalName": "string",
"reference": "string",
"businessId": 0,
"business": {
"id": 0,
"name": "string",
"country": "string",
"number": "string",
"subsidiary": "string",
"addresses": [
{
"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
}
],
"contacts": [
{
"type": "email",
"value": "string"
}
],
"activities": [
{
"code": "string",
"name": "string",
"isMain": true
}
],
"tradenames": [
"string"
]
}
},
"code": {
"id": 0,
"type": "aC",
"code": "string",
"numeric": 0,
"name": "string"
},
"description": "string",
"originalDescription": "string",
"flags": "none",
"sequence": 0,
"categoryId": 0,
"category": {
"id": 0,
"name": "string",
"type": "none",
"costType": "none",
"isInternal": true,
"isStrict": true,
"color": 0,
"taxPost": "string",
"syncKey": "string",
"groupId": 0,
"nibuds": [
0
],
"group": {
"id": 0,
"name": "string",
"type": "none",
"isInternal": true,
"color": 0,
"syncKey": "string",
"categories": [
null
]
},
"posten": [
{
"id": 0,
"name": "string",
"description": "string",
"years": [
0
]
}
]
},
"naceId": 0,
"nace": {
"id": 0,
"code": "string",
"description": "string"
},
"properties": [
{
"id": 0,
"type": "none",
"context": "transaction",
"name": "string",
"value": "string",
"properties": [
null
]
}
],
"contract": "string"
}
]
}
]
}
]