quantix-mcp 0.3.9 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +2 -1
- package/.github/workflows/publish.yaml +2 -1
- package/CLAUDE.md +6 -0
- package/GEMINI.md +58 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/accounts.d.ts.map +1 -1
- package/dist/tools/accounts.js +0 -15
- package/dist/tools/accounts.js.map +1 -1
- package/dist/tools/credit-cards.d.ts.map +1 -1
- package/dist/tools/credit-cards.js +16 -1
- package/dist/tools/credit-cards.js.map +1 -1
- package/dist/tools/subscriptions.d.ts +3 -0
- package/dist/tools/subscriptions.d.ts.map +1 -0
- package/dist/tools/subscriptions.js +128 -0
- package/dist/tools/subscriptions.js.map +1 -0
- package/dist/tools/transactions.d.ts.map +1 -1
- package/dist/tools/transactions.js +4 -5
- package/dist/tools/transactions.js.map +1 -1
- package/dist/types/schemas.d.ts +40 -0
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +52 -12
- package/dist/types/schemas.js.map +1 -1
- package/openapi.yaml +2588 -1664
- package/package.json +1 -1
- package/src/index.ts +13 -2
- package/src/tools/accounts.ts +0 -18
- package/src/tools/credit-cards.ts +20 -1
- package/src/tools/subscriptions.ts +159 -0
- package/src/tools/transactions.ts +4 -5
- package/src/types/schemas.ts +56 -12
- package/tests/tools/subscriptions.test.ts +173 -0
package/openapi.yaml
CHANGED
|
@@ -1,2045 +1,2969 @@
|
|
|
1
1
|
openapi: 3.0.0
|
|
2
|
-
info:
|
|
3
|
-
title: Quantix Personal Finance Manager API
|
|
4
|
-
description: API for managing personal finances including transactions, credit cards, categories, and recurring payments
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
contact:
|
|
7
|
-
name: Quantix Support
|
|
8
|
-
email: support@quantix.example.com
|
|
9
|
-
|
|
10
|
-
servers:
|
|
11
|
-
- url: https://api.quantix.example.com
|
|
12
|
-
description: Production server
|
|
13
|
-
- url: https://staging.quantix.example.com
|
|
14
|
-
description: Staging server
|
|
15
|
-
|
|
16
|
-
components:
|
|
17
|
-
securitySchemes:
|
|
18
|
-
ApiKeyAuth:
|
|
19
|
-
type: apiKey
|
|
20
|
-
in: header
|
|
21
|
-
name: API-KEY
|
|
22
|
-
description: API key for authentication, configured via QUANTIX_API_KEY environment variable
|
|
23
|
-
|
|
24
|
-
schemas:
|
|
25
|
-
Category:
|
|
26
|
-
type: object
|
|
27
|
-
required:
|
|
28
|
-
- name
|
|
29
|
-
- type
|
|
30
|
-
properties:
|
|
31
|
-
id:
|
|
32
|
-
type: string
|
|
33
|
-
description: Unique identifier for the category
|
|
34
|
-
example: "cat_123456789"
|
|
35
|
-
name:
|
|
36
|
-
type: string
|
|
37
|
-
description: Name of the category
|
|
38
|
-
example: "Groceries"
|
|
39
|
-
type:
|
|
40
|
-
type: string
|
|
41
|
-
enum: [INCOME, EXPENSE]
|
|
42
|
-
description: Type of the category
|
|
43
|
-
example: "EXPENSE"
|
|
44
|
-
color:
|
|
45
|
-
type: string
|
|
46
|
-
nullable: true
|
|
47
|
-
description: Color for the category in hexadecimal format
|
|
48
|
-
example: "#FF5733"
|
|
49
|
-
createdAt:
|
|
50
|
-
type: string
|
|
51
|
-
format: date-time
|
|
52
|
-
description: Timestamp when the category was created
|
|
53
|
-
example: "2026-01-30T10:00:00Z"
|
|
54
|
-
|
|
55
|
-
Transaction:
|
|
56
|
-
type: object
|
|
57
|
-
required:
|
|
58
|
-
- type
|
|
59
|
-
- name
|
|
60
|
-
- amount
|
|
61
|
-
- date
|
|
62
|
-
properties:
|
|
63
|
-
id:
|
|
64
|
-
type: string
|
|
65
|
-
description: Unique identifier for the transaction
|
|
66
|
-
example: "txn_123456789"
|
|
67
|
-
type:
|
|
68
|
-
type: string
|
|
69
|
-
enum: [INCOME, EXPENSE]
|
|
70
|
-
description: Type of the transaction
|
|
71
|
-
example: "EXPENSE"
|
|
72
|
-
name:
|
|
73
|
-
type: string
|
|
74
|
-
description: Description of the transaction
|
|
75
|
-
example: "Weekly groceries"
|
|
76
|
-
amount:
|
|
77
|
-
type: number
|
|
78
|
-
format: float
|
|
79
|
-
minimum: 0
|
|
80
|
-
description: Amount of the transaction
|
|
81
|
-
example: 125.75
|
|
82
|
-
date:
|
|
83
|
-
type: string
|
|
84
|
-
format: date
|
|
85
|
-
description: Date of the transaction
|
|
86
|
-
example: "2026-01-30"
|
|
87
|
-
purchaseDate:
|
|
88
|
-
type: string
|
|
89
|
-
format: date
|
|
90
|
-
description: Actual purchase date (credit card only, optional)
|
|
91
|
-
example: "2026-02-10"
|
|
92
|
-
nullable: true
|
|
93
|
-
categoryId:
|
|
94
|
-
type: string
|
|
95
|
-
description: ID of the associated category
|
|
96
|
-
example: "cat_123456789"
|
|
97
|
-
category:
|
|
98
|
-
$ref: '#/components/schemas/Category'
|
|
99
|
-
description: Associated category object
|
|
100
|
-
paymentMethod:
|
|
101
|
-
type: string
|
|
102
|
-
enum: [CASH, PIX, DEBIT, CREDIT]
|
|
103
|
-
description: Method of payment
|
|
104
|
-
example: "CREDIT"
|
|
105
|
-
creditCardId:
|
|
106
|
-
type: string
|
|
107
|
-
description: ID of the associated credit card (required if paymentMethod is CREDIT)
|
|
108
|
-
example: "cc_123456789"
|
|
109
|
-
creditCard:
|
|
110
|
-
$ref: '#/components/schemas/CreditCard'
|
|
111
|
-
description: Associated credit card object
|
|
112
|
-
installmentGroupId:
|
|
113
|
-
type: string
|
|
114
|
-
description: ID to group installment transactions
|
|
115
|
-
example: "ig_123456789"
|
|
116
|
-
installmentNumber:
|
|
117
|
-
type: integer
|
|
118
|
-
minimum: 1
|
|
119
|
-
description: Current installment number in a series
|
|
120
|
-
example: 2
|
|
121
|
-
installmentTotal:
|
|
122
|
-
type: integer
|
|
123
|
-
minimum: 1
|
|
124
|
-
description: Total number of installments in the series
|
|
125
|
-
example: 5
|
|
126
|
-
recurrenceRuleId:
|
|
127
|
-
type: string
|
|
128
|
-
description: ID of the associated recurrence rule
|
|
129
|
-
example: "rr_123456789"
|
|
130
|
-
accountId:
|
|
131
|
-
type: string
|
|
132
|
-
description: ID of the associated account (required if paymentMethod is not CREDIT)
|
|
133
|
-
example: "acc_123456789"
|
|
134
|
-
account:
|
|
135
|
-
$ref: '#/components/schemas/Account'
|
|
136
|
-
description: Associated account object
|
|
137
|
-
paid:
|
|
138
|
-
type: boolean
|
|
139
|
-
default: false
|
|
140
|
-
description: Whether the transaction has been paid/received
|
|
141
|
-
example: true
|
|
142
|
-
createdAt:
|
|
143
|
-
type: string
|
|
144
|
-
format: date-time
|
|
145
|
-
description: Timestamp when the transaction was created
|
|
146
|
-
example: "2026-01-30T10:00:00Z"
|
|
147
|
-
|
|
148
|
-
CreditCard:
|
|
149
|
-
type: object
|
|
150
|
-
required:
|
|
151
|
-
- name
|
|
152
|
-
- limitAmount
|
|
153
|
-
- closingDay
|
|
154
|
-
- dueDay
|
|
155
|
-
properties:
|
|
156
|
-
id:
|
|
157
|
-
type: string
|
|
158
|
-
description: Unique identifier for the credit card
|
|
159
|
-
example: "cc_123456789"
|
|
160
|
-
name:
|
|
161
|
-
type: string
|
|
162
|
-
description: Name of the credit card
|
|
163
|
-
example: "Nubank Platinum"
|
|
164
|
-
brand:
|
|
165
|
-
type: string
|
|
166
|
-
description: Brand of the credit card
|
|
167
|
-
example: "Visa"
|
|
168
|
-
limitAmount:
|
|
169
|
-
type: number
|
|
170
|
-
format: float
|
|
171
|
-
minimum: 0
|
|
172
|
-
description: Credit limit of the card
|
|
173
|
-
example: 5000.00
|
|
174
|
-
closingDay:
|
|
175
|
-
type: integer
|
|
176
|
-
minimum: 1
|
|
177
|
-
maximum: 31
|
|
178
|
-
description: Day of the month when the billing cycle closes
|
|
179
|
-
example: 15
|
|
180
|
-
dueDay:
|
|
181
|
-
type: integer
|
|
182
|
-
minimum: 1
|
|
183
|
-
maximum: 31
|
|
184
|
-
description: Day of the month when the bill is due
|
|
185
|
-
example: 22
|
|
186
|
-
availableLimit:
|
|
187
|
-
type: number
|
|
188
|
-
format: float
|
|
189
|
-
description: Available credit limit (limitAmount minus all pending unpaid expenses)
|
|
190
|
-
example: 3200.00
|
|
191
|
-
createdAt:
|
|
192
|
-
type: string
|
|
193
|
-
format: date-time
|
|
194
|
-
description: Timestamp when the credit card was added
|
|
195
|
-
example: "2026-01-30T10:00:00Z"
|
|
196
|
-
|
|
197
|
-
RecurrenceRule:
|
|
198
|
-
type: object
|
|
199
|
-
required:
|
|
200
|
-
- frequency
|
|
201
|
-
properties:
|
|
202
|
-
id:
|
|
203
|
-
type: string
|
|
204
|
-
description: Unique identifier for the recurrence rule
|
|
205
|
-
example: "rr_123456789"
|
|
206
|
-
frequency:
|
|
207
|
-
type: string
|
|
208
|
-
enum: [MONTHLY, WEEKLY, YEARLY]
|
|
209
|
-
description: Frequency of recurrence
|
|
210
|
-
example: "MONTHLY"
|
|
211
|
-
interval:
|
|
212
|
-
type: integer
|
|
213
|
-
minimum: 1
|
|
214
|
-
default: 1
|
|
215
|
-
description: Interval multiplier for the frequency
|
|
216
|
-
example: 1
|
|
217
|
-
endDate:
|
|
218
|
-
type: string
|
|
219
|
-
format: date
|
|
220
|
-
description: Date when the recurrence should end (mutually exclusive with occurrences)
|
|
221
|
-
example: "2026-12-31"
|
|
222
|
-
occurrences:
|
|
223
|
-
type: integer
|
|
224
|
-
minimum: 2
|
|
225
|
-
description: Number of occurrences (mutually exclusive with endDate). When set, transaction names will be formatted as "Name (N/total)"
|
|
226
|
-
example: 12
|
|
227
|
-
createdAt:
|
|
228
|
-
type: string
|
|
229
|
-
format: date-time
|
|
230
|
-
description: Timestamp when the recurrence rule was created
|
|
231
|
-
example: "2026-01-30T10:00:00Z"
|
|
232
|
-
|
|
233
|
-
Statement:
|
|
234
|
-
type: object
|
|
235
|
-
properties:
|
|
236
|
-
cardId:
|
|
237
|
-
type: string
|
|
238
|
-
description: ID of the credit card
|
|
239
|
-
example: "cc_123456789"
|
|
240
|
-
periodStart:
|
|
241
|
-
type: string
|
|
242
|
-
format: date
|
|
243
|
-
description: Start date of the billing period
|
|
244
|
-
example: "2026-02-16"
|
|
245
|
-
periodEnd:
|
|
246
|
-
type: string
|
|
247
|
-
format: date
|
|
248
|
-
description: End date of the billing period
|
|
249
|
-
example: "2026-03-15"
|
|
250
|
-
dueDate:
|
|
251
|
-
type: string
|
|
252
|
-
format: date
|
|
253
|
-
description: Due date of the statement
|
|
254
|
-
example: "2026-03-22"
|
|
255
|
-
transactions:
|
|
256
|
-
type: array
|
|
257
|
-
items:
|
|
258
|
-
$ref: '#/components/schemas/Transaction'
|
|
259
|
-
description: List of transactions in the statement period
|
|
260
|
-
total:
|
|
261
|
-
type: number
|
|
262
|
-
format: float
|
|
263
|
-
description: Total amount of the statement
|
|
264
|
-
example: 3450.00
|
|
265
|
-
availableLimit:
|
|
266
|
-
type: number
|
|
267
|
-
format: float
|
|
268
|
-
description: Available credit limit
|
|
269
|
-
example: 1550.00
|
|
270
|
-
|
|
271
|
-
StatementStatus:
|
|
272
|
-
type: object
|
|
273
|
-
properties:
|
|
274
|
-
cardId:
|
|
275
|
-
type: string
|
|
276
|
-
description: ID of the credit card
|
|
277
|
-
example: "cc_123456789"
|
|
278
|
-
month:
|
|
279
|
-
type: string
|
|
280
|
-
description: Month for the statement (YYYY-MM format)
|
|
281
|
-
example: "2026-03"
|
|
282
|
-
isPaid:
|
|
283
|
-
type: boolean
|
|
284
|
-
description: Whether all transactions in the statement are paid
|
|
285
|
-
example: true
|
|
286
|
-
|
|
287
|
-
Account:
|
|
288
|
-
type: object
|
|
289
|
-
required:
|
|
290
|
-
- name
|
|
291
|
-
- type
|
|
292
|
-
- initialBalance
|
|
293
|
-
properties:
|
|
294
|
-
id:
|
|
295
|
-
type: string
|
|
296
|
-
description: Unique identifier for the account
|
|
297
|
-
example: "acc_123456789"
|
|
298
|
-
name:
|
|
299
|
-
type: string
|
|
300
|
-
description: Name of the account
|
|
301
|
-
example: "Itaú Checking Account"
|
|
302
|
-
type:
|
|
303
|
-
type: string
|
|
304
|
-
enum: [BANK_ACCOUNT, WALLET, SAVINGS_ACCOUNT, INVESTMENT_ACCOUNT, OTHER]
|
|
305
|
-
description: Type of account
|
|
306
|
-
example: "BANK_ACCOUNT"
|
|
307
|
-
initialBalance:
|
|
308
|
-
type: number
|
|
309
|
-
format: float
|
|
310
|
-
description: Initial balance when the account was created
|
|
311
|
-
example: 1000.00
|
|
312
|
-
currentBalance:
|
|
313
|
-
type: number
|
|
314
|
-
format: float
|
|
315
|
-
description: Current balance of the account
|
|
316
|
-
example: 850.00
|
|
317
|
-
createdAt:
|
|
318
|
-
type: string
|
|
319
|
-
format: date-time
|
|
320
|
-
description: Timestamp when the account was created
|
|
321
|
-
example: "2026-02-11T12:00:00Z"
|
|
322
|
-
updatedAt:
|
|
323
|
-
type: string
|
|
324
|
-
format: date-time
|
|
325
|
-
description: Timestamp when the account was last updated
|
|
326
|
-
example: "2026-02-11T15:30:00Z"
|
|
327
|
-
|
|
328
|
-
AccountBalance:
|
|
329
|
-
type: object
|
|
330
|
-
properties:
|
|
331
|
-
accountId:
|
|
332
|
-
type: string
|
|
333
|
-
description: ID of the account
|
|
334
|
-
example: "acc_123456789"
|
|
335
|
-
currentBalance:
|
|
336
|
-
type: number
|
|
337
|
-
format: float
|
|
338
|
-
description: Current balance of the account
|
|
339
|
-
example: 850.00
|
|
340
|
-
calculatedAt:
|
|
341
|
-
type: string
|
|
342
|
-
format: date-time
|
|
343
|
-
description: Timestamp when the balance was calculated
|
|
344
|
-
example: "2026-02-11T16:00:00Z"
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
CategoryBreakdown:
|
|
348
|
-
type: object
|
|
349
|
-
properties:
|
|
350
|
-
categoryId:
|
|
351
|
-
type: string
|
|
352
|
-
nullable: true
|
|
353
|
-
description: Category ID (null if uncategorized)
|
|
354
|
-
example: "cat-123"
|
|
355
|
-
categoryName:
|
|
356
|
-
type: string
|
|
357
|
-
nullable: true
|
|
358
|
-
description: Category name (null if uncategorized)
|
|
359
|
-
example: "Housing"
|
|
360
|
-
color:
|
|
361
|
-
type: string
|
|
362
|
-
nullable: true
|
|
363
|
-
description: Category color in hex format
|
|
364
|
-
example: "#ff5733"
|
|
365
|
-
total:
|
|
366
|
-
type: number
|
|
367
|
-
format: float
|
|
368
|
-
description: Total amount for this category
|
|
369
|
-
example: 1500.00
|
|
370
|
-
|
|
371
|
-
Summary:
|
|
372
|
-
type: object
|
|
373
|
-
properties:
|
|
374
|
-
period:
|
|
375
|
-
type: object
|
|
376
|
-
description: The period covered by this summary
|
|
377
|
-
properties:
|
|
378
|
-
month:
|
|
379
|
-
type: string
|
|
380
|
-
description: Month in YYYY-MM format (present when queried by month)
|
|
381
|
-
example: "2026-02"
|
|
382
|
-
startDate:
|
|
383
|
-
type: string
|
|
384
|
-
description: Start date in YYYY-MM-DD format (present when queried by range)
|
|
385
|
-
example: "2026-01-01"
|
|
386
|
-
endDate:
|
|
387
|
-
type: string
|
|
388
|
-
description: End date in YYYY-MM-DD format (present when queried by range)
|
|
389
|
-
example: "2026-03-31"
|
|
390
|
-
income:
|
|
391
|
-
type: number
|
|
392
|
-
format: float
|
|
393
|
-
description: Total income for the period (paid + pending)
|
|
394
|
-
example: 10000.00
|
|
395
|
-
expenses:
|
|
396
|
-
type: number
|
|
397
|
-
format: float
|
|
398
|
-
description: Total expenses for the period (paid + pending)
|
|
399
|
-
example: 4000.00
|
|
400
|
-
pendingIncome:
|
|
401
|
-
type: number
|
|
402
|
-
format: float
|
|
403
|
-
description: Sum of income transactions not yet marked as received
|
|
404
|
-
example: 1000.00
|
|
405
|
-
pendingExpenses:
|
|
406
|
-
type: number
|
|
407
|
-
format: float
|
|
408
|
-
description: Sum of expense transactions not yet marked as paid
|
|
409
|
-
example: 500.00
|
|
410
|
-
balance:
|
|
411
|
-
type: number
|
|
412
|
-
format: float
|
|
413
|
-
description: Net balance (income - expenses)
|
|
414
|
-
example: 6000.00
|
|
415
|
-
creditCardExpenses:
|
|
416
|
-
type: array
|
|
417
|
-
description: Credit card totals for the period
|
|
418
|
-
items:
|
|
419
|
-
type: object
|
|
420
|
-
properties:
|
|
421
|
-
cardId:
|
|
422
|
-
type: string
|
|
423
|
-
description: Credit card ID
|
|
424
|
-
example: "abc-123"
|
|
425
|
-
cardName:
|
|
426
|
-
type: string
|
|
427
|
-
description: Credit card name
|
|
428
|
-
example: "Nubank"
|
|
429
|
-
total:
|
|
430
|
-
type: number
|
|
431
|
-
format: float
|
|
432
|
-
description: Total charged to this card in the period
|
|
433
|
-
example: 2500.00
|
|
434
|
-
dueDate:
|
|
435
|
-
type: string
|
|
436
|
-
format: date
|
|
437
|
-
nullable: true
|
|
438
|
-
description: Statement due date (only present when queried by month)
|
|
439
|
-
example: "2026-03-22"
|
|
440
|
-
isPaid:
|
|
441
|
-
type: boolean
|
|
442
|
-
nullable: true
|
|
443
|
-
description: Whether the statement is fully paid (only present when queried by month)
|
|
444
|
-
example: false
|
|
445
|
-
expensesByCategory:
|
|
446
|
-
type: array
|
|
447
|
-
description: Expense totals grouped by category, sorted by total descending
|
|
448
|
-
items:
|
|
449
|
-
$ref: '#/components/schemas/CategoryBreakdown'
|
|
450
|
-
incomeByCategory:
|
|
451
|
-
type: array
|
|
452
|
-
description: Income totals grouped by category, sorted by total descending
|
|
453
|
-
items:
|
|
454
|
-
$ref: '#/components/schemas/CategoryBreakdown'
|
|
455
|
-
accounts:
|
|
456
|
-
type: array
|
|
457
|
-
description: >
|
|
458
|
-
All accounts with their current balance (initialBalance + paid income - paid expenses).
|
|
459
|
-
Not filtered by period.
|
|
460
|
-
items:
|
|
461
|
-
$ref: '#/components/schemas/AccountSummary'
|
|
462
|
-
totalBalance:
|
|
463
|
-
type: number
|
|
464
|
-
format: float
|
|
465
|
-
description: Sum of all account balances. Not filtered by period.
|
|
466
|
-
example: 8500.00
|
|
467
|
-
|
|
468
|
-
AccountSummary:
|
|
469
|
-
type: object
|
|
470
|
-
properties:
|
|
471
|
-
accountId:
|
|
472
|
-
type: string
|
|
473
|
-
description: Account ID
|
|
474
|
-
example: "acc-123"
|
|
475
|
-
accountName:
|
|
476
|
-
type: string
|
|
477
|
-
description: Account name
|
|
478
|
-
example: "Nubank"
|
|
479
|
-
accountType:
|
|
480
|
-
type: string
|
|
481
|
-
enum: [BANK_ACCOUNT, WALLET, SAVINGS_ACCOUNT, INVESTMENT_ACCOUNT, OTHER]
|
|
482
|
-
description: Account type
|
|
483
|
-
example: "BANK_ACCOUNT"
|
|
484
|
-
balance:
|
|
485
|
-
type: number
|
|
486
|
-
format: float
|
|
487
|
-
description: Current balance (initialBalance + paid income - paid expenses)
|
|
488
|
-
example: 2500.00
|
|
489
|
-
|
|
490
|
-
CreateTransactionRequest:
|
|
491
|
-
type: object
|
|
492
|
-
required:
|
|
493
|
-
- type
|
|
494
|
-
- name
|
|
495
|
-
- amount
|
|
496
|
-
- date
|
|
497
|
-
properties:
|
|
498
|
-
type:
|
|
499
|
-
$ref: '#/components/schemas/Transaction/properties/type'
|
|
500
|
-
name:
|
|
501
|
-
$ref: '#/components/schemas/Transaction/properties/name'
|
|
502
|
-
amount:
|
|
503
|
-
$ref: '#/components/schemas/Transaction/properties/amount'
|
|
504
|
-
date:
|
|
505
|
-
type: string
|
|
506
|
-
format: date
|
|
507
|
-
description: |
|
|
508
|
-
Date of the transaction.
|
|
509
|
-
For CREDIT payments, if targetDueMonth is provided, the date will be calculated based on the credit card's due day.
|
|
510
|
-
Otherwise, this date will be used directly.
|
|
511
|
-
example: "2026-01-30"
|
|
512
|
-
categoryId:
|
|
513
|
-
$ref: '#/components/schemas/Transaction/properties/categoryId'
|
|
514
|
-
paymentMethod:
|
|
515
|
-
$ref: '#/components/schemas/Transaction/properties/paymentMethod'
|
|
516
|
-
creditCardId:
|
|
517
|
-
$ref: '#/components/schemas/Transaction/properties/creditCardId'
|
|
518
|
-
installments:
|
|
519
|
-
type: integer
|
|
520
|
-
minimum: 1
|
|
521
|
-
description: Number of installments (optional)
|
|
522
|
-
example: 3
|
|
523
|
-
targetDueMonth:
|
|
524
|
-
type: string
|
|
525
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
526
|
-
description: |
|
|
527
|
-
Target month for due date in YYYY-MM format (optional).
|
|
528
|
-
When provided for CREDIT payments, the transaction date(s) will be set to the credit card's due day in the specified month.
|
|
529
|
-
For installments, each installment will be scheduled in subsequent months on the due day.
|
|
530
|
-
Example: if credit card due day is 10, and targetDueMonth is "2026-03", the transaction date will be 2026-03-10.
|
|
531
|
-
example: "2026-03"
|
|
532
|
-
accountId:
|
|
533
|
-
type: string
|
|
534
|
-
description: ID of the associated account (required if paymentMethod is not CREDIT)
|
|
535
|
-
example: "acc_123456789"
|
|
536
|
-
recurrence:
|
|
537
|
-
type: object
|
|
538
|
-
properties:
|
|
539
|
-
frequency:
|
|
540
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/frequency'
|
|
541
|
-
interval:
|
|
542
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/interval'
|
|
543
|
-
endDate:
|
|
544
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/endDate'
|
|
545
|
-
occurrences:
|
|
546
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/occurrences'
|
|
547
|
-
isPaid:
|
|
548
|
-
type: boolean
|
|
549
|
-
description: Whether the transaction is already paid at creation time (defaults to false)
|
|
550
|
-
example: false
|
|
551
|
-
purchaseDate:
|
|
552
|
-
type: string
|
|
553
|
-
format: date
|
|
554
|
-
description: Actual purchase date (credit card only, optional)
|
|
555
|
-
example: "2026-02-10"
|
|
556
|
-
|
|
557
|
-
UpdateTransactionRequest:
|
|
558
|
-
type: object
|
|
559
|
-
properties:
|
|
560
|
-
type:
|
|
561
|
-
$ref: '#/components/schemas/Transaction/properties/type'
|
|
562
|
-
name:
|
|
563
|
-
$ref: '#/components/schemas/Transaction/properties/name'
|
|
564
|
-
amount:
|
|
565
|
-
$ref: '#/components/schemas/Transaction/properties/amount'
|
|
566
|
-
date:
|
|
567
|
-
type: string
|
|
568
|
-
format: date
|
|
569
|
-
description: |
|
|
570
|
-
Date of the transaction.
|
|
571
|
-
For CREDIT payments, if targetDueMonth is provided, the date will be calculated based on the credit card's due day.
|
|
572
|
-
Otherwise, this date will be used directly.
|
|
573
|
-
example: "2026-01-30"
|
|
574
|
-
categoryId:
|
|
575
|
-
$ref: '#/components/schemas/Transaction/properties/categoryId'
|
|
576
|
-
paymentMethod:
|
|
577
|
-
$ref: '#/components/schemas/Transaction/properties/paymentMethod'
|
|
578
|
-
creditCardId:
|
|
579
|
-
$ref: '#/components/schemas/Transaction/properties/creditCardId'
|
|
580
|
-
targetDueMonth:
|
|
581
|
-
type: string
|
|
582
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
583
|
-
description: |
|
|
584
|
-
Target month for due date in YYYY-MM format (optional).
|
|
585
|
-
When provided for CREDIT payments, the transaction date will be set to the credit card's due day in the specified month.
|
|
586
|
-
Example: if credit card due day is 10, and targetDueMonth is "2026-03", the transaction date will be 2026-03-10.
|
|
587
|
-
example: "2026-03"
|
|
588
|
-
accountId:
|
|
589
|
-
type: string
|
|
590
|
-
description: ID of the associated account (required if paymentMethod is not CREDIT)
|
|
591
|
-
example: "acc_123456789"
|
|
592
|
-
recurrence:
|
|
593
|
-
type: object
|
|
594
|
-
properties:
|
|
595
|
-
frequency:
|
|
596
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/frequency'
|
|
597
|
-
interval:
|
|
598
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/interval'
|
|
599
|
-
endDate:
|
|
600
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/endDate'
|
|
601
|
-
occurrences:
|
|
602
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/occurrences'
|
|
603
|
-
|
|
604
|
-
Settings:
|
|
605
|
-
type: object
|
|
606
|
-
required:
|
|
607
|
-
- userName
|
|
608
|
-
- language
|
|
609
|
-
- currency
|
|
610
|
-
properties:
|
|
611
|
-
userName:
|
|
612
|
-
type: string
|
|
613
|
-
description: Name of the user
|
|
614
|
-
example: "John Doe"
|
|
615
|
-
language:
|
|
616
|
-
type: string
|
|
617
|
-
enum: [pt-BR, en-US]
|
|
618
|
-
description: Preferred language
|
|
619
|
-
example: "pt-BR"
|
|
620
|
-
currency:
|
|
621
|
-
type: string
|
|
622
|
-
enum: [BRL, USD, EUR, GBP, JPY, CAD, AUD, CHF]
|
|
623
|
-
description: Default currency
|
|
624
|
-
example: "BRL"
|
|
625
|
-
createdAt:
|
|
626
|
-
type: string
|
|
627
|
-
format: date-time
|
|
628
|
-
description: Timestamp when settings were created
|
|
629
|
-
example: "2026-01-30T10:00:00Z"
|
|
630
|
-
updatedAt:
|
|
631
|
-
type: string
|
|
632
|
-
format: date-time
|
|
633
|
-
description: Timestamp when settings were last updated
|
|
634
|
-
example: "2026-01-30T10:00:00Z"
|
|
635
|
-
|
|
636
|
-
Transfer:
|
|
637
|
-
type: object
|
|
638
|
-
required:
|
|
639
|
-
- sourceAccountId
|
|
640
|
-
- destinationAccountId
|
|
641
|
-
- amount
|
|
642
|
-
- date
|
|
643
|
-
properties:
|
|
644
|
-
id:
|
|
645
|
-
type: string
|
|
646
|
-
description: Unique identifier for the transfer
|
|
647
|
-
example: "tr_123456789"
|
|
648
|
-
sourceAccountId:
|
|
649
|
-
type: string
|
|
650
|
-
description: ID of the account funds are transferred from
|
|
651
|
-
example: "acc_111111111"
|
|
652
|
-
destinationAccountId:
|
|
653
|
-
type: string
|
|
654
|
-
description: ID of the account funds are transferred to
|
|
655
|
-
example: "acc_222222222"
|
|
656
|
-
amount:
|
|
657
|
-
type: number
|
|
658
|
-
format: float
|
|
659
|
-
minimum: 0.01
|
|
660
|
-
description: Amount to transfer
|
|
661
|
-
example: 100.00
|
|
662
|
-
date:
|
|
663
|
-
type: string
|
|
664
|
-
format: date
|
|
665
|
-
description: Date of the transfer (YYYY-MM-DD)
|
|
666
|
-
example: "2026-02-17"
|
|
667
|
-
createdAt:
|
|
668
|
-
type: string
|
|
669
|
-
format: date-time
|
|
670
|
-
description: Timestamp when the transfer was created
|
|
671
|
-
example: "2026-02-17T10:00:00Z"
|
|
672
|
-
updatedAt:
|
|
673
|
-
type: string
|
|
674
|
-
format: date-time
|
|
675
|
-
description: Timestamp when the transfer was last updated
|
|
676
|
-
example: "2026-02-17T10:00:00Z"
|
|
677
|
-
|
|
678
|
-
responses:
|
|
679
|
-
UnauthorizedError:
|
|
680
|
-
description: API key is missing or invalid
|
|
681
|
-
content:
|
|
682
|
-
application/json:
|
|
683
|
-
schema:
|
|
684
|
-
type: object
|
|
685
|
-
properties:
|
|
686
|
-
statusCode:
|
|
687
|
-
type: integer
|
|
688
|
-
example: 401
|
|
689
|
-
error:
|
|
690
|
-
type: string
|
|
691
|
-
example: "Unauthorized"
|
|
692
|
-
message:
|
|
693
|
-
type: string
|
|
694
|
-
example: "Invalid API key"
|
|
695
|
-
|
|
696
|
-
security:
|
|
697
|
-
- ApiKeyAuth: []
|
|
698
|
-
|
|
699
2
|
paths:
|
|
3
|
+
/:
|
|
4
|
+
get:
|
|
5
|
+
operationId: getHello
|
|
6
|
+
parameters: []
|
|
7
|
+
responses:
|
|
8
|
+
'200':
|
|
9
|
+
description: ''
|
|
10
|
+
tags:
|
|
11
|
+
- App
|
|
12
|
+
/subscriptions:
|
|
13
|
+
post:
|
|
14
|
+
operationId: create
|
|
15
|
+
parameters:
|
|
16
|
+
- &ref_0
|
|
17
|
+
name: x-api-key
|
|
18
|
+
in: header
|
|
19
|
+
required: false
|
|
20
|
+
schema:
|
|
21
|
+
type: string
|
|
22
|
+
requestBody:
|
|
23
|
+
required: true
|
|
24
|
+
content:
|
|
25
|
+
application/json:
|
|
26
|
+
schema:
|
|
27
|
+
$ref: '#/components/schemas/CreateSubscriptionDto'
|
|
28
|
+
responses:
|
|
29
|
+
'201':
|
|
30
|
+
description: Subscription created successfully.
|
|
31
|
+
'400':
|
|
32
|
+
description: Invalid input.
|
|
33
|
+
'404':
|
|
34
|
+
description: Credit card not found.
|
|
35
|
+
security: &ref_1
|
|
36
|
+
- bearer: []
|
|
37
|
+
summary: Create a new subscription
|
|
38
|
+
tags: &ref_2
|
|
39
|
+
- subscriptions
|
|
40
|
+
get:
|
|
41
|
+
operationId: findAll
|
|
42
|
+
parameters:
|
|
43
|
+
- *ref_0
|
|
44
|
+
responses:
|
|
45
|
+
'200':
|
|
46
|
+
description: List of subscriptions.
|
|
47
|
+
security: *ref_1
|
|
48
|
+
summary: Get all subscriptions
|
|
49
|
+
tags: *ref_2
|
|
50
|
+
/subscriptions/active:
|
|
51
|
+
get:
|
|
52
|
+
operationId: findActive
|
|
53
|
+
parameters:
|
|
54
|
+
- *ref_0
|
|
55
|
+
responses:
|
|
56
|
+
'200':
|
|
57
|
+
description: List of active subscriptions.
|
|
58
|
+
security: *ref_1
|
|
59
|
+
summary: Get all active subscriptions
|
|
60
|
+
tags: *ref_2
|
|
61
|
+
/subscriptions/{id}:
|
|
62
|
+
get:
|
|
63
|
+
operationId: findOne
|
|
64
|
+
parameters:
|
|
65
|
+
- *ref_0
|
|
66
|
+
- name: id
|
|
67
|
+
required: true
|
|
68
|
+
in: path
|
|
69
|
+
schema:
|
|
70
|
+
type: string
|
|
71
|
+
responses:
|
|
72
|
+
'200':
|
|
73
|
+
description: Subscription found.
|
|
74
|
+
'404':
|
|
75
|
+
description: Subscription not found.
|
|
76
|
+
security: *ref_1
|
|
77
|
+
summary: Get a subscription by ID
|
|
78
|
+
tags: *ref_2
|
|
79
|
+
patch:
|
|
80
|
+
operationId: update
|
|
81
|
+
parameters:
|
|
82
|
+
- *ref_0
|
|
83
|
+
- name: id
|
|
84
|
+
required: true
|
|
85
|
+
in: path
|
|
86
|
+
schema:
|
|
87
|
+
type: string
|
|
88
|
+
requestBody:
|
|
89
|
+
required: true
|
|
90
|
+
content:
|
|
91
|
+
application/json:
|
|
92
|
+
schema:
|
|
93
|
+
$ref: '#/components/schemas/UpdateSubscriptionDto'
|
|
94
|
+
responses:
|
|
95
|
+
'200':
|
|
96
|
+
description: Subscription updated successfully.
|
|
97
|
+
'404':
|
|
98
|
+
description: Subscription or credit card not found.
|
|
99
|
+
security: *ref_1
|
|
100
|
+
summary: Update a subscription
|
|
101
|
+
tags: *ref_2
|
|
102
|
+
delete:
|
|
103
|
+
operationId: remove
|
|
104
|
+
parameters:
|
|
105
|
+
- *ref_0
|
|
106
|
+
- name: id
|
|
107
|
+
required: true
|
|
108
|
+
in: path
|
|
109
|
+
schema:
|
|
110
|
+
type: string
|
|
111
|
+
responses:
|
|
112
|
+
'200':
|
|
113
|
+
description: Subscription deactivated successfully.
|
|
114
|
+
'404':
|
|
115
|
+
description: Subscription not found.
|
|
116
|
+
security: *ref_1
|
|
117
|
+
summary: Deactivate a subscription (soft delete)
|
|
118
|
+
tags: *ref_2
|
|
119
|
+
/subscriptions/{id}/permanent:
|
|
120
|
+
delete:
|
|
121
|
+
operationId: hardDelete
|
|
122
|
+
parameters:
|
|
123
|
+
- *ref_0
|
|
124
|
+
- name: id
|
|
125
|
+
required: true
|
|
126
|
+
in: path
|
|
127
|
+
schema:
|
|
128
|
+
type: string
|
|
129
|
+
responses:
|
|
130
|
+
'200':
|
|
131
|
+
description: Subscription deleted permanently.
|
|
132
|
+
'404':
|
|
133
|
+
description: Subscription not found.
|
|
134
|
+
security: *ref_1
|
|
135
|
+
summary: Permanently delete a subscription
|
|
136
|
+
tags: *ref_2
|
|
137
|
+
/subscriptions/{id}/reactivate:
|
|
138
|
+
patch:
|
|
139
|
+
operationId: reactivate
|
|
140
|
+
parameters:
|
|
141
|
+
- *ref_0
|
|
142
|
+
- name: id
|
|
143
|
+
required: true
|
|
144
|
+
in: path
|
|
145
|
+
schema:
|
|
146
|
+
type: string
|
|
147
|
+
responses:
|
|
148
|
+
'200':
|
|
149
|
+
description: Subscription reactivated successfully.
|
|
150
|
+
'404':
|
|
151
|
+
description: Subscription not found.
|
|
152
|
+
security: *ref_1
|
|
153
|
+
summary: Reactivate a deactivated subscription
|
|
154
|
+
tags: *ref_2
|
|
155
|
+
/auth/register:
|
|
156
|
+
post:
|
|
157
|
+
operationId: register
|
|
158
|
+
parameters: []
|
|
159
|
+
requestBody:
|
|
160
|
+
required: true
|
|
161
|
+
content:
|
|
162
|
+
application/json:
|
|
163
|
+
schema:
|
|
164
|
+
$ref: '#/components/schemas/RegisterDto'
|
|
165
|
+
responses:
|
|
166
|
+
'201':
|
|
167
|
+
description: User successfully registered
|
|
168
|
+
'409':
|
|
169
|
+
description: Email already exists
|
|
170
|
+
summary: Register a new user
|
|
171
|
+
tags: &ref_3
|
|
172
|
+
- auth
|
|
173
|
+
/auth/login:
|
|
174
|
+
post:
|
|
175
|
+
operationId: login
|
|
176
|
+
parameters:
|
|
177
|
+
- name: user-agent
|
|
178
|
+
required: true
|
|
179
|
+
in: header
|
|
180
|
+
schema:
|
|
181
|
+
type: string
|
|
182
|
+
requestBody:
|
|
183
|
+
required: true
|
|
184
|
+
content:
|
|
185
|
+
application/json:
|
|
186
|
+
schema:
|
|
187
|
+
$ref: '#/components/schemas/LoginDto'
|
|
188
|
+
responses:
|
|
189
|
+
'200':
|
|
190
|
+
description: Login successful, returns JWT
|
|
191
|
+
'401':
|
|
192
|
+
description: Invalid credentials
|
|
193
|
+
summary: Login with email and password
|
|
194
|
+
tags: *ref_3
|
|
195
|
+
/auth/refresh:
|
|
196
|
+
post:
|
|
197
|
+
operationId: refresh
|
|
198
|
+
parameters: []
|
|
199
|
+
responses:
|
|
200
|
+
'200':
|
|
201
|
+
description: Token refreshed successfully
|
|
202
|
+
'401':
|
|
203
|
+
description: Invalid refresh token
|
|
204
|
+
summary: Refresh access token using refresh token cookie
|
|
205
|
+
tags: *ref_3
|
|
206
|
+
/auth/logout:
|
|
207
|
+
post:
|
|
208
|
+
operationId: logout
|
|
209
|
+
parameters: []
|
|
210
|
+
responses:
|
|
211
|
+
'200':
|
|
212
|
+
description: Logout successful
|
|
213
|
+
security:
|
|
214
|
+
- bearer: []
|
|
215
|
+
summary: Logout and invalidate session
|
|
216
|
+
tags: *ref_3
|
|
217
|
+
/auth/change-password:
|
|
218
|
+
post:
|
|
219
|
+
operationId: changePassword
|
|
220
|
+
parameters: []
|
|
221
|
+
requestBody:
|
|
222
|
+
required: true
|
|
223
|
+
content:
|
|
224
|
+
application/json:
|
|
225
|
+
schema:
|
|
226
|
+
$ref: '#/components/schemas/ChangePasswordDto'
|
|
227
|
+
responses:
|
|
228
|
+
'200':
|
|
229
|
+
description: Password changed successfully
|
|
230
|
+
'401':
|
|
231
|
+
description: Current password incorrect
|
|
232
|
+
security:
|
|
233
|
+
- bearer: []
|
|
234
|
+
summary: Change authenticated user password
|
|
235
|
+
tags: *ref_3
|
|
236
|
+
/auth/forgot-password:
|
|
237
|
+
post:
|
|
238
|
+
operationId: forgotPassword
|
|
239
|
+
parameters: []
|
|
240
|
+
requestBody:
|
|
241
|
+
required: true
|
|
242
|
+
content:
|
|
243
|
+
application/json:
|
|
244
|
+
schema:
|
|
245
|
+
$ref: '#/components/schemas/ForgotPasswordDto'
|
|
246
|
+
responses:
|
|
247
|
+
'200':
|
|
248
|
+
description: If email exists, a reset link will be sent
|
|
249
|
+
summary: Request a password reset link
|
|
250
|
+
tags: *ref_3
|
|
251
|
+
/auth/reset-password:
|
|
252
|
+
post:
|
|
253
|
+
operationId: resetPassword
|
|
254
|
+
parameters: []
|
|
255
|
+
requestBody:
|
|
256
|
+
required: true
|
|
257
|
+
content:
|
|
258
|
+
application/json:
|
|
259
|
+
schema:
|
|
260
|
+
$ref: '#/components/schemas/ResetPasswordDto'
|
|
261
|
+
responses:
|
|
262
|
+
'200':
|
|
263
|
+
description: Password reset successfully
|
|
264
|
+
'400':
|
|
265
|
+
description: Invalid or expired token
|
|
266
|
+
summary: Reset password using token
|
|
267
|
+
tags: *ref_3
|
|
268
|
+
/auth/sessions:
|
|
269
|
+
get:
|
|
270
|
+
operationId: getSessions
|
|
271
|
+
parameters: []
|
|
272
|
+
responses:
|
|
273
|
+
'200':
|
|
274
|
+
description: Returns list of sessions
|
|
275
|
+
security:
|
|
276
|
+
- bearer: []
|
|
277
|
+
summary: List active sessions for current user
|
|
278
|
+
tags: *ref_3
|
|
279
|
+
delete:
|
|
280
|
+
operationId: revokeAllOtherSessions
|
|
281
|
+
parameters: []
|
|
282
|
+
responses:
|
|
283
|
+
'200':
|
|
284
|
+
description: Other sessions revoked successfully
|
|
285
|
+
security:
|
|
286
|
+
- bearer: []
|
|
287
|
+
summary: Revoke all other sessions
|
|
288
|
+
tags: *ref_3
|
|
289
|
+
/auth/sessions/{id}:
|
|
290
|
+
delete:
|
|
291
|
+
operationId: revokeSession
|
|
292
|
+
parameters:
|
|
293
|
+
- name: id
|
|
294
|
+
required: true
|
|
295
|
+
in: path
|
|
296
|
+
schema:
|
|
297
|
+
type: string
|
|
298
|
+
responses:
|
|
299
|
+
'200':
|
|
300
|
+
description: Session revoked successfully
|
|
301
|
+
security:
|
|
302
|
+
- bearer: []
|
|
303
|
+
summary: Revoke a specific session
|
|
304
|
+
tags: *ref_3
|
|
305
|
+
/auth/me:
|
|
306
|
+
get:
|
|
307
|
+
operationId: getProfile
|
|
308
|
+
parameters: []
|
|
309
|
+
responses:
|
|
310
|
+
'200':
|
|
311
|
+
description: Returns user profile
|
|
312
|
+
'401':
|
|
313
|
+
description: Unauthorized
|
|
314
|
+
security:
|
|
315
|
+
- bearer: []
|
|
316
|
+
summary: Get current user profile
|
|
317
|
+
tags: *ref_3
|
|
318
|
+
/dev/notifications/trigger/{event}:
|
|
319
|
+
get:
|
|
320
|
+
operationId: trigger
|
|
321
|
+
parameters:
|
|
322
|
+
- name: event
|
|
323
|
+
required: true
|
|
324
|
+
in: path
|
|
325
|
+
schema:
|
|
326
|
+
type: string
|
|
327
|
+
- name: to
|
|
328
|
+
required: true
|
|
329
|
+
in: query
|
|
330
|
+
schema:
|
|
331
|
+
type: string
|
|
332
|
+
responses:
|
|
333
|
+
'200':
|
|
334
|
+
description: ''
|
|
335
|
+
tags:
|
|
336
|
+
- NotificationsSandbox
|
|
337
|
+
/chat/message:
|
|
338
|
+
post:
|
|
339
|
+
operationId: handleMessage
|
|
340
|
+
parameters: []
|
|
341
|
+
requestBody:
|
|
342
|
+
required: true
|
|
343
|
+
content:
|
|
344
|
+
application/json:
|
|
345
|
+
schema:
|
|
346
|
+
$ref: '#/components/schemas/SendMessageDto'
|
|
347
|
+
responses:
|
|
348
|
+
'202':
|
|
349
|
+
description: ''
|
|
350
|
+
tags: &ref_4
|
|
351
|
+
- Chat
|
|
352
|
+
/chat/sync:
|
|
353
|
+
get:
|
|
354
|
+
operationId: getHistory
|
|
355
|
+
parameters:
|
|
356
|
+
- name: limit
|
|
357
|
+
required: true
|
|
358
|
+
in: query
|
|
359
|
+
schema:
|
|
360
|
+
type: number
|
|
361
|
+
responses:
|
|
362
|
+
'200':
|
|
363
|
+
description: ''
|
|
364
|
+
tags: *ref_4
|
|
365
|
+
/chat/unread-count:
|
|
366
|
+
get:
|
|
367
|
+
operationId: getUnreadCount
|
|
368
|
+
parameters: []
|
|
369
|
+
responses:
|
|
370
|
+
'200':
|
|
371
|
+
description: ''
|
|
372
|
+
tags: *ref_4
|
|
373
|
+
/chat/mark-as-read:
|
|
374
|
+
post:
|
|
375
|
+
operationId: markAsRead
|
|
376
|
+
parameters: []
|
|
377
|
+
responses:
|
|
378
|
+
'201':
|
|
379
|
+
description: ''
|
|
380
|
+
tags: *ref_4
|
|
700
381
|
/categories:
|
|
701
382
|
post:
|
|
383
|
+
operationId: create
|
|
384
|
+
parameters:
|
|
385
|
+
- &ref_5
|
|
386
|
+
name: x-api-key
|
|
387
|
+
in: header
|
|
388
|
+
required: false
|
|
389
|
+
schema:
|
|
390
|
+
type: string
|
|
391
|
+
requestBody:
|
|
392
|
+
required: true
|
|
393
|
+
content:
|
|
394
|
+
application/json:
|
|
395
|
+
schema:
|
|
396
|
+
$ref: '#/components/schemas/CreateCategoryDto'
|
|
397
|
+
responses:
|
|
398
|
+
'201':
|
|
399
|
+
description: Category created successfully.
|
|
400
|
+
'400':
|
|
401
|
+
description: Invalid input.
|
|
402
|
+
security: &ref_6
|
|
403
|
+
- bearer: []
|
|
702
404
|
summary: Create a new category
|
|
405
|
+
tags: &ref_7
|
|
406
|
+
- categories
|
|
407
|
+
get:
|
|
408
|
+
operationId: findAll
|
|
409
|
+
parameters:
|
|
410
|
+
- *ref_5
|
|
411
|
+
responses:
|
|
412
|
+
'200':
|
|
413
|
+
description: List of categories.
|
|
414
|
+
security: *ref_6
|
|
415
|
+
summary: Get all categories
|
|
416
|
+
tags: *ref_7
|
|
417
|
+
/categories/{id}:
|
|
418
|
+
get:
|
|
419
|
+
operationId: findOne
|
|
420
|
+
parameters:
|
|
421
|
+
- *ref_5
|
|
422
|
+
- name: id
|
|
423
|
+
required: true
|
|
424
|
+
in: path
|
|
425
|
+
schema:
|
|
426
|
+
type: string
|
|
427
|
+
responses:
|
|
428
|
+
'200':
|
|
429
|
+
description: Category found.
|
|
430
|
+
'404':
|
|
431
|
+
description: Category not found.
|
|
432
|
+
security: *ref_6
|
|
433
|
+
summary: Get a category by ID
|
|
434
|
+
tags: *ref_7
|
|
435
|
+
patch:
|
|
436
|
+
operationId: update
|
|
437
|
+
parameters:
|
|
438
|
+
- *ref_5
|
|
439
|
+
- name: id
|
|
440
|
+
required: true
|
|
441
|
+
in: path
|
|
442
|
+
schema:
|
|
443
|
+
type: string
|
|
444
|
+
requestBody:
|
|
445
|
+
required: true
|
|
446
|
+
content:
|
|
447
|
+
application/json:
|
|
448
|
+
schema:
|
|
449
|
+
$ref: '#/components/schemas/UpdateCategoryDto'
|
|
450
|
+
responses:
|
|
451
|
+
'200':
|
|
452
|
+
description: Category updated successfully.
|
|
453
|
+
'404':
|
|
454
|
+
description: Category not found.
|
|
455
|
+
security: *ref_6
|
|
456
|
+
summary: Update a category
|
|
457
|
+
tags: *ref_7
|
|
458
|
+
delete:
|
|
459
|
+
operationId: remove
|
|
460
|
+
parameters:
|
|
461
|
+
- *ref_5
|
|
462
|
+
- name: id
|
|
463
|
+
required: true
|
|
464
|
+
in: path
|
|
465
|
+
schema:
|
|
466
|
+
type: string
|
|
467
|
+
responses:
|
|
468
|
+
'200':
|
|
469
|
+
description: Category deleted successfully.
|
|
470
|
+
'404':
|
|
471
|
+
description: Category not found.
|
|
472
|
+
security: *ref_6
|
|
473
|
+
summary: Delete a category
|
|
474
|
+
tags: *ref_7
|
|
475
|
+
/transactions:
|
|
476
|
+
post:
|
|
477
|
+
operationId: create
|
|
478
|
+
parameters:
|
|
479
|
+
- &ref_8
|
|
480
|
+
name: x-api-key
|
|
481
|
+
in: header
|
|
482
|
+
required: false
|
|
483
|
+
schema:
|
|
484
|
+
type: string
|
|
703
485
|
requestBody:
|
|
704
486
|
required: true
|
|
705
487
|
content:
|
|
706
488
|
application/json:
|
|
707
489
|
schema:
|
|
708
|
-
|
|
709
|
-
required:
|
|
710
|
-
- name
|
|
711
|
-
- type
|
|
712
|
-
properties:
|
|
713
|
-
name:
|
|
714
|
-
type: string
|
|
715
|
-
example: "Groceries"
|
|
716
|
-
type:
|
|
717
|
-
type: string
|
|
718
|
-
enum: [INCOME, EXPENSE]
|
|
719
|
-
example: "EXPENSE"
|
|
720
|
-
color:
|
|
721
|
-
type: string
|
|
722
|
-
nullable: true
|
|
723
|
-
pattern: "^#[0-9A-Fa-f]{6}$"
|
|
724
|
-
description: Color in hexadecimal format
|
|
725
|
-
example: "#FF5733"
|
|
490
|
+
$ref: '#/components/schemas/CreateTransactionDto'
|
|
726
491
|
responses:
|
|
727
492
|
'201':
|
|
728
|
-
description:
|
|
729
|
-
content:
|
|
730
|
-
application/json:
|
|
731
|
-
schema:
|
|
732
|
-
$ref: '#/components/schemas/Category'
|
|
493
|
+
description: Transaction created successfully.
|
|
733
494
|
'400':
|
|
734
|
-
description: Invalid input
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
495
|
+
description: Invalid input.
|
|
496
|
+
security: &ref_9
|
|
497
|
+
- bearer: []
|
|
498
|
+
summary: Create a new transaction
|
|
499
|
+
tags: &ref_10
|
|
500
|
+
- transactions
|
|
738
501
|
get:
|
|
739
|
-
|
|
502
|
+
operationId: findAll
|
|
503
|
+
parameters:
|
|
504
|
+
- *ref_8
|
|
505
|
+
- name: month
|
|
506
|
+
required: false
|
|
507
|
+
in: query
|
|
508
|
+
description: Filter by month (YYYY-MM)
|
|
509
|
+
schema:
|
|
510
|
+
example: 2026-03
|
|
511
|
+
type: string
|
|
512
|
+
- name: accountId
|
|
513
|
+
required: false
|
|
514
|
+
in: query
|
|
515
|
+
description: Filter by account ID
|
|
516
|
+
schema:
|
|
517
|
+
example: acc_123456789
|
|
518
|
+
type: string
|
|
519
|
+
- name: categoryId
|
|
520
|
+
required: false
|
|
521
|
+
in: query
|
|
522
|
+
description: Filter by category ID
|
|
523
|
+
schema:
|
|
524
|
+
example: cat_123456789
|
|
525
|
+
type: string
|
|
526
|
+
- name: creditCardId
|
|
527
|
+
required: false
|
|
528
|
+
in: query
|
|
529
|
+
description: Filter by credit card ID
|
|
530
|
+
schema:
|
|
531
|
+
example: cc_123456789
|
|
532
|
+
type: string
|
|
533
|
+
- name: type
|
|
534
|
+
required: false
|
|
535
|
+
in: query
|
|
536
|
+
description: Filter by transaction type
|
|
537
|
+
schema:
|
|
538
|
+
example: EXPENSE
|
|
539
|
+
type: string
|
|
540
|
+
enum:
|
|
541
|
+
- INCOME
|
|
542
|
+
- EXPENSE
|
|
543
|
+
- name: startDate
|
|
544
|
+
required: false
|
|
545
|
+
in: query
|
|
546
|
+
description: Filter by start date (YYYY-MM-DD)
|
|
547
|
+
schema:
|
|
548
|
+
example: '2026-01-01'
|
|
549
|
+
type: string
|
|
550
|
+
- name: endDate
|
|
551
|
+
required: false
|
|
552
|
+
in: query
|
|
553
|
+
description: Filter by end date (YYYY-MM-DD)
|
|
554
|
+
schema:
|
|
555
|
+
example: '2026-01-31'
|
|
556
|
+
type: string
|
|
557
|
+
- name: paid
|
|
558
|
+
required: false
|
|
559
|
+
in: query
|
|
560
|
+
description: Filter by payment status (true = paid, false = unpaid)
|
|
561
|
+
schema:
|
|
562
|
+
example: false
|
|
563
|
+
type: boolean
|
|
740
564
|
responses:
|
|
741
565
|
'200':
|
|
742
|
-
description: List of
|
|
566
|
+
description: List of transactions with related data.
|
|
743
567
|
content:
|
|
744
568
|
application/json:
|
|
745
569
|
schema:
|
|
746
570
|
type: array
|
|
747
571
|
items:
|
|
748
|
-
$ref: '#/components/schemas/
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
/
|
|
572
|
+
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
573
|
+
security: *ref_9
|
|
574
|
+
summary: Get all transactions with optional filters
|
|
575
|
+
tags: *ref_10
|
|
576
|
+
/transactions/{id}:
|
|
753
577
|
get:
|
|
754
|
-
|
|
578
|
+
operationId: findOne
|
|
755
579
|
parameters:
|
|
580
|
+
- *ref_8
|
|
756
581
|
- name: id
|
|
757
|
-
in: path
|
|
758
582
|
required: true
|
|
583
|
+
in: path
|
|
759
584
|
schema:
|
|
760
585
|
type: string
|
|
761
|
-
description: Category ID
|
|
762
586
|
responses:
|
|
763
587
|
'200':
|
|
764
|
-
description:
|
|
588
|
+
description: Transaction found with related data.
|
|
765
589
|
content:
|
|
766
590
|
application/json:
|
|
767
591
|
schema:
|
|
768
|
-
$ref: '#/components/schemas/
|
|
769
|
-
'401':
|
|
770
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
592
|
+
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
771
593
|
'404':
|
|
772
|
-
description:
|
|
773
|
-
|
|
594
|
+
description: Transaction not found.
|
|
595
|
+
security: *ref_9
|
|
596
|
+
summary: Get a transaction by ID
|
|
597
|
+
tags: *ref_10
|
|
774
598
|
patch:
|
|
775
|
-
|
|
599
|
+
operationId: update
|
|
776
600
|
parameters:
|
|
601
|
+
- *ref_8
|
|
777
602
|
- name: id
|
|
778
|
-
in: path
|
|
779
603
|
required: true
|
|
604
|
+
in: path
|
|
605
|
+
schema:
|
|
606
|
+
type: string
|
|
607
|
+
- name: mode
|
|
608
|
+
required: false
|
|
609
|
+
in: query
|
|
610
|
+
description: >-
|
|
611
|
+
Update mode for recurring transactions: SINGLE (only this
|
|
612
|
+
transaction), PENDING (this and future pending transactions), ALL
|
|
613
|
+
(all transactions in the series)
|
|
780
614
|
schema:
|
|
615
|
+
enum:
|
|
616
|
+
- SINGLE
|
|
617
|
+
- PENDING
|
|
618
|
+
- ALL
|
|
781
619
|
type: string
|
|
782
|
-
description: Category ID
|
|
783
620
|
requestBody:
|
|
784
621
|
required: true
|
|
785
622
|
content:
|
|
786
623
|
application/json:
|
|
787
624
|
schema:
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
example: "Groceries"
|
|
793
|
-
color:
|
|
794
|
-
type: string
|
|
795
|
-
nullable: true
|
|
796
|
-
pattern: "^#[0-9A-Fa-f]{6}$"
|
|
797
|
-
description: Color in hexadecimal format
|
|
798
|
-
example: "#FF5733"
|
|
799
|
-
responses:
|
|
800
|
-
'200':
|
|
801
|
-
description: Category updated successfully
|
|
625
|
+
$ref: '#/components/schemas/UpdateTransactionDto'
|
|
626
|
+
responses:
|
|
627
|
+
'200':
|
|
628
|
+
description: Transaction updated successfully with related data.
|
|
802
629
|
content:
|
|
803
630
|
application/json:
|
|
804
631
|
schema:
|
|
805
|
-
$ref: '#/components/schemas/
|
|
806
|
-
'400':
|
|
807
|
-
description: Invalid input
|
|
808
|
-
'401':
|
|
809
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
632
|
+
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
810
633
|
'404':
|
|
811
|
-
description:
|
|
812
|
-
|
|
634
|
+
description: Transaction not found.
|
|
635
|
+
security: *ref_9
|
|
636
|
+
summary: Update a transaction
|
|
637
|
+
tags: *ref_10
|
|
813
638
|
delete:
|
|
814
|
-
|
|
639
|
+
operationId: remove
|
|
815
640
|
parameters:
|
|
641
|
+
- *ref_8
|
|
816
642
|
- name: id
|
|
643
|
+
required: true
|
|
817
644
|
in: path
|
|
645
|
+
schema:
|
|
646
|
+
type: string
|
|
647
|
+
- name: mode
|
|
648
|
+
required: false
|
|
649
|
+
in: query
|
|
650
|
+
description: >-
|
|
651
|
+
Deletion mode for recurring transactions: SINGLE (only this
|
|
652
|
+
transaction), PENDING (this and future pending transactions), ALL
|
|
653
|
+
(all transactions in the series)
|
|
654
|
+
schema:
|
|
655
|
+
enum:
|
|
656
|
+
- SINGLE
|
|
657
|
+
- PENDING
|
|
658
|
+
- ALL
|
|
659
|
+
type: string
|
|
660
|
+
responses:
|
|
661
|
+
'200':
|
|
662
|
+
description: Transaction deleted successfully.
|
|
663
|
+
'404':
|
|
664
|
+
description: Transaction not found.
|
|
665
|
+
security: *ref_9
|
|
666
|
+
summary: Delete a transaction
|
|
667
|
+
tags: *ref_10
|
|
668
|
+
/transactions/{id}/pay:
|
|
669
|
+
patch:
|
|
670
|
+
operationId: markAsPaid
|
|
671
|
+
parameters:
|
|
672
|
+
- *ref_8
|
|
673
|
+
- name: id
|
|
818
674
|
required: true
|
|
675
|
+
in: path
|
|
819
676
|
schema:
|
|
820
677
|
type: string
|
|
821
|
-
description: Category ID
|
|
822
678
|
responses:
|
|
823
679
|
'200':
|
|
824
|
-
description:
|
|
825
|
-
|
|
826
|
-
|
|
680
|
+
description: Transaction marked as paid with related data.
|
|
681
|
+
content:
|
|
682
|
+
application/json:
|
|
683
|
+
schema:
|
|
684
|
+
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
827
685
|
'404':
|
|
828
|
-
description:
|
|
829
|
-
|
|
686
|
+
description: Transaction not found.
|
|
687
|
+
security: *ref_9
|
|
688
|
+
summary: Mark a transaction as paid
|
|
689
|
+
tags: *ref_10
|
|
690
|
+
/transactions/{id}/unpay:
|
|
691
|
+
patch:
|
|
692
|
+
operationId: markAsUnpaid
|
|
693
|
+
parameters:
|
|
694
|
+
- *ref_8
|
|
695
|
+
- name: id
|
|
696
|
+
required: true
|
|
697
|
+
in: path
|
|
698
|
+
schema:
|
|
699
|
+
type: string
|
|
700
|
+
responses:
|
|
701
|
+
'200':
|
|
702
|
+
description: Transaction marked as unpaid with related data.
|
|
703
|
+
content:
|
|
704
|
+
application/json:
|
|
705
|
+
schema:
|
|
706
|
+
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
707
|
+
'404':
|
|
708
|
+
description: Transaction not found.
|
|
709
|
+
security: *ref_9
|
|
710
|
+
summary: Mark a transaction as unpaid
|
|
711
|
+
tags: *ref_10
|
|
712
|
+
/summary:
|
|
713
|
+
get:
|
|
714
|
+
description: >-
|
|
715
|
+
Returns income, expenses, balance, credit card totals, and category
|
|
716
|
+
breakdowns. Provide either `month` (YYYY-MM) or both `startDate` and
|
|
717
|
+
`endDate` (YYYY-MM-DD).
|
|
718
|
+
operationId: getSummary
|
|
719
|
+
parameters:
|
|
720
|
+
- name: x-api-key
|
|
721
|
+
in: header
|
|
722
|
+
required: false
|
|
723
|
+
schema:
|
|
724
|
+
type: string
|
|
725
|
+
- name: month
|
|
726
|
+
required: false
|
|
727
|
+
in: query
|
|
728
|
+
description: Month for the summary in YYYY-MM format
|
|
729
|
+
schema:
|
|
730
|
+
example: 2026-02
|
|
731
|
+
type: string
|
|
732
|
+
- name: startDate
|
|
733
|
+
required: false
|
|
734
|
+
in: query
|
|
735
|
+
description: Start date for a custom range in YYYY-MM-DD format
|
|
736
|
+
schema:
|
|
737
|
+
example: '2026-01-01'
|
|
738
|
+
type: string
|
|
739
|
+
- name: endDate
|
|
740
|
+
required: false
|
|
741
|
+
in: query
|
|
742
|
+
description: End date for a custom range in YYYY-MM-DD format
|
|
743
|
+
schema:
|
|
744
|
+
example: '2026-03-31'
|
|
745
|
+
type: string
|
|
746
|
+
responses:
|
|
747
|
+
'200':
|
|
748
|
+
description: Financial summary for the given period.
|
|
749
|
+
'400':
|
|
750
|
+
description: Invalid or missing period parameters.
|
|
751
|
+
security:
|
|
752
|
+
- bearer: []
|
|
753
|
+
summary: Get financial summary
|
|
754
|
+
tags:
|
|
755
|
+
- summary
|
|
830
756
|
/credit-cards:
|
|
831
757
|
post:
|
|
832
|
-
|
|
758
|
+
operationId: create
|
|
759
|
+
parameters:
|
|
760
|
+
- &ref_11
|
|
761
|
+
name: x-api-key
|
|
762
|
+
in: header
|
|
763
|
+
required: false
|
|
764
|
+
schema:
|
|
765
|
+
type: string
|
|
833
766
|
requestBody:
|
|
834
767
|
required: true
|
|
835
768
|
content:
|
|
836
769
|
application/json:
|
|
837
770
|
schema:
|
|
838
|
-
|
|
839
|
-
required:
|
|
840
|
-
- name
|
|
841
|
-
- limitAmount
|
|
842
|
-
- closingDay
|
|
843
|
-
- dueDay
|
|
844
|
-
properties:
|
|
845
|
-
name:
|
|
846
|
-
type: string
|
|
847
|
-
example: "Nubank Platinum"
|
|
848
|
-
brand:
|
|
849
|
-
type: string
|
|
850
|
-
example: "Visa"
|
|
851
|
-
limitAmount:
|
|
852
|
-
type: number
|
|
853
|
-
format: float
|
|
854
|
-
example: 5000.00
|
|
855
|
-
closingDay:
|
|
856
|
-
type: integer
|
|
857
|
-
minimum: 1
|
|
858
|
-
maximum: 31
|
|
859
|
-
example: 15
|
|
860
|
-
dueDay:
|
|
861
|
-
type: integer
|
|
862
|
-
minimum: 1
|
|
863
|
-
maximum: 31
|
|
864
|
-
example: 22
|
|
771
|
+
$ref: '#/components/schemas/CreateCreditCardDto'
|
|
865
772
|
responses:
|
|
866
773
|
'201':
|
|
867
|
-
description: Credit card created successfully
|
|
868
|
-
content:
|
|
869
|
-
application/json:
|
|
870
|
-
schema:
|
|
871
|
-
$ref: '#/components/schemas/CreditCard'
|
|
774
|
+
description: Credit card created successfully.
|
|
872
775
|
'400':
|
|
873
|
-
description: Invalid input
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
776
|
+
description: Invalid input.
|
|
777
|
+
security: &ref_12
|
|
778
|
+
- bearer: []
|
|
779
|
+
summary: Create a new credit card
|
|
780
|
+
tags: &ref_13
|
|
781
|
+
- credit-cards
|
|
877
782
|
get:
|
|
878
|
-
|
|
783
|
+
operationId: findAll
|
|
784
|
+
parameters:
|
|
785
|
+
- *ref_11
|
|
879
786
|
responses:
|
|
880
787
|
'200':
|
|
881
|
-
description: List of credit cards
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
type: array
|
|
886
|
-
items:
|
|
887
|
-
$ref: '#/components/schemas/CreditCard'
|
|
888
|
-
'401':
|
|
889
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
890
|
-
|
|
788
|
+
description: List of credit cards.
|
|
789
|
+
security: *ref_12
|
|
790
|
+
summary: Get all credit cards
|
|
791
|
+
tags: *ref_13
|
|
891
792
|
/credit-cards/{id}:
|
|
892
793
|
get:
|
|
893
|
-
|
|
794
|
+
operationId: findOne
|
|
894
795
|
parameters:
|
|
796
|
+
- *ref_11
|
|
895
797
|
- name: id
|
|
896
|
-
in: path
|
|
897
798
|
required: true
|
|
799
|
+
in: path
|
|
898
800
|
schema:
|
|
899
801
|
type: string
|
|
900
|
-
description: Credit card ID
|
|
901
802
|
responses:
|
|
902
803
|
'200':
|
|
903
|
-
description: Credit card found
|
|
904
|
-
content:
|
|
905
|
-
application/json:
|
|
906
|
-
schema:
|
|
907
|
-
$ref: '#/components/schemas/CreditCard'
|
|
908
|
-
'401':
|
|
909
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
804
|
+
description: Credit card found.
|
|
910
805
|
'404':
|
|
911
|
-
description: Credit card not found
|
|
912
|
-
|
|
806
|
+
description: Credit card not found.
|
|
807
|
+
security: *ref_12
|
|
808
|
+
summary: Get a credit card by ID
|
|
809
|
+
tags: *ref_13
|
|
913
810
|
patch:
|
|
914
|
-
|
|
811
|
+
operationId: update
|
|
915
812
|
parameters:
|
|
813
|
+
- *ref_11
|
|
916
814
|
- name: id
|
|
917
|
-
in: path
|
|
918
815
|
required: true
|
|
816
|
+
in: path
|
|
919
817
|
schema:
|
|
920
818
|
type: string
|
|
921
|
-
description: Credit card ID
|
|
922
819
|
requestBody:
|
|
923
820
|
required: true
|
|
924
821
|
content:
|
|
925
822
|
application/json:
|
|
926
823
|
schema:
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
example: "Nubank Platinum"
|
|
932
|
-
brand:
|
|
933
|
-
type: string
|
|
934
|
-
example: "Visa"
|
|
935
|
-
limitAmount:
|
|
936
|
-
type: number
|
|
937
|
-
format: float
|
|
938
|
-
example: 5000.00
|
|
939
|
-
closingDay:
|
|
940
|
-
type: integer
|
|
941
|
-
minimum: 1
|
|
942
|
-
maximum: 31
|
|
943
|
-
example: 15
|
|
944
|
-
dueDay:
|
|
945
|
-
type: integer
|
|
946
|
-
minimum: 1
|
|
947
|
-
maximum: 31
|
|
948
|
-
example: 22
|
|
949
|
-
responses:
|
|
950
|
-
'200':
|
|
951
|
-
description: Credit card updated successfully
|
|
952
|
-
content:
|
|
953
|
-
application/json:
|
|
954
|
-
schema:
|
|
955
|
-
$ref: '#/components/schemas/CreditCard'
|
|
956
|
-
'400':
|
|
957
|
-
description: Invalid input
|
|
958
|
-
'401':
|
|
959
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
824
|
+
$ref: '#/components/schemas/UpdateCreditCardDto'
|
|
825
|
+
responses:
|
|
826
|
+
'200':
|
|
827
|
+
description: Credit card updated successfully.
|
|
960
828
|
'404':
|
|
961
|
-
description: Credit card not found
|
|
962
|
-
|
|
829
|
+
description: Credit card not found.
|
|
830
|
+
security: *ref_12
|
|
831
|
+
summary: Update a credit card
|
|
832
|
+
tags: *ref_13
|
|
963
833
|
delete:
|
|
964
|
-
|
|
834
|
+
operationId: remove
|
|
965
835
|
parameters:
|
|
836
|
+
- *ref_11
|
|
966
837
|
- name: id
|
|
967
|
-
in: path
|
|
968
838
|
required: true
|
|
839
|
+
in: path
|
|
969
840
|
schema:
|
|
970
841
|
type: string
|
|
971
|
-
description: Credit card ID
|
|
972
842
|
responses:
|
|
973
843
|
'200':
|
|
974
|
-
description: Credit card deleted successfully
|
|
975
|
-
'400':
|
|
976
|
-
description: Cannot delete credit card with associated transactions
|
|
977
|
-
'401':
|
|
978
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
844
|
+
description: Credit card deleted successfully.
|
|
979
845
|
'404':
|
|
980
|
-
description: Credit card not found
|
|
981
|
-
|
|
846
|
+
description: Credit card not found.
|
|
847
|
+
security: *ref_12
|
|
848
|
+
summary: Delete a credit card
|
|
849
|
+
tags: *ref_13
|
|
982
850
|
/credit-cards/{id}/statement:
|
|
983
851
|
get:
|
|
984
|
-
|
|
852
|
+
operationId: getStatement
|
|
985
853
|
parameters:
|
|
854
|
+
- *ref_11
|
|
986
855
|
- name: id
|
|
987
|
-
in: path
|
|
988
856
|
required: true
|
|
857
|
+
in: path
|
|
989
858
|
schema:
|
|
990
859
|
type: string
|
|
991
|
-
description: Credit card ID
|
|
992
860
|
- name: month
|
|
993
|
-
in: query
|
|
994
861
|
required: true
|
|
862
|
+
in: query
|
|
863
|
+
description: Month for the statement in YYYY-MM format
|
|
995
864
|
schema:
|
|
865
|
+
example: 2026-03
|
|
996
866
|
type: string
|
|
997
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
998
|
-
description: Month in YYYY-MM format
|
|
999
|
-
example: "2026-03"
|
|
1000
867
|
responses:
|
|
1001
868
|
'200':
|
|
1002
|
-
description: Credit card statement
|
|
1003
|
-
content:
|
|
1004
|
-
application/json:
|
|
1005
|
-
schema:
|
|
1006
|
-
$ref: '#/components/schemas/Statement'
|
|
1007
|
-
'401':
|
|
1008
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
869
|
+
description: Credit card statement.
|
|
1009
870
|
'404':
|
|
1010
|
-
description: Credit card not found
|
|
1011
|
-
|
|
871
|
+
description: Credit card not found.
|
|
872
|
+
security: *ref_12
|
|
873
|
+
summary: Get credit card statement for a specific month
|
|
874
|
+
tags: *ref_13
|
|
1012
875
|
/credit-cards/{id}/pay-statement:
|
|
1013
876
|
post:
|
|
1014
|
-
|
|
877
|
+
operationId: payStatement
|
|
1015
878
|
parameters:
|
|
879
|
+
- *ref_11
|
|
1016
880
|
- name: id
|
|
1017
|
-
in: path
|
|
1018
881
|
required: true
|
|
882
|
+
in: path
|
|
1019
883
|
schema:
|
|
1020
884
|
type: string
|
|
1021
|
-
description: Credit card ID
|
|
1022
885
|
requestBody:
|
|
1023
886
|
required: true
|
|
1024
887
|
content:
|
|
1025
888
|
application/json:
|
|
1026
889
|
schema:
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
properties:
|
|
1032
|
-
month:
|
|
1033
|
-
type: string
|
|
1034
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
1035
|
-
description: Month in YYYY-MM format
|
|
1036
|
-
example: "2026-03"
|
|
1037
|
-
paymentAccountId:
|
|
1038
|
-
type: string
|
|
1039
|
-
description: ID of the account to debit for the payment
|
|
1040
|
-
example: "acc_123456789"
|
|
1041
|
-
responses:
|
|
1042
|
-
'200':
|
|
1043
|
-
description: Statement marked as paid
|
|
1044
|
-
content:
|
|
1045
|
-
application/json:
|
|
1046
|
-
schema:
|
|
1047
|
-
type: object
|
|
1048
|
-
properties:
|
|
1049
|
-
message:
|
|
1050
|
-
type: string
|
|
1051
|
-
example: "Statement for March 2026 marked as paid and linked to account acc_123456789"
|
|
1052
|
-
'400':
|
|
1053
|
-
description: Invalid input or statement is already paid
|
|
1054
|
-
'401':
|
|
1055
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
890
|
+
$ref: '#/components/schemas/PayStatementDto'
|
|
891
|
+
responses:
|
|
892
|
+
'200':
|
|
893
|
+
description: Statement marked as paid.
|
|
1056
894
|
'404':
|
|
1057
|
-
description: Credit card not found
|
|
1058
|
-
|
|
895
|
+
description: Credit card not found.
|
|
896
|
+
security: *ref_12
|
|
897
|
+
summary: Mark all transactions in a credit card statement as paid
|
|
898
|
+
tags: *ref_13
|
|
1059
899
|
/credit-cards/{id}/reopen-statement:
|
|
1060
900
|
post:
|
|
1061
|
-
|
|
901
|
+
operationId: reopenStatement
|
|
1062
902
|
parameters:
|
|
903
|
+
- *ref_11
|
|
1063
904
|
- name: id
|
|
1064
|
-
in: path
|
|
1065
905
|
required: true
|
|
906
|
+
in: path
|
|
1066
907
|
schema:
|
|
1067
908
|
type: string
|
|
1068
|
-
description: Credit card ID
|
|
1069
909
|
requestBody:
|
|
1070
910
|
required: true
|
|
1071
911
|
content:
|
|
1072
912
|
application/json:
|
|
1073
913
|
schema:
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
month:
|
|
1079
|
-
type: string
|
|
1080
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
1081
|
-
description: Month in YYYY-MM format
|
|
1082
|
-
example: "2026-03"
|
|
1083
|
-
responses:
|
|
1084
|
-
'200':
|
|
1085
|
-
description: Statement reopened successfully
|
|
1086
|
-
content:
|
|
1087
|
-
application/json:
|
|
1088
|
-
schema:
|
|
1089
|
-
type: object
|
|
1090
|
-
properties:
|
|
1091
|
-
message:
|
|
1092
|
-
type: string
|
|
1093
|
-
example: "Statement for 2026-03 successfully reopened. 5 transaction(s) marked as unpaid."
|
|
914
|
+
$ref: '#/components/schemas/ReopenStatementDto'
|
|
915
|
+
responses:
|
|
916
|
+
'200':
|
|
917
|
+
description: Statement reopened successfully.
|
|
1094
918
|
'400':
|
|
1095
|
-
description:
|
|
1096
|
-
'401':
|
|
1097
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
919
|
+
description: Statement is already open or invalid input.
|
|
1098
920
|
'404':
|
|
1099
|
-
description: Credit card not found
|
|
1100
|
-
|
|
921
|
+
description: Credit card not found.
|
|
922
|
+
security: *ref_12
|
|
923
|
+
summary: Reopen a credit card statement by marking all transactions as unpaid
|
|
924
|
+
tags: *ref_13
|
|
1101
925
|
/credit-cards/{id}/statement-status:
|
|
1102
926
|
get:
|
|
1103
|
-
|
|
927
|
+
operationId: getStatementStatus
|
|
1104
928
|
parameters:
|
|
929
|
+
- *ref_11
|
|
1105
930
|
- name: id
|
|
1106
|
-
in: path
|
|
1107
931
|
required: true
|
|
932
|
+
in: path
|
|
1108
933
|
schema:
|
|
1109
934
|
type: string
|
|
1110
|
-
description: Credit card ID
|
|
1111
935
|
- name: month
|
|
1112
|
-
in: query
|
|
1113
936
|
required: true
|
|
937
|
+
in: query
|
|
938
|
+
description: Month for the statement in YYYY-MM format
|
|
1114
939
|
schema:
|
|
940
|
+
example: 2026-03
|
|
1115
941
|
type: string
|
|
1116
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
1117
|
-
description: Month in YYYY-MM format
|
|
1118
|
-
example: "2026-03"
|
|
1119
942
|
responses:
|
|
1120
943
|
'200':
|
|
1121
|
-
description: Credit card statement status
|
|
1122
|
-
content:
|
|
1123
|
-
application/json:
|
|
1124
|
-
schema:
|
|
1125
|
-
$ref: '#/components/schemas/StatementStatus'
|
|
1126
|
-
'401':
|
|
1127
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
944
|
+
description: Credit card statement status.
|
|
1128
945
|
'404':
|
|
1129
|
-
description: Credit card not found
|
|
1130
|
-
|
|
1131
|
-
|
|
946
|
+
description: Credit card not found.
|
|
947
|
+
security: *ref_12
|
|
948
|
+
summary: Get credit card statement payment status for a specific month
|
|
949
|
+
tags: *ref_13
|
|
950
|
+
/credit-cards/{id}/anticipations:
|
|
1132
951
|
post:
|
|
1133
|
-
|
|
952
|
+
operationId: createAnticipation
|
|
953
|
+
parameters:
|
|
954
|
+
- *ref_11
|
|
955
|
+
- name: id
|
|
956
|
+
required: true
|
|
957
|
+
in: path
|
|
958
|
+
schema:
|
|
959
|
+
type: string
|
|
960
|
+
requestBody:
|
|
961
|
+
required: true
|
|
962
|
+
content:
|
|
963
|
+
application/json:
|
|
964
|
+
schema:
|
|
965
|
+
$ref: '#/components/schemas/CreateAnticipationDto'
|
|
966
|
+
responses:
|
|
967
|
+
'201':
|
|
968
|
+
description: >-
|
|
969
|
+
Anticipation created: credit card INCOME + account EXPENSE linked
|
|
970
|
+
pair.
|
|
971
|
+
'400':
|
|
972
|
+
description: Statement already closed or invalid input.
|
|
973
|
+
'404':
|
|
974
|
+
description: Credit card or account not found.
|
|
975
|
+
security: *ref_12
|
|
976
|
+
summary: Create a credit card anticipation (advance payment toward the statement)
|
|
977
|
+
tags: *ref_13
|
|
978
|
+
/accounts:
|
|
979
|
+
post:
|
|
980
|
+
operationId: create
|
|
981
|
+
parameters:
|
|
982
|
+
- &ref_14
|
|
983
|
+
name: x-api-key
|
|
984
|
+
in: header
|
|
985
|
+
required: false
|
|
986
|
+
schema:
|
|
987
|
+
type: string
|
|
1134
988
|
requestBody:
|
|
1135
989
|
required: true
|
|
1136
990
|
content:
|
|
1137
991
|
application/json:
|
|
1138
992
|
schema:
|
|
1139
|
-
|
|
1140
|
-
required:
|
|
1141
|
-
- type
|
|
1142
|
-
- name
|
|
1143
|
-
- amount
|
|
1144
|
-
- date
|
|
1145
|
-
properties:
|
|
1146
|
-
type:
|
|
1147
|
-
$ref: '#/components/schemas/Transaction/properties/type'
|
|
1148
|
-
name:
|
|
1149
|
-
$ref: '#/components/schemas/Transaction/properties/name'
|
|
1150
|
-
amount:
|
|
1151
|
-
$ref: '#/components/schemas/Transaction/properties/amount'
|
|
1152
|
-
date:
|
|
1153
|
-
$ref: '#/components/schemas/Transaction/properties/date'
|
|
1154
|
-
categoryId:
|
|
1155
|
-
$ref: '#/components/schemas/Transaction/properties/categoryId'
|
|
1156
|
-
paymentMethod:
|
|
1157
|
-
$ref: '#/components/schemas/Transaction/properties/paymentMethod'
|
|
1158
|
-
creditCardId:
|
|
1159
|
-
$ref: '#/components/schemas/Transaction/properties/creditCardId'
|
|
1160
|
-
accountId:
|
|
1161
|
-
type: string
|
|
1162
|
-
description: ID of the associated account (required if paymentMethod is not CREDIT)
|
|
1163
|
-
example: "acc_123456789"
|
|
1164
|
-
installments:
|
|
1165
|
-
type: integer
|
|
1166
|
-
minimum: 1
|
|
1167
|
-
description: Number of installments (optional)
|
|
1168
|
-
example: 3
|
|
1169
|
-
targetDueMonth:
|
|
1170
|
-
type: string
|
|
1171
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
1172
|
-
description: Target month for due date in YYYY-MM format (optional)
|
|
1173
|
-
example: "2026-03"
|
|
1174
|
-
purchaseDate:
|
|
1175
|
-
type: string
|
|
1176
|
-
format: date
|
|
1177
|
-
description: Actual purchase date (credit card only, optional)
|
|
1178
|
-
example: "2026-02-10"
|
|
1179
|
-
recurrence:
|
|
1180
|
-
type: object
|
|
1181
|
-
properties:
|
|
1182
|
-
frequency:
|
|
1183
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/frequency'
|
|
1184
|
-
interval:
|
|
1185
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/interval'
|
|
1186
|
-
endDate:
|
|
1187
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/endDate'
|
|
1188
|
-
occurrences:
|
|
1189
|
-
$ref: '#/components/schemas/RecurrenceRule/properties/occurrences'
|
|
993
|
+
$ref: '#/components/schemas/CreateAccountDto'
|
|
1190
994
|
responses:
|
|
1191
995
|
'201':
|
|
1192
|
-
description:
|
|
996
|
+
description: Account created successfully
|
|
1193
997
|
content:
|
|
1194
998
|
application/json:
|
|
1195
999
|
schema:
|
|
1196
|
-
$ref: '#/components/schemas/
|
|
1000
|
+
$ref: '#/components/schemas/AccountResponseDto'
|
|
1197
1001
|
'400':
|
|
1198
|
-
description: Invalid input
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1002
|
+
description: Invalid input data
|
|
1003
|
+
security: &ref_15
|
|
1004
|
+
- bearer: []
|
|
1005
|
+
summary: Create a new account
|
|
1006
|
+
tags: &ref_16
|
|
1007
|
+
- accounts
|
|
1202
1008
|
get:
|
|
1203
|
-
|
|
1009
|
+
operationId: findAll
|
|
1204
1010
|
parameters:
|
|
1205
|
-
-
|
|
1206
|
-
in: query
|
|
1207
|
-
required: false
|
|
1208
|
-
schema:
|
|
1209
|
-
type: string
|
|
1210
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
1211
|
-
description: Filter transactions by month (YYYY-MM format)
|
|
1212
|
-
example: "2026-03"
|
|
1213
|
-
- name: accountId
|
|
1214
|
-
in: query
|
|
1215
|
-
required: false
|
|
1216
|
-
schema:
|
|
1217
|
-
type: string
|
|
1218
|
-
description: Filter transactions by account ID
|
|
1219
|
-
example: "acc_123456789"
|
|
1220
|
-
- name: categoryId
|
|
1221
|
-
in: query
|
|
1222
|
-
required: false
|
|
1223
|
-
schema:
|
|
1224
|
-
type: string
|
|
1225
|
-
description: Filter transactions by category ID
|
|
1226
|
-
example: "cat_123456789"
|
|
1227
|
-
- name: creditCardId
|
|
1228
|
-
in: query
|
|
1229
|
-
required: false
|
|
1230
|
-
schema:
|
|
1231
|
-
type: string
|
|
1232
|
-
description: Filter transactions by credit card ID
|
|
1233
|
-
example: "cc_123456789"
|
|
1234
|
-
- name: type
|
|
1235
|
-
in: query
|
|
1236
|
-
required: false
|
|
1237
|
-
schema:
|
|
1238
|
-
type: string
|
|
1239
|
-
enum: [INCOME, EXPENSE]
|
|
1240
|
-
description: Filter transactions by type
|
|
1241
|
-
example: "EXPENSE"
|
|
1242
|
-
- name: startDate
|
|
1243
|
-
in: query
|
|
1244
|
-
required: false
|
|
1245
|
-
schema:
|
|
1246
|
-
type: string
|
|
1247
|
-
format: date
|
|
1248
|
-
description: Filter transactions starting from this date (inclusive)
|
|
1249
|
-
example: "2026-01-01"
|
|
1250
|
-
- name: endDate
|
|
1251
|
-
in: query
|
|
1252
|
-
required: false
|
|
1253
|
-
schema:
|
|
1254
|
-
type: string
|
|
1255
|
-
format: date
|
|
1256
|
-
description: Filter transactions up to this date (inclusive)
|
|
1257
|
-
example: "2026-01-31"
|
|
1258
|
-
- name: paid
|
|
1259
|
-
in: query
|
|
1260
|
-
required: false
|
|
1261
|
-
schema:
|
|
1262
|
-
type: boolean
|
|
1263
|
-
description: Filter by payment status (true = paid, false = unpaid)
|
|
1264
|
-
example: false
|
|
1011
|
+
- *ref_14
|
|
1265
1012
|
responses:
|
|
1266
1013
|
'200':
|
|
1267
|
-
description: List of
|
|
1014
|
+
description: List of all accounts
|
|
1268
1015
|
content:
|
|
1269
1016
|
application/json:
|
|
1270
1017
|
schema:
|
|
1271
1018
|
type: array
|
|
1272
1019
|
items:
|
|
1273
|
-
$ref: '#/components/schemas/
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
/
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
description: |
|
|
1281
|
-
Marks a transaction as paid or received.
|
|
1282
|
-
**Note:** Credit card transactions cannot be marked as paid directly. They are automatically
|
|
1283
|
-
marked as paid when the credit card statement is paid via the `POST /credit-cards/{id}/pay-statement` endpoint.
|
|
1020
|
+
$ref: '#/components/schemas/AccountResponseDto'
|
|
1021
|
+
security: *ref_15
|
|
1022
|
+
summary: Get all accounts
|
|
1023
|
+
tags: *ref_16
|
|
1024
|
+
/accounts/{id}:
|
|
1025
|
+
get:
|
|
1026
|
+
operationId: findOne
|
|
1284
1027
|
parameters:
|
|
1028
|
+
- *ref_14
|
|
1285
1029
|
- name: id
|
|
1286
|
-
in: path
|
|
1287
1030
|
required: true
|
|
1031
|
+
in: path
|
|
1288
1032
|
schema:
|
|
1289
1033
|
type: string
|
|
1290
|
-
description: Transaction ID
|
|
1291
1034
|
responses:
|
|
1292
1035
|
'200':
|
|
1293
|
-
description:
|
|
1036
|
+
description: Account retrieved successfully
|
|
1294
1037
|
content:
|
|
1295
1038
|
application/json:
|
|
1296
1039
|
schema:
|
|
1297
|
-
$ref: '#/components/schemas/
|
|
1298
|
-
'400':
|
|
1299
|
-
description: Cannot mark credit card transaction as paid directly
|
|
1300
|
-
'401':
|
|
1301
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1040
|
+
$ref: '#/components/schemas/AccountResponseDto'
|
|
1302
1041
|
'404':
|
|
1303
|
-
description:
|
|
1304
|
-
|
|
1305
|
-
|
|
1042
|
+
description: Account not found
|
|
1043
|
+
security: *ref_15
|
|
1044
|
+
summary: Get an account by ID
|
|
1045
|
+
tags: *ref_16
|
|
1306
1046
|
patch:
|
|
1307
|
-
|
|
1047
|
+
operationId: update
|
|
1308
1048
|
parameters:
|
|
1049
|
+
- *ref_14
|
|
1309
1050
|
- name: id
|
|
1310
|
-
in: path
|
|
1311
1051
|
required: true
|
|
1052
|
+
in: path
|
|
1312
1053
|
schema:
|
|
1313
1054
|
type: string
|
|
1314
|
-
|
|
1055
|
+
requestBody:
|
|
1056
|
+
required: true
|
|
1057
|
+
content:
|
|
1058
|
+
application/json:
|
|
1059
|
+
schema:
|
|
1060
|
+
$ref: '#/components/schemas/UpdateAccountDto'
|
|
1315
1061
|
responses:
|
|
1316
1062
|
'200':
|
|
1317
|
-
description:
|
|
1063
|
+
description: Account updated successfully
|
|
1318
1064
|
content:
|
|
1319
1065
|
application/json:
|
|
1320
1066
|
schema:
|
|
1321
|
-
$ref: '#/components/schemas/
|
|
1067
|
+
$ref: '#/components/schemas/AccountResponseDto'
|
|
1322
1068
|
'404':
|
|
1323
|
-
description:
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
summary: Get a transaction by ID
|
|
1069
|
+
description: Account not found
|
|
1070
|
+
security: *ref_15
|
|
1071
|
+
summary: Update an account
|
|
1072
|
+
tags: *ref_16
|
|
1073
|
+
delete:
|
|
1074
|
+
operationId: remove
|
|
1330
1075
|
parameters:
|
|
1076
|
+
- *ref_14
|
|
1331
1077
|
- name: id
|
|
1078
|
+
required: true
|
|
1332
1079
|
in: path
|
|
1080
|
+
schema:
|
|
1081
|
+
type: string
|
|
1082
|
+
responses:
|
|
1083
|
+
'204':
|
|
1084
|
+
description: Account deleted successfully
|
|
1085
|
+
'404':
|
|
1086
|
+
description: Account not found
|
|
1087
|
+
'409':
|
|
1088
|
+
description: Cannot delete account with associated transactions
|
|
1089
|
+
security: *ref_15
|
|
1090
|
+
summary: Delete an account
|
|
1091
|
+
tags: *ref_16
|
|
1092
|
+
/accounts/{id}/balance:
|
|
1093
|
+
get:
|
|
1094
|
+
operationId: getAccountBalance
|
|
1095
|
+
parameters:
|
|
1096
|
+
- *ref_14
|
|
1097
|
+
- name: id
|
|
1333
1098
|
required: true
|
|
1099
|
+
in: path
|
|
1334
1100
|
schema:
|
|
1335
1101
|
type: string
|
|
1336
|
-
description: Transaction ID
|
|
1337
1102
|
responses:
|
|
1338
1103
|
'200':
|
|
1339
|
-
description:
|
|
1104
|
+
description: Account balance retrieved successfully
|
|
1340
1105
|
content:
|
|
1341
1106
|
application/json:
|
|
1342
1107
|
schema:
|
|
1343
|
-
|
|
1344
|
-
'401':
|
|
1345
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1108
|
+
type: object
|
|
1346
1109
|
'404':
|
|
1347
|
-
description:
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
For credit card transactions, you can use targetDueMonth to automatically calculate the date based on the credit card's due day.
|
|
1355
|
-
|
|
1356
|
-
**Recurring Transactions - Editable Fields by Mode:**
|
|
1357
|
-
- **SINGLE**: Can edit `name`, `categoryId`, `date`, `targetDueMonth`, `amount`
|
|
1358
|
-
- **PENDING/ALL**: Can edit `name`, `categoryId`, `amount`, `paymentMethod`, `accountId`, `creditCardId` (date and type are restricted to prevent desynchronization)
|
|
1359
|
-
|
|
1360
|
-
**Installment Transactions - Editable Fields by Mode:**
|
|
1361
|
-
- **PENDING/ALL**: Only `name`, `categoryId`, and `amount` are propagated to other installments. All other fields are ignored for the bulk update.
|
|
1110
|
+
description: Account not found
|
|
1111
|
+
security: *ref_15
|
|
1112
|
+
summary: Get the current balance for an account
|
|
1113
|
+
tags: *ref_16
|
|
1114
|
+
/settings:
|
|
1115
|
+
get:
|
|
1116
|
+
operationId: findAll
|
|
1362
1117
|
parameters:
|
|
1363
|
-
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
schema:
|
|
1367
|
-
type: string
|
|
1368
|
-
description: Transaction ID
|
|
1369
|
-
- name: mode
|
|
1370
|
-
in: query
|
|
1118
|
+
- &ref_17
|
|
1119
|
+
name: x-api-key
|
|
1120
|
+
in: header
|
|
1371
1121
|
required: false
|
|
1372
1122
|
schema:
|
|
1373
1123
|
type: string
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
description:
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1124
|
+
responses:
|
|
1125
|
+
'200':
|
|
1126
|
+
description: Settings retrieved successfully
|
|
1127
|
+
content:
|
|
1128
|
+
application/json:
|
|
1129
|
+
schema:
|
|
1130
|
+
$ref: '#/components/schemas/SettingsResponseDto'
|
|
1131
|
+
'404':
|
|
1132
|
+
description: Settings not found
|
|
1133
|
+
security: &ref_18
|
|
1134
|
+
- bearer: []
|
|
1135
|
+
summary: Get user settings
|
|
1136
|
+
tags: &ref_19
|
|
1137
|
+
- settings
|
|
1138
|
+
patch:
|
|
1139
|
+
operationId: update
|
|
1140
|
+
parameters:
|
|
1141
|
+
- *ref_17
|
|
1384
1142
|
requestBody:
|
|
1385
1143
|
required: true
|
|
1386
1144
|
content:
|
|
1387
1145
|
application/json:
|
|
1388
1146
|
schema:
|
|
1389
|
-
$ref: '#/components/schemas/
|
|
1147
|
+
$ref: '#/components/schemas/UpdateSettingsDto'
|
|
1390
1148
|
responses:
|
|
1391
1149
|
'200':
|
|
1392
|
-
description:
|
|
1150
|
+
description: Settings updated successfully
|
|
1393
1151
|
content:
|
|
1394
1152
|
application/json:
|
|
1395
1153
|
schema:
|
|
1396
|
-
$ref: '#/components/schemas/
|
|
1154
|
+
$ref: '#/components/schemas/SettingsResponseDto'
|
|
1397
1155
|
'400':
|
|
1398
|
-
description: Invalid input
|
|
1399
|
-
'401':
|
|
1400
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1156
|
+
description: Invalid input data
|
|
1401
1157
|
'404':
|
|
1402
|
-
description:
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1158
|
+
description: Settings not found
|
|
1159
|
+
security: *ref_18
|
|
1160
|
+
summary: Update user settings
|
|
1161
|
+
tags: *ref_19
|
|
1162
|
+
/data-transfer/export:
|
|
1163
|
+
get:
|
|
1164
|
+
operationId: export
|
|
1406
1165
|
parameters:
|
|
1407
|
-
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1166
|
+
- &ref_20
|
|
1167
|
+
name: x-api-key
|
|
1168
|
+
in: header
|
|
1169
|
+
required: false
|
|
1410
1170
|
schema:
|
|
1411
1171
|
type: string
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1172
|
+
responses:
|
|
1173
|
+
'200':
|
|
1174
|
+
description: ''
|
|
1175
|
+
security: &ref_21
|
|
1176
|
+
- bearer: []
|
|
1177
|
+
summary: Export all user data to JSON
|
|
1178
|
+
tags: &ref_22
|
|
1179
|
+
- data-transfer
|
|
1180
|
+
/data-transfer/import:
|
|
1181
|
+
post:
|
|
1182
|
+
operationId: import
|
|
1183
|
+
parameters:
|
|
1184
|
+
- *ref_20
|
|
1185
|
+
requestBody:
|
|
1186
|
+
required: true
|
|
1187
|
+
content:
|
|
1188
|
+
application/json:
|
|
1189
|
+
schema:
|
|
1190
|
+
$ref: '#/components/schemas/ImportDataDto'
|
|
1191
|
+
responses:
|
|
1192
|
+
'201':
|
|
1193
|
+
description: ''
|
|
1194
|
+
security: *ref_21
|
|
1195
|
+
summary: Import data from JSON
|
|
1196
|
+
tags: *ref_22
|
|
1197
|
+
/transfers:
|
|
1198
|
+
post:
|
|
1199
|
+
operationId: create
|
|
1200
|
+
parameters:
|
|
1201
|
+
- &ref_23
|
|
1202
|
+
name: x-api-key
|
|
1203
|
+
in: header
|
|
1415
1204
|
required: false
|
|
1416
1205
|
schema:
|
|
1417
1206
|
type: string
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
- **ALL**: For recurrences, delete all transactions (paid or unpaid). For installments, behaves the same as PENDING (only unpaid installments from this one onward are deleted)
|
|
1425
|
-
|
|
1426
|
-
If the transaction is not part of a recurrence series or installment group, this parameter is ignored.
|
|
1427
|
-
example: SINGLE
|
|
1207
|
+
requestBody:
|
|
1208
|
+
required: true
|
|
1209
|
+
content:
|
|
1210
|
+
application/json:
|
|
1211
|
+
schema:
|
|
1212
|
+
$ref: '#/components/schemas/CreateTransferDto'
|
|
1428
1213
|
responses:
|
|
1429
|
-
'
|
|
1430
|
-
description:
|
|
1431
|
-
|
|
1432
|
-
|
|
1214
|
+
'201':
|
|
1215
|
+
description: Transfer created
|
|
1216
|
+
content:
|
|
1217
|
+
application/json:
|
|
1218
|
+
schema:
|
|
1219
|
+
$ref: '#/components/schemas/TransferResponseDto'
|
|
1220
|
+
'400':
|
|
1221
|
+
description: Invalid input
|
|
1433
1222
|
'404':
|
|
1434
|
-
description:
|
|
1435
|
-
|
|
1436
|
-
|
|
1223
|
+
description: Account not found
|
|
1224
|
+
security: &ref_24
|
|
1225
|
+
- bearer: []
|
|
1226
|
+
summary: Create a new transfer between accounts
|
|
1227
|
+
tags: &ref_25
|
|
1228
|
+
- transfers
|
|
1437
1229
|
get:
|
|
1438
|
-
|
|
1439
|
-
description: >
|
|
1440
|
-
Returns income, expenses, balance, credit card totals, and category breakdowns.
|
|
1441
|
-
Provide either `month` (YYYY-MM) or both `startDate` and `endDate` (YYYY-MM-DD).
|
|
1230
|
+
operationId: findAll
|
|
1442
1231
|
parameters:
|
|
1443
|
-
-
|
|
1232
|
+
- *ref_23
|
|
1233
|
+
- name: accountId
|
|
1234
|
+
required: false
|
|
1444
1235
|
in: query
|
|
1236
|
+
description: Filter by account ID (source or destination)
|
|
1237
|
+
schema:
|
|
1238
|
+
type: string
|
|
1239
|
+
- name: month
|
|
1445
1240
|
required: false
|
|
1241
|
+
in: query
|
|
1242
|
+
description: Filter by month (YYYY-MM format)
|
|
1446
1243
|
schema:
|
|
1244
|
+
example: 2026-02
|
|
1447
1245
|
type: string
|
|
1448
|
-
pattern: "^\\d{4}-\\d{2}$"
|
|
1449
|
-
description: Month in YYYY-MM format
|
|
1450
|
-
example: "2026-02"
|
|
1451
1246
|
- name: startDate
|
|
1247
|
+
required: false
|
|
1452
1248
|
in: query
|
|
1249
|
+
description: Filter from date (YYYY-MM-DD)
|
|
1250
|
+
schema:
|
|
1251
|
+
example: '2026-02-01'
|
|
1252
|
+
type: string
|
|
1253
|
+
- name: endDate
|
|
1453
1254
|
required: false
|
|
1255
|
+
in: query
|
|
1256
|
+
description: Filter to date (YYYY-MM-DD)
|
|
1257
|
+
schema:
|
|
1258
|
+
example: '2026-02-28'
|
|
1259
|
+
type: string
|
|
1260
|
+
responses:
|
|
1261
|
+
'200':
|
|
1262
|
+
description: List of transfers
|
|
1263
|
+
content:
|
|
1264
|
+
application/json:
|
|
1265
|
+
schema:
|
|
1266
|
+
type: array
|
|
1267
|
+
items:
|
|
1268
|
+
$ref: '#/components/schemas/TransferResponseDto'
|
|
1269
|
+
security: *ref_24
|
|
1270
|
+
summary: List transfers with optional filters
|
|
1271
|
+
tags: *ref_25
|
|
1272
|
+
/transfers/{id}:
|
|
1273
|
+
get:
|
|
1274
|
+
operationId: findOne
|
|
1275
|
+
parameters:
|
|
1276
|
+
- *ref_23
|
|
1277
|
+
- name: id
|
|
1278
|
+
required: true
|
|
1279
|
+
in: path
|
|
1454
1280
|
schema:
|
|
1455
1281
|
type: string
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1282
|
+
responses:
|
|
1283
|
+
'200':
|
|
1284
|
+
description: Transfer found
|
|
1285
|
+
content:
|
|
1286
|
+
application/json:
|
|
1287
|
+
schema:
|
|
1288
|
+
$ref: '#/components/schemas/TransferResponseDto'
|
|
1289
|
+
'404':
|
|
1290
|
+
description: Transfer not found
|
|
1291
|
+
security: *ref_24
|
|
1292
|
+
summary: Get a transfer by ID
|
|
1293
|
+
tags: *ref_25
|
|
1294
|
+
patch:
|
|
1295
|
+
operationId: update
|
|
1296
|
+
parameters:
|
|
1297
|
+
- *ref_23
|
|
1298
|
+
- name: id
|
|
1299
|
+
required: true
|
|
1300
|
+
in: path
|
|
1462
1301
|
schema:
|
|
1463
1302
|
type: string
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1303
|
+
requestBody:
|
|
1304
|
+
required: true
|
|
1305
|
+
content:
|
|
1306
|
+
application/json:
|
|
1307
|
+
schema:
|
|
1308
|
+
$ref: '#/components/schemas/UpdateTransferDto'
|
|
1467
1309
|
responses:
|
|
1468
1310
|
'200':
|
|
1469
|
-
description:
|
|
1311
|
+
description: Transfer updated
|
|
1470
1312
|
content:
|
|
1471
1313
|
application/json:
|
|
1472
1314
|
schema:
|
|
1473
|
-
$ref: '#/components/schemas/
|
|
1474
|
-
'
|
|
1475
|
-
description:
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1315
|
+
$ref: '#/components/schemas/TransferResponseDto'
|
|
1316
|
+
'404':
|
|
1317
|
+
description: Transfer not found
|
|
1318
|
+
security: *ref_24
|
|
1319
|
+
summary: Update a transfer
|
|
1320
|
+
tags: *ref_25
|
|
1321
|
+
delete:
|
|
1322
|
+
operationId: remove
|
|
1323
|
+
parameters:
|
|
1324
|
+
- *ref_23
|
|
1325
|
+
- name: id
|
|
1326
|
+
required: true
|
|
1327
|
+
in: path
|
|
1328
|
+
schema:
|
|
1329
|
+
type: string
|
|
1330
|
+
responses:
|
|
1331
|
+
'204':
|
|
1332
|
+
description: Transfer deleted
|
|
1333
|
+
'404':
|
|
1334
|
+
description: Transfer not found
|
|
1335
|
+
security: *ref_24
|
|
1336
|
+
summary: Delete a transfer
|
|
1337
|
+
tags: *ref_25
|
|
1338
|
+
/api-keys:
|
|
1480
1339
|
post:
|
|
1481
|
-
|
|
1340
|
+
operationId: create
|
|
1341
|
+
parameters: []
|
|
1482
1342
|
requestBody:
|
|
1483
1343
|
required: true
|
|
1484
1344
|
content:
|
|
1485
1345
|
application/json:
|
|
1486
1346
|
schema:
|
|
1487
|
-
|
|
1488
|
-
required:
|
|
1489
|
-
- name
|
|
1490
|
-
- type
|
|
1491
|
-
properties:
|
|
1492
|
-
name:
|
|
1493
|
-
type: string
|
|
1494
|
-
description: Name of the account
|
|
1495
|
-
example: "Itaú Checking Account"
|
|
1496
|
-
type:
|
|
1497
|
-
type: string
|
|
1498
|
-
enum: [BANK_ACCOUNT, WALLET, SAVINGS_ACCOUNT, INVESTMENT_ACCOUNT, OTHER]
|
|
1499
|
-
description: Type of account
|
|
1500
|
-
example: "BANK_ACCOUNT"
|
|
1501
|
-
initialBalance:
|
|
1502
|
-
type: number
|
|
1503
|
-
format: float
|
|
1504
|
-
description: Initial balance for the account
|
|
1505
|
-
example: 1000.00
|
|
1347
|
+
$ref: '#/components/schemas/CreateApiKeyDto'
|
|
1506
1348
|
responses:
|
|
1507
1349
|
'201':
|
|
1508
|
-
description:
|
|
1350
|
+
description: ''
|
|
1509
1351
|
content:
|
|
1510
1352
|
application/json:
|
|
1511
1353
|
schema:
|
|
1512
|
-
$ref: '#/components/schemas/
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1354
|
+
$ref: '#/components/schemas/ApiKeyResponseDto'
|
|
1355
|
+
security: &ref_26
|
|
1356
|
+
- bearer: []
|
|
1357
|
+
summary: Create a new API Key
|
|
1358
|
+
tags: &ref_27
|
|
1359
|
+
- api-keys
|
|
1518
1360
|
get:
|
|
1519
|
-
|
|
1361
|
+
operationId: findAll
|
|
1362
|
+
parameters: []
|
|
1520
1363
|
responses:
|
|
1521
1364
|
'200':
|
|
1522
|
-
description:
|
|
1365
|
+
description: ''
|
|
1523
1366
|
content:
|
|
1524
1367
|
application/json:
|
|
1525
1368
|
schema:
|
|
1526
1369
|
type: array
|
|
1527
1370
|
items:
|
|
1528
|
-
$ref: '#/components/schemas/
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
/
|
|
1533
|
-
|
|
1534
|
-
|
|
1371
|
+
$ref: '#/components/schemas/ApiKeyResponseDto'
|
|
1372
|
+
security: *ref_26
|
|
1373
|
+
summary: List your API Keys
|
|
1374
|
+
tags: *ref_27
|
|
1375
|
+
/api-keys/{id}:
|
|
1376
|
+
delete:
|
|
1377
|
+
operationId: revoke
|
|
1535
1378
|
parameters:
|
|
1536
1379
|
- name: id
|
|
1380
|
+
required: true
|
|
1537
1381
|
in: path
|
|
1382
|
+
schema:
|
|
1383
|
+
type: string
|
|
1384
|
+
responses:
|
|
1385
|
+
'204':
|
|
1386
|
+
description: ''
|
|
1387
|
+
security: *ref_26
|
|
1388
|
+
summary: Revoke an API Key
|
|
1389
|
+
tags: *ref_27
|
|
1390
|
+
/admin/notifications/broadcast:
|
|
1391
|
+
post:
|
|
1392
|
+
description: >-
|
|
1393
|
+
Sends a custom HTML email to all active users or selected user IDs.
|
|
1394
|
+
Processes in background with a delay.
|
|
1395
|
+
operationId: broadcast
|
|
1396
|
+
parameters: []
|
|
1397
|
+
requestBody:
|
|
1398
|
+
required: true
|
|
1399
|
+
content:
|
|
1400
|
+
application/json:
|
|
1401
|
+
schema:
|
|
1402
|
+
$ref: '#/components/schemas/AdminBroadcastEmailDto'
|
|
1403
|
+
responses:
|
|
1404
|
+
'202':
|
|
1405
|
+
description: Broadcast started successfully
|
|
1406
|
+
security: &ref_28
|
|
1407
|
+
- bearer: []
|
|
1408
|
+
summary: Send a broadcast email to users (admin only)
|
|
1409
|
+
tags: &ref_29
|
|
1410
|
+
- Admin
|
|
1411
|
+
/admin/notifications/preview:
|
|
1412
|
+
post:
|
|
1413
|
+
description: >-
|
|
1414
|
+
Renders the email body with shortcodes, variables, and the base layout,
|
|
1415
|
+
returning the full HTML.
|
|
1416
|
+
operationId: previewEmail
|
|
1417
|
+
parameters: []
|
|
1418
|
+
requestBody:
|
|
1419
|
+
required: true
|
|
1420
|
+
content:
|
|
1421
|
+
application/json:
|
|
1422
|
+
schema:
|
|
1423
|
+
$ref: '#/components/schemas/AdminPreviewEmailDto'
|
|
1424
|
+
responses:
|
|
1425
|
+
'200':
|
|
1426
|
+
description: Rendered email HTML
|
|
1427
|
+
security: *ref_28
|
|
1428
|
+
summary: Preview a rendered email without sending (admin only)
|
|
1429
|
+
tags: *ref_29
|
|
1430
|
+
/admin/notifications/components:
|
|
1431
|
+
get:
|
|
1432
|
+
description: >-
|
|
1433
|
+
Returns the catalog of shortcode components with syntax, params, and
|
|
1434
|
+
preview HTML, plus available template variables.
|
|
1435
|
+
operationId: getEmailComponents
|
|
1436
|
+
parameters: []
|
|
1437
|
+
responses:
|
|
1438
|
+
'200':
|
|
1439
|
+
description: Email component catalog
|
|
1440
|
+
security: *ref_28
|
|
1441
|
+
summary: List available email components and template variables (admin only)
|
|
1442
|
+
tags: *ref_29
|
|
1443
|
+
/admin/users:
|
|
1444
|
+
get:
|
|
1445
|
+
operationId: listUsers
|
|
1446
|
+
parameters:
|
|
1447
|
+
- name: page
|
|
1448
|
+
required: false
|
|
1449
|
+
in: query
|
|
1450
|
+
schema:
|
|
1451
|
+
default: 1
|
|
1452
|
+
example: 1
|
|
1453
|
+
type: number
|
|
1454
|
+
- name: limit
|
|
1455
|
+
required: false
|
|
1456
|
+
in: query
|
|
1457
|
+
schema:
|
|
1458
|
+
default: 20
|
|
1459
|
+
example: 20
|
|
1460
|
+
type: number
|
|
1461
|
+
responses:
|
|
1462
|
+
'200':
|
|
1463
|
+
description: Paginated list of users
|
|
1464
|
+
security: *ref_28
|
|
1465
|
+
summary: List all users (admin only)
|
|
1466
|
+
tags: *ref_29
|
|
1467
|
+
/admin/users/{id}:
|
|
1468
|
+
get:
|
|
1469
|
+
operationId: getUserById
|
|
1470
|
+
parameters:
|
|
1471
|
+
- name: id
|
|
1538
1472
|
required: true
|
|
1473
|
+
in: path
|
|
1539
1474
|
schema:
|
|
1540
1475
|
type: string
|
|
1541
|
-
description: Account ID
|
|
1542
1476
|
responses:
|
|
1543
1477
|
'200':
|
|
1544
|
-
description:
|
|
1545
|
-
content:
|
|
1546
|
-
application/json:
|
|
1547
|
-
schema:
|
|
1548
|
-
$ref: '#/components/schemas/Account'
|
|
1549
|
-
'401':
|
|
1550
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1478
|
+
description: User details
|
|
1551
1479
|
'404':
|
|
1552
|
-
description:
|
|
1553
|
-
|
|
1480
|
+
description: User not found
|
|
1481
|
+
security: *ref_28
|
|
1482
|
+
summary: Get user details (admin only)
|
|
1483
|
+
tags: *ref_29
|
|
1554
1484
|
patch:
|
|
1555
|
-
|
|
1485
|
+
operationId: updateUser
|
|
1556
1486
|
parameters:
|
|
1557
1487
|
- name: id
|
|
1558
|
-
in: path
|
|
1559
1488
|
required: true
|
|
1489
|
+
in: path
|
|
1560
1490
|
schema:
|
|
1561
1491
|
type: string
|
|
1562
|
-
description: Account ID
|
|
1563
1492
|
requestBody:
|
|
1564
1493
|
required: true
|
|
1565
1494
|
content:
|
|
1566
1495
|
application/json:
|
|
1567
1496
|
schema:
|
|
1568
|
-
|
|
1569
|
-
properties:
|
|
1570
|
-
name:
|
|
1571
|
-
type: string
|
|
1572
|
-
description: Name of the account
|
|
1573
|
-
example: "Itaú Savings Account"
|
|
1574
|
-
type:
|
|
1575
|
-
type: string
|
|
1576
|
-
enum: [BANK_ACCOUNT, WALLET, SAVINGS_ACCOUNT, INVESTMENT_ACCOUNT, OTHER]
|
|
1577
|
-
description: Type of account
|
|
1578
|
-
example: "SAVINGS_ACCOUNT"
|
|
1497
|
+
$ref: '#/components/schemas/AdminUpdateUserDto'
|
|
1579
1498
|
responses:
|
|
1580
1499
|
'200':
|
|
1581
|
-
description:
|
|
1582
|
-
content:
|
|
1583
|
-
application/json:
|
|
1584
|
-
schema:
|
|
1585
|
-
$ref: '#/components/schemas/Account'
|
|
1586
|
-
'400':
|
|
1587
|
-
description: Invalid input
|
|
1588
|
-
'401':
|
|
1589
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1500
|
+
description: Updated user
|
|
1590
1501
|
'404':
|
|
1591
|
-
description:
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1502
|
+
description: User not found
|
|
1503
|
+
'409':
|
|
1504
|
+
description: Email already in use
|
|
1505
|
+
security: *ref_28
|
|
1506
|
+
summary: Update user name, email or role (admin only)
|
|
1507
|
+
tags: *ref_29
|
|
1508
|
+
/admin/users/{id}/reset-password:
|
|
1509
|
+
post:
|
|
1510
|
+
operationId: resetPassword
|
|
1595
1511
|
parameters:
|
|
1596
1512
|
- name: id
|
|
1597
|
-
in: path
|
|
1598
1513
|
required: true
|
|
1514
|
+
in: path
|
|
1599
1515
|
schema:
|
|
1600
1516
|
type: string
|
|
1601
|
-
description: Account ID
|
|
1602
1517
|
responses:
|
|
1603
|
-
'
|
|
1604
|
-
description:
|
|
1605
|
-
'
|
|
1606
|
-
|
|
1518
|
+
'200':
|
|
1519
|
+
description: Temporary password generated
|
|
1520
|
+
'400':
|
|
1521
|
+
description: Cannot reset own password
|
|
1607
1522
|
'404':
|
|
1608
|
-
description:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
/
|
|
1613
|
-
|
|
1614
|
-
|
|
1523
|
+
description: User not found
|
|
1524
|
+
security: *ref_28
|
|
1525
|
+
summary: Reset user password (admin only)
|
|
1526
|
+
tags: *ref_29
|
|
1527
|
+
/admin/users/{id}/deactivate:
|
|
1528
|
+
patch:
|
|
1529
|
+
operationId: deactivateUser
|
|
1615
1530
|
parameters:
|
|
1616
1531
|
- name: id
|
|
1617
|
-
in: path
|
|
1618
1532
|
required: true
|
|
1533
|
+
in: path
|
|
1619
1534
|
schema:
|
|
1620
1535
|
type: string
|
|
1621
|
-
description: Account ID
|
|
1622
1536
|
responses:
|
|
1623
1537
|
'200':
|
|
1624
|
-
description:
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
get:
|
|
1636
|
-
summary: Get all transactions linked to an account
|
|
1538
|
+
description: User deactivated
|
|
1539
|
+
'400':
|
|
1540
|
+
description: Cannot deactivate self
|
|
1541
|
+
'409':
|
|
1542
|
+
description: Cannot deactivate last admin
|
|
1543
|
+
security: *ref_28
|
|
1544
|
+
summary: Deactivate a user (admin only)
|
|
1545
|
+
tags: *ref_29
|
|
1546
|
+
/admin/users/{id}/activate:
|
|
1547
|
+
patch:
|
|
1548
|
+
operationId: activateUser
|
|
1637
1549
|
parameters:
|
|
1638
1550
|
- name: id
|
|
1639
|
-
in: path
|
|
1640
1551
|
required: true
|
|
1552
|
+
in: path
|
|
1641
1553
|
schema:
|
|
1642
1554
|
type: string
|
|
1643
|
-
description: Account ID
|
|
1644
1555
|
responses:
|
|
1645
1556
|
'200':
|
|
1646
|
-
description:
|
|
1647
|
-
content:
|
|
1648
|
-
application/json:
|
|
1649
|
-
schema:
|
|
1650
|
-
type: array
|
|
1651
|
-
items:
|
|
1652
|
-
$ref: '#/components/schemas/Transaction'
|
|
1653
|
-
'401':
|
|
1654
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1557
|
+
description: User activated
|
|
1655
1558
|
'404':
|
|
1656
|
-
description:
|
|
1657
|
-
|
|
1658
|
-
|
|
1559
|
+
description: User not found
|
|
1560
|
+
security: *ref_28
|
|
1561
|
+
summary: Activate a user (admin only)
|
|
1562
|
+
tags: *ref_29
|
|
1563
|
+
/admin/stats:
|
|
1659
1564
|
get:
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1565
|
+
operationId: getOverviewStats
|
|
1566
|
+
parameters:
|
|
1567
|
+
- name: from
|
|
1568
|
+
required: false
|
|
1569
|
+
in: query
|
|
1570
|
+
description: Start date (YYYY-MM-DD)
|
|
1571
|
+
schema:
|
|
1572
|
+
example: '2026-03-01'
|
|
1573
|
+
type: string
|
|
1574
|
+
- name: to
|
|
1575
|
+
required: false
|
|
1576
|
+
in: query
|
|
1577
|
+
description: End date (YYYY-MM-DD)
|
|
1578
|
+
schema:
|
|
1579
|
+
example: '2026-03-31'
|
|
1580
|
+
type: string
|
|
1664
1581
|
responses:
|
|
1665
1582
|
'200':
|
|
1666
|
-
description:
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1583
|
+
description: System overview stats
|
|
1584
|
+
security: *ref_28
|
|
1585
|
+
summary: Get system overview statistics (admin only)
|
|
1586
|
+
tags: *ref_29
|
|
1587
|
+
/admin/stats/transactions:
|
|
1588
|
+
get:
|
|
1589
|
+
operationId: getTransactionStats
|
|
1590
|
+
parameters:
|
|
1591
|
+
- name: from
|
|
1592
|
+
required: false
|
|
1593
|
+
in: query
|
|
1594
|
+
description: Start date (YYYY-MM-DD)
|
|
1595
|
+
schema:
|
|
1596
|
+
example: '2026-03-01'
|
|
1597
|
+
type: string
|
|
1598
|
+
- name: to
|
|
1599
|
+
required: false
|
|
1600
|
+
in: query
|
|
1601
|
+
description: End date (YYYY-MM-DD)
|
|
1602
|
+
schema:
|
|
1603
|
+
example: '2026-03-31'
|
|
1604
|
+
type: string
|
|
1605
|
+
responses:
|
|
1606
|
+
'200':
|
|
1607
|
+
description: Transaction stats
|
|
1608
|
+
'400':
|
|
1609
|
+
description: Invalid date range
|
|
1610
|
+
security: *ref_28
|
|
1611
|
+
summary: Get transaction statistics by date range (admin only)
|
|
1612
|
+
tags: *ref_29
|
|
1613
|
+
/admin/stats/chat:
|
|
1614
|
+
get:
|
|
1615
|
+
operationId: getChatStats
|
|
1616
|
+
parameters: []
|
|
1617
|
+
responses:
|
|
1618
|
+
'200':
|
|
1619
|
+
description: Chat usage statistics
|
|
1620
|
+
security: *ref_28
|
|
1621
|
+
summary: Get chat and token statistics (admin only)
|
|
1622
|
+
tags: *ref_29
|
|
1623
|
+
/admin/stats/audio:
|
|
1624
|
+
get:
|
|
1625
|
+
operationId: getAudioStats
|
|
1626
|
+
parameters: []
|
|
1627
|
+
responses:
|
|
1628
|
+
'200':
|
|
1629
|
+
description: Audio transcription usage statistics
|
|
1630
|
+
security: *ref_28
|
|
1631
|
+
summary: Get audio transcription statistics (admin only)
|
|
1632
|
+
tags: *ref_29
|
|
1633
|
+
/admin/ai-models:
|
|
1634
|
+
get:
|
|
1635
|
+
operationId: listAIModels
|
|
1636
|
+
parameters: []
|
|
1637
|
+
responses:
|
|
1638
|
+
'200':
|
|
1639
|
+
description: List of AI models
|
|
1640
|
+
security: *ref_28
|
|
1641
|
+
summary: List all AI models and their prices (admin only)
|
|
1642
|
+
tags: *ref_29
|
|
1709
1643
|
post:
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
Imports a previously exported backup. Supports two modes:
|
|
1713
|
-
- **reset**: Clears all existing data and replaces it with the imported data.
|
|
1714
|
-
- **increment**: Adds new records from the import, ignoring records whose IDs already exist.
|
|
1715
|
-
security:
|
|
1716
|
-
- ApiKeyAuth: []
|
|
1644
|
+
operationId: createAIModel
|
|
1645
|
+
parameters: []
|
|
1717
1646
|
requestBody:
|
|
1718
1647
|
required: true
|
|
1719
1648
|
content:
|
|
1720
1649
|
application/json:
|
|
1721
1650
|
schema:
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
format: date-time
|
|
1741
|
-
example: "2026-02-14T21:00:00.000Z"
|
|
1742
|
-
data:
|
|
1743
|
-
type: object
|
|
1744
|
-
properties:
|
|
1745
|
-
settings:
|
|
1746
|
-
nullable: true
|
|
1747
|
-
$ref: '#/components/schemas/Settings'
|
|
1748
|
-
categories:
|
|
1749
|
-
type: array
|
|
1750
|
-
items:
|
|
1751
|
-
$ref: '#/components/schemas/Category'
|
|
1752
|
-
accounts:
|
|
1753
|
-
type: array
|
|
1754
|
-
items:
|
|
1755
|
-
$ref: '#/components/schemas/Account'
|
|
1756
|
-
creditCards:
|
|
1757
|
-
type: array
|
|
1758
|
-
items:
|
|
1759
|
-
$ref: '#/components/schemas/CreditCard'
|
|
1760
|
-
recurrenceRules:
|
|
1761
|
-
type: array
|
|
1762
|
-
items:
|
|
1763
|
-
$ref: '#/components/schemas/RecurrenceRule'
|
|
1764
|
-
transactions:
|
|
1765
|
-
type: array
|
|
1766
|
-
items:
|
|
1767
|
-
$ref: '#/components/schemas/Transaction'
|
|
1768
|
-
responses:
|
|
1769
|
-
'200':
|
|
1770
|
-
description: Import completed successfully
|
|
1771
|
-
content:
|
|
1772
|
-
application/json:
|
|
1773
|
-
schema:
|
|
1774
|
-
type: object
|
|
1775
|
-
properties:
|
|
1776
|
-
message:
|
|
1777
|
-
type: string
|
|
1778
|
-
example: "Import completed successfully (mode: reset)"
|
|
1779
|
-
'400':
|
|
1780
|
-
description: Invalid input or unsupported version
|
|
1781
|
-
'401':
|
|
1782
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1783
|
-
|
|
1784
|
-
/settings:
|
|
1785
|
-
post:
|
|
1786
|
-
summary: Create global settings (only if not exists)
|
|
1651
|
+
$ref: '#/components/schemas/CreateAIModelDto'
|
|
1652
|
+
responses:
|
|
1653
|
+
'201':
|
|
1654
|
+
description: AI model created
|
|
1655
|
+
'409':
|
|
1656
|
+
description: Model already exists
|
|
1657
|
+
security: *ref_28
|
|
1658
|
+
summary: Register a new AI model and its prices (admin only)
|
|
1659
|
+
tags: *ref_29
|
|
1660
|
+
/admin/ai-models/{name}:
|
|
1661
|
+
patch:
|
|
1662
|
+
operationId: updateAIModel
|
|
1663
|
+
parameters:
|
|
1664
|
+
- name: name
|
|
1665
|
+
required: true
|
|
1666
|
+
in: path
|
|
1667
|
+
schema:
|
|
1668
|
+
type: string
|
|
1787
1669
|
requestBody:
|
|
1788
1670
|
required: true
|
|
1789
1671
|
content:
|
|
1790
1672
|
application/json:
|
|
1791
1673
|
schema:
|
|
1792
|
-
|
|
1793
|
-
required:
|
|
1794
|
-
- userName
|
|
1795
|
-
- language
|
|
1796
|
-
- currency
|
|
1797
|
-
properties:
|
|
1798
|
-
userName:
|
|
1799
|
-
type: string
|
|
1800
|
-
example: "John Doe"
|
|
1801
|
-
language:
|
|
1802
|
-
type: string
|
|
1803
|
-
enum: [pt-BR, en-US]
|
|
1804
|
-
example: "pt-BR"
|
|
1805
|
-
currency:
|
|
1806
|
-
type: string
|
|
1807
|
-
enum: [BRL, USD, EUR, GBP, JPY, CAD, AUD, CHF]
|
|
1808
|
-
example: "BRL"
|
|
1809
|
-
responses:
|
|
1810
|
-
'201':
|
|
1811
|
-
description: Settings created successfully
|
|
1812
|
-
content:
|
|
1813
|
-
application/json:
|
|
1814
|
-
schema:
|
|
1815
|
-
$ref: '#/components/schemas/Settings'
|
|
1816
|
-
'400':
|
|
1817
|
-
description: Invalid input
|
|
1818
|
-
'401':
|
|
1819
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1820
|
-
'409':
|
|
1821
|
-
description: Settings already exist
|
|
1822
|
-
|
|
1823
|
-
get:
|
|
1824
|
-
summary: Get global settings
|
|
1674
|
+
$ref: '#/components/schemas/UpdateAIModelDto'
|
|
1825
1675
|
responses:
|
|
1826
1676
|
'200':
|
|
1827
|
-
description:
|
|
1828
|
-
content:
|
|
1829
|
-
application/json:
|
|
1830
|
-
schema:
|
|
1831
|
-
$ref: '#/components/schemas/Settings'
|
|
1832
|
-
'401':
|
|
1833
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1677
|
+
description: AI model updated
|
|
1834
1678
|
'404':
|
|
1835
|
-
description:
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1679
|
+
description: Model not found
|
|
1680
|
+
security: *ref_28
|
|
1681
|
+
summary: Update AI model prices (admin only)
|
|
1682
|
+
tags: *ref_29
|
|
1683
|
+
/admin/transactions:
|
|
1684
|
+
get:
|
|
1685
|
+
description: >-
|
|
1686
|
+
Returns a paginated list of transactions without exposing PII
|
|
1687
|
+
(Personally Identifiable Information). Used to understand system trends
|
|
1688
|
+
and volume.
|
|
1689
|
+
operationId: getAnonymizedTransactions
|
|
1690
|
+
parameters:
|
|
1691
|
+
- name: page
|
|
1692
|
+
required: false
|
|
1693
|
+
in: query
|
|
1694
|
+
schema:
|
|
1695
|
+
default: 1
|
|
1696
|
+
example: 1
|
|
1697
|
+
type: number
|
|
1698
|
+
- name: limit
|
|
1699
|
+
required: false
|
|
1700
|
+
in: query
|
|
1701
|
+
schema:
|
|
1702
|
+
default: 20
|
|
1703
|
+
example: 20
|
|
1704
|
+
type: number
|
|
1705
|
+
- name: type
|
|
1706
|
+
required: false
|
|
1707
|
+
in: query
|
|
1708
|
+
description: Filter transactions by type
|
|
1709
|
+
schema:
|
|
1710
|
+
type: string
|
|
1711
|
+
enum:
|
|
1712
|
+
- INCOME
|
|
1713
|
+
- EXPENSE
|
|
1714
|
+
- name: from
|
|
1715
|
+
required: false
|
|
1716
|
+
in: query
|
|
1717
|
+
description: Start date (YYYY-MM-DD)
|
|
1718
|
+
schema:
|
|
1719
|
+
example: '2026-03-01'
|
|
1720
|
+
type: string
|
|
1721
|
+
- name: to
|
|
1722
|
+
required: false
|
|
1723
|
+
in: query
|
|
1724
|
+
description: End date (YYYY-MM-DD)
|
|
1725
|
+
schema:
|
|
1726
|
+
example: '2026-03-31'
|
|
1727
|
+
type: string
|
|
1728
|
+
- name: paymentMethod
|
|
1729
|
+
required: false
|
|
1730
|
+
in: query
|
|
1731
|
+
description: Filter transactions by payment method (CASH, PIX, CREDIT, DEBIT)
|
|
1732
|
+
schema:
|
|
1733
|
+
type: string
|
|
1734
|
+
responses:
|
|
1735
|
+
'200':
|
|
1736
|
+
description: Paginated list of anonymized transactions
|
|
1737
|
+
'400':
|
|
1738
|
+
description: Invalid date range
|
|
1739
|
+
security: *ref_28
|
|
1740
|
+
summary: List all transactions fully anonymized (admin only)
|
|
1741
|
+
tags: *ref_29
|
|
1742
|
+
/admin/settings:
|
|
1743
|
+
get:
|
|
1744
|
+
operationId: listAll
|
|
1745
|
+
parameters: []
|
|
1746
|
+
responses:
|
|
1747
|
+
'200':
|
|
1748
|
+
description: List of all system settings
|
|
1749
|
+
security: &ref_30
|
|
1750
|
+
- bearer: []
|
|
1751
|
+
summary: List all system settings (admin only)
|
|
1752
|
+
tags: &ref_31
|
|
1753
|
+
- Admin / Settings
|
|
1754
|
+
/admin/settings/{key}:
|
|
1755
|
+
patch:
|
|
1756
|
+
operationId: update
|
|
1757
|
+
parameters:
|
|
1758
|
+
- name: key
|
|
1759
|
+
required: true
|
|
1760
|
+
in: path
|
|
1761
|
+
schema:
|
|
1762
|
+
type: string
|
|
1839
1763
|
requestBody:
|
|
1840
1764
|
required: true
|
|
1841
1765
|
content:
|
|
1842
1766
|
application/json:
|
|
1843
1767
|
schema:
|
|
1844
|
-
|
|
1845
|
-
properties:
|
|
1846
|
-
userName:
|
|
1847
|
-
type: string
|
|
1848
|
-
example: "John Doe"
|
|
1849
|
-
language:
|
|
1850
|
-
type: string
|
|
1851
|
-
enum: [pt-BR, en-US]
|
|
1852
|
-
example: "pt-BR"
|
|
1853
|
-
currency:
|
|
1854
|
-
type: string
|
|
1855
|
-
enum: [BRL, USD, EUR, GBP, JPY, CAD, AUD, CHF]
|
|
1856
|
-
example: "BRL"
|
|
1768
|
+
$ref: '#/components/schemas/UpdateSystemSettingDto'
|
|
1857
1769
|
responses:
|
|
1858
1770
|
'200':
|
|
1859
|
-
description:
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
'400':
|
|
1865
|
-
description: Invalid input
|
|
1866
|
-
'401':
|
|
1867
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1868
|
-
'404':
|
|
1869
|
-
description: Settings not found
|
|
1870
|
-
|
|
1871
|
-
/transfers:
|
|
1771
|
+
description: Setting updated
|
|
1772
|
+
security: *ref_30
|
|
1773
|
+
summary: Update a system setting (admin only)
|
|
1774
|
+
tags: *ref_31
|
|
1775
|
+
/admin/invites:
|
|
1872
1776
|
post:
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
summary: Create a new transfer between accounts
|
|
1876
|
-
security:
|
|
1877
|
-
- ApiKeyAuth: []
|
|
1777
|
+
operationId: create
|
|
1778
|
+
parameters: []
|
|
1878
1779
|
requestBody:
|
|
1879
1780
|
required: true
|
|
1880
1781
|
content:
|
|
1881
1782
|
application/json:
|
|
1882
1783
|
schema:
|
|
1883
|
-
|
|
1884
|
-
required:
|
|
1885
|
-
- sourceAccountId
|
|
1886
|
-
- destinationAccountId
|
|
1887
|
-
- amount
|
|
1888
|
-
- date
|
|
1889
|
-
properties:
|
|
1890
|
-
sourceAccountId:
|
|
1891
|
-
type: string
|
|
1892
|
-
destinationAccountId:
|
|
1893
|
-
type: string
|
|
1894
|
-
amount:
|
|
1895
|
-
type: number
|
|
1896
|
-
minimum: 0.01
|
|
1897
|
-
date:
|
|
1898
|
-
type: string
|
|
1899
|
-
format: date
|
|
1784
|
+
$ref: '#/components/schemas/CreateInviteDto'
|
|
1900
1785
|
responses:
|
|
1901
1786
|
'201':
|
|
1902
|
-
description:
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
description: Invalid input
|
|
1909
|
-
'401':
|
|
1910
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1911
|
-
'404':
|
|
1912
|
-
description: Account not found
|
|
1787
|
+
description: Invitation created and email "sent"
|
|
1788
|
+
security: &ref_32
|
|
1789
|
+
- bearer: []
|
|
1790
|
+
summary: Create a new invitation (admin only)
|
|
1791
|
+
tags: &ref_33
|
|
1792
|
+
- Admin / Invites
|
|
1913
1793
|
get:
|
|
1914
|
-
|
|
1915
|
-
- transfers
|
|
1916
|
-
summary: List transfers with optional filters
|
|
1917
|
-
security:
|
|
1918
|
-
- ApiKeyAuth: []
|
|
1794
|
+
operationId: listAll
|
|
1919
1795
|
parameters:
|
|
1920
|
-
- name:
|
|
1921
|
-
in: query
|
|
1796
|
+
- name: page
|
|
1922
1797
|
required: false
|
|
1923
|
-
description: Filter by account ID (source or destination)
|
|
1924
|
-
schema:
|
|
1925
|
-
type: string
|
|
1926
|
-
- name: month
|
|
1927
1798
|
in: query
|
|
1928
|
-
required: false
|
|
1929
|
-
description: Filter by month (YYYY-MM format)
|
|
1930
1799
|
schema:
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
- name:
|
|
1935
|
-
in: query
|
|
1800
|
+
default: 1
|
|
1801
|
+
example: 1
|
|
1802
|
+
type: number
|
|
1803
|
+
- name: limit
|
|
1936
1804
|
required: false
|
|
1937
|
-
description: Filter from date (YYYY-MM-DD)
|
|
1938
|
-
schema:
|
|
1939
|
-
type: string
|
|
1940
|
-
format: date
|
|
1941
|
-
- name: endDate
|
|
1942
1805
|
in: query
|
|
1943
|
-
required: false
|
|
1944
|
-
description: Filter to date (YYYY-MM-DD)
|
|
1945
1806
|
schema:
|
|
1946
|
-
|
|
1947
|
-
|
|
1807
|
+
default: 20
|
|
1808
|
+
example: 20
|
|
1809
|
+
type: number
|
|
1948
1810
|
responses:
|
|
1949
1811
|
'200':
|
|
1950
|
-
description:
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
'401':
|
|
1958
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1959
|
-
|
|
1960
|
-
/transfers/{id}:
|
|
1961
|
-
get:
|
|
1962
|
-
tags:
|
|
1963
|
-
- transfers
|
|
1964
|
-
summary: Get a transfer by ID
|
|
1965
|
-
security:
|
|
1966
|
-
- ApiKeyAuth: []
|
|
1812
|
+
description: Paginated list of invitations
|
|
1813
|
+
security: *ref_32
|
|
1814
|
+
summary: List all invitations (admin only)
|
|
1815
|
+
tags: *ref_33
|
|
1816
|
+
/admin/invites/{id}/resend:
|
|
1817
|
+
post:
|
|
1818
|
+
operationId: resend
|
|
1967
1819
|
parameters:
|
|
1968
1820
|
- name: id
|
|
1969
|
-
in: path
|
|
1970
1821
|
required: true
|
|
1822
|
+
in: path
|
|
1971
1823
|
schema:
|
|
1972
1824
|
type: string
|
|
1973
1825
|
responses:
|
|
1974
1826
|
'200':
|
|
1975
|
-
description:
|
|
1976
|
-
content:
|
|
1977
|
-
application/json:
|
|
1978
|
-
schema:
|
|
1979
|
-
$ref: '#/components/schemas/Transfer'
|
|
1980
|
-
'401':
|
|
1981
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1827
|
+
description: Invitation email resent
|
|
1982
1828
|
'404':
|
|
1983
|
-
description:
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
summary:
|
|
1988
|
-
|
|
1989
|
-
|
|
1829
|
+
description: Invitation not found
|
|
1830
|
+
'409':
|
|
1831
|
+
description: Invitation cannot be resent
|
|
1832
|
+
security: *ref_32
|
|
1833
|
+
summary: Resend an invitation email (admin only)
|
|
1834
|
+
tags: *ref_33
|
|
1835
|
+
/admin/invites/{id}:
|
|
1836
|
+
delete:
|
|
1837
|
+
operationId: revoke
|
|
1990
1838
|
parameters:
|
|
1991
1839
|
- name: id
|
|
1992
|
-
in: path
|
|
1993
1840
|
required: true
|
|
1841
|
+
in: path
|
|
1994
1842
|
schema:
|
|
1995
1843
|
type: string
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
application/json:
|
|
2000
|
-
schema:
|
|
2001
|
-
type: object
|
|
2002
|
-
properties:
|
|
2003
|
-
sourceAccountId:
|
|
2004
|
-
type: string
|
|
2005
|
-
destinationAccountId:
|
|
2006
|
-
type: string
|
|
2007
|
-
amount:
|
|
2008
|
-
type: number
|
|
2009
|
-
minimum: 0.01
|
|
2010
|
-
date:
|
|
2011
|
-
type: string
|
|
2012
|
-
format: date
|
|
2013
|
-
responses:
|
|
2014
|
-
'200':
|
|
2015
|
-
description: Transfer updated successfully
|
|
2016
|
-
content:
|
|
2017
|
-
application/json:
|
|
2018
|
-
schema:
|
|
2019
|
-
$ref: '#/components/schemas/Transfer'
|
|
2020
|
-
'400':
|
|
2021
|
-
description: Invalid input
|
|
2022
|
-
'401':
|
|
2023
|
-
$ref: '#/components/responses/UnauthorizedError'
|
|
1844
|
+
responses:
|
|
1845
|
+
'200':
|
|
1846
|
+
description: Invitation revoked
|
|
2024
1847
|
'404':
|
|
2025
|
-
description:
|
|
1848
|
+
description: Invitation not found
|
|
1849
|
+
'409':
|
|
1850
|
+
description: Invitation cannot be revoked
|
|
1851
|
+
security: *ref_32
|
|
1852
|
+
summary: Revoke an invitation (admin only)
|
|
1853
|
+
tags: *ref_33
|
|
1854
|
+
/admin/invites/{id}/delete:
|
|
2026
1855
|
delete:
|
|
2027
|
-
|
|
2028
|
-
- transfers
|
|
2029
|
-
summary: Delete a transfer
|
|
2030
|
-
security:
|
|
2031
|
-
- ApiKeyAuth: []
|
|
1856
|
+
operationId: deleteRevoked
|
|
2032
1857
|
parameters:
|
|
2033
1858
|
- name: id
|
|
2034
|
-
in: path
|
|
2035
1859
|
required: true
|
|
1860
|
+
in: path
|
|
2036
1861
|
schema:
|
|
2037
1862
|
type: string
|
|
2038
|
-
responses:
|
|
2039
|
-
'
|
|
2040
|
-
description:
|
|
2041
|
-
'
|
|
2042
|
-
|
|
2043
|
-
'
|
|
2044
|
-
description:
|
|
2045
|
-
|
|
1863
|
+
responses:
|
|
1864
|
+
'200':
|
|
1865
|
+
description: Invitation permanently deleted
|
|
1866
|
+
'404':
|
|
1867
|
+
description: Invitation not found
|
|
1868
|
+
'409':
|
|
1869
|
+
description: Invitation must be revoked before deletion
|
|
1870
|
+
security: *ref_32
|
|
1871
|
+
summary: Permanently delete a revoked invitation (admin only)
|
|
1872
|
+
tags: *ref_33
|
|
1873
|
+
info:
|
|
1874
|
+
title: Quantix Personal Finance Manager API
|
|
1875
|
+
description: >-
|
|
1876
|
+
O Quantix é um gerenciador financeiro pessoal moderno, projetado para ajudar
|
|
1877
|
+
indivíduos a controlarem suas finanças de maneira simples, eficaz e segura.
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
## Principais Recursos
|
|
1881
|
+
|
|
1882
|
+
- **Multi-usuário**: Suporte total a múltiplos usuários com isolamento
|
|
1883
|
+
completo de dados.
|
|
1884
|
+
|
|
1885
|
+
- **Controle de Transações**: Gestão de receitas, despesas e transferências
|
|
1886
|
+
entre contas.
|
|
1887
|
+
|
|
1888
|
+
- **Cartões de Crédito**: Acompanhamento de faturas, limites e pagamentos.
|
|
1889
|
+
|
|
1890
|
+
- **Categorias e Organização**: Classificação visual de gastos com
|
|
1891
|
+
categorias personalizáveis.
|
|
1892
|
+
|
|
1893
|
+
- **Assinaturas e Recorrência**: Automação de lançamentos frequentes
|
|
1894
|
+
(Netflix, aluguel, etc.).
|
|
1895
|
+
|
|
1896
|
+
- **Segurança**: Autenticação robusta via JWT e armazenamento seguro de
|
|
1897
|
+
senhas com Bcrypt.
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
## Autenticação
|
|
1901
|
+
|
|
1902
|
+
Esta API utiliza autenticação baseada em **JWT (JSON Web Token)**.
|
|
1903
|
+
|
|
1904
|
+
1. Registre-se ou faça login através dos endpoints de `/auth` para receber
|
|
1905
|
+
seu token de acesso.
|
|
1906
|
+
|
|
1907
|
+
2. Inclua o token no header de autorização em todas as requisições
|
|
1908
|
+
protegidas:
|
|
1909
|
+
|
|
1910
|
+
```
|
|
1911
|
+
|
|
1912
|
+
Authorization: Bearer <seu-token-aqui>
|
|
1913
|
+
|
|
1914
|
+
```
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
## Base URL
|
|
1918
|
+
|
|
1919
|
+
Todos os endpoints da API são relativos a: `http://localhost:3000/api`
|
|
1920
|
+
|
|
1921
|
+
version: 1.2.0
|
|
1922
|
+
contact:
|
|
1923
|
+
name: Quantix Support
|
|
1924
|
+
url: https://github.com/marcosnunesmbs/quantix
|
|
1925
|
+
email: support@example.com
|
|
1926
|
+
license:
|
|
1927
|
+
name: MIT
|
|
1928
|
+
url: https://github.com/marcosnunesmbs/quantix/blob/main/LICENSE
|
|
1929
|
+
tags: []
|
|
1930
|
+
servers: []
|
|
1931
|
+
components:
|
|
1932
|
+
securitySchemes:
|
|
1933
|
+
bearer:
|
|
1934
|
+
scheme: bearer
|
|
1935
|
+
bearerFormat: JWT
|
|
1936
|
+
type: http
|
|
1937
|
+
schemas:
|
|
1938
|
+
CreateSubscriptionDto:
|
|
1939
|
+
type: object
|
|
1940
|
+
properties:
|
|
1941
|
+
name:
|
|
1942
|
+
type: string
|
|
1943
|
+
description: Name of the subscription (e.g., Netflix, Spotify)
|
|
1944
|
+
example: Netflix
|
|
1945
|
+
amount:
|
|
1946
|
+
type: number
|
|
1947
|
+
description: Monthly amount charged
|
|
1948
|
+
example: 55.9
|
|
1949
|
+
minimum: 0.01
|
|
1950
|
+
billingDay:
|
|
1951
|
+
type: number
|
|
1952
|
+
description: Day of the month when the subscription is charged (1-31)
|
|
1953
|
+
example: 15
|
|
1954
|
+
minimum: 1
|
|
1955
|
+
maximum: 31
|
|
1956
|
+
creditCardId:
|
|
1957
|
+
type: string
|
|
1958
|
+
description: ID of the credit card used for this subscription
|
|
1959
|
+
example: cc_123456789
|
|
1960
|
+
categoryId:
|
|
1961
|
+
type: string
|
|
1962
|
+
description: ID of the expense category
|
|
1963
|
+
example: cat_123456789
|
|
1964
|
+
required:
|
|
1965
|
+
- name
|
|
1966
|
+
- amount
|
|
1967
|
+
- billingDay
|
|
1968
|
+
- creditCardId
|
|
1969
|
+
UpdateSubscriptionDto:
|
|
1970
|
+
type: object
|
|
1971
|
+
properties:
|
|
1972
|
+
name:
|
|
1973
|
+
type: string
|
|
1974
|
+
description: Name of the subscription
|
|
1975
|
+
example: Netflix Premium
|
|
1976
|
+
amount:
|
|
1977
|
+
type: number
|
|
1978
|
+
description: Monthly amount charged
|
|
1979
|
+
example: 79.9
|
|
1980
|
+
minimum: 0.01
|
|
1981
|
+
billingDay:
|
|
1982
|
+
type: number
|
|
1983
|
+
description: Day of the month when the subscription is charged (1-31)
|
|
1984
|
+
example: 10
|
|
1985
|
+
minimum: 1
|
|
1986
|
+
maximum: 31
|
|
1987
|
+
creditCardId:
|
|
1988
|
+
type: string
|
|
1989
|
+
description: ID of the credit card used for this subscription
|
|
1990
|
+
example: cc_987654321
|
|
1991
|
+
categoryId:
|
|
1992
|
+
type: string
|
|
1993
|
+
description: ID of the expense category
|
|
1994
|
+
example: cat_123456789
|
|
1995
|
+
active:
|
|
1996
|
+
type: boolean
|
|
1997
|
+
description: Whether the subscription is active
|
|
1998
|
+
example: true
|
|
1999
|
+
RegisterDto:
|
|
2000
|
+
type: object
|
|
2001
|
+
properties:
|
|
2002
|
+
name:
|
|
2003
|
+
type: string
|
|
2004
|
+
description: User name
|
|
2005
|
+
email:
|
|
2006
|
+
type: string
|
|
2007
|
+
description: User email
|
|
2008
|
+
password:
|
|
2009
|
+
type: string
|
|
2010
|
+
description: User password
|
|
2011
|
+
minLength: 6
|
|
2012
|
+
inviteCode:
|
|
2013
|
+
type: string
|
|
2014
|
+
description: Invitation code (required if invite mode is ON)
|
|
2015
|
+
required:
|
|
2016
|
+
- name
|
|
2017
|
+
- email
|
|
2018
|
+
- password
|
|
2019
|
+
LoginDto:
|
|
2020
|
+
type: object
|
|
2021
|
+
properties:
|
|
2022
|
+
email:
|
|
2023
|
+
type: string
|
|
2024
|
+
description: User email
|
|
2025
|
+
password:
|
|
2026
|
+
type: string
|
|
2027
|
+
description: User password
|
|
2028
|
+
required:
|
|
2029
|
+
- email
|
|
2030
|
+
- password
|
|
2031
|
+
ChangePasswordDto:
|
|
2032
|
+
type: object
|
|
2033
|
+
properties:
|
|
2034
|
+
currentPassword:
|
|
2035
|
+
type: string
|
|
2036
|
+
description: Current user password
|
|
2037
|
+
newPassword:
|
|
2038
|
+
type: string
|
|
2039
|
+
description: New user password
|
|
2040
|
+
minLength: 6
|
|
2041
|
+
required:
|
|
2042
|
+
- currentPassword
|
|
2043
|
+
- newPassword
|
|
2044
|
+
ForgotPasswordDto:
|
|
2045
|
+
type: object
|
|
2046
|
+
properties:
|
|
2047
|
+
email:
|
|
2048
|
+
type: string
|
|
2049
|
+
description: User email
|
|
2050
|
+
required:
|
|
2051
|
+
- email
|
|
2052
|
+
ResetPasswordDto:
|
|
2053
|
+
type: object
|
|
2054
|
+
properties:
|
|
2055
|
+
token:
|
|
2056
|
+
type: string
|
|
2057
|
+
description: Reset token received by email
|
|
2058
|
+
newPassword:
|
|
2059
|
+
type: string
|
|
2060
|
+
description: New user password
|
|
2061
|
+
minLength: 6
|
|
2062
|
+
required:
|
|
2063
|
+
- token
|
|
2064
|
+
- newPassword
|
|
2065
|
+
SendMessageDto:
|
|
2066
|
+
type: object
|
|
2067
|
+
properties: {}
|
|
2068
|
+
CreateCategoryDto:
|
|
2069
|
+
type: object
|
|
2070
|
+
properties:
|
|
2071
|
+
name:
|
|
2072
|
+
type: string
|
|
2073
|
+
description: Name of the category
|
|
2074
|
+
example: Groceries
|
|
2075
|
+
type:
|
|
2076
|
+
type: string
|
|
2077
|
+
description: Type of the category
|
|
2078
|
+
enum:
|
|
2079
|
+
- INCOME
|
|
2080
|
+
- EXPENSE
|
|
2081
|
+
example: EXPENSE
|
|
2082
|
+
color:
|
|
2083
|
+
type: object
|
|
2084
|
+
description: Color for the category in hexadecimal format
|
|
2085
|
+
example: '#FF5733'
|
|
2086
|
+
nullable: true
|
|
2087
|
+
required:
|
|
2088
|
+
- name
|
|
2089
|
+
- type
|
|
2090
|
+
UpdateCategoryDto:
|
|
2091
|
+
type: object
|
|
2092
|
+
properties:
|
|
2093
|
+
name:
|
|
2094
|
+
type: string
|
|
2095
|
+
description: Name of the category
|
|
2096
|
+
example: Groceries
|
|
2097
|
+
color:
|
|
2098
|
+
type: object
|
|
2099
|
+
description: Color for the category in hexadecimal format
|
|
2100
|
+
example: '#FF5733'
|
|
2101
|
+
nullable: true
|
|
2102
|
+
RecurrenceDto:
|
|
2103
|
+
type: object
|
|
2104
|
+
properties:
|
|
2105
|
+
frequency:
|
|
2106
|
+
type: string
|
|
2107
|
+
description: Frequency of recurrence
|
|
2108
|
+
enum:
|
|
2109
|
+
- WEEKLY
|
|
2110
|
+
- MONTHLY
|
|
2111
|
+
- YEARLY
|
|
2112
|
+
example: MONTHLY
|
|
2113
|
+
interval:
|
|
2114
|
+
type: number
|
|
2115
|
+
description: Interval between recurrences
|
|
2116
|
+
example: 1
|
|
2117
|
+
minimum: 1
|
|
2118
|
+
startDate:
|
|
2119
|
+
type: string
|
|
2120
|
+
description: Start date for recurrence (defaults to transaction date)
|
|
2121
|
+
example: '2026-01-30'
|
|
2122
|
+
endDate:
|
|
2123
|
+
type: string
|
|
2124
|
+
description: >-
|
|
2125
|
+
End date for recurrence (optional, mutually exclusive with
|
|
2126
|
+
occurrences)
|
|
2127
|
+
example: '2026-12-31'
|
|
2128
|
+
occurrences:
|
|
2129
|
+
type: number
|
|
2130
|
+
description: Number of occurrences (optional, mutually exclusive with endDate)
|
|
2131
|
+
example: 12
|
|
2132
|
+
minimum: 2
|
|
2133
|
+
required:
|
|
2134
|
+
- frequency
|
|
2135
|
+
- interval
|
|
2136
|
+
CreateTransactionDto:
|
|
2137
|
+
type: object
|
|
2138
|
+
properties:
|
|
2139
|
+
type:
|
|
2140
|
+
type: string
|
|
2141
|
+
description: Type of the transaction
|
|
2142
|
+
enum: &ref_34
|
|
2143
|
+
- INCOME
|
|
2144
|
+
- EXPENSE
|
|
2145
|
+
example: EXPENSE
|
|
2146
|
+
name:
|
|
2147
|
+
type: object
|
|
2148
|
+
description: Name or description of the transaction
|
|
2149
|
+
example: Grocery shopping
|
|
2150
|
+
amount:
|
|
2151
|
+
type: object
|
|
2152
|
+
description: Amount of the transaction
|
|
2153
|
+
example: 125.75
|
|
2154
|
+
minimum: 0
|
|
2155
|
+
date:
|
|
2156
|
+
type: object
|
|
2157
|
+
description: >-
|
|
2158
|
+
Date of the transaction (for credit cards, this will be overridden
|
|
2159
|
+
by the due day of the card if targetDueMonth is provided)
|
|
2160
|
+
example: '2026-01-30'
|
|
2161
|
+
categoryId:
|
|
2162
|
+
type: string
|
|
2163
|
+
description: ID of the associated category
|
|
2164
|
+
example: cat_123456789
|
|
2165
|
+
paymentMethod:
|
|
2166
|
+
type: string
|
|
2167
|
+
description: Method of payment
|
|
2168
|
+
enum: &ref_35
|
|
2169
|
+
- CASH
|
|
2170
|
+
- PIX
|
|
2171
|
+
- DEBIT
|
|
2172
|
+
- CREDIT
|
|
2173
|
+
example: CREDIT
|
|
2174
|
+
creditCardId:
|
|
2175
|
+
type: string
|
|
2176
|
+
description: >-
|
|
2177
|
+
ID of the associated credit card (required if paymentMethod is
|
|
2178
|
+
CREDIT)
|
|
2179
|
+
example: cc_123456789
|
|
2180
|
+
installments:
|
|
2181
|
+
type: number
|
|
2182
|
+
description: Number of installments (optional)
|
|
2183
|
+
example: 3
|
|
2184
|
+
minimum: 1
|
|
2185
|
+
targetDueMonth:
|
|
2186
|
+
type: string
|
|
2187
|
+
description: Target month for due date in YYYY-MM format (optional)
|
|
2188
|
+
example: 2026-03
|
|
2189
|
+
isRecurring:
|
|
2190
|
+
type: boolean
|
|
2191
|
+
description: Whether the transaction is recurring
|
|
2192
|
+
example: false
|
|
2193
|
+
default: false
|
|
2194
|
+
recurrence:
|
|
2195
|
+
description: Recurrence information (optional)
|
|
2196
|
+
allOf:
|
|
2197
|
+
- $ref: '#/components/schemas/RecurrenceDto'
|
|
2198
|
+
accountId:
|
|
2199
|
+
type: string
|
|
2200
|
+
description: >-
|
|
2201
|
+
ID of the associated account (required if paymentMethod is not
|
|
2202
|
+
CREDIT)
|
|
2203
|
+
example: acc_123456789
|
|
2204
|
+
isPaid:
|
|
2205
|
+
type: boolean
|
|
2206
|
+
description: Whether the transaction has been paid
|
|
2207
|
+
example: false
|
|
2208
|
+
default: false
|
|
2209
|
+
purchaseDate:
|
|
2210
|
+
type: string
|
|
2211
|
+
description: Actual purchase date (credit card only)
|
|
2212
|
+
example: '2026-02-10'
|
|
2213
|
+
required:
|
|
2214
|
+
- type
|
|
2215
|
+
- name
|
|
2216
|
+
- amount
|
|
2217
|
+
- date
|
|
2218
|
+
CategoryDto:
|
|
2219
|
+
type: object
|
|
2220
|
+
properties:
|
|
2221
|
+
id:
|
|
2222
|
+
type: string
|
|
2223
|
+
name:
|
|
2224
|
+
type: string
|
|
2225
|
+
type:
|
|
2226
|
+
type: string
|
|
2227
|
+
enum:
|
|
2228
|
+
- INCOME
|
|
2229
|
+
- EXPENSE
|
|
2230
|
+
color:
|
|
2231
|
+
type: object
|
|
2232
|
+
nullable: true
|
|
2233
|
+
createdAt:
|
|
2234
|
+
format: date-time
|
|
2235
|
+
type: string
|
|
2236
|
+
required:
|
|
2237
|
+
- id
|
|
2238
|
+
- name
|
|
2239
|
+
- type
|
|
2240
|
+
- createdAt
|
|
2241
|
+
CreditCardDto:
|
|
2242
|
+
type: object
|
|
2243
|
+
properties:
|
|
2244
|
+
id:
|
|
2245
|
+
type: string
|
|
2246
|
+
name:
|
|
2247
|
+
type: string
|
|
2248
|
+
brand:
|
|
2249
|
+
type: string
|
|
2250
|
+
limitAmount:
|
|
2251
|
+
type: number
|
|
2252
|
+
closingDay:
|
|
2253
|
+
type: number
|
|
2254
|
+
dueDay:
|
|
2255
|
+
type: number
|
|
2256
|
+
availableLimit:
|
|
2257
|
+
type: number
|
|
2258
|
+
createdAt:
|
|
2259
|
+
format: date-time
|
|
2260
|
+
type: string
|
|
2261
|
+
required:
|
|
2262
|
+
- id
|
|
2263
|
+
- name
|
|
2264
|
+
- limitAmount
|
|
2265
|
+
- closingDay
|
|
2266
|
+
- dueDay
|
|
2267
|
+
- createdAt
|
|
2268
|
+
RecurrenceRule:
|
|
2269
|
+
type: object
|
|
2270
|
+
properties: {}
|
|
2271
|
+
SubscriptionDto:
|
|
2272
|
+
type: object
|
|
2273
|
+
properties:
|
|
2274
|
+
id:
|
|
2275
|
+
type: string
|
|
2276
|
+
name:
|
|
2277
|
+
type: string
|
|
2278
|
+
amount:
|
|
2279
|
+
type: number
|
|
2280
|
+
billingDay:
|
|
2281
|
+
type: number
|
|
2282
|
+
creditCardId:
|
|
2283
|
+
type: string
|
|
2284
|
+
categoryId:
|
|
2285
|
+
type: string
|
|
2286
|
+
active:
|
|
2287
|
+
type: boolean
|
|
2288
|
+
createdAt:
|
|
2289
|
+
format: date-time
|
|
2290
|
+
type: string
|
|
2291
|
+
updatedAt:
|
|
2292
|
+
format: date-time
|
|
2293
|
+
type: string
|
|
2294
|
+
required:
|
|
2295
|
+
- id
|
|
2296
|
+
- name
|
|
2297
|
+
- amount
|
|
2298
|
+
- billingDay
|
|
2299
|
+
- creditCardId
|
|
2300
|
+
- active
|
|
2301
|
+
- createdAt
|
|
2302
|
+
- updatedAt
|
|
2303
|
+
AccountDto:
|
|
2304
|
+
type: object
|
|
2305
|
+
properties:
|
|
2306
|
+
id:
|
|
2307
|
+
type: string
|
|
2308
|
+
name:
|
|
2309
|
+
type: string
|
|
2310
|
+
type:
|
|
2311
|
+
type: string
|
|
2312
|
+
initialBalance:
|
|
2313
|
+
type: number
|
|
2314
|
+
currentBalance:
|
|
2315
|
+
type: number
|
|
2316
|
+
createdAt:
|
|
2317
|
+
format: date-time
|
|
2318
|
+
type: string
|
|
2319
|
+
updatedAt:
|
|
2320
|
+
format: date-time
|
|
2321
|
+
type: string
|
|
2322
|
+
required:
|
|
2323
|
+
- name
|
|
2324
|
+
- type
|
|
2325
|
+
- initialBalance
|
|
2326
|
+
- currentBalance
|
|
2327
|
+
TransactionWithRelationsDto:
|
|
2328
|
+
type: object
|
|
2329
|
+
properties:
|
|
2330
|
+
id:
|
|
2331
|
+
type: string
|
|
2332
|
+
type:
|
|
2333
|
+
type: string
|
|
2334
|
+
enum:
|
|
2335
|
+
- INCOME
|
|
2336
|
+
- EXPENSE
|
|
2337
|
+
name:
|
|
2338
|
+
type: string
|
|
2339
|
+
amount:
|
|
2340
|
+
type: number
|
|
2341
|
+
date:
|
|
2342
|
+
format: date-time
|
|
2343
|
+
type: string
|
|
2344
|
+
categoryId:
|
|
2345
|
+
type: string
|
|
2346
|
+
category:
|
|
2347
|
+
$ref: '#/components/schemas/CategoryDto'
|
|
2348
|
+
paymentMethod:
|
|
2349
|
+
type: string
|
|
2350
|
+
enum:
|
|
2351
|
+
- CASH
|
|
2352
|
+
- PIX
|
|
2353
|
+
- DEBIT
|
|
2354
|
+
- CREDIT
|
|
2355
|
+
creditCardId:
|
|
2356
|
+
type: string
|
|
2357
|
+
creditCard:
|
|
2358
|
+
$ref: '#/components/schemas/CreditCardDto'
|
|
2359
|
+
recurrenceRule:
|
|
2360
|
+
$ref: '#/components/schemas/RecurrenceRule'
|
|
2361
|
+
subscriptionId:
|
|
2362
|
+
type: string
|
|
2363
|
+
subscription:
|
|
2364
|
+
$ref: '#/components/schemas/SubscriptionDto'
|
|
2365
|
+
accountId:
|
|
2366
|
+
type: string
|
|
2367
|
+
account:
|
|
2368
|
+
$ref: '#/components/schemas/AccountDto'
|
|
2369
|
+
installmentGroupId:
|
|
2370
|
+
type: string
|
|
2371
|
+
installmentNumber:
|
|
2372
|
+
type: number
|
|
2373
|
+
installmentTotal:
|
|
2374
|
+
type: number
|
|
2375
|
+
recurrenceRuleId:
|
|
2376
|
+
type: string
|
|
2377
|
+
paid:
|
|
2378
|
+
type: boolean
|
|
2379
|
+
createdAt:
|
|
2380
|
+
format: date-time
|
|
2381
|
+
type: string
|
|
2382
|
+
purchaseDate:
|
|
2383
|
+
format: date-time
|
|
2384
|
+
type: string
|
|
2385
|
+
linkedTransactionId:
|
|
2386
|
+
type: string
|
|
2387
|
+
isAnticipation:
|
|
2388
|
+
type: boolean
|
|
2389
|
+
description: >-
|
|
2390
|
+
Indicates if this transaction is part of a credit card anticipation
|
|
2391
|
+
pair
|
|
2392
|
+
required:
|
|
2393
|
+
- id
|
|
2394
|
+
- type
|
|
2395
|
+
- name
|
|
2396
|
+
- amount
|
|
2397
|
+
- date
|
|
2398
|
+
- paid
|
|
2399
|
+
- createdAt
|
|
2400
|
+
UpdateTransactionDto:
|
|
2401
|
+
type: object
|
|
2402
|
+
properties:
|
|
2403
|
+
type:
|
|
2404
|
+
type: string
|
|
2405
|
+
description: Type of the transaction
|
|
2406
|
+
enum: *ref_34
|
|
2407
|
+
example: EXPENSE
|
|
2408
|
+
name:
|
|
2409
|
+
type: object
|
|
2410
|
+
description: Name or description of the transaction
|
|
2411
|
+
example: Grocery shopping
|
|
2412
|
+
amount:
|
|
2413
|
+
type: object
|
|
2414
|
+
description: Amount of the transaction
|
|
2415
|
+
example: 125.75
|
|
2416
|
+
minimum: 0
|
|
2417
|
+
date:
|
|
2418
|
+
type: object
|
|
2419
|
+
description: >-
|
|
2420
|
+
Date of the transaction (for credit cards, this will be overridden
|
|
2421
|
+
by the due day of the card if targetDueMonth is provided)
|
|
2422
|
+
example: '2026-01-30'
|
|
2423
|
+
categoryId:
|
|
2424
|
+
type: string
|
|
2425
|
+
description: ID of the associated category
|
|
2426
|
+
example: cat_123456789
|
|
2427
|
+
paymentMethod:
|
|
2428
|
+
type: string
|
|
2429
|
+
description: Method of payment
|
|
2430
|
+
enum: *ref_35
|
|
2431
|
+
example: CREDIT
|
|
2432
|
+
creditCardId:
|
|
2433
|
+
type: string
|
|
2434
|
+
description: >-
|
|
2435
|
+
ID of the associated credit card (required if paymentMethod is
|
|
2436
|
+
CREDIT)
|
|
2437
|
+
example: cc_123456789
|
|
2438
|
+
installments:
|
|
2439
|
+
type: number
|
|
2440
|
+
description: Number of installments (optional)
|
|
2441
|
+
example: 3
|
|
2442
|
+
minimum: 1
|
|
2443
|
+
targetDueMonth:
|
|
2444
|
+
type: string
|
|
2445
|
+
description: >-
|
|
2446
|
+
Target month for due date in YYYY-MM format (optional). When
|
|
2447
|
+
provided for CREDIT payments, the transaction date will be set to
|
|
2448
|
+
the credit card's due day in the specified month.
|
|
2449
|
+
example: 2026-03
|
|
2450
|
+
isRecurring:
|
|
2451
|
+
type: boolean
|
|
2452
|
+
description: Whether the transaction is recurring
|
|
2453
|
+
example: false
|
|
2454
|
+
default: false
|
|
2455
|
+
recurrence:
|
|
2456
|
+
description: Recurrence information (optional)
|
|
2457
|
+
allOf:
|
|
2458
|
+
- $ref: '#/components/schemas/RecurrenceDto'
|
|
2459
|
+
accountId:
|
|
2460
|
+
type: string
|
|
2461
|
+
description: >-
|
|
2462
|
+
ID of the associated account (required if paymentMethod is not
|
|
2463
|
+
CREDIT)
|
|
2464
|
+
example: acc_123456789
|
|
2465
|
+
isPaid:
|
|
2466
|
+
type: boolean
|
|
2467
|
+
description: Whether the transaction has been paid
|
|
2468
|
+
example: false
|
|
2469
|
+
default: false
|
|
2470
|
+
purchaseDate:
|
|
2471
|
+
type: string
|
|
2472
|
+
description: Actual purchase date (credit card only)
|
|
2473
|
+
example: '2026-02-10'
|
|
2474
|
+
CreateCreditCardDto:
|
|
2475
|
+
type: object
|
|
2476
|
+
properties:
|
|
2477
|
+
name:
|
|
2478
|
+
type: string
|
|
2479
|
+
description: Name of the credit card
|
|
2480
|
+
example: Nubank Platinum
|
|
2481
|
+
brand:
|
|
2482
|
+
type: string
|
|
2483
|
+
description: Brand of the credit card
|
|
2484
|
+
example: Visa
|
|
2485
|
+
limitAmount:
|
|
2486
|
+
type: number
|
|
2487
|
+
description: Credit limit of the card
|
|
2488
|
+
example: 5000
|
|
2489
|
+
minimum: 0
|
|
2490
|
+
closingDay:
|
|
2491
|
+
type: number
|
|
2492
|
+
description: Day of the month when the billing cycle closes
|
|
2493
|
+
example: 15
|
|
2494
|
+
minimum: 1
|
|
2495
|
+
maximum: 31
|
|
2496
|
+
dueDay:
|
|
2497
|
+
type: number
|
|
2498
|
+
description: Day of the month when the bill is due
|
|
2499
|
+
example: 22
|
|
2500
|
+
minimum: 1
|
|
2501
|
+
maximum: 31
|
|
2502
|
+
required:
|
|
2503
|
+
- name
|
|
2504
|
+
- limitAmount
|
|
2505
|
+
- closingDay
|
|
2506
|
+
- dueDay
|
|
2507
|
+
UpdateCreditCardDto:
|
|
2508
|
+
type: object
|
|
2509
|
+
properties:
|
|
2510
|
+
name:
|
|
2511
|
+
type: string
|
|
2512
|
+
description: Name of the credit card
|
|
2513
|
+
example: Nubank Platinum
|
|
2514
|
+
brand:
|
|
2515
|
+
type: string
|
|
2516
|
+
description: Brand of the credit card
|
|
2517
|
+
example: Visa
|
|
2518
|
+
limitAmount:
|
|
2519
|
+
type: number
|
|
2520
|
+
description: Credit limit of the card
|
|
2521
|
+
example: 5000
|
|
2522
|
+
minimum: 0
|
|
2523
|
+
closingDay:
|
|
2524
|
+
type: number
|
|
2525
|
+
description: Day of the month when the billing cycle closes
|
|
2526
|
+
example: 15
|
|
2527
|
+
minimum: 1
|
|
2528
|
+
maximum: 31
|
|
2529
|
+
dueDay:
|
|
2530
|
+
type: number
|
|
2531
|
+
description: Day of the month when the bill is due
|
|
2532
|
+
example: 22
|
|
2533
|
+
minimum: 1
|
|
2534
|
+
maximum: 31
|
|
2535
|
+
PayStatementDto:
|
|
2536
|
+
type: object
|
|
2537
|
+
properties:
|
|
2538
|
+
month:
|
|
2539
|
+
type: object
|
|
2540
|
+
description: Month for the statement in YYYY-MM format
|
|
2541
|
+
example: 2026-03
|
|
2542
|
+
paymentAccountId:
|
|
2543
|
+
type: object
|
|
2544
|
+
description: ID of the account to debit for the payment
|
|
2545
|
+
example: acc_123456789
|
|
2546
|
+
required:
|
|
2547
|
+
- month
|
|
2548
|
+
- paymentAccountId
|
|
2549
|
+
ReopenStatementDto:
|
|
2550
|
+
type: object
|
|
2551
|
+
properties:
|
|
2552
|
+
month:
|
|
2553
|
+
type: object
|
|
2554
|
+
description: Month for the statement in YYYY-MM format
|
|
2555
|
+
example: 2026-03
|
|
2556
|
+
required:
|
|
2557
|
+
- month
|
|
2558
|
+
CreateAnticipationDto:
|
|
2559
|
+
type: object
|
|
2560
|
+
properties:
|
|
2561
|
+
name:
|
|
2562
|
+
type: string
|
|
2563
|
+
description: Name/description of the anticipation
|
|
2564
|
+
amount:
|
|
2565
|
+
type: number
|
|
2566
|
+
description: Amount to anticipate
|
|
2567
|
+
minimum: 0.01
|
|
2568
|
+
purchaseDate:
|
|
2569
|
+
type: string
|
|
2570
|
+
description: Date the money leaves the account (YYYY-MM-DD)
|
|
2571
|
+
example: '2026-02-23'
|
|
2572
|
+
targetDueMonth:
|
|
2573
|
+
type: string
|
|
2574
|
+
description: Target statement due month (YYYY-MM)
|
|
2575
|
+
example: 2026-03
|
|
2576
|
+
accountId:
|
|
2577
|
+
type: string
|
|
2578
|
+
description: Account ID from which money will be debited
|
|
2579
|
+
categoryId:
|
|
2580
|
+
type: string
|
|
2581
|
+
description: Category ID for both transactions
|
|
2582
|
+
required:
|
|
2583
|
+
- name
|
|
2584
|
+
- amount
|
|
2585
|
+
- purchaseDate
|
|
2586
|
+
- targetDueMonth
|
|
2587
|
+
- accountId
|
|
2588
|
+
CreateAccountDto:
|
|
2589
|
+
type: object
|
|
2590
|
+
properties:
|
|
2591
|
+
name:
|
|
2592
|
+
type: string
|
|
2593
|
+
description: Name of the account
|
|
2594
|
+
example: Itaú Checking Account
|
|
2595
|
+
type:
|
|
2596
|
+
type: string
|
|
2597
|
+
description: Type of account
|
|
2598
|
+
enum: &ref_36
|
|
2599
|
+
- BANK_ACCOUNT
|
|
2600
|
+
- WALLET
|
|
2601
|
+
- SAVINGS_ACCOUNT
|
|
2602
|
+
- INVESTMENT_ACCOUNT
|
|
2603
|
+
- OTHER
|
|
2604
|
+
example: BANK_ACCOUNT
|
|
2605
|
+
initialBalance:
|
|
2606
|
+
type: number
|
|
2607
|
+
description: Initial balance for the account
|
|
2608
|
+
example: 1000
|
|
2609
|
+
required:
|
|
2610
|
+
- name
|
|
2611
|
+
- type
|
|
2612
|
+
AccountResponseDto:
|
|
2613
|
+
type: object
|
|
2614
|
+
properties:
|
|
2615
|
+
id:
|
|
2616
|
+
type: string
|
|
2617
|
+
description: Unique identifier for the account
|
|
2618
|
+
example: uuid-string
|
|
2619
|
+
name:
|
|
2620
|
+
type: string
|
|
2621
|
+
description: Name of the account
|
|
2622
|
+
example: Itaú Checking Account
|
|
2623
|
+
type:
|
|
2624
|
+
type: string
|
|
2625
|
+
description: Type of account
|
|
2626
|
+
enum:
|
|
2627
|
+
- BANK_ACCOUNT
|
|
2628
|
+
- WALLET
|
|
2629
|
+
- SAVINGS_ACCOUNT
|
|
2630
|
+
- INVESTMENT_ACCOUNT
|
|
2631
|
+
- OTHER
|
|
2632
|
+
example: BANK_ACCOUNT
|
|
2633
|
+
initialBalance:
|
|
2634
|
+
type: number
|
|
2635
|
+
description: Initial balance when the account was created
|
|
2636
|
+
example: 1000
|
|
2637
|
+
currentBalance:
|
|
2638
|
+
type: number
|
|
2639
|
+
description: Current balance of the account
|
|
2640
|
+
example: 850
|
|
2641
|
+
createdAt:
|
|
2642
|
+
format: date-time
|
|
2643
|
+
type: string
|
|
2644
|
+
description: Timestamp when the account was created
|
|
2645
|
+
example: '2026-02-11T12:00:00Z'
|
|
2646
|
+
updatedAt:
|
|
2647
|
+
format: date-time
|
|
2648
|
+
type: string
|
|
2649
|
+
description: Timestamp when the account was last updated
|
|
2650
|
+
example: '2026-02-11T15:30:00Z'
|
|
2651
|
+
required:
|
|
2652
|
+
- id
|
|
2653
|
+
- name
|
|
2654
|
+
- type
|
|
2655
|
+
- initialBalance
|
|
2656
|
+
- currentBalance
|
|
2657
|
+
- createdAt
|
|
2658
|
+
- updatedAt
|
|
2659
|
+
UpdateAccountDto:
|
|
2660
|
+
type: object
|
|
2661
|
+
properties:
|
|
2662
|
+
name:
|
|
2663
|
+
type: string
|
|
2664
|
+
description: Name of the account
|
|
2665
|
+
example: Itaú Checking Account
|
|
2666
|
+
type:
|
|
2667
|
+
type: string
|
|
2668
|
+
description: Type of account
|
|
2669
|
+
enum: *ref_36
|
|
2670
|
+
example: BANK_ACCOUNT
|
|
2671
|
+
initialBalance:
|
|
2672
|
+
type: number
|
|
2673
|
+
description: Initial balance for the account
|
|
2674
|
+
example: 1000
|
|
2675
|
+
SettingsResponseDto:
|
|
2676
|
+
type: object
|
|
2677
|
+
properties:
|
|
2678
|
+
language:
|
|
2679
|
+
type: string
|
|
2680
|
+
description: Preferred language
|
|
2681
|
+
example: pt-BR
|
|
2682
|
+
enum:
|
|
2683
|
+
- pt-BR
|
|
2684
|
+
- en-US
|
|
2685
|
+
currency:
|
|
2686
|
+
type: string
|
|
2687
|
+
description: Default currency
|
|
2688
|
+
example: BRL
|
|
2689
|
+
enum:
|
|
2690
|
+
- BRL
|
|
2691
|
+
- USD
|
|
2692
|
+
- EUR
|
|
2693
|
+
- GBP
|
|
2694
|
+
- JPY
|
|
2695
|
+
- CAD
|
|
2696
|
+
- AUD
|
|
2697
|
+
- CHF
|
|
2698
|
+
createdAt:
|
|
2699
|
+
type: string
|
|
2700
|
+
description: Settings creation date
|
|
2701
|
+
example: '2024-01-15T10:30:00.000Z'
|
|
2702
|
+
updatedAt:
|
|
2703
|
+
type: string
|
|
2704
|
+
description: Settings last update date
|
|
2705
|
+
example: '2024-01-15T10:30:00.000Z'
|
|
2706
|
+
required:
|
|
2707
|
+
- language
|
|
2708
|
+
- currency
|
|
2709
|
+
- createdAt
|
|
2710
|
+
- updatedAt
|
|
2711
|
+
UpdateSettingsDto:
|
|
2712
|
+
type: object
|
|
2713
|
+
properties:
|
|
2714
|
+
userName:
|
|
2715
|
+
type: string
|
|
2716
|
+
description: User name
|
|
2717
|
+
example: John Doe
|
|
2718
|
+
language:
|
|
2719
|
+
type: string
|
|
2720
|
+
description: Preferred language
|
|
2721
|
+
example: pt-BR
|
|
2722
|
+
enum:
|
|
2723
|
+
- pt-BR
|
|
2724
|
+
- en-US
|
|
2725
|
+
currency:
|
|
2726
|
+
type: string
|
|
2727
|
+
description: Default currency
|
|
2728
|
+
example: BRL
|
|
2729
|
+
enum:
|
|
2730
|
+
- BRL
|
|
2731
|
+
- USD
|
|
2732
|
+
- EUR
|
|
2733
|
+
- GBP
|
|
2734
|
+
- JPY
|
|
2735
|
+
- CAD
|
|
2736
|
+
- AUD
|
|
2737
|
+
- CHF
|
|
2738
|
+
ImportDataDto:
|
|
2739
|
+
type: object
|
|
2740
|
+
properties: {}
|
|
2741
|
+
CreateTransferDto:
|
|
2742
|
+
type: object
|
|
2743
|
+
properties:
|
|
2744
|
+
sourceAccountId:
|
|
2745
|
+
type: string
|
|
2746
|
+
description: ID of the source account
|
|
2747
|
+
destinationAccountId:
|
|
2748
|
+
type: string
|
|
2749
|
+
description: ID of the destination account
|
|
2750
|
+
amount:
|
|
2751
|
+
type: number
|
|
2752
|
+
description: Amount to transfer
|
|
2753
|
+
minimum: 0.01
|
|
2754
|
+
date:
|
|
2755
|
+
type: string
|
|
2756
|
+
description: Date of the transfer (YYYY-MM-DD)
|
|
2757
|
+
example: '2026-02-17'
|
|
2758
|
+
required:
|
|
2759
|
+
- sourceAccountId
|
|
2760
|
+
- destinationAccountId
|
|
2761
|
+
- amount
|
|
2762
|
+
- date
|
|
2763
|
+
TransferResponseDto:
|
|
2764
|
+
type: object
|
|
2765
|
+
properties:
|
|
2766
|
+
id:
|
|
2767
|
+
type: string
|
|
2768
|
+
sourceAccountId:
|
|
2769
|
+
type: string
|
|
2770
|
+
destinationAccountId:
|
|
2771
|
+
type: string
|
|
2772
|
+
amount:
|
|
2773
|
+
type: number
|
|
2774
|
+
date:
|
|
2775
|
+
type: string
|
|
2776
|
+
description: Date of the transfer (YYYY-MM-DD)
|
|
2777
|
+
createdAt:
|
|
2778
|
+
format: date-time
|
|
2779
|
+
type: string
|
|
2780
|
+
updatedAt:
|
|
2781
|
+
format: date-time
|
|
2782
|
+
type: string
|
|
2783
|
+
required:
|
|
2784
|
+
- id
|
|
2785
|
+
- sourceAccountId
|
|
2786
|
+
- destinationAccountId
|
|
2787
|
+
- amount
|
|
2788
|
+
- date
|
|
2789
|
+
- createdAt
|
|
2790
|
+
- updatedAt
|
|
2791
|
+
UpdateTransferDto:
|
|
2792
|
+
type: object
|
|
2793
|
+
properties:
|
|
2794
|
+
sourceAccountId:
|
|
2795
|
+
type: string
|
|
2796
|
+
description: ID of the source account
|
|
2797
|
+
destinationAccountId:
|
|
2798
|
+
type: string
|
|
2799
|
+
description: ID of the destination account
|
|
2800
|
+
amount:
|
|
2801
|
+
type: number
|
|
2802
|
+
description: Amount to transfer
|
|
2803
|
+
minimum: 0.01
|
|
2804
|
+
date:
|
|
2805
|
+
type: string
|
|
2806
|
+
description: Date of the transfer (YYYY-MM-DD)
|
|
2807
|
+
example: '2026-02-17'
|
|
2808
|
+
CreateApiKeyDto:
|
|
2809
|
+
type: object
|
|
2810
|
+
properties:
|
|
2811
|
+
name:
|
|
2812
|
+
type: string
|
|
2813
|
+
example: My MCP Server
|
|
2814
|
+
required:
|
|
2815
|
+
- name
|
|
2816
|
+
ApiKeyResponseDto:
|
|
2817
|
+
type: object
|
|
2818
|
+
properties:
|
|
2819
|
+
id:
|
|
2820
|
+
type: string
|
|
2821
|
+
name:
|
|
2822
|
+
type: string
|
|
2823
|
+
keyPrefix:
|
|
2824
|
+
type: string
|
|
2825
|
+
secret:
|
|
2826
|
+
type: string
|
|
2827
|
+
isActive:
|
|
2828
|
+
type: boolean
|
|
2829
|
+
lastUsedAt:
|
|
2830
|
+
format: date-time
|
|
2831
|
+
type: string
|
|
2832
|
+
createdAt:
|
|
2833
|
+
format: date-time
|
|
2834
|
+
type: string
|
|
2835
|
+
required:
|
|
2836
|
+
- id
|
|
2837
|
+
- name
|
|
2838
|
+
- keyPrefix
|
|
2839
|
+
- isActive
|
|
2840
|
+
- createdAt
|
|
2841
|
+
AdminBroadcastEmailDto:
|
|
2842
|
+
type: object
|
|
2843
|
+
properties:
|
|
2844
|
+
body:
|
|
2845
|
+
type: string
|
|
2846
|
+
description: The HTML body of the email. Can include placeholders like {{name}}
|
|
2847
|
+
example: <h1>Olá {{name}}</h1><p>Esta é uma mensagem importante.</p>
|
|
2848
|
+
subject:
|
|
2849
|
+
type: string
|
|
2850
|
+
description: The subject line of the email
|
|
2851
|
+
example: Comunicado Importante
|
|
2852
|
+
sendToAll:
|
|
2853
|
+
type: boolean
|
|
2854
|
+
description: Whether to send to all active users
|
|
2855
|
+
default: false
|
|
2856
|
+
userIds:
|
|
2857
|
+
description: Specific user IDs to send to (ignored if sendToAll is true)
|
|
2858
|
+
type: array
|
|
2859
|
+
items:
|
|
2860
|
+
type: string
|
|
2861
|
+
required:
|
|
2862
|
+
- body
|
|
2863
|
+
- subject
|
|
2864
|
+
- sendToAll
|
|
2865
|
+
AdminPreviewEmailDto:
|
|
2866
|
+
type: object
|
|
2867
|
+
properties:
|
|
2868
|
+
body:
|
|
2869
|
+
type: string
|
|
2870
|
+
description: >-
|
|
2871
|
+
The HTML body of the email. Supports shortcodes like
|
|
2872
|
+
{{button:Label|url}} and variables like {{name}}
|
|
2873
|
+
example: >-
|
|
2874
|
+
<h2>Olá {{name}}</h2><p>Novidades!</p>{{button:Ver
|
|
2875
|
+
mais|https://quantix.app}}
|
|
2876
|
+
context:
|
|
2877
|
+
type: object
|
|
2878
|
+
description: Optional context to override default preview variable values
|
|
2879
|
+
example:
|
|
2880
|
+
name: João Silva
|
|
2881
|
+
required:
|
|
2882
|
+
- body
|
|
2883
|
+
AdminUpdateUserDto:
|
|
2884
|
+
type: object
|
|
2885
|
+
properties:
|
|
2886
|
+
name:
|
|
2887
|
+
type: string
|
|
2888
|
+
example: New Name
|
|
2889
|
+
email:
|
|
2890
|
+
type: string
|
|
2891
|
+
example: new@email.com
|
|
2892
|
+
role:
|
|
2893
|
+
type: string
|
|
2894
|
+
enum:
|
|
2895
|
+
- USER
|
|
2896
|
+
- ADMIN
|
|
2897
|
+
example: ADMIN
|
|
2898
|
+
CreateAIModelDto:
|
|
2899
|
+
type: object
|
|
2900
|
+
properties:
|
|
2901
|
+
name:
|
|
2902
|
+
type: string
|
|
2903
|
+
example: anthropic/claude-3.5-sonnet
|
|
2904
|
+
inputPricePerMillion:
|
|
2905
|
+
type: number
|
|
2906
|
+
example: 3
|
|
2907
|
+
outputPricePerMillion:
|
|
2908
|
+
type: number
|
|
2909
|
+
example: 15
|
|
2910
|
+
provider:
|
|
2911
|
+
type: string
|
|
2912
|
+
example: Anthropic
|
|
2913
|
+
currency:
|
|
2914
|
+
type: string
|
|
2915
|
+
example: USD
|
|
2916
|
+
default: USD
|
|
2917
|
+
required:
|
|
2918
|
+
- name
|
|
2919
|
+
- inputPricePerMillion
|
|
2920
|
+
- outputPricePerMillion
|
|
2921
|
+
- provider
|
|
2922
|
+
- currency
|
|
2923
|
+
UpdateAIModelDto:
|
|
2924
|
+
type: object
|
|
2925
|
+
properties:
|
|
2926
|
+
name:
|
|
2927
|
+
type: string
|
|
2928
|
+
example: anthropic/claude-3.5-sonnet
|
|
2929
|
+
inputPricePerMillion:
|
|
2930
|
+
type: number
|
|
2931
|
+
example: 3
|
|
2932
|
+
outputPricePerMillion:
|
|
2933
|
+
type: number
|
|
2934
|
+
example: 15
|
|
2935
|
+
provider:
|
|
2936
|
+
type: string
|
|
2937
|
+
example: Anthropic
|
|
2938
|
+
currency:
|
|
2939
|
+
type: string
|
|
2940
|
+
example: USD
|
|
2941
|
+
default: USD
|
|
2942
|
+
UpdateSystemSettingDto:
|
|
2943
|
+
type: object
|
|
2944
|
+
properties:
|
|
2945
|
+
value:
|
|
2946
|
+
type: string
|
|
2947
|
+
description: Value for the setting
|
|
2948
|
+
example: 'true'
|
|
2949
|
+
type:
|
|
2950
|
+
type: string
|
|
2951
|
+
description: Type of the setting value
|
|
2952
|
+
enum:
|
|
2953
|
+
- boolean
|
|
2954
|
+
- numeric
|
|
2955
|
+
- string
|
|
2956
|
+
example: boolean
|
|
2957
|
+
required:
|
|
2958
|
+
- value
|
|
2959
|
+
CreateInviteDto:
|
|
2960
|
+
type: object
|
|
2961
|
+
properties:
|
|
2962
|
+
email:
|
|
2963
|
+
type: string
|
|
2964
|
+
description: Email to invite
|
|
2965
|
+
example: guest@example.com
|
|
2966
|
+
required:
|
|
2967
|
+
- email
|
|
2968
|
+
security:
|
|
2969
|
+
- bearer: []
|