-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtink-risk-reports-api-openapi.yml
More file actions
284 lines (284 loc) · 8.16 KB
/
Copy pathtink-risk-reports-api-openapi.yml
File metadata and controls
284 lines (284 loc) · 8.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
openapi: 3.1.0
info:
title: Tink Risk and Reports API
description: >
Tink's risk-decisioning reports built on aggregated bank data. Income
Check confirms a user's verified income and stability. Expense Check
summarises essential and discretionary expenses. Risk Insights produces
a risk-decisioning report covering creditworthiness signals. Risk
Categorisation classifies transactions for affordability and lending
decisions.
version: '2.0'
contact:
name: Tink Developer Support
url: https://docs.tink.com/resources/risk-insights
servers:
- url: https://api.tink.com
description: Tink EU Production
- url: https://api.us.tink.com
description: Tink US Production
security:
- BearerAuth: []
tags:
- name: IncomeChecks
description: Income verification reports.
- name: ExpenseChecks
description: Expense verification reports.
- name: RiskInsights
description: Risk decisioning reports.
- name: RiskCategorisation
description: Risk categorisation reports.
paths:
/v2/income-checks/{report_id}:
get:
summary: Tink Get An Income Check Report
description: >
Retrieve a completed Income Check report as JSON. Includes verified
income streams, employer information, salary cadence, and trend
analysis over the lookback window.
operationId: getIncomeCheckReport
tags:
- IncomeChecks
parameters:
- $ref: '#/components/parameters/ReportIdParam'
responses:
'200':
description: Income Check report returned.
content:
application/json:
schema:
$ref: '#/components/schemas/IncomeCheckReport'
'404':
$ref: '#/components/responses/NotFound'
/v2/income-checks/{report_id}:generate-pdf:
get:
summary: Tink Generate An Income Check PDF
description: Retrieve the Income Check report rendered as a PDF for compliance archives.
operationId: generateIncomeCheckPdf
tags:
- IncomeChecks
parameters:
- $ref: '#/components/parameters/ReportIdParam'
responses:
'200':
description: PDF returned.
content:
application/pdf:
schema:
type: string
format: binary
/risk/v1/expense-checks/{report_id}:
get:
summary: Tink Get An Expense Check Report
description: Retrieve a completed Expense Check report summarising essential and discretionary spending.
operationId: getExpenseCheckReport
tags:
- ExpenseChecks
parameters:
- $ref: '#/components/parameters/ReportIdParam'
responses:
'200':
description: Expense Check report returned.
content:
application/json:
schema:
$ref: '#/components/schemas/ExpenseCheckReport'
/risk/v1/risk-insights/{report_id}:
get:
summary: Tink Get A Risk Insights Report
description: Retrieve a Risk Insights report combining income, expenses, balance volatility, and risk signals.
operationId: getRiskInsightsReport
tags:
- RiskInsights
parameters:
- $ref: '#/components/parameters/ReportIdParam'
responses:
'200':
description: Risk Insights report returned.
content:
application/json:
schema:
$ref: '#/components/schemas/RiskInsightsReport'
/risk/v2/risk-categorisation/reports/{report_id}:
get:
summary: Tink Get A Risk Categorisation Report
description: Retrieve a Risk Categorisation report classifying transactions for lending and affordability decisions.
operationId: getRiskCategorisationReport
tags:
- RiskCategorisation
parameters:
- $ref: '#/components/parameters/ReportIdParam'
responses:
'200':
description: Risk Categorisation report returned.
content:
application/json:
schema:
$ref: '#/components/schemas/RiskCategorisationReport'
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
parameters:
ReportIdParam:
in: path
name: report_id
required: true
schema:
type: string
schemas:
IncomeCheckReport:
type: object
properties:
id:
type: string
market:
type: string
generatedAt:
type: string
format: date-time
verifiedIncomes:
type: array
items:
$ref: '#/components/schemas/VerifiedIncome'
summary:
type: object
properties:
totalNetIncome:
$ref: '#/components/schemas/Money'
averageMonthlyIncome:
$ref: '#/components/schemas/Money'
consecutiveMonthsWithIncome:
type: integer
format: int32
VerifiedIncome:
type: object
properties:
source:
type: string
payer:
type: string
category:
type: string
enum: [SALARY, BENEFIT, PENSION, INTEREST, DIVIDEND, OTHER]
cadence:
type: string
enum: [WEEKLY, BIWEEKLY, MONTHLY, QUARTERLY, YEARLY, IRREGULAR]
averageAmount:
$ref: '#/components/schemas/Money'
firstSeen:
type: string
format: date
lastSeen:
type: string
format: date
ExpenseCheckReport:
type: object
properties:
id:
type: string
generatedAt:
type: string
format: date-time
summary:
type: object
properties:
essentialExpenses:
$ref: '#/components/schemas/Money'
discretionaryExpenses:
$ref: '#/components/schemas/Money'
totalExpenses:
$ref: '#/components/schemas/Money'
categories:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
amount:
$ref: '#/components/schemas/Money'
transactionCount:
type: integer
format: int32
RiskInsightsReport:
type: object
properties:
id:
type: string
generatedAt:
type: string
format: date-time
signals:
type: array
items:
type: object
properties:
code:
type: string
severity:
type: string
enum: [INFO, LOW, MEDIUM, HIGH]
description:
type: string
incomeSummary:
$ref: '#/components/schemas/IncomeCheckReport'
expenseSummary:
$ref: '#/components/schemas/ExpenseCheckReport'
balanceVolatility:
type: object
properties:
averageBalance:
$ref: '#/components/schemas/Money'
minimumBalance:
$ref: '#/components/schemas/Money'
overdraftDays:
type: integer
format: int32
RiskCategorisationReport:
type: object
properties:
id:
type: string
generatedAt:
type: string
format: date-time
categories:
type: array
items:
type: object
properties:
category:
type: string
riskTier:
type: string
enum: [LOW, MEDIUM, HIGH]
amount:
$ref: '#/components/schemas/Money'
transactionCount:
type: integer
format: int32
Money:
type: object
properties:
amount:
type: string
currencyCode:
type: string
Error:
type: object
properties:
errorMessage:
type: string
errorCode:
type: string
responses:
NotFound:
description: Report not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'