enablebanking 0.3.0

Typed async client for the Enable Banking open banking API, generated from its OpenAPI description
Documentation
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
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
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
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
openapi: 3.1.0
info:
  title: API reference
  version: 1.0.0-d18bda50
paths:
  /auth:
    post:
      tags:
      - User sessions
      summary: Start user authorization
      description: Start authorization by getting a redirect link and redirecting
        a PSU to that link
      operationId: initialize_session_auth_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartAuthorizationRequest'
              description: Provide desired PSU consent parameters
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartAuthorizationResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '408':
          description: Request Timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /sessions:
    post:
      tags:
      - User sessions
      summary: Authorize user session
      description: Authorize user session by provided authorization code
      operationId: authorize_session_sessions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthorizeSessionRequest'
              description: Contains data necessary for authorizing session
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthorizeSessionResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '408':
          description: Request Timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /sessions/{session_id}:
    get:
      tags:
      - User sessions
      summary: Get session data
      description: Get session data by session ID
      operationId: get_session_sessions__session_id__get
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: Previously authorized session ID
          title: Session Id
        description: Previously authorized session ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSessionResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
    delete:
      tags:
      - User sessions
      summary: Delete session
      description: Delete session by session ID. PSU's bank consent will be closed
        automatically if possible
      operationId: delete_session_sessions__session_id__delete
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: Previously authorized session ID
          title: Session Id
        description: Previously authorized session ID
      - name: Psu-Ip-Address
        in: header
        required: false
        schema:
          type: string
          description: PSU IP address
          title: Psu-Ip-Address
        description: PSU IP address
      - name: Psu-User-Agent
        in: header
        required: false
        schema:
          type: string
          description: PSU browser User Agent
          title: Psu-User-Agent
        description: PSU browser User Agent
      - name: Psu-Referer
        in: header
        required: false
        schema:
          type: string
          description: PSU Referer
          title: Psu-Referer
        description: PSU Referer
      - name: Psu-Accept
        in: header
        required: false
        schema:
          type: string
          description: PSU accept header
          title: Psu-Accept
        description: PSU accept header
      - name: Psu-Accept-Charset
        in: header
        required: false
        schema:
          type: string
          description: PSU charset
          title: Psu-Accept-Charset
        description: PSU charset
      - name: Psu-Accept-Encoding
        in: header
        required: false
        schema:
          type: string
          description: PSU accept encoding
          title: Psu-Accept-Encoding
        description: PSU accept encoding
      - name: Psu-Accept-language
        in: header
        required: false
        schema:
          type: string
          description: PSU accept language
          title: Psu-Accept-Language
        description: PSU accept language
      - name: Psu-Geo-Location
        in: header
        required: false
        schema:
          type: string
          pattern: -?\d{1,2}\.\d{1,6},-?\d{1,3}\.\d{1,6}
          description: Comma separated latitude and longitude coordinates without
            spaces
          examples:
          - -1.2345,6.789
          title: Psu-Geo-Location
        description: Comma separated latitude and longitude coordinates without spaces
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /accounts/{account_id}/details:
    get:
      tags:
      - Accounts data
      summary: Get account details
      description: Fetching account details from ASPSP for an account by its ID
      operationId: get_account_accounts__account_id__details_get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: Account ID
          title: Account Id
        description: Account ID
      - name: Psu-Ip-Address
        in: header
        required: false
        schema:
          type: string
          description: PSU IP address
          title: Psu-Ip-Address
        description: PSU IP address
      - name: Psu-User-Agent
        in: header
        required: false
        schema:
          type: string
          description: PSU browser User Agent
          title: Psu-User-Agent
        description: PSU browser User Agent
      - name: Psu-Referer
        in: header
        required: false
        schema:
          type: string
          description: PSU Referer
          title: Psu-Referer
        description: PSU Referer
      - name: Psu-Accept
        in: header
        required: false
        schema:
          type: string
          description: PSU accept header
          title: Psu-Accept
        description: PSU accept header
      - name: Psu-Accept-Charset
        in: header
        required: false
        schema:
          type: string
          description: PSU charset
          title: Psu-Accept-Charset
        description: PSU charset
      - name: Psu-Accept-Encoding
        in: header
        required: false
        schema:
          type: string
          description: PSU accept encoding
          title: Psu-Accept-Encoding
        description: PSU accept encoding
      - name: Psu-Accept-language
        in: header
        required: false
        schema:
          type: string
          description: PSU accept language
          title: Psu-Accept-Language
        description: PSU accept language
      - name: Psu-Geo-Location
        in: header
        required: false
        schema:
          type: string
          pattern: -?\d{1,2}\.\d{1,6},-?\d{1,3}\.\d{1,6}
          description: Comma separated latitude and longitude coordinates without
            spaces
          examples:
          - -1.2345,6.789
          title: Psu-Geo-Location
        description: Comma separated latitude and longitude coordinates without spaces
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResource'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /accounts/{account_id}/balances:
    get:
      tags:
      - Accounts data
      summary: Get account balances
      description: Fetching account balances from ASPSP for an account by its ID
      operationId: get_account_balances_accounts__account_id__balances_get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: PSU account ID accessible in the provided session
          title: Account Id
        description: PSU account ID accessible in the provided session
      - name: Psu-Ip-Address
        in: header
        required: false
        schema:
          type: string
          description: PSU IP address
          title: Psu-Ip-Address
        description: PSU IP address
      - name: Psu-User-Agent
        in: header
        required: false
        schema:
          type: string
          description: PSU browser User Agent
          title: Psu-User-Agent
        description: PSU browser User Agent
      - name: Psu-Referer
        in: header
        required: false
        schema:
          type: string
          description: PSU Referer
          title: Psu-Referer
        description: PSU Referer
      - name: Psu-Accept
        in: header
        required: false
        schema:
          type: string
          description: PSU accept header
          title: Psu-Accept
        description: PSU accept header
      - name: Psu-Accept-Charset
        in: header
        required: false
        schema:
          type: string
          description: PSU charset
          title: Psu-Accept-Charset
        description: PSU charset
      - name: Psu-Accept-Encoding
        in: header
        required: false
        schema:
          type: string
          description: PSU accept encoding
          title: Psu-Accept-Encoding
        description: PSU accept encoding
      - name: Psu-Accept-language
        in: header
        required: false
        schema:
          type: string
          description: PSU accept language
          title: Psu-Accept-Language
        description: PSU accept language
      - name: Psu-Geo-Location
        in: header
        required: false
        schema:
          type: string
          pattern: -?\d{1,2}\.\d{1,6},-?\d{1,3}\.\d{1,6}
          description: Comma separated latitude and longitude coordinates without
            spaces
          examples:
          - -1.2345,6.789
          title: Psu-Geo-Location
        description: Comma separated latitude and longitude coordinates without spaces
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HalBalances'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /accounts/{account_id}/transactions:
    get:
      tags:
      - Accounts data
      summary: Get account transactions
      description: Fetching account transactions from ASPSP for an account by its
        ID
      operationId: get_account_transactions_accounts__account_id__transactions_get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: PSU account ID accessible in the provided session
          title: Account Id
        description: PSU account ID accessible in the provided session
      - name: date_from
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Date to fetch transactions from (including the date, UTC timezone
          is assumed)
      - name: date_to
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Date to fetch transactions to (including the date, UTC timezone
          is assumed)
      - name: continuation_key
        in: query
        required: false
        schema:
          type: string
        description: Key, allowing iterate over multiple API pages of transactions
      - name: transaction_status
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/TransactionStatus'
        description: Filter transactions by provided status
      - name: strategy
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/TransactionsFetchStrategy'
          description: Strategy how transaction are fetched
          default: default
        description: Strategy how transaction are fetched
      - name: Psu-Ip-Address
        in: header
        required: false
        schema:
          type: string
          description: PSU IP address
          title: Psu-Ip-Address
        description: PSU IP address
      - name: Psu-User-Agent
        in: header
        required: false
        schema:
          type: string
          description: PSU browser User Agent
          title: Psu-User-Agent
        description: PSU browser User Agent
      - name: Psu-Referer
        in: header
        required: false
        schema:
          type: string
          description: PSU Referer
          title: Psu-Referer
        description: PSU Referer
      - name: Psu-Accept
        in: header
        required: false
        schema:
          type: string
          description: PSU accept header
          title: Psu-Accept
        description: PSU accept header
      - name: Psu-Accept-Charset
        in: header
        required: false
        schema:
          type: string
          description: PSU charset
          title: Psu-Accept-Charset
        description: PSU charset
      - name: Psu-Accept-Encoding
        in: header
        required: false
        schema:
          type: string
          description: PSU accept encoding
          title: Psu-Accept-Encoding
        description: PSU accept encoding
      - name: Psu-Accept-language
        in: header
        required: false
        schema:
          type: string
          description: PSU accept language
          title: Psu-Accept-Language
        description: PSU accept language
      - name: Psu-Geo-Location
        in: header
        required: false
        schema:
          type: string
          pattern: -?\d{1,2}\.\d{1,6},-?\d{1,3}\.\d{1,6}
          description: Comma separated latitude and longitude coordinates without
            spaces
          examples:
          - -1.2345,6.789
          title: Psu-Geo-Location
        description: Comma separated latitude and longitude coordinates without spaces
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HalTransactions'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /accounts/{account_id}/transactions/{transaction_id}:
    get:
      tags:
      - Accounts data
      summary: Get transaction details
      description: Fetching transaction details from ASPSP for an account transaction
        by its ID
      operationId: get_transaction_accounts__account_id__transactions__transaction_id__get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: Account ID
          title: Account Id
        description: Account ID
      - name: transaction_id
        in: path
        required: true
        schema:
          type: string
          description: Transaction ID
          title: Transaction Id
        description: Transaction ID
      - name: Psu-Ip-Address
        in: header
        required: false
        schema:
          type: string
          description: PSU IP address
          title: Psu-Ip-Address
        description: PSU IP address
      - name: Psu-User-Agent
        in: header
        required: false
        schema:
          type: string
          description: PSU browser User Agent
          title: Psu-User-Agent
        description: PSU browser User Agent
      - name: Psu-Referer
        in: header
        required: false
        schema:
          type: string
          description: PSU Referer
          title: Psu-Referer
        description: PSU Referer
      - name: Psu-Accept
        in: header
        required: false
        schema:
          type: string
          description: PSU accept header
          title: Psu-Accept
        description: PSU accept header
      - name: Psu-Accept-Charset
        in: header
        required: false
        schema:
          type: string
          description: PSU charset
          title: Psu-Accept-Charset
        description: PSU charset
      - name: Psu-Accept-Encoding
        in: header
        required: false
        schema:
          type: string
          description: PSU accept encoding
          title: Psu-Accept-Encoding
        description: PSU accept encoding
      - name: Psu-Accept-language
        in: header
        required: false
        schema:
          type: string
          description: PSU accept language
          title: Psu-Accept-Language
        description: PSU accept language
      - name: Psu-Geo-Location
        in: header
        required: false
        schema:
          type: string
          pattern: -?\d{1,2}\.\d{1,6},-?\d{1,3}\.\d{1,6}
          description: Comma separated latitude and longitude coordinates without
            spaces
          examples:
          - -1.2345,6.789
          title: Psu-Geo-Location
        description: Comma separated latitude and longitude coordinates without spaces
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transaction'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /payments:
    post:
      tags:
      - Payments
      summary: Create payment
      description: Creating a payment consisting of one or multiple payment transactions
      operationId: create_payment_payments_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePaymentRequest'
              description: Contains data necessary for initiating a payment
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePaymentResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '408':
          description: Request Timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /payments/{payment_id}:
    get:
      tags:
      - Payments
      summary: Get payment
      description: Fetching payment status and details
      operationId: get_payment_payments__payment_id__get
      parameters:
      - name: payment_id
        in: path
        required: true
        schema:
          type: string
          description: Payment ID
          title: Payment Id
        description: Payment ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPaymentResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
    delete:
      tags:
      - Payments
      summary: Delete payment
      description: Delete finished or failed payment
      operationId: delete_payment_payments__payment_id__delete
      parameters:
      - name: payment_id
        in: path
        required: true
        schema:
          type: string
          description: Payment ID
          title: Payment Id
        description: Payment ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /payments/{payment_id}/submit:
    post:
      tags:
      - Payments
      summary: Submit payment for execution
      description: Explicitly submit a payment for execution. The payment must have
        been created with defer_submission=true, be in authorized state (PSU has completed
        authorization at the ASPSP), and not yet submitted for execution.
      operationId: submit_payment_payments__payment_id__submit_post
      parameters:
      - name: payment_id
        in: path
        required: true
        schema:
          type: string
          description: Payment ID
          title: Payment Id
        description: Payment ID
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              description: Empty request body
              default: {}
              title: ' '
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitPaymentResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /payments/{payment_id}/transactions/{transaction_id}:
    get:
      tags:
      - Payments
      summary: Get payment transaction
      description: Fetching transaction details for a single transaction within a
        bulk payment
      operationId: get_payment_transaction_payments__payment_id__transactions__transaction_id__get
      parameters:
      - name: payment_id
        in: path
        required: true
        schema:
          type: string
          description: Payment ID
          title: Payment Id
        description: Payment ID
      - name: transaction_id
        in: path
        required: true
        schema:
          type: string
          description: Transaction ID
          title: Transaction Id
        description: Transaction ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPaymentTransactionResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /aspsps:
    get:
      tags:
      - Misc
      summary: Get list of ASPSPs
      description: Get list of ASPSPs with their meta information
      operationId: get_aspsps_aspsps_get
      parameters:
      - name: country
        in: query
        required: false
        schema:
          type: string
          pattern: ^[A-Z]{2}$
          description: Display only ASPSPs from specified country
          title: Country
        description: Display only ASPSPs from specified country
      - name: psu_type
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/PSUType'
          description: Display only ASPSPs which support specified psu type
        description: Display only ASPSPs which support specified psu type
      - name: service
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/Service'
          description: Display only ASPSPs which support specified service
        description: Display only ASPSPs which support specified service
      - name: payment_type
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/PaymentType'
          description: Display only ASPSPs which support specified payment type
        description: Display only ASPSPs which support specified payment type
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAspspsResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Timeout
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
  /application:
    get:
      tags:
      - Misc
      summary: Get application
      description: Get application associated with provided JWT key ID
      operationId: get_application_application_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApplicationResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '408':
          description: Request Timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ASPSP:
      properties:
        name:
          type: string
          title: Name
          description: Name of the ASPSP (i.e. a bank or a similar financial institution)
          examples:
          - Nordea
        country:
          type: string
          title: Country
          description: Two-letter ISO 3166 code of the country, in which ASPSP operates
          examples:
          - FI
      type: object
      required:
      - name
      - country
      title: ASPSP
    ASPSPData:
      properties:
        name:
          type: string
          title: Name
          description: Name of the ASPSP (i.e. a bank or a similar financial institution)
          examples:
          - Nordea
        country:
          type: string
          title: Country
          description: Two-letter ISO 3166 code of the country, in which ASPSP operates
          examples:
          - FI
        logo:
          type: string
          maxLength: 2083
          minLength: 1
          format: uri
          title: Logo
          description: ASPSP logo URL. It is possible to transform (e.g. resize) the
            logo by adding special suffixes at the end of the URL. For example, `-/resize/500x/`.
            For full list of possible transformations, please refer to https://uploadcare.com/docs/transformations/image/
          examples:
          - https://enablebanking.com/brands/FI/Nordea/
        psu_types:
          items:
            $ref: '#/components/schemas/PSUType'
          type: array
          title: Psu Types
          description: List of PSU types supported by ASPSP
          examples:
          - - personal
            - business
        auth_methods:
          items:
            $ref: '#/components/schemas/AuthMethod'
          type: array
          title: Auth Methods
          description: List of available authentication methods. Provided in case
            multiple methods are available or it is possible to supply authentication
            credentials while initiating authorization.
        maximum_consent_validity:
          type: integer
          title: Maximum Consent Validity
          description: Maximum consent validity which bank supports in seconds
        sandbox:
          description: Applicable only to sandbox environment. Additional information
            necessary to use sandbox environment.
          $ref: '#/components/schemas/SandboxInfo'
        beta:
          type: boolean
          title: Beta
          description: Flag showing whether implementation is in beta mode
        bic:
          title: Bic
          description: BIC of the ASPSP
          type: string
        required_psu_headers:
          items:
            type: string
          type: array
          title: Required Psu Headers
          description: List of the headers required to indicate to data retrieval
            endpoints that PSU is online. Either all required PSU headers or none
            of PSU headers are to be provided, otherwise PSU_HEADER_NOT_PROVIDED error
            will be returned.
        payments:
          items:
            $ref: '#/components/schemas/ResponsePaymentType'
          type: array
          title: Payments
          description: Supported payment types by country and their properties
        group:
          description: Group, which the ASPSP belongs to
          $ref: '#/components/schemas/ASPSPGroup'
      type: object
      required:
      - name
      - country
      - logo
      - psu_types
      - auth_methods
      - maximum_consent_validity
      - beta
      title: ASPSPData
      example:
        auth_methods:
        - approach: REDIRECT
          credentials:
          - description: Business identity code (Y-tunnus) in 1234567-8 format
            name: companyId
            required: true
            template: ^\d{7}-\d$
            title: Company ID
          hidden_method: false
          name: MTA
          psu_type: business
        beta: false
        bic: NDEAFIHH
        country: FI
        logo: https://enablebanking.com/brands/FI/Nordea/
        maximum_consent_validity: 15552000
        name: Nordea
        payments:
        - allowed_auth_methods:
          - MTA
          charge_bearer_values:
          - SLEV
          creditor_account_schemas:
          - IBAN
          creditor_agent_bic_fi_required: false
          creditor_agent_clearing_system_member_id_required: false
          creditor_country_required: false
          creditor_name_required: false
          creditor_postal_address_required: false
          currencies:
          - EUR
          debtor_account_required: true
          debtor_account_schemas:
          - IBAN
          debtor_contact_email_required: false
          debtor_contact_phone_required: false
          debtor_currency_required: false
          max_transactions: 1
          payment_type: SEPA
          priority_codes:
          - NORM
          psu_type: business
          reference_number_schemas:
          - FIRF
          - INTL
          reference_number_supported: true
          regulatory_reporting_code_required: false
          remittance_information_lines:
          - max_length: 140
            min_length: 1
            pattern: ^.{1,140}$
          remittance_information_required: true
          requested_execution_date_max_period: 365
          requested_execution_date_supported: true
        psu_types:
        - business
        required_psu_headers:
        - Psu-Ip-Address
    ASPSPGroup:
      properties:
        name:
          type: string
          title: Name
          description: Name of the group, which the ASPSP belongs to
          examples:
          - Volksbanken Raiffeisenbanken
        logo:
          type: string
          minLength: 1
          format: uri
          title: Logo
          description: URL of the logo for the group to which the ASPSP belongs. This
            URL supports the same transformation postfixes as ASPSP logo URLs.
          examples:
          - https://enablebanking.com/brands/DE/Volksbanken%20Raiffeisenbanken/
      type: object
      required:
      - name
      - logo
      title: ASPSPGroup
    Access:
      properties:
        accounts:
          title: Accounts
          description: 'List of accounts access to which is requested. If not set
            behaviour depends on the

            bank: some banks allow users to choose list of accessible accounts through
            their

            access consent UI, while other may provide access to all accounts or just
            access to

            the list of accounts.'
          examples:
          - - iban: FI1737631867613465
          items:
            $ref: '#/components/schemas/AccountIdentification'
          type: array
        balances:
          type: boolean
          title: Balances
          description: Request consent with balances access
          default: true
        transactions:
          type: boolean
          title: Transactions
          description: Request consent with transactions access
          default: true
        transactions_extended_history:
          type: boolean
          title: Transactions Extended History
          description: 'Controls whether an additional consent or SCA may be requested
            from the user to

            access transaction history older than 90 days, where the ASPSP requires
            it. If

            `true` (default, also when not provided), the user goes through the extra
            consent

            or SCA where needed. If `false`, no extra consent or SCA is requested:
            the full

            history is still returned where the ASPSP provides it without extra SCA,
            while

            otherwise it can be limited to 90 days. The parameter only limits the
            number of

            SCAs and does not limit the history to 90 days.'
          default: true
        valid_until:
          type: string
          format: date-time
          title: Valid Until
          description: 'This parameter specifies the date and time until which the
            authorised session

            remains valid. The value must be in the RFC3339 date-time format with
            a timezone

            offset, e.g. `2025-12-01T12:00:00.000000+00:00`. The provided value cannot
            exceed

            the date and time, calculated as "now" + `maximum_consent_validity` (provided
            in

            seconds for each ASPSP in response to the GET /aspsps request). The provided
            value

            is subject to adjustment to comply with the ASPSP''s requirements. Specifically,
            if

            the provided value is less than the minimum consent validity allowed by
            the ASPSP

            (e.g., some ASPSPs require a minimum of 1 hour or 1 day), the consent
            validity will

            be adjusted to meet these requirements. However, the session validity
            will remain

            exactly as specified. This means that even if the consent remains valid
            on the

            ASPSP''s side, the session will expire based on the initially provided
            value.'
      type: object
      required:
      - valid_until
      title: Access
      example:
        valid_until: '2019-08-24T14:15:22Z'
    AccountIdentification:
      properties:
        iban:
          title: Iban
          description: International Bank Account Number (IBAN) - identification used
            internationally by financial institutions to uniquely identify the account
            of a customer. Further specifications of the format and content of the
            IBAN can be found in the standard ISO 13616 "Banking and related financial
            services - International Bank Account Number (IBAN)" version 1997-10-01,
            or later revisions.
          examples:
          - FI8821291587733472
          type: string
        other:
          description: Other identification if iban is not provided
          examples:
          - identification: '123456'
            scheme_name: BBAN
          $ref: '#/components/schemas/GenericIdentification'
      type: object
      title: AccountIdentification
      example:
        iban: FI0455231152453547
    AccountResource:
      properties:
        account_id:
          description: Primary account identifier
          $ref: '#/components/schemas/AccountIdentification'
        all_account_ids:
          title: All Account Ids
          description: All account identifiers provided by ASPSPs (including primary
            identifier available in the accountId field)
          items:
            $ref: '#/components/schemas/GenericIdentification'
          type: array
        account_servicer:
          description: Information about the financial institution servicing the account
          $ref: '#/components/schemas/FinancialInstitutionIdentification'
        name:
          title: Name
          description: Account holder(s) name
          type: string
        details:
          title: Details
          description: Account description set by PSU or provided by ASPSP
          type: string
        usage:
          description: Specifies the usage of the account
          $ref: '#/components/schemas/Usage'
        cash_account_type:
          $ref: '#/components/schemas/CashAccountType'
          description: Specifies the type of the account
        product:
          title: Product
          description: Product Name of the Bank for this account, proprietary definition
          type: string
        currency:
          type: string
          title: Currency
          description: Specifies the currency of the account
        psu_status:
          title: Psu Status
          description: Relationship between the PSU and the account - Account Holder
            - Co-account Holder - Attorney
          type: string
        credit_limit:
          description: Specifies the maximum credit or overdraft allowed on the account
          $ref: '#/components/schemas/AmountType'
        legal_age:
          title: Legal Age
          description: 'Specifies whether Enable Banking is confident that the account
            holder is of legal age or is a minor. The field takes the following values:

            true if the account holder is of legal age;

            false if the account holder is a minor;

            null (or the field is not set) if it is not possible to determine whether
            the account holder is of legal age or a minor or if the legal age check
            is not applicable (in cases such as if the account holder is a legal entity
            or there are multiple account co-holders)'
          type: boolean
        postal_address:
          description: Postal address of the account holder
          $ref: '#/components/schemas/PostalAddress'
        uid:
          title: Uid
          description: Unique account identificator used for fetching account balances
            and transactions. It is valid only until the session to which the account
            belongs is in the AUTHORIZED status. It can be not set in case it is know
            that it is not possible to fetch balances and transactions for the account
            (for example, in case the account is blocked or closed at the ASPSP side).
          type: string
          format: uuid
        identification_hash:
          type: string
          title: Identification Hash
          description: Primary account identification hash. It can be used for matching
            accounts between multiple sessions (even in case the sessions are authorized
            by different PSUs).
          examples:
          - WwpbCiJhY2NvdW50IiwKImFjY291bnRfaWQiLAoiaWJhbiIKXQpd.E8GzhnnsFC7K+4e3YMYYKpyM83Zx6toXrjgcvPP/Lqc=
        identification_hashes:
          items:
            type: string
          type: array
          title: Identification Hashes
          description: List of possible account identification hashes. Identification
            hash is based on the account number. Some accounts may have multiple account
            numbers (e.g. IBAN and BBAN). This field contains all possible hashes.
            Not all of these hashes can be used to uniquely identify an account and
            that the primary goal of them is to be able to fuzzy matching of accounts
            by certain properties. Primary hash is included in this list.
          examples:
          - - WwpbCiJhY2NvdW50IiwKImFjY291bnRfaWQiLAoiaWJhbiIKXQpd.E8GzhnnsFC7K+4e3YMYYKpyM83Zx6toXrjgcvPP/Lqc=
            - WwpbCiJhc3BzcF9uYW1lIgpdLApbCiJhc3BzcF9jb3VudHJ5IgpdLApbCiJhY2NvdW50IiwKImFjY291bnRfaWQiLAoib3RoZXIiLAoic2NoZW1lX25hbWUiCl0sClsKImFjY291bnQiLAoiYWNjb3VudF9pZCIsCiJvdGhlciIsCiJpZGVudGlmaWNhdGlvbiIKXQpd.AOm/TULGPD4a4GdcWhR9xh0GPlPUZuB2O1S9SYFWEz0=
      type: object
      required:
      - cash_account_type
      - currency
      - identification_hash
      - identification_hashes
      title: AccountResource
    AddressType:
      type: string
      enum:
      - Business
      - Correspondence
      - DeliveryTo
      - MailTo
      - POBox
      - Postal
      - Residential
      - Statement
      title: AddressType
      example: Business
      x-enum-descriptions:
      - Business address
      - Correspondence address
      - Delivery address
      - Mail to address
      - PO Box address
      - Postal address
      - Residential address
      - Statement address
    AmountType:
      properties:
        currency:
          type: string
          title: Currency
          description: ISO 4217 code of the currency of the amount
          examples:
          - EUR
        amount:
          type: string
          pattern: ^-?\d+(\.\d+)?$
          title: Amount
          description: Numerical value or monetary figure associated with a particular
            transaction, representing balance on an account, a fee or similar. Represented
            as a decimal number, using . (dot) as a decimal separator. Allowed precision
            (number of digits after the decimal separator) varies depending on the
            currency and is validated differently depending on the context.
          examples:
          - '1.23'
      type: object
      required:
      - currency
      - amount
      title: AmountType
    AuthMethod:
      properties:
        name:
          title: Name
          description: Internal name of the authentication method
          type: string
        title:
          title: Title
          description: Human-readable title of the authentication method
          type: string
        psu_type:
          $ref: '#/components/schemas/PSUType'
          description: PSU type to which the authentication method is applicable
        credentials:
          items:
            $ref: '#/components/schemas/Credential'
          type: array
          title: Credentials
          description: List of credentials which are possible to supply while initiating
            authorization
        approach:
          $ref: '#/components/schemas/AuthenticationApproach'
          description: Authentication approach used in the current authentication
            method
        hidden_method:
          type: boolean
          title: Hidden Method
          description: Flag showing whether the current authentication method is hidden
            from the user. If `true` then the user will not be able to select this
            authentication method. It is only possible to select this authentication
            method via API.
      type: object
      required:
      - psu_type
      - approach
      - hidden_method
      title: AuthMethod
    AuthenticationApproach:
      type: string
      enum:
      - REDIRECT
      - DECOUPLED
      - EMBEDDED
      title: AuthenticationApproach
      example: REDIRECT
      x-enum-descriptions:
      - The TPP identifies the PSU and forwards the identification to the ASPSP which
        processes the authentication through a decoupled device
      - The TPP identifies the PSU and forwards the identification to the ASPSP which
        starts the authentication. The TPP forwards one authentication factor of the
        PSU (e.g. OTP or response to a challenge)
      - The PSU is redirected by the TPP to the ASPSP which processes identification
        and authentication
    AuthorizeSessionRequest:
      properties:
        code:
          type: string
          title: Code
          description: Authorization code returned when redirecting PSU
      type: object
      required:
      - code
      title: AuthorizeSessionRequest
    AuthorizeSessionResponse:
      properties:
        session_id:
          type: string
          format: uuid4
          title: Session Id
          description: ID of the PSU session
        accounts:
          items:
            $ref: '#/components/schemas/AccountResource'
          type: array
          title: Accounts
          description: List of authorized accounts
        aspsp:
          $ref: '#/components/schemas/ASPSP'
          description: ASPSP used with the session
        psu_type:
          $ref: '#/components/schemas/PSUType'
          description: PSU type used with the session
        access:
          $ref: '#/components/schemas/Access'
          description: Scope of access requested from ASPSP and confirmed by PSU
          examples:
          - balances: true
            transactions: true
            transactions_extended_history: true
            valid_until: '2021-01-01T00:00:00Z'
      type: object
      required:
      - session_id
      - accounts
      - aspsp
      - psu_type
      - access
      title: AuthorizeSessionResponse
    BalanceResource:
      properties:
        name:
          type: string
          title: Name
          description: Label of the balance
          examples:
          - Booked balance
        balance_amount:
          $ref: '#/components/schemas/AmountType'
          description: Structure aiming to embed the amount and the currency to be
            used
        balance_type:
          $ref: '#/components/schemas/BalanceStatus'
          description: Available balance type values
          examples:
          - CLBD
        last_change_date_time:
          title: Last Change Date Time
          description: Timestamp of the last change of the balance amount
          type: string
          format: date-time
        reference_date:
          title: Reference Date
          description: Reference date for the balance
          type: string
          format: date
        last_committed_transaction:
          title: Last Committed Transaction
          description: Entry reference of the last transaction contributing to the
            balance value
          examples:
          - 4604aa90f8a8418092d80c3270846f0a
          type: string
      type: object
      required:
      - name
      - balance_amount
      - balance_type
      title: BalanceResource
    BalanceStatus:
      type: string
      enum:
      - CLAV
      - CLBD
      - FWAV
      - INFO
      - ITAV
      - ITBD
      - OPAV
      - OPBD
      - PRCD
      - OTHR
      - VALU
      - XPCD
      title: BalanceStatus
      example: CLAV
      x-enum-descriptions:
      - (ISO20022 Closing Available) Closing available balance
      - (ISO20022 ClosingBooked) Accounting Balance
      - (ISO20022 ForwardAvailable) Balance that is at the disposal of account holders
        on the date specified
      - (ISO20022 Information) Balance for informational purposes
      - (ISO20022 InterimAvailable) Available balance calculated in the course of
        the day
      - (ISO20022 InterimBooked) Booked balance calculated in the course of the day
      - (ISO20022 OpeningAvailable) Opening balance that is at the disposal of account
        holders at the beginning of the date specified
      - (ISO20022 OpeningBooked) Book balance of the account at the beginning of the
        account reporting period. It always equals the closing book balance from the
        previous report
      - Other Balance
      - (ISO20022 PreviouslyClosedBooked) Balance of the account at the end of the
        previous reporting period
      - Value-date balance
      - (ISO20022 Expected) Instant Balance
    BankTransactionCode:
      properties:
        description:
          title: Description
          description: Arbitrary transaction categorization description
          examples:
          - Utlandsbetalning
          type: string
        code:
          title: Code
          description: Specifies the family of a transaction within the domain
          examples:
          - '12'
          type: string
        sub_code:
          title: Sub Code
          description: Specifies the sub-product family of a transaction within a
            specific family
          examples:
          - '32'
          type: string
      type: object
      title: BankTransactionCode
    Beneficiary:
      properties:
        creditor_agent:
          description: Identification of the financial institution where the account
            receiving funds is held
          $ref: '#/components/schemas/FinancialInstitutionIdentification'
        creditor:
          description: Identification of the party receiving funds
          $ref: '#/components/schemas/PartyIdentification'
        creditor_account:
          $ref: '#/components/schemas/GenericIdentification'
          description: Identification of the account receiving funds
        creditor_currency:
          title: Creditor Currency
          description: ISO 4217 currency code, in which the account receiving funds
            is held
          type: string
      type: object
      required:
      - creditor_account
      title: Beneficiary
      example:
        creditor:
          name: Organisation/Person Name
        creditor_account:
          identification: FI0455231152453547
          scheme_name: IBAN
    CashAccountType:
      type: string
      enum:
      - CACC
      - CASH
      - CARD
      - LOAN
      - SVGS
      - OTHR
      title: CashAccountType
      example: CACC
      x-enum-descriptions:
      - Account used to post debits and credits when no specific account has been
        nominated
      - Account used for card payments only
      - Account used for the payment of cash
      - Account used for loans
      - Account not otherwise specified
      - Account used for savings
    CategoryPurposeCode:
      type: string
      enum:
      - BONU
      - CASH
      - CBLK
      - CCRD
      - CORT
      - DCRD
      - DIVI
      - DVPM
      - EPAY
      - FCOL
      - GOVT
      - HEDG
      - ICCP
      - IDCP
      - INTC
      - INTE
      - LOAN
      - MP2B
      - MP2P
      - OTHR
      - PENS
      - RPRE
      - RRCT
      - RVPM
      - SALA
      - SECU
      - SSBE
      - SUPP
      - TAXS
      - TRAD
      - TREA
      - VATX
      - WHLD
      title: CategoryPurposeCode
      example: BONU
      x-enum-descriptions:
      - 'Bonus Payment: Transaction is the payment of a bonus'
      - 'Cash Management Transfer: Transaction is a general cash management instruction'
      - 'Card Bulk Clearing: A Service that is settling money for a bulk of card transactions,
        while referring to a specific transaction file or other information like terminal
        ID, card acceptor ID or other transaction details'
      - 'Credit Card Payment: Transaction is related to a payment of credit card'
      - 'Trade Settlement Payment: Transaction is related to settlement of a trade,
        eg a foreign exchange deal or a securities transaction'
      - 'Debit Card Payment: Transaction is related to a payment of debit card'
      - 'Dividend: Transaction is the payment of dividends'
      - 'Deliver Against Payment: Code used to pre-advise the account servicer of
        a forthcoming deliver against payment instruction'
      - 'Epayment: Transaction is related to ePayment'
      - 'Fee Collection: A Service that is settling card transaction related fees
        between two parties'
      - 'Government Payment: Transaction is a payment to or from a government department'
      - 'Hedging: Transaction is related to the payment of a hedging operation'
      - 'Irrevocable Credit Card Payment: Transaction is reimbursement of credit card
        payment'
      - 'Irrevocable Debit Card Payment: Transaction is reimbursement of debit card
        payment'
      - 'Intra Company Payment: Transaction is an intra-company payment, ie, a payment
        between two companies belonging to the same group'
      - 'Interest: Transaction is the payment of interest'
      - 'Loan: Transaction is related to the transfer of a loan to a borrower'
      - Commercial Mobile P2B Payment
      - Consumer Mobile P2P Payment
      - 'Other Payment: Other payment purpose'
      - 'Pension Payment: Transaction is the payment of pension'
      - 'Represented: Collection used to re-present previously reversed or returned
        direct debit transactions'
      - 'Reimbursement Received Credit Transfer: Transaction is related to a reimbursement
        for commercial reasons of a correctly received credit transfer'
      - 'Receive Against Payment: Code used to pre-advise the account servicer of
        a forthcoming receive against payment instruction'
      - 'Salary Payment: Transaction is the payment of salaries'
      - 'Securities: Transaction is the payment of securities'
      - 'Social Security Benefit: Transaction is a social security benefit, ie payment
        made by a government to support individuals'
      - 'Supplier Payment: Transaction is related to a payment to a supplier'
      - 'Tax Payment: Transaction is the payment of taxes'
      - 'Trade: Transaction is related to the payment of a trade finance transaction'
      - 'Treasury Payment: Transaction is related to treasury operations.  E.g. financial
        contract settlement'
      - 'Value Added Tax Payment: Transaction is the payment of value added tax'
      - 'With Holding: Transaction is the payment of withholding tax'
    ChargeBearerCode:
      type: string
      enum:
      - SLEV
      - SHAR
      - DEBT
      - CRED
      title: ChargeBearerCode
      example: SLEV
      x-enum-descriptions:
      - The Payee (recipient of the payment) will incur all of the payment transaction
        fees
      - The Payer (sender of the payment) will bear all of the payment transaction
        fees
      - Shared. Transaction charges on the sender side are to be borne by the debtor,
        transaction charges on the receiver side are to be borne by the creditor
      - Service level. Charges are to be applied following the rules agreed in the
        service level and/or scheme
    ClearingSystemMemberIdentification:
      properties:
        clearing_system_id:
          title: Clearing System Id
          description: Specification of a pre-agreed offering between clearing agents
            or the channel through which the payment instruction is processed.
          examples:
          - NZNCC
          type: string
        member_id:
          title: Member Id
          description: Identification of a member of a clearing system.
          examples:
          - 020368
          type: string
      type: object
      title: ClearingSystemMemberIdentification
    ContactDetails:
      properties:
        email_address:
          title: Email Address
          description: Email address of a person
          type: string
        phone_number:
          title: Phone Number
          description: Phone number of a person
          type: string
      type: object
      title: ContactDetails
    CreatePaymentRequest:
      properties:
        payment_type:
          $ref: '#/components/schemas/PaymentType'
          description: Specifies the type of payment used
        payment_request:
          $ref: '#/components/schemas/PaymentRequestResource'
          description: Specifies the details required to initiate a payment
        aspsp:
          $ref: '#/components/schemas/ASPSP'
          description: ASPSP that PSU is going to be authenticated to
          examples:
          - country: FI
            name: Nordea
        state:
          type: string
          title: State
          description: Arbitrary string. Same string will be returned in query parameter
            when redirecting to the URL passed via redirect_url parameter
          examples:
          - 3a57e2d3-2e0c-4336-af9b-7fa94f0606a3
        redirect_url:
          type: string
          minLength: 1
          format: uri
          title: Redirect Url
          description: URL that PSU will be redirected to after authorization
        psu_type:
          $ref: '#/components/schemas/PSUType'
          description: PSU type used for the authorization flow. This parameter affects
            how the authorization is performed at the ASPSP (e.g., whether a personal
            or business login page is shown). A mismatch between the provided psu_type
            and the PSU's actual account type can result in authorization failures
            or the inability to see expected accounts. Since the default value depends
            on the specific connector, it is highly recommended to always provide
            this value for consistent behavior. If the application cannot determine
            the PSU type, it should be requested from the end user (PSU).
        auth_method:
          title: Auth Method
          description: Desired authorization method (in case ASPSP integration supports
            multiple). Supported methods can be obtained from the `auth_methods` field
            available in ASPSP details.
          type: string
        credentials:
          title: Credentials
          description: PSU credentials (e.g., user and/or company ID). If not provided
            through the API, they will be requested from the PSU during authorization.
            Credentials can be supplied only if `auth_method` is specified; otherwise,
            a `WRONG_REQUEST_PARAMETERS` error will be returned.
          examples:
          - userId: MyUsername
          type: object
        language:
          title: Language
          description: Preferred PSU language. Two-letter lowercase language code
          examples:
          - fi
          type: string
          pattern: ^[a-z]{2}$
        webhook_url:
          title: Webhook Url
          description: URL that will receive POST requests notifying about payment
            changes. See the [webhooks documentation](../webhooks/index.md#payment-status-webhook)
            for more details
          examples:
          - https://app.com/payment-webhook-handler
          type: string
          minLength: 1
          format: uri
        psu_id:
          title: Psu Id
          description: Unique identification of a PSU used by the client application.
            It can be used to match payments of the same user. Although only hashed
            value is stored, it is recommended to use anonymised identifiers (i.e.
            digital ID instead of email or social security number). In case the parameter
            is not passed by the application, random value will be used.
          type: string
        defer_submission:
          type: boolean
          title: Defer Submission
          description: 'Controls whether the payment submission for execution is deferred
            after PSU authorization. When set to true, the payment will not be automatically
            submitted for execution after PSU completes authorization at the ASPSP.
            Instead, an explicit call to POST /payments/{payment_id}/submit is required
            to submit the payment for execution. Only effective when the selected
            ASPSP payment type has deferred_submission_supported: true. Defaults to
            false.'
          default: false
      type: object
      required:
      - payment_type
      - payment_request
      - aspsp
      - state
      - redirect_url
      - psu_type
      title: CreatePaymentRequest
      example:
        aspsp:
          country: FI
          name: S-Pankki
        payment_request:
          credit_transfer_transaction:
          - beneficiary:
              creditor:
                name: Organisation/Person Name
              creditor_account:
                identification: FI0455231152453547
                scheme_name: IBAN
            instructed_amount:
              amount: '10.33'
              currency: EUR
        payment_type: SEPA
        psu_type: personal
        redirect_url: https://google.com/
        state: b463a960-9616-4df6-909f-f80884190c22
    CreatePaymentResponse:
      properties:
        payment_id:
          type: string
          format: uuid
          title: Payment Id
          description: Payment ID
        status:
          $ref: '#/components/schemas/PaymentStatus'
          description: Payment status
        url:
          type: string
          maxLength: 2083
          minLength: 1
          format: uri
          title: Url
          description: URL to redirect a PSU to
        psu_id_hash:
          type: string
          title: Psu Id Hash
          description: Hashed unique identification of a PSU used by the client application.
            In case PSU ID is not passed by the client application, the hash is calculated
            based on a random value. The hash also inherits the application ID, so
            different hashes will be calculated when using the same PSU ID with different
            applications.
          examples:
          - 12427b547618d01d46cabfdd6fd7e832bb42076fb210d40e56783e0d1f4798fd
      type: object
      required:
      - payment_id
      - status
      - url
      - psu_id_hash
      title: CreatePaymentResponse
      example:
        payment_id: 497f6eca-6276-4993-bfeb-53cbbbba6f08
        psu_id_hash: 12427b547618d01d46cabfdd6fd7e832bb42076fb210d40e56783e0d1f4798fd
        status: RCVD
        url: https://auth.enablebanking.com/pis/start?payment_id=497f6eca-6276-4993-bfeb-53cbbbba6f08
    Credential:
      properties:
        name:
          type: string
          title: Name
          description: Internal name of the credential. The name is to be used when
            passing credentials to the "start user authorization" request
          examples:
          - userId
        title:
          type: string
          title: Title
          description: Title for the credential to be displayed to PSU
          examples:
          - User ID
        required:
          type: boolean
          title: Required
          description: Indication whether the credential is required
          examples:
          - true
        description:
          title: Description
          description: Description of the credential to be displayed to PSU
          examples:
          - Your identifier used for logging in to online banking
          type: string
        template:
          title: Template
          description: Perl compatible regular expression used for check of the credential
            format
          examples:
          - ^\d{8}$
          type: string
      type: object
      required:
      - name
      - title
      - required
      title: Credential
    CreditDebitIndicator:
      type: string
      enum:
      - CRDT
      - DBIT
      title: CreditDebitIndicator
      example: CRDT
      x-enum-descriptions:
      - Credit type transaction
      - Debit type transaction
    CreditTransferTransaction:
      properties:
        instructed_amount:
          $ref: '#/components/schemas/AmountType'
          description: Structure aiming to embed the amount and the currency to be
            used
        beneficiary:
          $ref: '#/components/schemas/Beneficiary'
          description: Specification of a beneficiary
        payment_id:
          description: Set of elements used to reference a payment instruction
          $ref: '#/components/schemas/PaymentIdentification'
        requested_execution_date:
          $ref: '#/components/schemas/RequestedExecutionDate'
        reference_number:
          $ref: '#/components/schemas/ReferenceNumber'
        end_date:
          $ref: '#/components/schemas/EndDate'
        execution_rule:
          description: Execution date shifting rule for standing orders
          $ref: '#/components/schemas/ExecutionRule'
        frequency:
          description: Frequency rule for standing orders
          $ref: '#/components/schemas/FrequencyCode'
        ultimate_debtor:
          description: Identifies the original party from whom the funds originate
            in the payment transaction
          $ref: '#/components/schemas/PartyIdentification'
        ultimate_creditor:
          description: Identifies the final party receiving the funds in the payment
            transaction
          $ref: '#/components/schemas/PartyIdentification'
        regulatory_reporting:
          title: Regulatory Reporting
          description: List of needed regulatory reporting codes for international
            payments
          items:
            $ref: '#/components/schemas/RegulatoryReporting'
          type: array
          maxItems: 10
          minItems: 1
        remittance_information:
          $ref: '#/components/schemas/UnstructuredRemittanceInformation'
      type: object
      required:
      - instructed_amount
      - beneficiary
      title: CreditTransferTransaction
      description: Payment instruction to be executed by the ASPSP
    CreditTransferTransactionDetails:
      properties:
        instructed_amount:
          $ref: '#/components/schemas/AmountType'
          description: Structure aiming to embed the amount and the currency to be
            used
        beneficiary:
          $ref: '#/components/schemas/Beneficiary'
          description: Specification of a beneficiary
        payment_id:
          description: Set of elements used to reference a payment instruction
          $ref: '#/components/schemas/PaymentIdentification'
        requested_execution_date:
          $ref: '#/components/schemas/RequestedExecutionDate'
        reference_number:
          $ref: '#/components/schemas/ReferenceNumber'
        end_date:
          $ref: '#/components/schemas/EndDate'
        execution_rule:
          description: Execution date shifting rule for standing orders
          $ref: '#/components/schemas/ExecutionRule'
        frequency:
          description: Frequency rule for standing orders
          $ref: '#/components/schemas/FrequencyCode'
        ultimate_debtor:
          description: Identifies the original party from whom the funds originate
            in the payment transaction
          $ref: '#/components/schemas/PartyIdentification'
        ultimate_creditor:
          description: Identifies the final party receiving the funds in the payment
            transaction
          $ref: '#/components/schemas/PartyIdentification'
        regulatory_reporting:
          title: Regulatory Reporting
          description: List of needed regulatory reporting codes for international
            payments
          items:
            $ref: '#/components/schemas/RegulatoryReporting'
          type: array
          maxItems: 10
          minItems: 1
        remittance_information:
          $ref: '#/components/schemas/UnstructuredRemittanceInformation'
        transaction_id:
          title: Transaction Id
          description: Unique identifier of the payment transaction, which can be
            used for fetching details through the get payment transaction endpoint
          type: string
        transaction_status:
          description: Status of the payment transaction
          $ref: '#/components/schemas/PaymentStatus'
      type: object
      required:
      - instructed_amount
      - beneficiary
      title: CreditTransferTransactionDetails
      description: Details of the payment instruction executed (to be executed) by
        the ASPSP
    CurrencyCode:
      type: string
      title: CurrencyCode
      description: Specifies the currency of the amount or of the account according
        the ISO 4217 standard
      example: EUR
    EndDate:
      type: string
      format: date
      title: EndDate
      description: 'The last applicable day of execution for a given standing order.

        If not given, the standing order is considered as endless.

        '
    Environment:
      type: string
      enum:
      - SANDBOX
      - PRODUCTION
      title: Environment
      example: SANDBOX
      x-enum-descriptions:
      - Live production environment
      - Simulation environment used for testing purposes
    ErrorCode:
      type: string
      enum:
      - ACCESS_DENIED
      - ACCOUNT_DOES_NOT_EXIST
      - ALREADY_AUTHORIZED
      - ASPSP_ACCOUNT_NOT_ACCESSIBLE
      - ASPSP_ERROR
      - ASPSP_TIMEOUT
      - ASPSP_RATE_LIMIT_EXCEEDED
      - AUTHORIZATION_NOT_PROVIDED
      - CLOSED_SESSION
      - DATE_TO_WITHOUT_DATE_FROM
      - DATE_FROM_IN_FUTURE
      - EXPIRED_AUTHORIZATION_CODE
      - EXPIRED_SESSION
      - INVALID_ACCOUNT_ID
      - INVALID_HOST
      - UNAUTHORIZED_IP
      - NO_ACCOUNTS_ADDED
      - PAYMENT_NOT_FOUND
      - PSU_HEADER_NOT_PROVIDED
      - PSU_HEADER_INVALID
      - REDIRECT_URI_NOT_ALLOWED
      - REVOKED_SESSION
      - SESSION_DOES_NOT_EXIST
      - UNAUTHORIZED_ACCESS
      - UNTRUSTED_PAYMENT_PARTY
      - WEBHOOK_URI_NOT_ALLOWED
      - WRONG_ASPSP_PROVIDED
      - WRONG_AUTHORIZATION_CODE
      - WRONG_DATE_INTERVAL
      - WRONG_CREDENTIALS_PROVIDED
      - WRONG_REQUEST_PARAMETERS
      - WRONG_SESSION_STATUS
      - WRONG_TRANSACTIONS_PERIOD
      - WRONG_CONTINUATION_KEY
      - TRANSACTION_DOES_NOT_EXIST
      - PAYMENT_LIMIT_EXCEEDED
      - ASPSP_PAYMENT_NOT_ACCESSIBLE
      - INVALID_PAYMENT
      - ASPSP_PSU_ACTION_REQUIRED
      - PAYMENT_NOT_FINALIZED
      - PAYMENT_SUBMISSION_NOT_SUPPORTED
      - PAYMENT_NOT_AUTHORIZED
      - PAYMENT_SUBMISSION_NOT_DEFERRED
      title: ErrorCode
      example: PSU_HEADER_NOT_PROVIDED
      x-enum-descriptions:
      - Access to this resource is denied. Check services available for your application.
      - No account found matching provided id
      - Session is already authorized
      - The PSU does not have access to the requested account or it doesn't exist
      - Error interacting with ASPSP
      - Payment can not be requested from the ASPSP
      - PSU action is required to proceed
      - ASPSP Rate limit exceeded
      - Timeout interacting with ASPSP
      - Authorization header is not provided
      - Session is closed
      - date_from can not be in the future
      - date_from must be provided if date_to provided
      - Authorization code is expired
      - Session is expired
      - Either iban or other account identification is required
      - Invalid host
      - Invalid or expired payment provided
      - No allowed accounts added to the application
      - The amount value or the the number of transactions exceeds the limit
      - Payment has not been authorized yet
      - You can not delete a payment that is not finalized or cancelled
      - Payment not found
      - Payment was not created with deferred submission enabled
      - Deferred submission is not supported for this ASPSP payment type
      - Provided PSU header contains invalid value
      - Required PSU header is not provided
      - Redirect URI not allowed
      - Session is revoked
      - No session found matching provided id
      - No transaction found matching provided id
      - Unauthorized access
      - Used IP address is not authorized to access the resource
      - Either creditor or debtor account is not trusted
      - Webhook URI not allowed
      - Wrong ASPSP name provided
      - Wrong authorization code provided
      - Wrong continuation key provided
      - Wrong credentials provided
      - date_from should be less than or equal date_to
      - Wrong request parameters provided
      - Wrong session status
      - Wrong transactions period requested
    ErrorResponse:
      properties:
        message:
          type: string
          title: Message
          description: Error message
          examples:
          - Required PSU header is not provided
        code:
          title: Code
          description: Error code, identical to the http response code
          examples:
          - 422
          type: integer
        error:
          description: Text error code
          examples:
          - PSU_HEADER_NOT_PROVIDED
          $ref: '#/components/schemas/ErrorCode'
        detail:
          title: Detail
          description: Detailed explanation of an error
          examples:
          - PSU header psuIpAddress is not provided
      type: object
      required:
      - message
      title: ErrorResponse
    ExchangeRate:
      properties:
        unit_currency:
          description: ISO 4217 code of the currency, in which the rate of exchange
            is expressed in a currency exchange. In the example 1GBP = xxxCUR, the
            unit currency is GBP.
          $ref: '#/components/schemas/CurrencyCode'
        exchange_rate:
          title: Exchange Rate
          description: The factor used for conversion of an amount from one currency
            to another. This reflects the price at which one currency was bought with
            another currency.
          type: string
        rate_type:
          description: Specifies the type of exchange rate applied to the transaction
          $ref: '#/components/schemas/RateType'
        contract_identification:
          title: Contract Identification
          description: Unique and unambiguous reference to the foreign exchange contract
            agreed between the initiating party/creditor and the debtor agent.
          type: string
        instructed_amount:
          description: Original amount, in which transaction was initiated. In particular,
            for cross-currency card transactions, the value represents original value
            of a purchase or a withdrawal in a currency different from the card's
            native or default currency.
          $ref: '#/components/schemas/AmountType'
      type: object
      title: ExchangeRate
    ExecutionRule:
      type: string
      enum:
      - FWNG
      - PREC
      title: ExecutionRule
      example: FWNG
      x-enum-descriptions:
      - Following
      - Preceding
    FinancialInstitutionIdentification:
      properties:
        bic_fi:
          title: Bic Fi
          description: Code allocated to a financial institution by the ISO 9362 Registration
            Authority as described in ISO 9362 "Banking - Banking telecommunication
            messages - Business identification code (BIC)".
          type: string
        clearing_system_member_id:
          description: Information used to identify a member within a clearing system.
          $ref: '#/components/schemas/ClearingSystemMemberIdentification'
        name:
          title: Name
          description: Name of the financial institution
          type: string
      type: object
      title: FinancialInstitutionIdentification
    FrequencyCode:
      type: string
      enum:
      - DAIL
      - WEEK
      - TOWK
      - MNTH
      - TOMN
      - QUTR
      - SEMI
      - YEAR
      title: FrequencyCode
      example: DAIL
      x-enum-descriptions:
      - Daily
      - Monthly
      - Quarterly
      - Semi annual
      - Every two months
      - Every two weeks
      - Weekly
      - Annual
    GenericIdentification:
      properties:
        identification:
          type: string
          title: Identification
          description: An identifier
          examples:
          - '12345678'
        scheme_name:
          $ref: '#/components/schemas/SchemeName'
          description: Name of the identification scheme. Partially based on ISO20022
            external code list
          examples:
          - BBAN
        issuer:
          title: Issuer
          description: Entity that assigns the identification. This could be a country
            code or any organisation name or identifier that can be recognized by
            both parties
          examples:
          - FR
          type: string
      type: object
      required:
      - identification
      - scheme_name
      title: GenericIdentification
      example:
        identification: '123456'
        scheme_name: BBAN
    GetApplicationResponse:
      properties:
        name:
          type: string
          title: Name
          description: Application name
        description:
          title: Description
          description: Application description
          type: string
        kid:
          type: string
          format: uuid4
          title: Kid
          description: Application key id
        environment:
          $ref: '#/components/schemas/Environment'
          description: Application environment
        redirect_urls:
          items:
            type: string
            minLength: 1
            format: uri
          type: array
          title: Redirect Urls
          description: List of allowed redirect urls
        active:
          type: boolean
          title: Active
          description: Indication whether the application is active
        countries:
          items:
            type: string
          type: array
          title: Countries
          description: List of supported countries
        services:
          items:
            $ref: '#/components/schemas/Service'
          type: array
          title: Services
          description: List of supported services
      type: object
      required:
      - name
      - kid
      - environment
      - redirect_urls
      - active
      - countries
      - services
      title: GetApplicationResponse
    GetAspspsResponse:
      properties:
        aspsps:
          items:
            $ref: '#/components/schemas/ASPSPData'
          type: array
          title: Aspsps
          description: List of available ASPSPs and countries
      type: object
      required:
      - aspsps
      title: GetAspspsResponse
    GetPaymentResponse:
      properties:
        payment_id:
          type: string
          format: uuid
          title: Payment Id
          description: Payment ID
        status:
          $ref: '#/components/schemas/PaymentStatus'
          description: Payment status
        payment_details:
          $ref: '#/components/schemas/PaymentRequestResourceDetails'
          description: Payment request
        payment_type:
          $ref: '#/components/schemas/PaymentType'
          description: Specifies the type of payment used
        aspsp:
          $ref: '#/components/schemas/ASPSP'
          description: ASPSP used for the payment
          examples:
          - country: FI
            name: Nordea
        final_status:
          type: boolean
          title: Final Status
          description: Indicates whether the payment has reached the status expected
            to be final (i.e. if the value of the field is `true`, the payment status
            is not expected to change on later requests)
        status_reason_information:
          description: Details explaining the payment status, provided when the cause
            can be determined unambiguously, mainly for rejected payments
          $ref: '#/components/schemas/StatusReasonInformation'
        psu_id_hash:
          type: string
          title: Psu Id Hash
          description: Hashed unique identification of a PSU used by the client application.
            In case PSU ID is not passed by the client application, the hash is calculated
            based on a random value. The hash also inherits the application ID, so
            different hashes will be calculated when using the same PSU ID with different
            applications.
          examples:
          - 12427b547618d01d46cabfdd6fd7e832bb42076fb210d40e56783e0d1f4798fd
      type: object
      required:
      - payment_id
      - status
      - payment_details
      - payment_type
      - aspsp
      - final_status
      - psu_id_hash
      title: GetPaymentResponse
    GetPaymentTransactionResponse:
      properties:
        payment_id:
          type: string
          format: uuid
          title: Payment Id
          description: Payment ID
        transaction_details:
          $ref: '#/components/schemas/CreditTransferTransactionDetails'
          description: Payment transaction details
      type: object
      required:
      - payment_id
      - transaction_details
      title: GetPaymentTransactionResponse
    GetSessionResponse:
      properties:
        status:
          $ref: '#/components/schemas/SessionStatus'
          description: Session status
          examples:
          - AUTHORIZED
        accounts:
          items:
            type: string
            format: uuid
          type: array
          title: Accounts
          description: List of account ids available in the session
        accounts_data:
          items:
            $ref: '#/components/schemas/SessionAccount'
          type: array
          title: Accounts Data
          description: Accounts data stored in the session
        aspsp:
          $ref: '#/components/schemas/ASPSP'
          description: ASPSP used with the session
        psu_type:
          $ref: '#/components/schemas/PSUType'
          description: PSU type used with the session
        psu_id_hash:
          type: string
          title: Psu Id Hash
          description: Hashed unique identification of a PSU used by the client application.
            In case PSU ID is not passed by the client application, the hash is calculated
            based on a random value. The hash also inherits the application ID, so
            different hashes will be calculated when using the same PSU ID with different
            applications.
          examples:
          - 12427b547618d01d46cabfdd6fd7e832bb42076fb210d40e56783e0d1f4798fd
        access:
          $ref: '#/components/schemas/Access'
          description: Scope of access requested from ASPSP and confirmed by PSU
          examples:
          - valid_until: '2020-12-01T12:00:00.000000+00:00'
        created:
          type: string
          format: date-time
          title: Created
          description: Date and time when the session was created
          examples:
          - '2020-12-01T12:00:00.000000+00:00'
        authorized:
          title: Authorized
          description: Date and time when the session was authorized
          examples:
          - '2020-12-01T12:00:00.000000+00:00'
          type: string
          format: date-time
        closed:
          title: Closed
          description: Date and time when the session was closed
          type: string
          format: date-time
      type: object
      required:
      - status
      - accounts
      - accounts_data
      - aspsp
      - psu_type
      - psu_id_hash
      - access
      - created
      title: GetSessionResponse
      example:
        access:
          valid_until: '2020-12-01T12:00:00.000000+00:00'
        accounts:
        - 497f6eca-6276-4993-bfeb-53cbbbba6f08
        accounts_data:
        - identification_hash: WwpbCiJhY2NvdW50IiwKImFjY291bnRfaWQiLAoiaWJhbiIKXQpd.E8GzhnnsFC7K+4e3YMYYKpyM83Zx6toXrjgcvPP/Lqc=
          uid: 497f6eca-6276-4993-bfeb-53cbbbba6f08
        aspsp:
          country: FI
          name: Nordea
        authorized: '2020-12-01T12:00:00.000000+00:00'
        created: '2020-12-01T12:00:00.000000+00:00'
        psu_type: business
        status: AUTHORIZED
    HalBalances:
      properties:
        balances:
          items:
            $ref: '#/components/schemas/BalanceResource'
          type: array
          title: Balances
          description: List of account balances
      type: object
      required:
      - balances
      title: HalBalances
    HalTransactions:
      properties:
        transactions:
          items:
            $ref: '#/components/schemas/Transaction'
          type: array
          title: Transactions
          description: List of transactions
        continuation_key:
          title: Continuation Key
          description: Value to retrieve next page of transactions. Null if there
            are no more pages. Only valid in current session.
          type: string
      type: object
      required:
      - transactions
      title: HalTransactions
    PSUType:
      type: string
      enum:
      - business
      - personal
      title: PSUType
      example: business
      x-enum-descriptions:
      - Business/corporate users
      - 'Private/retail users '
    PartyIdentification:
      properties:
        name:
          title: Name
          description: Name by which a party is known and which is usually used to
            identify that party.
          examples:
          - MyPreferredAisp
          type: string
        postal_address:
          description: Information that locates and identifies a specific address,
            as defined by postal services
          $ref: '#/components/schemas/PostalAddress'
        organisation_id:
          description: Unique identification of an account, a person or an organisation,
            as assigned by an issuer
          $ref: '#/components/schemas/GenericIdentification'
        private_id:
          description: Unique identification of an account, a person or an organisation,
            as assigned by an issuer
          $ref: '#/components/schemas/GenericIdentification'
        contact_details:
          description: Specifies the contact details associated with a person or an
            organisation
          $ref: '#/components/schemas/ContactDetails'
      type: object
      title: PartyIdentification
      example:
        name: MyPreferredAisp
        postal_address:
          address_line:
          - Mr Asko Teirila PO Box 511
          - 39140 AKDENMAA FINLAND
          address_type: Business
          building_number: '4'
          country: FI
          country_sub_division: Uusimaa
          department: Department of resources
          post_code: '00123'
          street_name: Vasavagen
          sub_department: Sub Department of resources
          town_name: Helsinki
    PaymentIdentification:
      properties:
        instruction_id:
          title: Instruction Id
          description: 'Unique identification as assigned by an instructing party
            for an instructed party to unambiguously identify the instruction.


            API: Unique identification shared between the PISP and the ASPSP

            '
          type: string
        end_to_end_id:
          title: End To End Id
          description: 'Unique identification assigned by the initiating party to
            unambiguously identify the transaction. This identification is passed
            on, unchanged, throughout the entire end-to-end chain.


            API: Unique identification shared between the merchant and the PSU

            '
          type: string
      type: object
      title: PaymentIdentification
    PaymentInformationId:
      type: string
      title: PaymentInformationId
      description: 'Reference assigned by a sending party to unambiguously identify
        the payment information block within the message.

        '
    PaymentRequestResource:
      properties:
        payment_information_id:
          description: Reference assigned by a sending party to unambiguously identify
            the payment information block within the message
          $ref: '#/components/schemas/PaymentInformationId'
        payment_type_information:
          description: Set of elements used to further specify the type of payment
          $ref: '#/components/schemas/PaymentTypeInformation'
        debtor:
          description: Identification of the party sending funds
          $ref: '#/components/schemas/PartyIdentification'
        debtor_account:
          description: Identification of the account from which funds are sent when
            the payment is executed. When the debtor account is not provided it is
            to be chosen by the PSU during payment authorisation flow.
          $ref: '#/components/schemas/GenericIdentification'
        debtor_agent:
          description: Identification of the financial institution where the debtor
            account is held. To be provided only in case the financial institution
            can not be unambiguously identified the ASPSP name towards which the payment
            is initiated.
          $ref: '#/components/schemas/FinancialInstitutionIdentification'
        debtor_currency:
          type: string
          title: Debtor Currency
          description: ISO 4217 code, in which debtor account is held
          default: XXX
        purpose:
          description: Underlying reason for the payment
          $ref: '#/components/schemas/PurposeCode'
        charge_bearer:
          description: Specifies which party/parties will bear the charges associated
            with the processing of the payment
          $ref: '#/components/schemas/ChargeBearerCode'
        credit_transfer_transaction:
          items:
            $ref: '#/components/schemas/CreditTransferTransaction'
          type: array
          minItems: 1
          title: Credit Transfer Transaction
          description: Payment instructions to be executed towards one or multiple
            beneficiaries in the payment process. Maximum number of transactions depend
            on the ASPSP and type of the payment taking into accounts its specificities
            about payment request handling.
      type: object
      required:
      - credit_transfer_transaction
      title: PaymentRequestResource
      example:
        credit_transfer_transaction:
        - beneficiary:
            creditor:
              name: Organisation/Person Name
            creditor_account:
              identification: FI0455231152453547
              scheme_name: IBAN
          instructed_amount:
            amount: '10.33'
            currency: EUR
        debtor_account:
          identification: FI7727551317119265
          scheme_name: IBAN
    PaymentRequestResourceDetails:
      properties:
        payment_information_id:
          description: Reference assigned by a sending party to unambiguously identify
            the payment information block within the message
          $ref: '#/components/schemas/PaymentInformationId'
        payment_type_information:
          description: Set of elements used to further specify the type of payment
          $ref: '#/components/schemas/PaymentTypeInformation'
        debtor:
          description: Identification of the party sending funds
          $ref: '#/components/schemas/PartyIdentification'
        debtor_account:
          description: Identification of the account from which funds are sent when
            the payment is executed. When the debtor account is not provided it is
            to be chosen by the PSU during payment authorisation flow.
          $ref: '#/components/schemas/GenericIdentification'
        debtor_agent:
          description: Identification of the financial institution where the debtor
            account is held. To be provided only in case the financial institution
            can not be unambiguously identified the ASPSP name towards which the payment
            is initiated.
          $ref: '#/components/schemas/FinancialInstitutionIdentification'
        debtor_currency:
          type: string
          title: Debtor Currency
          description: ISO 4217 code, in which debtor account is held
          default: XXX
        purpose:
          description: Underlying reason for the payment
          $ref: '#/components/schemas/PurposeCode'
        charge_bearer:
          description: Specifies which party/parties will bear the charges associated
            with the processing of the payment
          $ref: '#/components/schemas/ChargeBearerCode'
        credit_transfer_transaction:
          title: Credit Transfer Transaction
          items:
            $ref: '#/components/schemas/CreditTransferTransactionDetails'
          type: array
      type: object
      title: PaymentRequestResourceDetails
      example:
        credit_transfer_transaction:
        - beneficiary:
            creditor:
              name: Organisation/Person Name
            creditor_account:
              identification: FI0455231152453547
              scheme_name: IBAN
          instructed_amount:
            amount: '10.33'
            currency: EUR
        debtor_account:
          identification: FI7727551317119265
          scheme_name: IBAN
    PaymentStatus:
      type: string
      enum:
      - ACCC
      - ACCP
      - ACSC
      - ACSP
      - ACTC
      - ACWC
      - ACWP
      - PART
      - RCVD
      - PDNG
      - RJCT
      - ACPT
      - ACCR
      - RJCR
      - PACR
      - PDCR
      - CNCL
      - 'NULL'
      title: PaymentStatus
      example: ACCC
      x-enum-descriptions:
      - AcceptedCreditSettlementCompleted. Settlement on the creditor's account has
        been completed.
      - AcceptedCustomerProfile. Preceding check of technical validation was successful.
        Customer profile check was also successful.
      - AcceptedCancellationRequest. Cancellation is accepted.
      - Accepted. Request is accepted.
      - AcceptedSettlementCompleted. Settlement on the debtor's account has been completed.
      - AcceptedSettlementInProcess. All preceding checks such as technical validation
        and customer profile were successful. Dynamic risk assessment is now also
        successful and therefore the Payment Request has been accepted for execution.
      - AcceptedTechnicalValidation. Authentication and syntactical and semantical
        validation are successful.
      - AcceptedWithChange. Instruction is accepted but a change will be made, such
        as date or remittance not sent.
      - AcceptedWithoutPosting. Payment instruction included in the credit transfer
        is accepted without being posted to the creditor's account.
      - PaymentCancelled. Payment is cancelled.
      - NoCancellationProcess. There is no cancellation process ongoing.
      - PartiallyAcceptedCancellationRequest. Cancellation is partially accepted.
      - PartiallyAccepted. A number of transactions have been accepted, whereas another
        number of transactions have not yet achieved 'accepted' status.
      - PendingCancellationRequest. Cancellation request is pending.
      - Pending. Payment request or individual transaction included in the Payment
        Request is pending. Further checks and status update will be performed.
      - Received. Payment initiation has been received by the receiving agent.
      - RejectedCancellationRequest. Cancellation request is rejected.
      - Rejected. Payment request  has been rejected.
    PaymentType:
      type: string
      enum:
      - SEPA
      - INST_SEPA
      - DOMESTIC
      - CROSSBORDER
      - DOMESTIC_PL_ELIXIR
      - DOMESTIC_PL_EXPRESS_ELIXIR
      - DOMESTIC_PL_SORBNET
      - DOMESTIC_PL_BLUE_CASH
      - DOMESTIC_SE_GIRO
      - INTERNAL
      - BULK_SEPA
      - BULK_DOMESTIC
      - BULK_DOMESTIC_SE_GIRO
      title: PaymentType
      example: SEPA
      x-enum-descriptions:
      - Domestic bulk credit transfers
      - Swedish domestic bulk Giro payments (BankGiro/PlusGiro)
      - SEPA bulk credit transfers
      - Crossborder credit transfers
      - Domestic credit transfers
      - Polish instant domestic credit transfers via the BlueCash system
      - Polish domestic credit transfers via the Elixir clearing system
      - Polish instant domestic credit transfers via the Express Elixir system
      - Polish high-value domestic credit transfers via the SORBNET system
      - Swedish domestic Giro payments (BankGiro/PlusGiro)
      - Instant SEPA credit transfers (without fallback to SEPA)
      - Transfer made within an ASPSP
      - SEPA credit transfers
    PaymentTypeInformation:
      properties:
        instruction_priority:
          description: Indicator of the urgency or order of importance that the instructing
            party would like the instructed party to apply
          $ref: '#/components/schemas/PriorityCode'
        service_level:
          description: Agreement under which or rules under which the transaction
            should be processed. Specifies a pre-agreed service or level of service
            between the parties, as published in an external service level code list
          $ref: '#/components/schemas/ServiceLevelCode'
        category_purpose:
          description: Specifies the high level purpose of the instruction based on
            a set of pre-defined categories. This is used by the initiating party
            to provide information concerning the processing of the payment. It is
            likely to trigger special processing by any of the agents involved in
            the payment chain.
          $ref: '#/components/schemas/CategoryPurposeCode'
        local_instrument:
          title: Local Instrument
          description: User community specific instrument
          type: string
      type: object
      title: PaymentTypeInformation
    PostalAddress:
      properties:
        address_type:
          description: Available address type values
          examples:
          - DeliveryTo
          $ref: '#/components/schemas/AddressType'
        department:
          title: Department
          description: Identification of a division of a large organisation or building.
          examples:
          - Department of resources
          type: string
        sub_department:
          title: Sub Department
          description: Identification of a sub-division of a large organisation or
            building.
          examples:
          - Sub Department of resources
          type: string
        street_name:
          title: Street Name
          description: Name of a street or thoroughfare.
          examples:
          - Vasavagen
          type: string
        building_number:
          title: Building Number
          description: Number that identifies the position of a building on a street.
          examples:
          - '4'
          type: string
        post_code:
          title: Post Code
          description: 'Identifier consisting of a group of letters and/or numbers
            that is

            added to a postal address to assist the sorting of mail.'
          examples:
          - '00123'
          type: string
        town_name:
          title: Town Name
          description: Name of a built-up area, with defined boundaries, and a local
            government.
          examples:
          - Helsinki
          type: string
        country_sub_division:
          title: Country Sub Division
          description: Identifies a subdivision of a country such as state, region,
            county.
          examples:
          - Uusimaa
          type: string
        country:
          title: Country
          description: Two-letter ISO 3166 code of the country in which a person resides
            (the place of a person's home). In the case of a company, it is the country
            from which the affairs of that company are directed.
          examples:
          - FI
          type: string
        address_line:
          title: Address Line
          description: Unstructured address. The two lines must embed zip code and
            town name
          examples:
          - - Mr Asko Teirila PO Box 511
            - 39140 AKDENMAA FINLAND
          items:
            type: string
          type: array
      type: object
      title: PostalAddress
    PriorityCode:
      type: string
      enum:
      - HIGH
      - NORM
      - EXPR
      title: PriorityCode
      example: HIGH
      x-enum-descriptions:
      - Express priority. Polish-specific priority code
      - High priority
      - Normal priority
    PurposeCode:
      type: string
      enum:
      - ACCT
      - CASH
      - COMC
      - CPKC
      - TRPT
      title: PurposeCode
      example: ACCT
      x-enum-descriptions:
      - Funds moved between 2 accounts of same account holder at the same bank
      - General cash management instruction, may be used for Transfer Initiation
      - Transaction is related to a payment of commercial credit or debit
      - General Carpark Charges Transaction is related to carpark charges
      - Transport RoadPricing Transaction is for the payment to top-up pre-paid card
        and electronic road pricing for the purpose of transportation
    RateType:
      type: string
      enum:
      - SPOT
      - SALE
      - AGRD
      title: RateType
      example: SPOT
      x-enum-descriptions:
      - Exchange rate applied is the rate agreed between the parties
      - Exchange rate applied is the market rate at the time of the sale.
      - Exchange rate applied is the spot rate.
    ReferenceNumber:
      type: string
      title: ReferenceNumber
      description: 'This field specifies the reference assigned by the sender to unambiguously
        identify the message.

        '
    ReferenceNumberScheme:
      type: string
      enum:
      - SEBG
      - NORF
      - FIRF
      - INTL
      - BERF
      - SDDM
      title: ReferenceNumberScheme
      example: SEBG
      x-enum-descriptions:
      - Belgian reference number
      - Finnish reference number
      - International reference number (starting with RF)
      - Norwegian KID (OCR)
      - SEPA Direct Debit Mandate ID
      - Swedish Bankgiro OCR
    RegulatoryAuthority:
      properties:
        country:
          type: string
          title: Country
          description: Two-letter ISO 3166 code of the country in which the regulatory
            authority operates
        name:
          title: Name
          description: Name of the regulatory authority
          type: string
      type: object
      required:
      - country
      - name
      title: RegulatoryAuthority
    RegulatoryReporting:
      properties:
        authority:
          description: Regulatory authority to which reporting shall be made
          $ref: '#/components/schemas/RegulatoryAuthority'
        details:
          $ref: '#/components/schemas/RegulatoryReportingDetails'
          description: Details to provide on the regulatory reporting information
      type: object
      required:
      - details
      title: RegulatoryReporting
    RegulatoryReportingCode:
      properties:
        value:
          type: string
          title: Value
          description: Value of the code, i.e. what needs to be passed as a code when
            filling in regulatory reporting details.
        description:
          title: Description
          description: Regulatory authority to which reporting shall be made
          type: string
      type: object
      required:
      - value
      - description
      title: RegulatoryReportingCode
    RegulatoryReportingDetails:
      properties:
        amount:
          description: Amount of money to be reported. If not provided the total instructed
            amount of the transaction is assumed.
          $ref: '#/components/schemas/AmountType'
        code:
          title: Code
          description: A code specifying the nature, purpose, and/or reason for the
            transaction. Codes to be used depend on the regulatory authority, to which
            they are being reported.
          type: string
        information:
          title: Information
          description: Additional details that cater for specific domestic regulatory
            requirements.
          type: string
      type: object
      required:
      - information
      title: RegulatoryReportingDetails
    RemittanceInformationLineInfo:
      properties:
        min_length:
          title: Min Length
          description: Minimum length of remittance information line
          type: integer
        max_length:
          title: Max Length
          description: Maximum length of remittance information line
          type: integer
        pattern:
          title: Pattern
          description: Specifies a regexp pattern for the remittance information line
          type: string
      type: object
      title: RemittanceInformationLineInfo
    RequestedExecutionDate:
      type: string
      format: date
      title: RequestedExecutionDate
      description: 'Date at which the initiating party requests the clearing agent
        to process the payment.

        API:

        This date can be used in the following cases:

        - the single requested execution date for a payment having several instructions.
        In this case, this field must be set at the payment level.

        - the requested execution date for a given instruction within a payment. In
        this case, this field must be set at each instruction level.

        - The first date of execution for a standing order.

        When the payment cannot be processed at this date, the ASPSP is allowed to
        shift the applied execution date to the next possible execution date for non-standing
        orders.

        For standing orders, the [executionRule] parameter helps to compute the execution
        date to be applied.

        '
    ResponsePaymentType:
      properties:
        payment_type:
          $ref: '#/components/schemas/PaymentType'
          description: Payment type name
        max_transactions:
          title: Max Transactions
          description: Maximum number of transactions per payment
          type: integer
        currencies:
          title: Currencies
          description: List of supported currencies
          items:
            type: string
          type: array
        debtor_account_required:
          type: boolean
          title: Debtor Account Required
          description: 'States if debtor account is required for payment initiation
            request. When the debtor account is not provided it is to be chosen by
            the PSU during payment authorisation flow. Create payment body field:
            `payment_request.debtor_account`'
          default: false
        debtor_account_schemas:
          title: Debtor Account Schemas
          description: List of supported debtor account schemas
          items:
            $ref: '#/components/schemas/SchemeName'
          type: array
        creditor_account_schemas:
          title: Creditor Account Schemas
          description: List of supported creditor account schemas
          items:
            $ref: '#/components/schemas/SchemeName'
          type: array
        priority_codes:
          title: Priority Codes
          description: List of supported priority codes
          items:
            $ref: '#/components/schemas/PriorityCode'
          type: array
        charge_bearer_values:
          title: Charge Bearer Values
          description: List of supported charge bearer codes
          items:
            $ref: '#/components/schemas/ChargeBearerCode'
          type: array
        creditor_country_required:
          title: Creditor Country Required
          description: 'States if creditor country is required. Create payment body
            field: `payment_request.credit_transfer_transaction[*].beneficiary.creditor.postal_address.country`'
          default: false
          type: boolean
        creditor_name_required:
          title: Creditor Name Required
          description: 'States if creditor name is required.  Create payment body
            field: `payment_request.credit_transfer_transaction[*].beneficiary.creditor.postal_address.country`'
          default: false
          type: boolean
        creditor_postal_address_required:
          title: Creditor Postal Address Required
          description: 'States if creditor postal address is required. Create payment
            body field: `payment_request.credit_transfer_transaction[*].beneficiary.creditor.postal_address`'
          default: false
          type: boolean
        remittance_information_required:
          title: Remittance Information Required
          description: 'States if remittance information is required. Create payment
            body field: `payment_request.credit_transfer_transaction[*].remittance_information`'
          default: false
          type: boolean
        remittance_information_lines:
          title: Remittance Information Lines
          description: Properties of remittance information. Each item of the array
            correspond to the remittance information line with the same index. When
            provided, the number of lines in the remittance information should be
            the same as the length of this array.
          items:
            $ref: '#/components/schemas/RemittanceInformationLineInfo'
          type: array
        debtor_currency_required:
          title: Debtor Currency Required
          description: 'States if debtor currency is required. Create payment body
            field: `payment_request.debtor_currency`'
          default: false
          type: boolean
        debtor_name_required:
          title: Debtor Name Required
          description: 'States if debtor name is required. Create payment body field:
            `payment_request.debtor.name`'
          default: false
          type: boolean
        debtor_country_required:
          title: Debtor Country Required
          description: 'States if debtor country is required. Create payment body
            field: `payment_request.debtor.postal_address.country`'
          default: false
          type: boolean
        debtor_contact_email_required:
          title: Debtor Contact Email Required
          description: 'States if debtor''s contact email is required when a payment
            this type is being initiated. Create payment body field: `payment_request.debtor.contact_details.email_address`'
          default: false
          type: boolean
        debtor_contact_phone_required:
          title: Debtor Contact Phone Required
          description: 'States if debtor''s contact phone is required when a payment
            this type is being initiated. Create payment body field: `payment_request.debtor.contact_details.phone_number`'
          default: false
          type: boolean
        creditor_agent_bic_fi_required:
          title: Creditor Agent Bic Fi Required
          description: 'States if creditor agent bicFi is required. Create payment
            body field: `payment_request.credit_transfer_transaction[*].beneficiary.creditor_agent.bic_fi`'
          default: false
          type: boolean
        creditor_agent_clearing_system_member_id_required:
          title: Creditor Agent Clearing System Member Id Required
          description: 'States if creditor agent clearing system member ID is required.
            Create payment body field: `payment_request.credit_transfer_transaction[*].beneficiary.creditor_agent.clearing_system_member_id`'
          default: false
          type: boolean
        allowed_auth_methods:
          title: Allowed Auth Methods
          description: List of supported auth methods for this payment type
          items:
            type: string
          type: array
        regulatory_reporting_codes:
          title: Regulatory Reporting Codes
          description: List of supported codes for regulatory reporting details
          items:
            $ref: '#/components/schemas/RegulatoryReportingCode'
          type: array
        regulatory_reporting_code_required:
          title: Regulatory Reporting Code Required
          description: 'States if regulatory reporting shall be provided for credit
            transfer transactions. Create payment body field: `payment_request.credit_transfer_transaction[*].regulatory_reporting.details.code`'
          default: false
          type: boolean
        reference_number_supported:
          title: Reference Number Supported
          description: States if reference number can be provided for credit transfer
            transactions
          default: false
          type: boolean
        reference_number_schemas:
          title: Reference Number Schemas
          description: List of reference number schemas supported by a payment method
          items:
            $ref: '#/components/schemas/ReferenceNumberScheme'
          type: array
        requested_execution_date_supported:
          title: Requested Execution Date Supported
          description: States if requested execution date supported by a payment method
          default: false
          type: boolean
        requested_execution_date_max_period:
          title: Requested Execution Date Max Period
          description: Maximum requested execution date interval in the future
          type: integer
        remittance_reference_supported:
          title: Remittance Reference Supported
          description: States if both reference number and remittance information
            can be provided simultaneously
          default: false
          type: boolean
        deferred_submission_supported:
          title: Deferred Submission Supported
          description: "Indicates whether this payment type supports deferred submission\
            \ for execution. When true, the automatic submission of the payment for\
            \ execution after PSU authorization can be deferred \u2014 the client\
            \ must call POST /payments/{payment_id}/submit to explicitly submit the\
            \ payment for execution."
          default: false
          type: boolean
        final_successful_statuses:
          title: Final Successful Statuses
          description: List of the final successful statuses for the payment type.
            Please note that when a payment reaches one of the statuses provided in
            this list, it is not yet guaranteed that the funds will be credited to
            the creditor's account specified in the payment request. It is up to the
            application that created the payment to conclude whether the funds are
            (or will be) received, depending on the actual payment status and other
            factors.
          items:
            $ref: '#/components/schemas/PaymentStatus'
          type: array
        psu_type:
          $ref: '#/components/schemas/PSUType'
          description: PSU type
      type: object
      required:
      - payment_type
      - psu_type
      title: ResponsePaymentType
      example:
        allowed_auth_methods:
        - string
        charge_bearer_values:
        - SLEV
        creditor_account_schemas:
        - IBAN
        creditor_agent_bic_fi_required: false
        creditor_agent_clearing_system_member_id_required: false
        creditor_country_required: false
        creditor_name_required: false
        creditor_postal_address_required: false
        currencies:
        - EUR
        debtor_account_required: false
        debtor_account_schemas:
        - IBAN
        debtor_contact_email_required: false
        debtor_contact_phone_required: false
        debtor_currency_required: false
        max_transactions: 1
        payment_type: SEPA
        priority_codes:
        - NORM
        psu_type: business
        reference_number_schemas:
        - FIRF
        - INTL
        reference_number_supported: true
        regulatory_reporting_code_required: false
        remittance_information_lines:
        - max_length: 140
          min_length: 1
          pattern: ^.{1,140}$
        remittance_information_required: false
        requested_execution_date_max_period: 365
        requested_execution_date_supported: true
    SandboxInfo:
      properties:
        users:
          items:
            $ref: '#/components/schemas/SandboxUser'
          type: array
          title: Users
          description: List of sandbox users which can be used to test sandbox environment
      type: object
      title: SandboxInfo
    SandboxUser:
      properties:
        username:
          title: Username
          description: Username
          examples:
          - MyUsername
          type: string
        password:
          title: Password
          description: Password
          examples:
          - MySecretPassword
          type: string
        otp:
          title: Otp
          description: One time password
          examples:
          - '123456'
          type: string
      type: object
      title: SandboxUser
    SchemeName:
      type: string
      enum:
      - CHID
      - GS1G
      - DUNS
      - BANK
      - TXID
      - CUST
      - EMPL
      - OTHC
      - DRLC
      - CUSI
      - SOSE
      - ARNU
      - CCPT
      - OTHI
      - COID
      - SREN
      - SRET
      - NIDN
      - OAUT
      - CPAN
      - BBAN
      - IBAN
      - MIBN
      - BGNR
      - PGNR
      title: SchemeName
      example: CHID
      x-enum-descriptions:
      - AlienRegistrationNumber
      - BankPartyIdentification. Unique and unambiguous assignment made by a specific
        bank or similar financial institution to identify a relationship as defined
        between the bank and its client.
      - Basic Bank Account Number. Represents a country-specific bank account number.
      - Swedish BankGiro account number. Used in domestic Swedish giro payments
      - PassportNumber
      - Clearing Identification Number
      - CountryIdentificationCode. Country authority given organisation identification
        (e.g., corporate registration number)
      - Card PAN (masked or plain)
      - CustomerIdentificationNumberIndividual. Handelsbanken-specific code
      - CorporateCustomerNumber
      - DriversLicenseNumber
      - Data Universal Numbering System
      - EmployerIdentificationNumber
      - GS1GLNIdentifier
      - International Bank Account Number (IBAN) - identification used internationally
        by financial institutions to uniquely identify the account of a customer.
      - Masked IBAN
      - NationalIdentityNumber. Number assigned by an authority to identify the national
        identity number of a person.
      - OAUTH2 access token that is owned by the PISP being also an AISP and that
        can be used in order to identify the PSU
      - OtherCorporate. Handelsbanken-specific code
      - OtherIndividual. Handelsbanken-specific code
      - Swedish PlusGiro account number. Used in domestic Swedish giro payments
      - SocialSecurityNumber
      - The SIREN number is a 9 digit code assigned by INSEE, the French National
        Institute for Statistics and Economic Studies, to identify an organisation
        in France.
      - The SIRET number is a 14 digit code assigned by INSEE, the French National
        Institute for Statistics and Economic Studies, to identify an organisation
        unit in France. It consists of the SIREN number, followed by a five digit
        classification number, to identify the local geographical unit of that entity.
      - TaxIdentificationNumber
    Service:
      type: string
      enum:
      - AIS
      - PIS
      title: Service
      example: AIS
      x-enum-descriptions:
      - Account Information Service
      - Payment Initiation Service
    ServiceLevelCode:
      type: string
      enum:
      - BKTR
      - G001
      - G002
      - G003
      - G004
      - NUGP
      - NURG
      - PRPT
      - SDVA
      - SEPA
      - SVDE
      - URGP
      - URNS
      title: ServiceLevelCode
      example: BKTR
      x-enum-descriptions:
      - 'Book Transaction: Payment through internal book transfer'
      - 'Tracked Customer Credit Transfer: Tracked Customer Credit Transfer'
      - 'Tracked Stop And Recall: Tracked Stop and Recall'
      - 'Tracked Corporate Transfer: Tracked Corporate Transfer'
      - 'Tracked Financial Institution Transfer: Tracked Financial Institution Transfer'
      - 'Non-urgent Priority Payment: Payment must be executed as a non-urgent transaction
        with priority settlement'
      - 'Non-urgent Payment: Payment must be executed as a non-urgent transaction,
        which is typically identified as an ACH or low value transaction'
      - 'EBA Priority Service: Transaction must be processed according to the EBA
        Priority Service'
      - 'Same Day Value: Payment must be executed with same day value to the creditor'
      - 'Single Euro Payments Area: Payment must be executed following the Single
        Euro Payments Area scheme'
      - "Domestic Cheque Clearing and Settlement: Payment execution following the\
        \ cheque agreement and traveller cheque agreement of the German Banking Industry\
        \ Committee (Die Deutsche Kreditwirtschaft - DK) and Deutsche Bundesbank \u2013\
        \ Scheck Verrechnung Deutschland"
      - 'Urgent Payment: Payment must be executed as an urgent transaction cleared
        through a real-time gross settlement system, which is typically identified
        as a wire or high value transaction'
      - 'Urgent Payment Net Settlement: Payment must be executed as an urgent transaction
        cleared through a real-time net settlement system, which is typically identified
        as a wire or high value transaction'
    SessionAccount:
      properties:
        uid:
          type: string
          format: uuid
          title: Uid
          description: Account identificator within the session
        identification_hash:
          type: string
          title: Identification Hash
          description: Global account identification hash
        identification_hashes:
          items:
            type: string
          type: array
          title: Identification Hashes
          description: List of possible account identification hashes. Identification
            hash is based on the account number. Some accounts may have multiple account
            numbers (e.g. IBAN and BBAN). This field contains all possible hashes.
      type: object
      required:
      - uid
      - identification_hash
      - identification_hashes
      title: SessionAccount
    SessionStatus:
      type: string
      enum:
      - INVALID
      - PENDING_AUTHORIZATION
      - RETURNED_FROM_BANK
      - AUTHORIZED
      - EXPIRED
      - CLOSED
      - REVOKED
      - CANCELLED
      title: SessionStatus
      example: INVALID
      x-enum-descriptions:
      - Session is authorised for access to account information
      - Session authorisation has been cancelled by the end-user
      - Session has been closed by the application
      - Session has expired
      - Session authorisation has failed
      - Session authorisation by the end-user is pending
      - Session authorisation has completed successfully by the end-user
      - Session has been revoked by the end-user
    StartAuthorizationRequest:
      properties:
        access:
          $ref: '#/components/schemas/Access'
          description: Scope of access to be request from ASPSP and to be confirmed
            by PSU
          examples:
          - valid_until: '2020-12-01T12:00:00.000000+00:00'
        aspsp:
          $ref: '#/components/schemas/ASPSP'
          description: ASPSP that PSU is going to be authenticated to
          examples:
          - country: FI
            name: Nordea
        state:
          type: string
          title: State
          description: Arbitrary string. Same string will be returned in query parameter
            when redirecting to the URL passed via redirect_url parameter
          examples:
          - 3a57e2d3-2e0c-4336-af9b-7fa94f0606a3
        redirect_url:
          type: string
          minLength: 1
          format: uri
          title: Redirect Url
          description: URL that PSU will be redirected to after authorization
        psu_type:
          $ref: '#/components/schemas/PSUType'
          description: PSU type used for the authorization flow. This parameter affects
            how the authorization is performed at the ASPSP (e.g., whether a personal
            or business login page is shown). A mismatch between the provided psu_type
            and the PSU's actual account type can result in authorization failures
            or the inability to see expected accounts. Since the default value depends
            on the specific connector, it is highly recommended to always provide
            this value for consistent behavior. If the application cannot determine
            the PSU type, it should be requested from the end user (PSU).
        auth_method:
          title: Auth Method
          description: Desired authorization method (in case ASPSP integration supports
            multiple). Supported methods can be obtained from the `auth_methods` field
            available in ASPSP details.
          examples:
          - methodName
          type: string
        credentials:
          title: Credentials
          description: PSU credentials (e.g., user and/or company ID). If not provided
            through the API, they will be requested from the PSU during authorization.
            Credentials can be supplied only if `auth_method` is specified; otherwise,
            a `WRONG_REQUEST_PARAMETERS` error will be returned.
          examples:
          - userId: MyUsername
          type: object
        credentials_autosubmit:
          type: boolean
          title: Credentials Autosubmit
          description: Controls whether user credentials will be autosubmitted (if
            passed). If set to `false` then credentials form will be prefilled with
            passed credentials
          default: true
        language:
          title: Language
          description: Preferred PSU language. Two-letter lowercase language code
          examples:
          - fi
          type: string
          pattern: ^[a-z]{2}$
        psu_id:
          title: Psu Id
          description: Unique identification of a PSU used by the client application.
            It can be used to match sessions of the same user. Although only hashed
            value is stored, it is recommended to use anonymised identifiers (i.e.
            digital ID instead of email or social security number). In case the parameter
            is not passed by the application, random value will be used.
          type: string
      type: object
      required:
      - access
      - aspsp
      - state
      - redirect_url
      title: StartAuthorizationRequest
    StartAuthorizationResponse:
      properties:
        url:
          type: string
          minLength: 1
          format: uri
          title: Url
          description: URL to redirect PSU to
          examples:
          - https://auth.enablebanking.com/ais/start?sessionid=73100c65-c54d-46a1-87d1-aa3effde435a
        authorization_id:
          type: string
          format: uuid
          title: Authorization Id
          description: PSU authorisation ID, a value used to identify an authorisation
            session. Please note that another session ID will used to fetch account
            data.
          examples:
          - 73100c65-c54d-46a1-87d1-aa3effde435a
        psu_id_hash:
          type: string
          title: Psu Id Hash
          description: Hashed unique identification of a PSU used by the client application.
            In case PSU ID is not passed by the client application, the hash is calculated
            based on a random value. The hash also inherits the application ID, so
            different hashes will be calculated when using the same PSU ID with different
            applications.
          examples:
          - 12427b547618d01d46cabfdd6fd7e832bb42076fb210d40e56783e0d1f4798fd
      type: object
      required:
      - url
      - authorization_id
      - psu_id_hash
      title: StartAuthorizationResponse
    StatusReasonInformation:
      properties:
        status_reason_code:
          type: string
          title: Status Reason Code
          description: ISO20022 status reason code
        status_reason_description:
          type: string
          title: Status Reason Description
          description: Status reason description
      type: object
      required:
      - status_reason_code
      - status_reason_description
      title: StatusReasonInformation
    SubmitPaymentResponse:
      properties:
        payment_id:
          type: string
          format: uuid
          title: Payment Id
          description: Payment ID
        status:
          $ref: '#/components/schemas/PaymentStatus'
          description: Current payment status
        final_status:
          type: boolean
          title: Final Status
          description: Indicates whether the payment has reached the status expected
            to be final (i.e. if the value of the field is `true`, the payment status
            is not expected to change on later requests)
        status_reason_information:
          description: Additional information about the status reason
          $ref: '#/components/schemas/StatusReasonInformation'
      type: object
      required:
      - payment_id
      - status
      - final_status
      title: SubmitPaymentResponse
    SuccessResponse:
      properties:
        message:
          type: string
          title: Message
          description: Returns "OK" in case of successful request
          default: OK
      type: object
      title: SuccessResponse
    Transaction:
      properties:
        entry_reference:
          title: Entry Reference
          description: Unique transaction identifier provided by ASPSP. This identifier
            is both unique and immutable for accounts with the same identification
            hashes and can be used for matching transactions across multiple PSU authentication
            sessions. Usually the same identifier is available for transactions in
            ASPSP's online/mobile interface and is called archive ID or similarly.
            Please note that this identifier is not globally unique and same entry
            references are likely to occur for transactions belonging to different
            accounts.
          examples:
          - '5561990681'
          type: string
        merchant_category_code:
          title: Merchant Category Code
          description: Category code conform to ISO 18245, related to the type of
            services or goods the merchant provides for the transaction
          examples:
          - '5511'
          type: string
        transaction_amount:
          $ref: '#/components/schemas/AmountType'
          description: Monetary sum of the transaction
        creditor:
          description: Identification of the party receiving funds in the transaction
          $ref: '#/components/schemas/PartyIdentification'
        creditor_account:
          description: Identification of the account on which the transaction is credited
          examples:
          - iban: FI1737631867613465
          $ref: '#/components/schemas/AccountIdentification'
        creditor_agent:
          description: Identification of the creditor agent
          $ref: '#/components/schemas/FinancialInstitutionIdentification'
        debtor:
          description: Identification of the party sending funds in the transaction
          $ref: '#/components/schemas/PartyIdentification'
        debtor_account:
          description: Identification of the account on which the transaction is debited
          examples:
          - iban: FI8638798819867751
          $ref: '#/components/schemas/AccountIdentification'
        debtor_agent:
          description: Identification of the debtor agent
          $ref: '#/components/schemas/FinancialInstitutionIdentification'
        bank_transaction_code:
          description: Allows the account servicer to correctly report a transaction,
            which in its turn will help account holders to perform their cash management
            and reconciliation operations.
          $ref: '#/components/schemas/BankTransactionCode'
        credit_debit_indicator:
          $ref: '#/components/schemas/CreditDebitIndicator'
          description: Accounting flow of the transaction
          examples:
          - CRDT
        status:
          $ref: '#/components/schemas/TransactionStatus'
          description: Available transaction status values
          examples:
          - BOOK
        booking_date:
          title: Booking Date
          description: Booking date of the transaction on the account, i.e. the date
            at which the transaction has been recorded on books
          examples:
          - '2020-01-03'
          type: string
          format: date
        value_date:
          title: Value Date
          description: Value date of the transaction on the account, i.e. the date
            at which funds become available to the account holder (in case of a credit
            transaction), or cease to be available to the account holder (in case
            of a debit transaction)
          examples:
          - '2020-01-02'
          type: string
          format: date
        transaction_date:
          title: Transaction Date
          description: 'Date used for specific purposes:

            - for card transaction: date of the transaction

            - for credit transfer: acquiring date of the transaction

            - for direct debit: receiving date of the transaction'
          examples:
          - '2020-01-01'
          type: string
          format: date
        balance_after_transaction:
          description: Funds on the account after execution of the transaction
          $ref: '#/components/schemas/AmountType'
        reference_number:
          title: Reference Number
          description: Credit transfer reference number (also known as the creditor
            reference or the structured creditor reference). The value is set when
            it is known that the transaction data contains a reference number (in
            either ISO 11649 or another format). If the format is known it is provided
            in the reference_number_schema field.
          examples:
          - RF07850352502356628678117
          type: string
        reference_number_schema:
          description: Indicates what kind of reference number is used.
          examples:
          - SDDM
          $ref: '#/components/schemas/ReferenceNumberScheme'
        remittance_information:
          title: Remittance Information
          description: Payment details. For credit transfers may contain free text,
            reference number or both at the same time (in case Extended Remittance
            Information is supported). When it is known that remittance information
            contains a reference number (either based on ISO 11649 or a local scheme),
            the reference number is also available via the `reference_number` field.
          examples:
          - - RF07850352502356628678117
            - Gift for Alex
          items:
            type: string
          type: array
        debtor_account_additional_identification:
          title: Debtor Account Additional Identification
          description: All other debtor account identifiers provided by ASPSPs
          examples:
          - identification: '12345678'
            scheme_name: CPAN
          items:
            $ref: '#/components/schemas/GenericIdentification'
          type: array
        creditor_account_additional_identification:
          title: Creditor Account Additional Identification
          description: All other creditor account identifiers provided by ASPSPs
          examples:
          - identification: '12345678'
            scheme_name: BBAN
          items:
            $ref: '#/components/schemas/GenericIdentification'
          type: array
        exchange_rate:
          description: Provides details on the currency exchange rate and contract.
          $ref: '#/components/schemas/ExchangeRate'
        note:
          title: Note
          description: The internal note made by PSU
          type: string
        transaction_id:
          title: Transaction Id
          description: Identification used for fetching transaction details.This value
            can not be used to uniquely identify transactions and may change if the
            list of transactions is retrieved again. Null if fetching transaction
            details is not supported.
          type: string
      type: object
      required:
      - transaction_amount
      - credit_debit_indicator
      - status
      title: Transaction
    TransactionStatus:
      type: string
      enum:
      - BOOK
      - CNCL
      - HOLD
      - OTHR
      - PDNG
      - RJCT
      - SCHD
      title: TransactionStatus
      example: BOOK
      x-enum-descriptions:
      - Accounted transaction (ISO20022 Closing Booked)
      - Cancelled transaction
      - Account hold
      - Transaction with unknown status or not fitting the other options
      - Instant Balance Transaction (ISO20022 Expected)
      - Rejected transaction
      - Scheduled transaction
    TransactionsFetchStrategy:
      type: string
      enum:
      - default
      - longest
      title: TransactionsFetchStrategy
      example: default
      x-enum-descriptions:
      - Fetches transactions as requested by the user by passing the `date_from` and
        `date_to` parameters to an ASPSP. If not date_from or date_to is passed, then
        meaningful defaults are used.
      - Tries to find the longest possible period of transactions and fetches transactions
        for that period. Passed date_from is also taken into account. This strategy
        may use extra ASPSP calls. date_to is ignored in this strategy.
    UnstructuredRemittanceInformation:
      items:
        type: string
      type: array
      title: UnstructuredRemittanceInformation
      description: 'Payment details. For credit transfers may contain free text, reference
        number or both at the same time (in case Extended Remittance Information is
        supported). When it is known that remittance information contains a reference
        number (either based on ISO 11649 or a local scheme), the reference number
        is also available via the `referenceNumber` field of the `Transaction` data
        structure.

        '
    Usage:
      type: string
      enum:
      - PRIV
      - ORGA
      title: Usage
      example: PRIV
      x-enum-descriptions:
      - professional account
      - private personal account
  securitySchemes:
    bearerAuth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: "In order to get access to this API you need to:\n\n- Generate\
        \ a private RSA key and a self-signed certificate;\n- Upload the certificate\
        \ to enablebanking.com and get application ID;\n- Construct JWT with the data\
        \ described below and signed with your private key;\n- Send the JWT in the\
        \ Authorization header.\n\n## Private key and certificate generation\n\n>\
        \ Generating private RSA key\n\n```bash\nopenssl genrsa -out private.key 4096\n\
        ```\n\nOpenSSL CLI can be used for generation of a private key and self-signed\
        \ certificate.\n\nMake sure you keep the private key in secret (e.g. don't\
        \ expose it to client, share\nwith anyone nor embed into mobile or other apps\
        \ intalled to user devices).\n\n> Generating self-signed certificate\n\n```bash\n\
        openssl req -new -x509 -days 365 -key private.key -out public.crt -subj \"\
        /C=FI/ST=Uusima/L=Helsinki/O=ExampleOrganisation/CN=www.bigorg.com\"\n```\n\
        \nYou should replace values under `-subj` with appropriate values.\n\nAlternatively\
        \ you can use the private key generated in your browser\n[when registering\
        \ a new application](#certificate-upload-and-application-registration).\n\
        Just choose **Generate in the browser (using SubtleCrypto) and export private\
        \ key** option\nwhen registering an application, and the private key will\
        \ be exported after the application\nhas been registered (the corresponding\
        \ certificate will be used for the app registration).\n\n## Certificate upload\
        \ and application registration\n\nTo register a new application you need to\
        \ have an account on the \n[Enable Banking Control Panel](https://enablebanking.com/cp).\
        \ You can create one by visiting\n[https://enablebanking.com/sign-in/](https://enablebanking.com/sign-in/)\n\
        and entering your email address (a one-time authentication link will be sent\
        \ to your email address).\n\nIn [the app registration form](https://enablebanking.com/cp/applications)\
        \ you will be asked to\nupload the public certificate that you created for\
        \ the application being registered.\n\nAn application can be registered to\
        \ either `PRODUCTION` (aka \"live\") or `SANDBOX` (aka \"simulation\")\nenvironment.\
        \ Applications can not be transferred from the sandbox to the production environment\
        \ and\nvice versa.\n\nApplications registered into the sandbox environment\
        \ are activated automatically. Applications\nregistered to the production\
        \ environment at first appear as pending and will be activated either \nafter\
        \ contractual formalities for the use of the API are cleared or after you\
        \ \n[whitelist your own accounts](../linked-accounts/index.md). For more information\
        \ please contact us at\n[info@enablebanking.com](mailto:info@enablebanking.com).\n\
        \n<h3 id=\"application-registration-api\">Application registration API</h3>\n\
        \nYou can also register an application sending POST request containing JSON\
        \ with the application\ndetails and public certificate to `https://enablebanking.com/api/applications`\
        \ endpoint.\n\nThe JSON body for the endpoint is to include the following\
        \ fields:\n\n- \"certificate\": Content of the certificate or public key of\
        \ the application (always required)\n- \"environment\": Environment (`SANDBOX`\
        \ or `PRODUCTION`) in which the application will operate (always required)\n\
        - \"name\": Name of the application being registered (always required)\n-\
        \ \"redirect_urls\": List of allowed redirect URLs for the application (always\
        \ required)\n- \"description\": Description of the application being registered\
        \ (required when the `environment` field is set to `PRODUCTION`)\n- \"gdpr_email\"\
        : Email address for data protection matters (required when the `environment`\
        \ field is set to `PRODUCTION`)\n- \"privacy_url\": URL of the application's\
        \ privacy policy (required when the `environment` field is set to `PRODUCTION`)\n\
        - \"terms_url\": URL of the application's terms of service (required when\
        \ the `environment` field is set to `PRODUCTION`)\n\n> App registration example\
        \ using curl\n\n```bash\ncurl -X POST -H \"Authorization: Bearer YOUR-JWT-ON-ENABLEBANKING-COM\"\
        \ \\\n  -H \"Content-Type: application/json\" \\\n  -d \"{\\\"name\\\":\\\"\
        My app\\\",\\\"certificate\\\":\\\"$(cat public.crt | tr '\\n' '|' | sed 's/|/\\\
        \\n/g')\\\",\\\"environment\\\":\\\"SANDBOX\\\",\\\"redirect_urls\\\":[\\\"\
        https://example.org/\\\"]}\" \\\n  https://enablebanking.com/api/applications\n\
        ```\n\nIn response to the app registration request, you will receive an ID\
        \ assigned to your application, which\nis to be used when [forming JTW token](#jwt-format-and-signature).\n\
        \n> Example response\n\n```json\n{\n  \"app_id\": \"cf589be3-3755-465b-a8df-a90a16a31403\"\
        \n}\n```\n\n## JWT format and signature\n\n> JWT example\n\n```bash\neyJ0eXAiOiAiSldUIiwgImFsZyI6ICJSUzI1NiIsICJraWQiOiAiY2Y1ODliZTMtMzc1NS00NjViLWE4ZGYtYTkwYTE2YTMxNDAzIn0.eyJpc3MiOiAiZW5hYmxlYmFua2luZy5jb20iLCAiYXVkIjogImFwaS50aWxpc3kuY29tIiwgImlhdCI6IDE2MDE0NTY3NjgsICJleHAiOiAxNjAxNTQzMTY4fQ.daO3ENSYIA3ud7Ay7uGQ0xxqq9r4_WLcM5SbrN_6_fqsFZXFdoGQA5nKiyP8Ot4nWdYcZvaNWxEAOIodUFndOP8pjihF9-rMXuNGEjde1cq2WjYzKwiIeodUej8okDWdB--szcgurzGMd8RRMjqr951PWqnXS-PbrRsavDHp8l2q4YBjh2m80nRruKnQCAn0dtm4A5G9rZaEowo9z-c8HJU101jKddyOpHhl9UvxVrERzHtyO4LdidiP4rP1hmaVMWybSbcIMI_h30qjqWP21kYRH9ENITTttbf0uZIa8s74jKYxNIdiiDyRaq9WjoPolrHI_ZxcMjp8mmCKX-N-1w\n\
        ```\n\nYou can read more about JWT here: https://jwt.io/introduction/\n\n\
        JWT header must contain following fields:\n\n- \"typ\": \"JWT\" (always the\
        \ same)\n- \"alg\": \"RS256\" (always the same, only RS256 is supported)\n\
        - \"kid\": \"<application_id>\" (application id obtained after certificate\
        \ upload)\n\nJWT body must contain following fields:\n\n- \"iss\": \"enablebanking.com\"\
        \ (always the same)\n- \"aud\": \"api.enablebanking.com\" (always the same,\
        \ formerly had to be \"api.tilisy.com\", which is now deprecated)\n- \"iat\"\
        : 1601456603 (timestamp when the token is being created)\n- \"exp\": 1601460262\
        \ (timestamp when the token expires)\n\nMaximum allowed time-to-live for token\
        \ is 86400 seconds (24 hours). Tokens created with longer\nTTL are not accepted\
        \ by the API.\n\n> Check code samples in C#, Node.js, PHP, Python and Ruby\
        \ in [our GitHub repository](https://github.com/enablebanking/enablebanking-api-samples)\n\
        \n```\nhttps://github.com/enablebanking/enablebanking-api-samples\n```\n\n\
        ## Send request with JWT provided\n\n> Example request\n\n```http\nGET https://api.enablebanking.com/application\
        \ HTTP/1.1\nHost: api.enablebanking.com\nAuthorization: Bearer eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJSUzI1NiIsICJraWQiOiAiY2Y1ODliZTMtMzc1NS00NjViLWE4ZGYtYTkwYTE2YTMxNDAzIn0.eyJpc3MiOiAiZW5hYmxlYmFua2luZy5jb20iLCAiYXVkIjogImFwaS5lbmFibGViYW5raW5nLmNvbSIsICJpYXQiOiAxNjAxNDU2NzY4LCAiZXhwIjogMTYwMTU0MzE2OH0.daO3ENSYIA3ud7Ay7uGQ0xxqq9r4_WLcM5SbrN_6_fqsFZXFdoGQA5nKiyP8Ot4nWdYcZvaNWxEAOIodUFndOP8pjihF9-rMXuNGEjde1cq2WjYzKwiIeodUej8okDWdB--szcgurzGMd8RRMjqr951PWqnXS-PbrRsavDHp8l2q4YBjh2m80nRruKnQCAn0dtm4A5G9rZaEowo9z-c8HJU101jKddyOpHhl9UvxVrERzHtyO4LdidiP4rP1hmaVMWybSbcIMI_h30qjqWP21kYRH9ENITTttbf0uZIa8s74jKYxNIdiiDyRaq9WjoPolrHI_ZxcMjp8mmCKX-N-1w\n\
        ```\n\nIn order to authenticate your application, you need to provide JWT\
        \ in the \"Authorization\" header\nof your request.\n"
security:
- bearerAuth: []
servers:
- url: https://api.enablebanking.com
- url: https://api.tilisy.com
  description: (deprecated)