-
Notifications
You must be signed in to change notification settings - Fork 1
/
retain-openapi.json
440 lines (440 loc) · 14.3 KB
/
retain-openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
{
"openapi": "3.0.0",
"info": {
"version": "0.0.2",
"title": "TrueAccord Retain Inbound API"
},
"tags": [
{
"name": "Account Placements",
"x-displayName": "Account Placements",
"description": "Add and retract accounts."
},
{
"name": "Payments",
"x-displayName": "Payments",
"description": "Endpoints related to account payments"
}
],
"paths": {
"/placement": {
"post": {
"summary": "Add accounts",
"description": "Account placements and updates. When an account is placed, we will immediately start communications with the account, and will only stop when the account is retracted.",
"tags": [
"Account Placements"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PlacementInformation"
},
"minItems": 1
}
}
}
},
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"type": "string",
"example": "ok"
}
}
}
}
}
}
},
"/retraction": {
"post": {
"summary": "Retract accounts",
"description": "Account retractions - the platform will stop sending communications and close them for all accounts specified through this endpoint.",
"tags": [
"Account Placements"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RetractionInformation"
},
"minItems": 1
}
}
}
},
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"type": "string",
"example": "ok"
}
}
}
}
}
}
},
"/payments": {
"post": {
"summary": "Add payments to account",
"description": "Account payments - our platform will take this information as information only to judge the success of our platforms. This will lead to better optimization of our communication strategy. This DOES NOT affect the account in any ways - you will still need to send us balance updates separately.",
"tags": [
"Payments"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PaymentsInformation"
},
"minItems": 1
}
}
}
},
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"type": "string",
"example": "ok"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"PlacementInformation": {
"type": "object",
"properties": {
"accountNumber": {
"type": "string",
"description": "Client account number"
},
"accountNamespace": {
"type": "string",
"description": "Differentiates accounts across geographic regions or business units"
},
"accountRelationship": {
"type": "string",
"enum": [
"SIGNER",
"COSIGNER"
],
"description": "The relationship of the person in this demographic record to the account"
},
"accountOpenDate": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "The date the account was originally opened (mm/dd/yy)"
},
"brandID": {
"type": "integer",
"format": "int32",
"description": "An ID representing the brand they want us to represent. This allows us to use different first-party messaging and themes for different brands. We will provide you a set to use."
},
"productType": {
"type": "string",
"enum": [
"AUTO",
"HEL",
"HELOC",
"CARD",
"UNSECURED"
],
"description": "Product type of the account"
},
"dateAssigned": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "The date the account was placed with TrueAccord (mm/dd/yy)"
},
"expectedRetractionDate": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "The latest date the account will be retracted from TrueAccord. (mm/dd/yy)"
},
"transactionDate": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "The date the record was generated (mm/dd/yy)"
},
"firstName": {
"type": "string",
"description": "The first name for this demographic entry"
},
"lastName": {
"type": "string",
"description": "The last name for this demographic entry"
},
"middleName": {
"type": "string",
"description": "The middle name for this demographic entry"
},
"prefix": {
"type": "string",
"description": "The prefix for this demographic entry"
},
"suffix": {
"type": "string",
"description": "The suffix for this demographic entry"
},
"email1": {
"type": "string",
"format": "email",
"description": "First email address for this demographic entry"
},
"email2": {
"type": "string",
"format": "email",
"description": "Second email address for this demographic entry"
},
"email3": {
"type": "string",
"format": "email",
"description": "Third email address for this demographic entry"
},
"telephone1": {
"type": "string",
"description": "First telephone number for this demographic entry (in a 10-digit format e.g. 8666112731)",
"pattern": "^\\d{10}$"
},
"telephone2": {
"type": "string",
"description": "Second telephone number for this demographic entry (in a 10-digit format e.g. 8666112731)",
"pattern": "^\\d{10}$"
},
"telephone3": {
"type": "string",
"description": "Third telephone number for this demographic entry (in a 10-digit format e.g. 8666112731)",
"pattern": "^\\d{10}$"
},
"addressLine1": {
"type": "string",
"description": "The first line of the address for this demographic entry. Include building number and street name. Separate from ‘Street Address 2,’ ‘City,’ ‘State,’and ‘ZIP Code.’"
},
"addressLine2": {
"type": "string",
"description": "The second line of the address for this demographic entry. Include building number and street name. Separate from ‘Street Address 1,’ ‘City,’ ‘State,’and ‘ZIP Code.’"
},
"addressLine3": {
"type": "string",
"description": "The third line of the address for this demographic entry."
},
"addressType": {
"type": "string",
"enum": [
"HOME",
"BUSINESS"
],
"description": "The type of address transmitted in this record (ex. HOME, BUSINESS)"
},
"city": {
"type": "string",
"description": "The city for this demographic entry."
},
"state": {
"type": "string",
"description": "The state code for this demographic entry as two-letter abbreviations (e.g. CA, NY, etc.)."
},
"zipcode": {
"type": "string",
"description": "The ZIP code or Postal Code for this demographic entry. Write the 5-digit ZIP code.",
"pattern": "^\\d{5}$"
},
"totalAmountDue": {
"type": "number",
"format": "double",
"description": "The total amount that the customer owes on the account (past due + currently due) preferred format 00.00."
},
"currentAmountDue": {
"type": "number",
"format": "double",
"description": "Amount due for this billing cycle. Preferred format 00.00."
},
"currentBalance": {
"type": "number",
"format": "double",
"description": "The current balance on the account. Preferred format 00.00"
},
"totalDelinquentAmount": {
"type": "number",
"format": "double",
"description": "The current delinquent amount on the account. Preferred format 00.00"
},
"delinquencyDate": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "Date that account became delinquent (mm/dd/yy)"
},
"cyclesDelinquent": {
"type": "integer",
"format": "int32",
"description": "The numbers of cycles that the account is delinquent (number > 0)."
},
"lastPaymentAmount": {
"type": "number",
"format": "double",
"description": "The amount of the last customer payment. Preferred format 00.00"
},
"lastPaymentDate": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "The date of the last customer payment (mm/dd/yy)"
},
"monthToDateFeesPaid": {
"type": "number",
"format": "double",
"description": "Month to Date Fees Paid. Preferred format 00.00"
},
"monthToDateInterestPaid": {
"type": "number",
"format": "double",
"description": "Month to Date Interest Paid. Preferred format 00.00"
},
"monthToDatePrincipalPaid": {
"type": "number",
"format": "double",
"description": "Month to Date Principal Paid. Preferred format 00.00"
},
"placementNumber": {
"type": "integer",
"format": "int32",
"description": "Number of consecutive cycles that the account has been placed with TrueAccord."
}
},
"required": [
"accountNumber",
"accountNamespace",
"accountRelationship",
"accountOpenDate",
"brandID",
"productType",
"dateAssigned",
"expectedRetractionDate",
"transactionDate",
"firstName",
"lastName",
"email1",
"telephone1",
"addressLine1",
"addressType",
"city",
"state",
"zipcode",
"totalAmountDue",
"currentAmountDue",
"currentBalance",
"totalDelinquentAmount",
"delinquencyDate",
"cyclesDelinquent",
"placementNumber"
]
},
"RetractionInformation": {
"type": "object",
"properties": {
"accountNumber": {
"type": "string",
"description": "Client account number"
},
"accountNamespace": {
"type": "string",
"description": "Differentiates accounts across geographic regions or business units"
},
"recallReason": {
"type": "string",
"enum": [
"PAID",
"BANKRUPT",
"DISPUTED",
"CLOSED"
],
"description": "Reason that the placement is being recalled"
},
"recallDate": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "The date that the account is scheduled to be recalled from TrueAccord (mm/dd/yy)"
}
},
"required": [
"accountNumber",
"accountNamespace",
"recallReason",
"recallDate"
]
},
"PaymentsInformation": {
"type": "object",
"properties": {
"accountNamespace": {
"type": "string",
"description": "Client account name"
},
"accountNumber": {
"type": "string",
"description": "Client account number"
},
"paymentDescription": {
"type": "string",
"description": "Free-form description of payment"
},
"paymentAmount": {
"type": "number",
"format": "double",
"description": "Amount of payment made. Preferred format 00.00"
},
"transactionDate": {
"type": "string",
"pattern": "^\\d{2}-\\d{2}-\\d{2}$",
"description": "Date the payment occurred (mm/dd/yy)"
},
"categoryCode": {
"type": "string",
"enum": [
"DEBIT",
"PAYMENT",
"OTHER"
],
"description": "Type of transaction (Debit, Payment, Other Credit)"
},
"referenceNumber": {
"type": "string"
}
},
"required": [
"accountName",
"accountNumber",
"paymentAmount",
"transactionDate",
"categoryCode"
]
}
}
}
}