-
Notifications
You must be signed in to change notification settings - Fork 150
/
openapi.yml
968 lines (964 loc) · 38 KB
/
openapi.yml
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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
openapi: 3.0.2
info:
description: Moov ACH ([Automated Clearing House](https://en.wikipedia.org/wiki/Automated_Clearing_House)) implements an HTTP API for creating, parsing and validating ACH files. ACH is the primary method of electronic money movement throughout the United States.
version: v1
title: ACH API
contact:
url: https://github.com/moov-io/ach
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: http://localhost:8080
description: Local development
tags:
- name: 'ACH Files'
description: |
File contains the structures of a ACH File. It contains one and only one File Header and File Control with at least one Batch.
Batch objects within Files hold the Batch Header and Batch Control and all Entry Records and Addenda records for the Batch.
paths:
/ping:
get:
tags:
- Files
summary: Ping the ACH service to check if running
operationId: ping
responses:
'200':
description: Service is running properly
/files:
get:
tags: ['ACH Files']
summary: Gets a list of Files
operationId: getFiles
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
responses:
'200':
description: A list of File objects
headers:
X-Total-Count:
description: The total number of Originators
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Files'
/files/create:
post:
tags: ['ACH Files']
summary: Create a new File object
operationId: createFile
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: X-Idempotency-Key
in: header
description: Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests.
example: a4f88150
required: false
schema:
type: string
requestBody:
description: Content of the ACH file (in json or raw text)
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateFile'
text/plain:
schema:
description: A plaintext ACH file
type: string
example: 101 222380104 1210428821805100000A094101Citadel Bank Name
responses:
'201':
description: A JSON object containing a new File
headers:
Location:
description: The location of the new resource
schema:
type: string
format: uri
content:
application/json:
schema:
$ref: '#/components/schemas/File'
'400':
description: "Invalid File Header Object"
content:
application/json:
schema:
$ref: 'https://raw.githubusercontent.com/moov-io/api/master/openapi-common.yaml#/components/schemas/Error'
/files/{fileID}:
get:
tags: ['ACH Files']
summary: Retrieves the details of an existing File. You need only supply the unique File identifier that was returned upon creation.
operationId: getFileByID
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
responses:
'200':
description: A File object for the supplied ID
content:
application/json:
schema:
$ref: '#/components/schemas/File'
'404':
description: A resource with the specified ID was not found
post:
tags: ['ACH Files']
summary: Updates the specified File Header by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
operationId: updateFile
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: X-Idempotency-Key
in: header
description: Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests.
example: a4f88150
required: false
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateFile'
responses:
'201':
description: A JSON object containing a new File
headers:
Location:
description: The location of the new resource
schema:
type: string
format: uri
content:
application/json:
schema:
$ref: '#/components/schemas/File'
'400':
description: "Invalid File Header Object"
content:
application/json:
schema:
$ref: 'https://raw.githubusercontent.com/moov-io/api/master/openapi-common.yaml#/components/schemas/Error'
delete:
tags: ['ACH Files']
summary: Permanently deletes a File and associated Batches. It cannot be undone.
operationId: deleteACHFile
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
responses:
'200':
description: Permanently deleted File.
'404':
description: A File with the specified ID was not found.
/files/{fileID}/contents:
get:
tags: ['ACH Files']
summary: Assembles the existing file (batches and controls) records, computes sequence numbers and totals. Returns plaintext file.
operationId: getFileContents
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
responses:
'200':
description: File built successfully without errors.
content:
text/plain:
schema:
$ref: '#/components/schemas/RawFile'
/files/{fileID}/validate:
get:
tags: ['ACH Files']
summary: Validates the existing file. You need only supply the unique File identifier that was returned upon creation.
operationId: validateFile
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
responses:
'200':
description: File validated successfully without errors.
content:
application/json:
schema:
$ref: '#/components/schemas/File'
'400':
description: Validation failed. Check response for errors
/files/{fileID}/segment:
post:
tags: ['ACH Files']
summary: Create a new file object
operationId: segmentFile
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: X-Idempotency-Key
in: header
description: Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests.
example: a4f88150
required: false
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
requestBody:
description: Content of the ACH file (in json or raw text)
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateFile'
text/plain:
schema:
description: A plaintext ACH file
type: string
example: 101 222380104 1210428821805100000A094101Citadel Bank Name
responses:
'201':
description: A JSON object containing the credit File ID and debit File ID
headers:
Location:
description: The location of the new resource
schema:
type: string
format: uri
content:
application/json:
schema:
$ref: '#/components/schemas/File'
/files/{fileID}/flatten:
post:
tags: ['ACH Files']
summary: Create a new file object
operationId: flattenFile
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: X-Idempotency-Key
in: header
description: Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests.
example: a4f88150
required: false
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
requestBody:
description: Content of the ACH file (in json or raw text)
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateFile'
text/plain:
schema:
description: A plaintext ACH file
type: string
example: 101 222380104 1210428821805100000A094101Citadel Bank Name
responses:
'201':
description: A JSOn objeect containing the File ID associated with a Flattened ACH file.
headers:
Location:
description: The location of the new resource
schema:
type: string
format: uri
content:
application/json:
schema:
$ref: '#/components/schemas/File'
/files/{fileID}/batches:
get:
tags: ['ACH Files']
summary: Get the batches on a File.
operationId: getFileBatches
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
responses:
'200':
description: A list of Batch objects
headers:
X-Total-Count:
description: The total number of Batches on the File.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Batches'
post:
tags: ['ACH Files']
summary: Add Batch to File
operationId: addBatchToFile
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: X-Idempotency-Key
in: header
description: Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests.
example: a4f88150
required: false
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Batch'
responses:
'200':
description: Batch added to File
/files/{fileID}/batches/{batchID}:
get:
tags: ['ACH Files']
summary: Get a specific Batch on a FIle
operationId: getFileBatch
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
- name: batchID
in: path
description: Batch ID
required: true
schema:
type: string
example: 45758063
responses:
'200':
description: Batch object
content:
application/json:
schema:
$ref: '#/components/schemas/Batch'
'404':
description: Batch or File not found
delete:
tags: ['ACH Files']
summary: Delete a Batch from a File
operationId: deleteFileBatch
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: X-Request-ID
in: header
description: Optional Request ID allows application developer to trace requests through the systems logs
example: rs4f9915
schema:
type: string
- name: fileID
in: path
description: File ID
required: true
schema:
type: string
example: 3f2d23ee214
- name: batchID
in: path
description: Batch ID
required: true
schema:
type: string
example: 45758063
responses:
'200':
description: Batch deleted
'404':
description: Batch or File not found
components:
schemas:
CreateFile:
properties:
ID:
type: string
description: File ID
example: 3f2d23ee214
fileHeader:
$ref: '#/components/schemas/FileHeader'
batches:
type: array
items:
$ref: '#/components/schemas/Batch'
IATBatches:
type: array
items:
$ref: '#/components/schemas/IATBatch'
fileControl:
$ref: '#/components/schemas/FileControl'
required:
- fileHeader
File:
properties:
ID:
type: string
description: File ID
example: 3f2d23ee214
fileHeader:
$ref: '#/components/schemas/FileHeader'
batches:
type: array
items:
$ref: '#/components/schemas/Batch'
IATBatches:
type: array
items:
$ref: '#/components/schemas/IATBatch'
fileControl:
$ref: '#/components/schemas/FileControl'
# NotificationOfChange: # TODO(adam)
# ReturnEntries: # TODO(adam)
FileHeader:
properties:
immediateOrigin:
type: string
description: contains the Routing Number of the ACH Operator or sending point that is sending the file.
minLength: 9
maxLength: 10
example: "99991234"
immediateOriginName:
type: string
description: The name of the ACH operator or sending point that is sending the file.
maxLength: 23
example: My Bank Name
immediateDestination:
type: string
maxLength: 10
minLength: 9
example: "69100013"
description: contains the Routing Number of the ACH Operator or receiving point to which the file is being sent
immediateDestinationName:
type: string
description: The name of the ACH or receiving point for which that file is destined.
maxLength: 23
example: Federal Reserve Bank
fileCreationTime:
description: 'The File Creation Date is the date when the file was prepared by an ODFI. (Format HHmm - H=Hour, m=Minute)'
type: string
example: 1504
fileCreationDate:
description: 'The File Creation Time is the time when the file was prepared by an ODFI. (Format YYMMDD - Y=Year, M=Month, D=Day)'
type: string
example: 190102
fileIDModifier:
type: string
description: Incremented value for each file for RDFI's.
example: 0
required:
- immediateOrigin
- immediateOriginName
- immediateDestination
- immediateDestinationName
FileControl:
properties:
ID:
description: Moov API File ID
type: string
example: d1e26288
batchCount:
description: Count of Batches in the File
type: integer
example: 1
blockCount:
description: |
BlockCount total number of records in the file (include all headers and trailer) divided by 10 (This number must be evenly divisible by 10. If not, additional records consisting of all 9’s are added to the file after the initial ‘9’ record to fill out the block 10.)
type: integer
example: 1
entryAddendaCount:
description: Total detail and addenda records in the file
type: integer
example: 0
entryHash:
description: EntryHash calculated in the same manner as the batch has total but includes total from entire file
type: integer
example: 0
totalDebit:
description: Accumulated Batch debit totals within the file.
type: integer
example: 100
totalCredit:
description: Accumulated Batch credit totals within the file.
type: integer
example: 20
RawFile:
type: string
description: Plaintext ACH file
example: "101 222380104 1210428821805100000A094101Citadel Bank Name"
Files:
type: array
items:
$ref: '#/components/schemas/File'
Batch:
properties:
batchHeader:
$ref: '#/components/schemas/BatchHeader'
entryDetails:
type: array
items:
$ref: '#/components/schemas/EntryDetail'
batchControl:
$ref: '#/components/schemas/BatchControl'
BatchHeader:
required:
- serviceClassCode
- companyName
- companyIdentification
- ODFIIdentification
properties:
ID:
type: string
description: Batch Header ID
example: 913b5742
serviceClassCode:
type: integer
description: Service Class Code - ACH Credits Only 220 and ACH Debits Only 225
example: 220
companyName:
type: string
description: Company originating the entries in the batch
example: Acme Corp
companyDiscretionaryData:
type: string
description: The 9 digit FEIN number (proceeded by a predetermined alpha or numeric character) of the entity in the company name field
example: 123456789
standardEntryClassCode:
type: string
description: Identifies the payment type (product) found within an ACH batch-using a 3-character code.
example: PPD
companyEntryDescription:
type: string
description: |
A description of the entries contained in the batch.
The Originator establishes the value of this field to provide a description of the purpose of the entry to be displayed back to the receive For example, "GAS BILL," "REG. SALARY," "INS. PREM,", "SOC. SEC.," "DTC," "TRADE PAY," "PURCHASE," etc.
This field must contain the word "REVERSAL" (left justified) when the batch contains reversing entries.
This field must contain the word "RECLAIM" (left justified) when the batch contains reclamation entries.
This field must contain the word "NONSETTLED" (left justified) when the batch contains entries which could not settle.
example: PURCHASE
companyDescriptiveDate:
type: string
description: |
The Originator establishes this field as the date it would like to see displayed to the receiver for descriptive purposes. This field is never used to control timing of any computer or manual operation. It is solely for descriptive purposes. The RDFI should not assume any specific format.
effectiveEntryDate:
description: 'Date on which the entries are to settle. Format YYMMDD (Y=Year, M=Month, D=Day)'
type: string
example: 190102
originatorStatusCode:
type: integer
description: |
ODFI initiating the Entry.
0 ADV File prepared by an ACH Operator.
1 This code identifies the Originator as a depository financial institution.
2 This code identifies the Originator as a Federal Government entity or agency.
ODFIIdentification:
description: First 8 digits of the originating DFI transit routing number
type: string
example: 12345678
batchNumber:
type: string
description: |
BatchNumber is assigned in ascending sequence to each batch by the ODFI or its Sending Point in a given file of entries. Since the batch number in the Batch Header Record and the Batch Control Record is the same, the ascending sequence number should be assigned by batch and not by record.
BatchControl:
properties:
ID:
description: Batch ID
type: string
example: 62d8f0cd
serviceClassCode:
description: Same as ServiceClassCode in BatchHeaderRecord
type: integer
example: 220
entryAddendaCount:
description: EntryAddendaCount is a tally of each Entry Detail Record and each Addenda Record processed, within either the batch or file as appropriate.
type: integer
example: 1
entryHash:
description: |
Validate the Receiving DFI Identification in each Entry Detail Record is hashed to provide a check against inadvertent alteration of data contents due to hardware failure or program error.
In this context the Entry Hash is the sum of the corresponding fields in the Entry Detail Records on the file.
type: integer
example: 0
totalDebit:
description: Contains accumulated Entry debit totals within the batch.
type: integer
example: 100
totalCredit:
description: Contains accumulated Entry credit totals within the batch.
type: integer
example: 100
companyIdentification:
description: |
Alphanumeric code used to identify an Originator The Company Identification Field must be included on all prenotification records and on each entry initiated pursuant to such prenotification. The Company ID may begin with the ANSI one-digit Identification Code Designator (ICD), followed by the identification number The ANSI Identification Numbers and related Identification Code
IRS Employer Identification Number (EIN) "1"
Data Universal Numbering Systems (DUNS) "3"
User Assigned Number "9"
type: string
example: 1
messageAuthentication:
description: MAC is an eight character code derived from a special key used in conjunction with the DES algorithm. The purpose of the MAC is to validate the authenticity of ACH entries. The DES algorithm and key message standards must be in accordance with standards adopted by the American National Standards Institute. The remaining eleven characters of this field are blank.
type: string
example: 3fe106cf
ODFIIdentification:
description: The routing number is used to identify the DFI originating entries within a given branch.
type: string
example: 123456789
batchNumber:
type: string
description: BatchNumber is assigned in ascending sequence to each batch by the ODFI or its Sending Point in a given file of entries. Since the batch number in the Batch Header Record and the Batch Control Record is the same, the ascending sequence number should be assigned by batch and not by record.
Batches:
type: array
items:
$ref: '#/components/schemas/Batch'
EntryDetail:
required:
- id
- transactionCode
- RDFIIdentification
- checkDigit
- DFIAccountNumber
- amount
- individualName
properties:
ID:
type: string
description: Entry Detail ID
example: 842a2261
transactionCode:
type: integer
description: |
transactionCode if the receivers account is:
Credit (deposit) to checking account 22
Prenote for credit to checking account 23
Debit (withdrawal) to checking account 27
Prenote for debit to checking account 28
Credit to savings account 32
Prenote for credit to savings account 33
Debit to savings account 37
Prenote for debit to savings account 38
example: 22
RDFIIdentification:
type: string
description: RDFI's routing number without the last digit.
example: 12345678
checkDigit:
type: string
description: Last digit in RDFI routing number.
example: "0"
DFIAccountNumber:
type: string
description: |
The receiver's bank account number you are crediting/debiting. It important to note that this is an alphanumeric field, so its space padded, no zero padded
example: 181141847
amount:
type: integer
description: Number of cents you are debiting/crediting this account
example: 1235
identificationNumber:
type: string
description: Internal identification (alphanumeric) that you use to uniquely identify this Entry Detail Record
example: 8aa786
individualName:
type: string
description: The name of the receiver, usually the name on the bank account
example: Taylor Swift
discretionaryData:
type: string
description: |
DiscretionaryData allows ODFIs to include codes, of significance only to them, to enable specialized handling of the entry. There will be no standardized interpretation for the value of this field. It can either be a single two-character code, or two distinct one-character codes, according to the needs of the ODFI and/or Originator involved. This field must be returned intact for any returned entry.
WEB uses the Discretionary Data Field as the Payment Type Code
example: AB
addendaRecordIndicator:
type: integer
description: |
AddendaRecordIndicator indicates the existence of an Addenda Record. A value of "1" indicates that one ore more addenda records follow, and "0" means no such record is present.
example: 1
traceNumber:
type: integer
description: |
TraceNumber assigned by the ODFI in ascending sequence, is included in each Entry Detail Record, Corporate Entry Detail Record, and addenda Record.
Trace Numbers uniquely identify each entry within a batch in an ACH input file. In association with the Batch Number, transmission (File Creation) Date, and File ID Modifier, the Trace Number uniquely identifies an entry within a given file.
For addenda Records, the Trace Number will be identical to the Trace Number in the associated Entry Detail Record, since the Trace Number is associated with an entry or item rather than a physical record.
addendum:
type: array
description: List of Addenda for the Entry Detail
items:
$ref: '#/components/schemas/Addendum'
category:
type: string
description: Category defines if the entry is a Forward, Return, or NOC
example: Forward
Addendum:
required:
- typeCode
properties:
typeCode:
type: string
description: TODO
example: '02'
IATBatch:
properties:
ID:
description: Client defined string used as a reference to this record.
type: string
example: a747e53f
IATBatchHeader:
$ref: '#/components/schemas/IATBatchHeader'
IATBatchHeader:
properties:
ID:
description: ID is a client defined string used as a reference to this record.
type: string
example: a747e53f
serviceClassCode:
description: |
ServiceClassCode ACH Mixed Debits and Credits ‘200’
ACH Credits Only ‘220’
ACH Debits Only ‘225'
type: integer
example: 220
IATIndicator:
description: Leave Blank. Only used for corrected IAT entries
type: string
example: ""
foreignExchangeIndicator:
description: |
Code indicating currency conversion.
FV Fixed-to-Variable – Entry is originated in a fixed-value amount and is to be received in a variable amount resulting from the execution of the foreign exchange conversion.
VF Variable-to-Fixed – Entry is originated in a variable-value amount based on a specific foreign exchange rate for conversion to a fixed-value amount in which the entry is to be received.
FF Fixed-to-Fixed – Entry is originated in a fixed-value amount and is to be received in the same fixed-value amount in the same currency denomination. There is no foreign exchange conversion for entries transmitted using this code. For entries originated in a fixed value amount, the foreign Exchange Reference Field will be space filled.
type: string
example: FF
foreignExchangeReferenceIndicator:
description: |
Code used to indicate the content of the Foreign Exchange Reference Field and is filled by the gateway operator. Valid entries are
1 - Foreign Exchange Rate;
2 - Foreign Exchange Reference Number; or
3 - Space Filled
type: integer
example: 2
foreignExchangeReference:
description: |
Contains either the foreign exchange rate used to execute the foreign exchange conversion of a cross-border entry or another reference to the foreign exchange transaction.
type: string
ISODestinationCountryCode:
description: Two-character code, as approved by the International Organization for Standardization (ISO), to identify the country in which the entry is to be received. For United States use US.
type: string
example: US
originatorIdentification:
description: |
For U.S. entities: the number assigned will be your tax ID (often Social Security Number)
For non-U.S. entities: the number assigned will be your DDA number, or the last 9 characters of your account number if it exceeds 9 characters
type: string
example: 123456789
standardEntryClassCode:
description: |
StandardEntryClassCode for consumer and non consumer international payments is IAT.
Identifies the payment type (product) found within an ACH batch-using a 3-character code.
The SEC Code pertains to all items within batch.
Determines format of the detail records.
Determines addenda records (required or optional PLUS one or up to 9,999 records).
Determines rules to follow (return time frames).
Some SEC codes require specific data in predetermined fields within the ACH record
type: string
example: IAT
companyEntryDescription:
description: |
A description of the entries contained in the batch
The Originator establishes the value of this field to provide a description of the purpose of the entry to be displayed back to the receive For example, "GAS BILL," "REG. SALARY," "INS. PREM," "SOC. SEC.," "DTC," "TRADE PAY," "PURCHASE," etc.
This field must contain the word "REVERSAL" (left justified) when the batch contains reversing entries.
This field must contain the word "RECLAIM" (left justified) when the batch contains reclamation entries.
This field must contain the word "NONSETTLED" (left justified) when the batch contains entries which could not settle.
type: string
example: GAS BILL
ISOOriginatingCurrencyCode:
description: |
Three-character code, as approved by the International Organization for Standardization (ISO), to identify the currency denomination in which the entry was first originated. If the source of funds is within the territorial jurisdiction of the U.S., enter 'USD', otherwise refer to International Organization for Standardization website for value: www.iso.org
type: string
example: USD
ISODestinationCurrencyCode:
description: |
ISODestinationCurrencyCode is the three-character code, as approved by the International Organization for Standardization (ISO), to identify the currency denomination in which the entry will ultimately be settled. If the final destination of funds is within the territorial jurisdiction of the U.S., enter “USD”, otherwise refer to International Organization for Standardization website for value: www.iso.org
type: string
example: USD
effectiveEntryDate:
description: |
EffectiveEntryDate the date on which the entries are to settle format YYMMDD (Y=Year, M=Month, D=Day)
type: string
example: 181231
originatorStatusCode:
description: |
SettlementDate Leave blank, this field is inserted by the ACH operator settlementDate string OriginatorStatusCode refers to the ODFI initiating the Entry.
0 ADV File prepared by an ACH Operator.
1 This code identifies the Originator as a depository financial institution.
2 This code identifies the Originator as a Federal Government entity or agency.
type: integer
example: 1
ODFIIdentification:
description: |
ODFIIdentification First 8 digits of the originating DFI transit routing number for Inbound IAT Entries, this field contains the routing number of the U.S. Gateway Operator. For Outbound IAT Entries, this field contains the standard routing number, as assigned by Accuity, that identifies the U.S. ODFI initiating the Entry. Format - TTTTAAAA
type: string
example: 12345678
batchNumber:
description: |
BatchNumber is assigned in ascending sequence to each batch by the ODFI or its Sending Point in a given file of entries. Since the batch number in the Batch Header Record and the Batch Control Record is the same, the ascending sequence number should be assigned by batch and not by record.
type: integer
example: 1