Skip to main content

Response structure

To access sequencing data, use the Sequencing API endpoint. The result is sent back in one result set containing all the found sequences and a collection of corresponding transactions.

Source data

Sequences are based on transactions data from a consent or a user. The sequencing algorithms takes at most the latest 13 months of transaction history from the consent or user.

Structure

{
"data": {
"incomeSequences": [
{
"periodicity": "Monthly",
"transactions": [],
"periodMatches": 13,
"periodMatchPercentage": 100,
"amountMatchPercentage": 100,
"timelinessMatchPercentage": 97.827,
"timeConsistency": {
"duration": "365.00:00:00",
"transactionCount": 13,
"firstSeen": "2022-04-26T00:00:00Z",
"lastSeen": "2023-04-26T00:00:00Z",
"mostRecentDayOfPeriod": 26,
"statisticsL12M": {
"minDayOfPeriod": 26,
"maxDayOfPeriod": 28,
"medianDayOfPeriod": 26,
"averageDayOfPeriod": 26.5,
"modeDayOfPeriod": 26,
"stdDevDayOfPeriod": 0.674
},
"statisticsL6M": {
"minDayOfPeriod": 26,
"maxDayOfPeriod": 28,
"medianDayOfPeriod": 27,
"averageDayOfPeriod": 26.833,
"modeDayOfPeriod": 27,
"stdDevDayOfPeriod": 0.752
},
"statisticsL3M": {
"minDayOfPeriod": 26,
"maxDayOfPeriod": 27,
"medianDayOfPeriod": 27,
"averageDayOfPeriod": 26.667,
"modeDayOfPeriod": 27,
"stdDevDayOfPeriod": 0.577
}
},
"amountConsistency": {
"mostRecentAmount": 1400,
"statisticsL12M": {
"minAmount": 1400,
"maxAmount": 1400,
"medianAmount": 1400,
"averageAmount": 1400,
"modeAmount": 1400,
"stdDevAmount": 0,
"totalAmount": 16800
},
"statisticsL6M": {
"minAmount": 1400,
"maxAmount": 1400,
"medianAmount": 1400,
"averageAmount": 1400,
"modeAmount": 1400,
"stdDevAmount": 0,
"totalAmount": 8400
},
"statisticsL3M": {
"minAmount": 1400,
"maxAmount": 1400,
"medianAmount": 1400,
"averageAmount": 1400,
"modeAmount": 1400,
"stdDevAmount": 0,
"totalAmount": 4200
}
}
},
{
"periodicity": "Monthly",
"transactions": [],
"periodMatches": 13,
"periodMatchPercentage": 100,
"amountMatchPercentage": 44.374,
"timelinessMatchPercentage": 96.949,
"timeConsistency": {
"duration": "364.00:00:00",
"transactionCount": 13,
"firstSeen": "2022-04-22T00:00:00Z",
"lastSeen": "2023-04-21T00:00:00Z",
"mostRecentDayOfPeriod": 21,
"statisticsL12M": {
"minDayOfPeriod": 21,
"maxDayOfPeriod": 25,
"medianDayOfPeriod": 23,
"averageDayOfPeriod": 22.833,
"modeDayOfPeriod": 23,
"stdDevDayOfPeriod": 0.937
},
"statisticsL6M": {
"minDayOfPeriod": 21,
"maxDayOfPeriod": 23,
"medianDayOfPeriod": 23,
"averageDayOfPeriod": 22.5,
"modeDayOfPeriod": 23,
"stdDevDayOfPeriod": 0.836
},
"statisticsL3M": {
"minDayOfPeriod": 21,
"maxDayOfPeriod": 23,
"medianDayOfPeriod": 23,
"averageDayOfPeriod": 22.333,
"modeDayOfPeriod": 23,
"stdDevDayOfPeriod": 1.154
}
},
"amountConsistency": {
"mostRecentAmount": 400,
"statisticsL12M": {
"minAmount": 400,
"maxAmount": 1150,
"medianAmount": 400,
"averageAmount": 520.833,
"modeAmount": 400,
"stdDevAmount": 282.407,
"totalAmount": 6250
},
"statisticsL6M": {
"minAmount": 400,
"maxAmount": 400,
"medianAmount": 400,
"averageAmount": 400,
"modeAmount": 400,
"stdDevAmount": 0,
"totalAmount": 2400
},
"statisticsL3M": {
"minAmount": 400,
"maxAmount": 400,
"medianAmount": 400,
"averageAmount": 400,
"modeAmount": 400,
"stdDevAmount": 0,
"totalAmount": 1200
}
}
}
],
"expenseSequences": [
{
"periodicity": "Monthly",
"transactions": [],
"periodMatches": 13,
"periodMatchPercentage": 100,
"amountMatchPercentage": 98.93,
"timelinessMatchPercentage": 96.074,
"timeConsistency": {
"duration": "363.00:00:00",
"transactionCount": 13,
"firstSeen": "2022-04-29T00:00:00Z",
"lastSeen": "2023-04-27T00:00:00Z",
"mostRecentDayOfPeriod": 27,
"statisticsL12M": {
"minDayOfPeriod": 27,
"maxDayOfPeriod": 30,
"medianDayOfPeriod": 28.5,
"averageDayOfPeriod": 28.5833,
"modeDayOfPeriod": 30,
"stdDevDayOfPeriod": 1.24
},
"statisticsL6M": {
"minDayOfPeriod": 27,
"maxDayOfPeriod": 30,
"medianDayOfPeriod": 27.5,
"averageDayOfPeriod": 27.833,
"modeDayOfPeriod": 27,
"stdDevDayOfPeriod": 1.169
},
"statisticsL3M": {
"minDayOfPeriod": 27,
"maxDayOfPeriod": 27,
"medianDayOfPeriod": 27,
"averageDayOfPeriod": 27,
"modeDayOfPeriod": 27,
"stdDevDayOfPeriod": 0
}
},
"amountConsistency": {
"mostRecentAmount": -70.5,
"statisticsL12M": {
"minAmount": -70.5,
"maxAmount": -68.5,
"medianAmount": -70.5,
"averageAmount": -70.333,
"modeAmount": -70.5,
"stdDevAmount": 0.577,
"totalAmount": -844.0
},
"statisticsL6M": {
"minAmount": -70.5,
"maxAmount": -70.5,
"medianAmount": -70.5,
"averageAmount": -70.5,
"modeAmount": -70.5,
"stdDevAmount": 0,
"totalAmount": -423.0
},
"statisticsL3M": {
"minAmount": -70.5,
"maxAmount": -70.5,
"medianAmount": -70.5,
"averageAmount": -70.5,
"modeAmount": -70.5,
"stdDevAmount": 0,
"totalAmount": -211.5
}
}
},
{
"periodicity": "Monthly",
"transactions": [],
"periodMatches": 13,
"periodMatchPercentage": 100,
"amountMatchPercentage": 57.961,
"timelinessMatchPercentage": 97.859,
"timeConsistency": {
"duration": "365.00:00:00",
"transactionCount": 13,
"firstSeen": "2022-04-28T00:00:00Z",
"lastSeen": "2023-04-28T00:00:00Z",
"mostRecentDayOfPeriod": 28,
"statisticsL12M": {
"minDayOfPeriod": 27,
"maxDayOfPeriod": 29,
"medianDayOfPeriod": 27,
"averageDayOfPeriod": 27.333,
"modeDayOfPeriod": 27,
"stdDevDayOfPeriod": 0.651
},
"statisticsL6M": {
"minDayOfPeriod": 27,
"maxDayOfPeriod": 28,
"medianDayOfPeriod": 27,
"averageDayOfPeriod": 27.333,
"modeDayOfPeriod": 27,
"stdDevDayOfPeriod": 0.516
},
"statisticsL3M": {
"minDayOfPeriod": 27,
"maxDayOfPeriod": 28,
"medianDayOfPeriod": 27,
"averageDayOfPeriod": 27.333,
"modeDayOfPeriod": 27,
"stdDevDayOfPeriod": 0.577
}
},
"amountConsistency": {
"mostRecentAmount": -36,
"statisticsL12M": {
"minAmount": -168,
"maxAmount": -36,
"medianAmount": -167,
"averageAmount": -134.5,
"modeAmount": -167,
"stdDevAmount": 59.399,
"totalAmount": -1614
},
"statisticsL6M": {
"minAmount": -168,
"maxAmount": -36,
"medianAmount": -101.5,
"averageAmount": -101.666,
"modeAmount": -36,
"stdDevAmount": 71.935,
"totalAmount": -610
},
"statisticsL3M": {
"minAmount": -36,
"maxAmount": -36,
"medianAmount": -36,
"averageAmount": -36,
"modeAmount": -36,
"stdDevAmount": 0,
"totalAmount": -108
}
}
}
],
"engineVersion": "0.20.0.0"
}
}

Inside the data object, the following objects are available:

PropertyTypeAvailabilityDescription
incomeSequencesarrayRequiredAn array of recognized income sequences in the transactions
expenseSequencesarrayRequiredAn array of recognized expense sequences in the transactions.
engineVersionstringRequiredThe version of the sequencing engine that was used to generate this response. (in SemVer)

Within the incomeSequences and expenseSequences arrays, the structure of a found sequence is:

Sequence object

PropertyTypeAvailabilityDescription
periodicitystringRequiredThe periodicity of this sequence, can be one of the following options: "Weekly", "Monthly", "Quad Weekly", "Quarterly"
transactionsarrayRequiredList of transactions that make up this sequence, the schema of the transactions is the same as in the Account Information API
periodMatchesintegerRequiredNumber of times this sequence had a match in a period in the transactions from the latest 13 months
periodMatchPercentagedecimalRequiredGlobal match percentage of periods in the transactions from the latest 13 months
amountMatchPercentagedecimalRequiredGlobal match percentage of amounts and diversions of this amount in the transactions from the latest 13 months
timelinessMatchPercentagedecimalRequiredGlobal match percentage of timeliness and diversions of this timeliness in the transactions from the latest 13 months
timeConsistencyobjectRequiredTimeConsistency object containing detailed information about the time consistency of this sequence
amountConsistencyobjectRequiredAmountConsistency object containing detailed information about the amount consistency of this sequence

TimeConsistency object

PropertyTypeAvailabilityDescription
durationstringRequiredThe duration between the first and last transaction in the sequence, expressed as: "days.house:minutes:seconds"
transactionCountintegerRequiredThe number of transactions in the sequence
firstSeendatetimeRequiredThe Date and Time of the first transaction in the sequence
lastSeendatetimeRequiredThe Date and Time of the last transaction in the sequence
mostRecentDayOfPeriodintegerRequiredThe n-th day of the period for the most recent transaction in the sequence
statisticsL12MobjectRequiredTimeStatistics object containing detailed statistical information about the time consistency of this sequence for the last 12 months
statisticsL6MobjectRequiredTimeStatistics object containing detailed statistical information about the time consistency of this sequence for the last 6 months
statisticsL3MobjectRequiredTimeStatistics object containing detailed statistical information about the time consistency of this sequence for the last 3 months

TimeStatistics object

PropertyTypeAvailabilityDescription
minDayOfPeriodintegerRequiredThe minimum n-th day of the period
maxDayOfPeriodintegerRequiredThe maximum n-th day of the period
medianDayOfPerioddecimalRequiredThe median n-th day of the period
averageDayOfPerioddecimalRequiredThe average n-th day of the period
modeDayOfPeriodintegerRequiredThe mode (most found) n-th day of the period
stdDevDayOfPerioddecimalRequiredThe standard deviation of the n-th day of the period

AmountConsistency object

PropertyTypeAvailabilityDescription
mostRecentAmountdecimalRequiredThe amount for the most recent transaction in the sequence
statisticsL12MobjectRequiredAmountStatistics object containing detailed statistical information about the amount consistency of this sequence for the last 12 months
statisticsL6MobjectRequiredAmountStatistics object containing detailed statistical information about the amount consistency of this sequence for the last 6 months
statisticsL3MobjectRequiredAmountStatistics object containing detailed statistical information about the amount consistency of this sequence for the last 3 months

AmountStatistics object

PropertyTypeAvailabilityDescription
minAmountdecimalRequiredThe minimum amount of the period
maxAmountdecimalRequiredThe maximum amount of the period
medianAmountdecimalRequiredThe median amount of the period
averageAmountdecimalRequiredThe average amount of the period
modeAmountdecimalRequiredThe mode (most found) amount of the period
stdDevAmountdecimalRequiredThe standard deviation of the amounts of the period
totalAmountdecimalRequiredThe total sum of the amounts of the period