openapi-to-rust 0.1.13

Generate strongly-typed Rust structs, HTTP clients, and SSE streaming clients from OpenAPI 3.1 specifications
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
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
openapi: 3.1.0
info:
  contact:
    email: support@lithic.com
  description: >
    The Lithic Developer API is designed to provide a predictable programmatic interface for accessing your
    Lithic account through an API and transaction webhooks.

    Note that your API key is a secret and should be treated as such. Don't share it with anyone, including
    us. We will never ask you for it.
  termsOfService: https://lithic.com/legal/terms
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.txt
  title: Lithic Developer API
  version: 1.0.0
servers:
  - description: Sandbox environment that provides key functionality mirroring production
    url: https://sandbox.lithic.com
tags:
  - name: 3DS
  - name: Account
  - name: Account Holder
  - name: Auth Stream Access (ASA)
  - name: Auth Rules
  - name: Balance
  - name: Book Transfer
  - name: Card
  - name: Card Bulk Orders
  - name: Credit Product
  - name: Chargeback
  - name: Event
  - name: External Bank Account
  - name: External Payments
  - name: Financial Account
  - name: Fraud Report
  - name: Funding Events
  - name: Hold
  - name: Managed Disputes
  - name: Management Operations
  - name: Network Program
  - name: Payment
  - name: Responder Endpoints
  - name: Settlement Report
  - name: Statements
  - name: Status
  - name: Tokenization
  - name: Transaction
  - name: Transfer Limits
paths:
  /v1/account_holders:
    get:
      description: Get a list of individual or business account holders and their KYC or KYB evaluation status.
      operationId: getAccountHolders
      parameters:
        - description: If applicable, represents the external_id associated with the account_holder.
          example: 00000000-0000-0000-0000-000000000001
          in: query
          name: external_id
          schema:
            format: uuid
            type: string
        - description: The number of account_holders to limit the response to.
          example: 10
          in: query
          name: limit
          schema:
            type: integer
        - description: >-
            (Individual Account Holders only) The first name of the account holder. The query is case
            insensitive and supports partial matches.
          example: John
          in: query
          name: first_name
          schema:
            type: string
        - description: >-
            (Individual Account Holders only) The last name of the account holder. The query is case
            insensitive and supports partial matches.
          example: Appleseed
          in: query
          name: last_name
          schema:
            type: string
        - description: >-
            (Business Account Holders only) The legal business name of the account holder. The query is case
            insensitive and supports partial matches.
          example: Busy Business, Inc.
          in: query
          name: legal_business_name
          schema:
            type: string
        - description: Phone number of the account holder. The query must be an exact match.
          example: '+15555555555'
          in: query
          name: phone_number
          schema:
            type: string
        - description: Email address of the account holder. The query must be an exact match, case insensitive.
          example: example@domain.com
          in: query
          name: email
          schema:
            type: string
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/startingAfter'
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          content:
            application/json:
              examples:
                getAccountHoldersResponse:
                  value:
                    data:
                      - account_token: 6b67b340-ed11-4463-a33d-0d7f7fdcd28c
                        business_account_token: 00000000-0000-0000-0000-000000000000
                        created: '2024-01-11T19:50:36.105448'
                        email: john@appleseed.com
                        exemption_type: AUTHORIZED_USER
                        external_id: '+15555555555'
                        individual:
                          address:
                            address1: 123 Main Street
                            city: New York
                            country: USA
                            postal_code: '10128'
                            state: NY
                          dob: '2000-01-01'
                          email: john@appleseed.com
                          first_name: John
                          last_name: Appleseed
                          phone_number: '+15555555555'
                          entity_token: 49c978db-20c4-46d8-9db4-b0ef28c03533
                        phone_number: '+15555555555'
                        status: ACCEPTED
                        token: b68b7424-aa69-4cbc-a946-30d90181b621
                        user_type: INDIVIDUAL
                        verification_application:
                          created: '2024-01-11T19:58:24.821848'
                          status: ACCEPTED
                          status_reasons: []
                          updated: '2024-01-11T19:58:24.821848'
                      - account_token: 732f7328-a2d7-4281-a264-e8cb5af8d392
                        business_account_token: 00000000-0000-0000-0000-000000000000
                        business_entity:
                          address:
                            address1: 22 Street North
                            city: New York
                            country: USA
                            postal_code: '10004'
                            state: NY
                          dba_business_name: Busy Business, Inc.
                          government_id: 98-7654321
                          legal_business_name: Busy Business, Inc.
                          parent_company: Example company
                          phone_numbers:
                            - '+15555555555'
                          entity_token: f360a3c0-24e6-4852-ae82-27916a5c4e86
                        control_person:
                          address:
                            address1: 451 New Forest Way
                            city: Springfield
                            country: USA
                            postal_code: '68022'
                            state: IL
                          dob: '1991-03-08T08:00:00Z'
                          email: john@busybusiness.com
                          first_name: John
                          last_name: Appleseed
                          phone_number: '+15555555555'
                          entity_token: 9d657ba0-7c8a-4946-a596-f99d978a4137
                        created: '2024-01-11T19:50:36.105449'
                        exemption_type: AUTHORIZED_USER
                        external_id: 851030f1-9b7b-4939-8ac9-161bd972d26f
                        naics_code: '541512'
                        token: fa68ed76-9d02-4d45-8a3f-782f3b6a8b3f
                        user_type: BUSINESS
                        verification_application:
                          created: '2024-01-11T19:50:36.105449'
                          status: PENDING_REVIEW
                          status_reasons: []
                          updated: '2024-01-11T19:50:36.105449'
                    has_more: false
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/AccountHolder'
                    type: array
                  has_more:
                    description: Whether there are more accounts to be retrieved.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get a list of individual or business account holders
      tags:
        - Account Holder
    post:
      description: >-
        Create an account holder and initiate the appropriate onboarding workflow.  Account holders and
        accounts have a 1:1 relationship. When an account holder is successfully created an associated account
        is also created.

        All calls to this endpoint will return a synchronous response. The response time will depend on the
        workflow. In some cases, the response may indicate the workflow is under review or further action will
        be needed to complete the account creation process.

        This endpoint can only be used on accounts that are part of the program that the calling API key
        manages.
      operationId: postAccountHolders
      requestBody:
        content:
          application/json:
            examples:
              kybRequest:
                summary: Create an account holder with KYB workflow
                value:
                  beneficial_owner_individuals:
                    - address:
                        address1: 300 Normal Forest Way
                        city: Portland
                        country: USA
                        postal_code: '90210'
                        state: OR
                      dob: '1991-03-08T08:00:00Z'
                      email: tim@left-earth.com
                      first_name: Timmy
                      government_id: 211-23-1412
                      last_name: Turner
                      phone_number: '+15555555555'
                  business_entity:
                    address:
                      address1: 123 Old Forest Way
                      city: Omaha
                      country: USA
                      postal_code: '61022'
                      state: NE
                    dba_business_name: Example Business Solutions
                    government_id: 12-3456789
                    legal_business_name: Busy Business, Inc.
                    phone_numbers:
                      - '+15555555555'
                  control_person:
                    address:
                      address1: 451 New Forest Way
                      city: Springfield
                      country: USA
                      postal_code: '68022'
                      state: IL
                    birthdate: '1980-04-12'
                    dob: '1991-03-08T08:00:00Z'
                    email: tom@middle-pluto.com
                    first_name: Tom
                    government_id: 111-23-1412
                    last_name: Timothy
                    phone_number: '+15555555555'
                  kyb_passed_timestamp: '2022-03-08T08:00:00Z'
                  naics_code: '541512'
                  nature_of_business: Software company selling solutions to the restaurant industry
                  tos_timestamp: '2022-03-08T08:00:00Z'
                  website_url: https://www.mybusiness.com
                  workflow: KYB_BYO
              kybDelegatedRequest:
                summary: Create an account holder with KYB_DELEGATED workflow
                value:
                  business_entity:
                    address:
                      address1: 123 Old Forest Way
                      city: Omaha
                      country: USA
                      postal_code: '61022'
                      state: NE
                    legal_business_name: Busy Business, Inc.
              kycExemptRequest:
                summary: Create an account holder with KYC Exempt workflow
                value:
                  address:
                    address1: 123 Old Forest Way
                    city: Omaha
                    country: USA
                    postal_code: '68022'
                    state: NE
                  business_account_token: e87db14a-4abf-4901-adad-5d5c9f46aff2
                  email: tom@middle-earth.com
                  first_name: Tom
                  kyc_exemption_type: AUTHORIZED_USER
                  last_name: Bombadil
                  phone_number: '+15555555555'
                  workflow: KYC_EXEMPT
              kycRequest:
                summary: Create an account holder with KYC workflow
                value:
                  individual:
                    address:
                      address1: 123 Old Forest Way
                      city: Omaha
                      country: USA
                      postal_code: '68022'
                      state: NE
                    dob: '1991-03-08 08:00:00'
                    email: tom@middle-earth.com
                    first_name: Tom
                    government_id: 111-23-1412
                    last_name: Bombadil
                    phone_number: '+15555555555'
                  tos_timestamp: '2022-03-08T08:00:00Z'
                  workflow: KYC_BASIC
            schema:
              oneOf:
                - $ref: '#/components/schemas/Kyb'
                - $ref: '#/components/schemas/KybDelegated'
                - $ref: '#/components/schemas/Kyc'
                - $ref: '#/components/schemas/KycExempt'
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                acceptedEvaluationResponse:
                  summary: Accepted KYC/KYB evaluation response
                  value:
                    account_token: b68b7424-aa69-4cbc-a946-30d90181b621
                    status: ACCEPTED
                    status_reasons: []
                    token: 12345678-aa69-4cbc-a946-30d90181b621
                    created: '2024-09-16T20:13:41.865274'
                pendingResubmitResponse:
                  summary: Pending resubmit KYC evaluation response
                  value:
                    account_token: b68b7424-aa69-4cbc-a946-30d90181b621
                    status: PENDING_RESUBMIT
                    status_reasons:
                      - NAME_VERIFICATION_FAILURE
                    token: 12345678-aa69-4cbc-a946-30d90181b621
                    created: '2024-09-16T20:13:41.865274'
                pendingKYBReviewResponse:
                  summary: Pending review response for a KYB_BASIC request
                  value:
                    account_token: 6016af53-87d4-42aa-b021-0170644d6458
                    status: PENDING_REVIEW
                    status_reasons:
                      - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
                    token: 12345678-aa69-4cbc-a946-30d90181b621
                    created: '2024-09-16T20:13:41.865274'
                    required_documents:
                      - entity_token: 48afea0a-38b0-44e4-aaa7-c2b5413da9d3
                        valid_documents:
                          - EIN_LETTER
                          - TAX_RETURN
                          - CERTIFICATE_OF_GOOD_STANDING
                          - ARTICLES_OF_INCORPORATION
                          - ARTICLES_OF_ORGANIZATION
                          - CERTIFICATE_OF_FORMATION
                          - BYLAWS
                          - GOVERNMENT_BUSINESS_LICENSE
                          - PARTNERSHIP_AGREEMENT
                          - BANK_STATEMENT
                          - UTILITY_BILL_STATEMENT
                        status_reasons:
                          - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
              schema:
                properties:
                  account_token:
                    description: Globally unique identifier for the account.
                    format: uuid
                    type: string
                  created:
                    description: Timestamp of when the account holder was created.
                    format: date-time
                    type: string
                  external_id:
                    description: >-
                      Customer-provided token that indicates a relationship with an object outside of the
                      Lithic ecosystem.
                    type: string
                  status:
                    description: |
                      KYC and KYB evaluation states.

                      Note:
                      * `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
                    enum:
                      - ACCEPTED
                      - PENDING_REVIEW
                      - PENDING_DOCUMENT
                      - PENDING_RESUBMIT
                      - REJECTED
                    type: string
                  status_reasons:
                    description: Reason for the evaluation status.
                    items:
                      $ref: '#/components/schemas/status-reasons'
                    type: array
                  required_documents:
                    description: >-
                      Only present for "KYB_BASIC" workflow. A list of documents required for the account
                      holder to be approved.
                    type: array
                    items:
                      $ref: '#/components/schemas/required-document'
                  token:
                    description: Globally unique identifier for the account holder.
                    format: uuid
                    type: string
                required:
                  - account_token
                  - status
                  - status_reasons
                  - token
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create an individual or business account holder
      tags:
        - Account Holder
  /v1/account_holders/{account_holder_token}:
    get:
      description: Get an Individual or Business Account Holder and/or their KYC or KYB evaluation status.
      operationId: getAccountHolder
      parameters:
        - $ref: '#/components/parameters/accountHolderTokenPath'
      responses:
        '200':
          content:
            application/json:
              examples:
                kycAcceptedReview:
                  summary: Accepted KYC evaluation response
                  value:
                    token: b68b7424-aa69-4cbc-a946-30d90181b621
                    account_token: 6b67b340-ed11-4463-a33d-0d7f7fdcd28c
                    business_account_token: 5310469f-3a16-44ce-89f8-cdc4446fcfdf
                    external_id: ''
                    created: '2024-01-11T19:50:36.105449'
                    user_type: INDIVIDUAL
                    verification_application:
                      created: '2024-01-11T19:50:36.105449'
                      updated: '2024-01-11T19:50:36.105449'
                      status: ACCEPTED
                      status_reasons: []
                    individual:
                      address:
                        address1: 451 New Forest Way
                        city: Springfield
                        state: IL
                        postal_code: '68022'
                        country: USA
                      dob: '1991-03-08T08:00:00Z'
                      email: john@appleseed.com
                      first_name: John
                      last_name: Appleseed
                      phone_number: '+15555555555'
                      entity_token: fd771a07-c5c2-42f3-a53c-a6c79c6c0d07
                    email: john@appleseed.com
                    phone_number: '+15555555555'
                    status: ACCEPTED
                kybBasicPendingReview:
                  summary: Pending review submission for a KYB_BASIC account_holder
                  value:
                    token: fa68ed76-9d02-4d45-8a3f-782f3b6a8b3f
                    account_token: 732f7328-a2d7-4281-a264-e8cb5af8d392
                    business_account_token: 00000000-0000-0000-0000-000000000000
                    external_id: ''
                    created: '2024-01-11T19:50:36.105449'
                    user_type: BUSINESS
                    verification_application:
                      created: '2024-01-11T19:50:36.105449'
                      updated: '2024-01-11T19:50:36.105449'
                      status: PENDING_REVIEW
                      status_reasons:
                        - ADDRESS_VERIFICATION_FAILURE
                    required_documents:
                      - entity_token: 83cf25ae-c14f-4d10-9fa2-0119f36c7286
                        status_reasons:
                          - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
                        valid_documents:
                          - EIN_LETTER
                          - TAX_RETURN
                          - CERTIFICATE_OF_GOOD_STANDING
                          - ARTICLES_OF_INCORPORATION
                          - ARTICLES_OF_ORGANIZATION
                          - CERTIFICATE_OF_FORMATION
                          - BYLAWS
                          - GOVERNMENT_BUSINESS_LICENSE
                          - PARTNERSHIP_AGREEMENT
                          - BANK_STATEMENT
                          - UTILITY_BILL_STATEMENT
                    business_entity:
                      address:
                        address1: 22 Street North
                        city: New York
                        state: NY
                        postal_code: '10004'
                        country: USA
                      dba_business_name: Busy Business, Inc.
                      government_id: 98-7654321
                      legal_business_name: Busy Business, Inc.
                      parent_company: Example company
                      phone_numbers:
                        - '+15555555555'
                      entity_token: 05cc03c9-dea6-4d17-a11e-0f3ea57d51a5
                    control_person:
                      address:
                        address1: 451 New Forest Way
                        city: Springfield
                        state: IL
                        postal_code: '68022'
                        country: USA
                      dob: '1991-03-08T08:00:00Z'
                      email: john@appleseed.com
                      first_name: John
                      last_name: Appleseed
                      phone_number: '+15555555555'
                      entity_token: fd771a07-c5c2-42f3-a53c-a6c79c6c0d07
              schema:
                $ref: '#/components/schemas/AccountHolder'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get an individual or business account holder
      tags:
        - Account Holder
    patch:
      description: >-
        Update the information associated with a particular account holder (including business owners and
        control persons associated to a business account).

        If Lithic is performing KYB or KYC and additional verification is required we will run the
        individual's or business's updated information again and return whether the status is accepted or
        pending (i.e., further action required).

        All calls to this endpoint will return a synchronous response. The response time will depend on the
        workflow. In some cases, the response may indicate the workflow is under review or further action will
        be needed to complete the account creation process.

        This endpoint can only be used on existing accounts that are part of the program that the calling API
        key manages.
      operationId: patchAccountHolder
      parameters:
        - $ref: '#/components/parameters/accountHolderToken'
      requestBody:
        content:
          application/json:
            examples:
              kybRequest:
                summary: Update a business account holder with KYB workflow
                value:
                  business_entity:
                    entity_token: 83cf25ae-c14f-4d10-9fa2-0119f36c7286
                    address:
                      postal_code: '61023'
                  control_person:
                    entity_token: fd771a07-c5c2-42f3-a53c-a6c79c6c0d07
                    address:
                      postal_code: '68023'
                  naics_code: '541512'
                  website_url: https://www.mynewbusiness.com
              kycExemptRequest:
                summary: Update an individual account holder with KYC workflow
                value:
                  individual:
                    entity_token: fd771a07-c5c2-42f3-a53c-a6c79c6c0d07
                    address:
                      postal_code: '68023'
                    phone_number: '+15555555555'
              kycRequest:
                summary: Update an individual account holder with KYC workflow
                value:
                  individual:
                    entity_token: fd771a07-c5c2-42f3-a53c-a6c79c6c0d07
                    address:
                      postal_code: '68023'
                    government_id: 111-23-1413
            schema:
              anyOf:
                - $ref: '#/components/schemas/kyb-patch-request'
                - $ref: '#/components/schemas/kyc-patch-request'
                - $ref: '#/components/schemas/patch-request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/kyb-kyc-patch-response'
                  - $ref: '#/components/schemas/patch-response'
          description: OK
        '404':
          $ref: '#/components/responses/NotFound'
      summary: Update account holder information and possibly resubmit for evaluation
      tags:
        - Account Holder
  /v1/account_holders/{account_holder_token}/documents:
    get:
      description: >
        Retrieve the status of account holder document uploads, or retrieve the upload URLs to process your
        image uploads.


        Note that this is not equivalent to checking the status of the KYC evaluation overall (a document may
        be successfully uploaded but not be sufficient for KYC to pass).


        In the event your upload URLs have expired, calling this endpoint will refresh them.

        Similarly, in the event a previous account holder document upload has failed, you can use this
        endpoint to get a new upload URL for the failed image upload.


        When a new document upload is generated for a failed attempt, the response will show an additional
        entry in the `required_document_uploads` list

        in a `PENDING` state for the corresponding `image_type`.
      operationId: getAccountHolderDocuments
      parameters:
        - $ref: '#/components/parameters/accountHolderTokenPath'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/document'
                    type: array
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get account holder document uploads
      tags:
        - Account Holder
    post:
      description: >
        Use this endpoint to identify which type of supported government-issued documentation you will upload
        for further verification.

        It will return two URLs to upload your document images to - one for the front image and one for the
        back image.


        This endpoint is only valid for evaluations in a `PENDING_DOCUMENT` state.


        Supported file types include `jpg`, `png`, and `pdf`. Each file must be less than 15 MiB. Once both
        required uploads have been successfully completed, your document will be run through KYC verification.


        If you have registered a webhook, you will receive evaluation updates for any document submission
        evaluations, as well as for any failed document uploads.


        Two document submission attempts are permitted via this endpoint before a `REJECTED` status is
        returned and the account creation process is ended. Currently only one type of

        account holder document is supported per KYC verification.
      operationId: postAccountHolderDocuments
      parameters:
        - $ref: '#/components/parameters/accountHolderTokenPath'
      requestBody:
        content:
          application/json:
            examples:
              recieveLinkForDriversLicense:
                summary: Initiate account holder document upload
                value:
                  entity_token: 83cf25ae-c14f-4d10-9fa2-0119f36c7286
                  document_type: EIN_LETTER
            schema:
              properties:
                document_type:
                  description: The type of document to upload
                  enum:
                    - EIN_LETTER
                    - TAX_RETURN
                    - OPERATING_AGREEMENT
                    - CERTIFICATE_OF_FORMATION
                    - DRIVERS_LICENSE
                    - PASSPORT
                    - PASSPORT_CARD
                    - CERTIFICATE_OF_GOOD_STANDING
                    - ARTICLES_OF_INCORPORATION
                    - ARTICLES_OF_ORGANIZATION
                    - BYLAWS
                    - GOVERNMENT_BUSINESS_LICENSE
                    - PARTNERSHIP_AGREEMENT
                    - SS4_FORM
                    - BANK_STATEMENT
                    - UTILITY_BILL_STATEMENT
                    - SSN_CARD
                    - ITIN_LETTER
                    - FINCEN_BOI_REPORT
                  type: string
                entity_token:
                  description: Globally unique identifier for the entity.
                  type: string
                  format: uuid
              required:
                - document_type
                - entity_token
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/document'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Initiate account holder document upload
      tags:
        - Account Holder
  /v1/account_holders/{account_holder_token}/documents/{document_token}:
    get:
      description: >
        Check the status of an account holder document upload, or retrieve the upload URLs to process your
        image uploads.


        Note that this is not equivalent to checking the status of the KYC evaluation overall (a document may
        be successfully uploaded but not be sufficient for KYC to pass).


        In the event your upload URLs have expired, calling this endpoint will refresh them.

        Similarly, in the event a document upload has failed, you can use this endpoint to get a new upload
        URL for the failed image upload.


        When a new account holder document upload is generated for a failed attempt, the response will show an
        additional entry in the `required_document_uploads` array

        in a `PENDING` state for the corresponding `image_type`.
      operationId: getAccountHolderDocumentByToken
      parameters:
        - $ref: '#/components/parameters/accountHolderTokenPath'
        - $ref: '#/components/parameters/documentToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/document'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get account holder document upload status
      tags:
        - Account Holder
  /v1/account_holders/{account_holder_token}/entities:
    post:
      description: >-
        Create a new beneficial owner individual or replace the control person entity on an existing KYB
        account holder. This endpoint is only applicable for account holders enrolled through a KYB workflow
        with the Persona KYB provider.

        A new control person can only replace the existing one. A maximum of 4 beneficial owners can be
        associated with an account holder.
      operationId: postAccountHolderEntities
      parameters:
        - $ref: '#/components/parameters/accountHolderTokenPath'
      requestBody:
        content:
          application/json:
            examples:
              createBeneficialOwner:
                summary: Create a new beneficial owner individual
                value:
                  type: BENEFICIAL_OWNER_INDIVIDUAL
                  first_name: Timmy
                  last_name: Turner
                  dob: '1991-03-08T08:00:00Z'
                  email: tim@left-earth.com
                  phone_number: '+15555555555'
                  government_id: 211-23-1412
                  address:
                    address1: 300 Normal Forest Way
                    city: Portland
                    country: USA
                    postal_code: '90210'
                    state: OR
              replaceControlPerson:
                summary: Replace the existing control person entity
                value:
                  type: CONTROL_PERSON
                  first_name: Tom
                  last_name: Timothy
                  dob: '1991-03-08T08:00:00Z'
                  email: tom@middle-pluto.com
                  phone_number: '+15555555555'
                  government_id: 111-23-1412
                  address:
                    address1: 451 New Forest Way
                    city: Springfield
                    country: USA
                    postal_code: '68022'
                    state: IL
            schema:
              $ref: '#/components/schemas/create-entity-request'
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                acceptedResponse:
                  summary: Accepted entity creation response
                  value:
                    account_holder_token: fa68ed76-9d02-4d45-8a3f-782f3b6a8b3f
                    status: ACCEPTED
                    status_reasons: []
                    token: 49c978db-20c4-46d8-9db4-b0ef28c03533
                    created: '2024-09-16T20:13:41.865274'
                    required_documents: []
                pendingReviewResponse:
                  summary: Pending review entity creation response
                  value:
                    account_holder_token: fa68ed76-9d02-4d45-8a3f-782f3b6a8b3f
                    status: PENDING_REVIEW
                    status_reasons:
                      - NAME_VERIFICATION_FAILURE
                    token: 49c978db-20c4-46d8-9db4-b0ef28c03533
                    created: '2024-09-16T20:13:41.865274'
                    required_documents: []
              schema:
                $ref: '#/components/schemas/create-entity-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create a new beneficial owner individual or replace the existing control person entity
      tags:
        - Account Holder
  /v1/account_holders/{account_holder_token}/entities/{entity_token}:
    delete:
      description: >-
        Deactivate a beneficial owner individual on an existing KYB account holder. Only beneficial owner
        individuals can be deactivated.
      operationId: deleteAccountHolderEntity
      parameters:
        - $ref: '#/components/parameters/accountHolderTokenPath'
        - $ref: '#/components/parameters/entityTokenPath'
      responses:
        '200':
          content:
            application/json:
              examples:
                deactivatedEntityResponse:
                  summary: Deactivated beneficial owner individual
                  value:
                    account_holder_token: fa68ed76-9d02-4d45-8a3f-782f3b6a8b3f
                    token: 49c978db-20c4-46d8-9db4-b0ef28c03533
                    type: BENEFICIAL_OWNER_INDIVIDUAL
                    status: INACTIVE
                    first_name: Timmy
                    last_name: Turner
                    email: tim@left-earth.com
                    phone_number: '+15555555555'
                    dob: '1991-03-08T08:00:00Z'
                    address:
                      address1: 300 Normal Forest Way
                      city: Portland
                      country: USA
                      postal_code: '90210'
                      state: OR
              schema:
                $ref: '#/components/schemas/entity-response'
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Deactivate a beneficial owner individual
      tags:
        - Account Holder
  /v1/accounts:
    get:
      description: |
        List account configurations.
      operationId: getAccounts
      parameters:
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              examples:
                getAccounts:
                  summary: List accounts
                  value:
                    data:
                      - cardholder_currency: USD
                        spend_limit:
                          daily: 1000
                          lifetime: 10000
                          monthly: 4000
                        state: ACTIVE
                        token: b68b7424-aa69-4cbc-a946-30d90181b621
                        created: '2024-01-11T19:50:36Z'
                    has_more: false
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/AccountConfiguration'
                    type: array
                  has_more:
                    description: Whether there are more accounts to be retrieved.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List accounts
      tags:
        - Account
  /v1/accounts/{account_token}:
    get:
      description: Get account configuration such as spend limits.
      operationId: getAccountByToken
      parameters:
        - $ref: '#/components/parameters/accountToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountConfiguration'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get account
      tags:
        - Account
    patch:
      description: >
        Update account configuration such as state or spend limits. Can only be run on accounts that are part
        of the program managed by this API key.

        Accounts that are in the `PAUSED` state will not be able to transact or create new cards.
      operationId: patchAccountByToken
      parameters:
        - $ref: '#/components/parameters/accountToken'
      requestBody:
        content:
          application/json:
            examples:
              setDailySpendLimit:
                summary: Update daily spend limit
                value:
                  daily_spend_limit: 1000
            schema:
              properties:
                daily_spend_limit:
                  default: 125000
                  description: >
                    Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a $1,000
                    limit).

                    By default the daily spend limit is set to $1,250.
                  minimum: 0
                  type: integer
                lifetime_spend_limit:
                  default: 0
                  description: >
                    Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a $1,000
                    limit). Once this limit is reached, no transactions will be accepted on any card created
                    for this account until the limit is updated.

                    Note that a spend limit of 0 is effectively no limit, and should only be used to reset or
                    remove a prior limit. Only a limit of 1 or above will result in declined transactions due
                    to checks against the account limit. This behavior differs from the daily spend limit and
                    the monthly spend limit.
                  minimum: 0
                  type: integer
                monthly_spend_limit:
                  default: 500000
                  description: >
                    Amount (in cents) for the account's monthly spend limit (e.g. 100000 would be a $1,000
                    limit).

                    By default the monthly spend limit is set to $5,000.
                  minimum: 0
                  type: integer
                state:
                  description: Account states.
                  enum:
                    - ACTIVE
                    - PAUSED
                    - CLOSED
                  type: string
                substatus:
                  description: >
                    Account state substatus values:

                    * `FRAUD_IDENTIFIED` - The account has been recognized as being created or used with
                    stolen or fabricated identity information, encompassing both true identity theft and
                    synthetic identities.

                    * `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
                    unauthorized access or fraudulent transactions, necessitating further investigation.

                    * `RISK_VIOLATION` - The account has been involved in deliberate misuse by the legitimate
                    account holder. Examples include disputing valid transactions without cause, falsely
                    claiming non-receipt of goods, or engaging in intentional bust-out schemes to exploit
                    account services.

                    * `END_USER_REQUEST` - The account holder has voluntarily requested the closure of the
                    account for personal reasons. This encompasses situations such as bankruptcy, other
                    financial considerations, or the account holder's death.

                    * `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to business
                    strategy, risk management, inactivity, product changes, regulatory concerns, or violations
                    of terms and conditions.

                    * `NOT_ACTIVE` - The account has not had any transactions or payment activity within a
                    specified period. This status applies to accounts that are paused or closed due to
                    inactivity.

                    * `INTERNAL_REVIEW` - The account is temporarily paused pending further internal review.
                    In future implementations, this status may prevent clients from activating the account via
                    APIs until the review is completed.

                    * `OTHER` - The reason for the account's current status does not fall into any of the
                    above categories. A comment should be provided to specify the particular reason.
                  enum:
                    - FRAUD_IDENTIFIED
                    - SUSPICIOUS_ACTIVITY
                    - RISK_VIOLATION
                    - END_USER_REQUEST
                    - ISSUER_REQUEST
                    - NOT_ACTIVE
                    - INTERNAL_REVIEW
                    - OTHER
                  type: string
                comment:
                  description: Additional context or information related to the account.
                  type: string
                verification_address:
                  description: >-
                    Address used during Address Verification Service (AVS) checks during transactions if
                    enabled via Auth Rules. This field is deprecated as AVS checks are no longer supported by
                    Auth Rules. The field will be removed from the schema in a future release.
                  properties:
                    address1:
                      type: string
                    address2:
                      type: string
                    city:
                      type: string
                    country:
                      type: string
                    postal_code:
                      type: string
                    state:
                      type: string
                  type: object
                  deprecated: true
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                exampleResponse:
                  value:
                    cardholder_currency: USD
                    spend_limit:
                      daily: 1000
                      lifetime: 100000
                      monthly: 40000
                    state: ACTIVE
                    token: ecbd1d58-0299-48b3-84da-6ed7f5bf9ec1
                    created: '2024-01-11T19:50:36Z'
                    verification_address:
                      address1: 5 Broad Street
                      address2: ''
                      city: New York
                      country: USA
                      postal_code: '10001'
                      state: NY
              schema:
                $ref: '#/components/schemas/AccountConfiguration'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update account
      tags:
        - Account
  /v1/accounts/{account_token}/spend_limits:
    get:
      description: >-
        Get an Account's available spend limits, which is based on the spend limit configured on the Account
        and the amount already spent over the spend limit's duration. For example, if the Account has a daily
        spend limit of $1000 configured, and has spent $600 in the last 24 hours, the available spend limit
        returned would be $400.
      operationId: getAccountSpendLimits
      parameters:
        - $ref: '#/components/parameters/accountToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountSpendLimits'
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get account's available spend limits
      tags:
        - Account
  /v2/auth_rules:
    post:
      summary: Create a new rule
      description: Creates a new V2 Auth rule in draft mode
      tags:
        - Auth Rules
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/create-auth-rule-request'
      responses:
        '201':
          description: Auth Rule Created
          $ref: '#/components/responses/AuthRule'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
    get:
      summary: List rules
      description: Lists V2 Auth rules
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/EndingBefore'
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/StartingAfter'
        - name: card_token
          in: query
          description: Only return Auth Rules that are bound to the provided card token.
          schema:
            type: string
            format: uuid
          required: false
        - name: account_token
          in: query
          description: Only return Auth Rules that are bound to the provided account token.
          schema:
            type: string
            format: uuid
          required: false
        - name: business_account_token
          in: query
          description: Only return Auth Rules that are bound to the provided business account token.
          schema:
            type: string
            format: uuid
          required: false
        - name: scope
          in: query
          description: Only return Auth Rules that are bound to the provided scope.
          schema:
            enum:
              - PROGRAM
              - ACCOUNT
              - BUSINESS_ACCOUNT
              - CARD
              - ANY
            type: string
        - name: event_stream
          in: query
          description: >-
            Deprecated: Use event_streams instead. Only return Auth rules that are executed during the
            provided event stream.
          deprecated: true
          schema:
            $ref: '#/components/schemas/event-stream'
          required: false
        - name: event_streams
          in: query
          description: >-
            Only return Auth rules that are executed during any of the provided event streams. If
            event_streams and event_stream are specified, the values will be combined.
          schema:
            type: array
            items:
              $ref: '#/components/schemas/event-stream'
          required: false
      responses:
        '200':
          description: Auth Rules
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/auth-rule'
                    type: array
                  has_more:
                    description: >-
                      Indicates whether there are more Auth Rules to be retrieved by paging through the
                      results.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}:
    get:
      summary: Fetch a rule
      description: Fetches a V2 Auth rule by its token
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
      responses:
        '200':
          $ref: '#/components/responses/AuthRule'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
    patch:
      summary: Update a rule
      description: >
        Updates a V2 Auth rule's properties


        If `account_tokens`, `card_tokens`, `program_level`, `excluded_card_tokens`,
        `excluded_account_tokens`, or `excluded_business_account_tokens` is provided, this will replace
        existing associations with the provided list of entities.
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/patch-auth-rule-request'
      responses:
        '200':
          description: Updated Auth Rule
          $ref: '#/components/responses/AuthRule'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
    delete:
      summary: Delete a rule
      description: Deletes a V2 Auth rule
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
      responses:
        '204':
          description: Auth Rule Deleted
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}/draft:
    post:
      summary: Draft a new rule version
      description: >
        Creates a new draft version of a rule that will be ran in shadow mode.


        This can also be utilized to reset the draft parameters, causing a draft version to no longer be ran
        in shadow mode.
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                parameters:
                  anyOf:
                    - title: Null (delete draft)
                      type: 'null'
                      description: >-
                        Resets the drafts parameters, causing a draft version to no longer be ran in shadow
                        mode.
                    - $ref: '#/components/schemas/auth-rule-parameters'
      responses:
        '200':
          $ref: '#/components/responses/AuthRule'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}/features:
    get:
      summary: Calculated Feature values
      description: >
        Fetches the current calculated Feature values for the given Auth Rule


        This only calculates the features for the active version.

        - VelocityLimit Rules calculates the current Velocity Feature data. This requires a `card_token` or
        `account_token` matching what the rule is Scoped to.

        - ConditionalBlock Rules calculates the CARD_TRANSACTION_COUNT_* attributes on the rule. This requires
        a `card_token`
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
        - in: query
          name: account_token
          schema:
            type: string
            format: uuid
        - in: query
          name: card_token
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Calculated Feature values for the given Auth Rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/auth-rule-feature-state'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}/promote:
    post:
      summary: Promote a rule version
      description: >-
        Promotes the draft version of an Auth rule to the currently active version such that it is enforced in
        the respective stream.
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
      responses:
        '200':
          $ref: '#/components/responses/AuthRule'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}/versions:
    get:
      summary: List rule versions
      description: Returns all versions of an auth rule, sorted by version number descending (newest first).
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
      responses:
        '200':
          description: Auth Rule Versions
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/auth-rule-version'
                required:
                  - data
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}/report:
    get:
      summary: Retrieve a performance report
      description: >
        Retrieves a performance report for an Auth rule containing daily statistics and evaluation outcomes.


        **Time Range Limitations:**

        - Reports are supported for the past 3 months only

        - Maximum interval length is 1 month

        - Report data is available only through the previous day in UTC (current day data is not available)


        The report provides daily statistics for both current and draft versions of the Auth rule, including
        approval, decline, and challenge counts along with sample events.
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
        - name: begin
          in: query
          required: true
          description: Start date for the report
          schema:
            type: string
            format: date
        - name: end
          in: query
          required: true
          description: End date for the report
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Auth Rule Performance Report
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/performance-report-v2'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}/backtests:
    get:
      summary: List backtests
      description: Lists backtests for an Auth Rule
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
        - $ref: '#/components/parameters/EndingBefore'
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/StartingAfter'
      responses:
        '200':
          description: Backtests
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/backtest-list-item'
                    type: array
                  has_more:
                    description: >-
                      Indicates whether there are more backtests to be retrieved by paging through the
                      results.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
    post:
      summary: Request a backtest
      description: >
        Initiates a request to asynchronously generate a backtest for an Auth rule. During backtesting, both
        the active version (if one exists) and the draft version of the Auth Rule are evaluated by replaying
        historical transaction data against the rule's conditions. This process allows customers to simulate
        and understand the effects of proposed rule changes before deployment.

        The generated backtest report provides detailed results showing whether the draft version of the Auth
        Rule would have approved or declined historical transactions which were processed during the backtest
        period. These reports help evaluate how changes to rule configurations might affect overall
        transaction approval rates.


        The generated backtest report will be delivered asynchronously through a webhook with `event_type` =
        `auth_rules.backtest_report.created`. See the docs on setting up [webhook
        subscriptions](https://docs.lithic.com/docs/events-api).

        It is also possible to request backtest reports on-demand through the
        `/v2/auth_rules/{auth_rule_token}/backtests/{auth_rule_backtest_token}` endpoint.


        Lithic currently supports backtesting for `CONDITIONAL_BLOCK` / `CONDITIONAL_ACTION` rules.
        Backtesting for `VELOCITY_LIMIT` rules is generally not supported. In specific cases (i.e. where
        Lithic has pre-calculated the requested velocity metrics for historical transactions), a backtest may
        be feasible. However, such cases are uncommon and customers should not anticipate support for velocity
        backtests under most configurations.

        If a historical transaction does not feature the required inputs to evaluate the rule, then it will
        not be included in the final backtest report.
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backtest-request'
      responses:
        '200':
          description: Backtest request received
          content:
            application/json:
              schema:
                type: object
                properties:
                  backtest_token:
                    $ref: '#/components/schemas/backtest-token'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/{auth_rule_token}/backtests/{auth_rule_backtest_token}:
    get:
      summary: Retrieve backtest results
      description: >
        Returns the backtest results of an Auth rule (if available).


        Backtesting is an asynchronous process that requires time to complete. If a customer retrieves the
        backtest results using this endpoint before the report is fully generated, the response will return
        null for `results.current_version` and `results.draft_version`. Customers are advised to wait for the
        backtest creation process to complete (as indicated by the webhook event
        auth_rules.backtest_report.created) before retrieving results from this endpoint.


        Backtesting is an asynchronous process, while the backtest is being processed, results will not be
        available which will cause `results.current_version` and `results.draft_version` objects to contain
        `null`.

        The entries in `results` will also always represent the configuration of the rule at the time requests
        are made to this endpoint. For example, the results for `current_version` in the served backtest
        report will be consistent with which version of the rule is currently activated in the respective
        event stream, regardless of which version of the rule was active in the event stream at the time a
        backtest is requested.
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/AuthRuleToken'
        - $ref: '#/components/parameters/AuthRuleBacktestToken'
      responses:
        '200':
          description: Backtest results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backtest-results'
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v2/auth_rules/results:
    get:
      summary: List rule evaluation results
      description: |
        Lists Auth Rule evaluation results.

        **Limitations:**
        - Results are available for the past 3 months only
        - At least one filter (`event_token` or `auth_rule_token`) must be provided
        - When filtering by `event_token`, pagination is not supported
      tags:
        - Auth Rules
      parameters:
        - $ref: '#/components/parameters/EndingBefore'
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/StartingAfter'
        - name: event_token
          in: query
          description: Filter by event token
          schema:
            type: string
            format: uuid
          required: false
        - name: auth_rule_token
          in: query
          description: Filter by Auth Rule token
          schema:
            type: string
            format: uuid
          required: false
        - name: begin
          in: query
          description: >-
            Date string in RFC 3339 format. Only events evaluated after the specified time will be included.
            UTC time zone.
          schema:
            type: string
            format: date-time
          required: false
        - name: end
          in: query
          description: >-
            Date string in RFC 3339 format. Only events evaluated before the specified time will be included.
            UTC time zone.
          schema:
            type: string
            format: date-time
          required: false
        - name: has_actions
          in: query
          description: >-
            Filter by whether the rule evaluation produced any actions. When not provided, all results are
            returned.
          schema:
            type: boolean
          required: false
      responses:
        '200':
          description: Auth Rule Results
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/auth-rule-result'
                    type: array
                  has_more:
                    description: Indicates whether there are more results to be retrieved by paging through the results.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
              example:
                data:
                  - token: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    auth_rule_token: b2c3d4e5-f6a7-8901-bcde-f12345678901
                    event_token: c3d4e5f6-a7b8-9012-cdef-123456789012
                    evaluation_time: '2026-01-15T09:30:00Z'
                    rule_version: 1
                    mode: ACTIVE
                    event_stream: AUTHORIZATION
                    actions:
                      - type: DECLINE
                        code: CARD_SPEND_LIMIT_EXCEEDED
                        explanation: Transaction declined due to velocity limit
                has_more: false
        '400':
          $ref: '#/components/responses/responses-BadRequest'
        '404':
          $ref: '#/components/responses/responses-NotFound'
  /v1/auth_stream/secret:
    get:
      description: >
        Retrieve the ASA HMAC secret key. If one does not exist for your program yet, calling this endpoint
        will create one for you. The headers (which you can use to verify webhooks) will begin appearing
        shortly after calling this endpoint for the first time. See [this
        page](https://docs.lithic.com/docs/auth-stream-access-asa#asa-webhook-verification) for more detail
        about verifying ASA webhooks.
      operationId: getAuthStreamSecret
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  secret:
                    description: The shared HMAC ASA secret
                    example: whsec_1NDsYinMGr951KuDEaj78VtWzlyPaOnwUVagFiWIPJs=
                    type: string
                type: object
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retrieve the ASA HMAC secret key
      tags:
        - Auth Stream Access (ASA)
  /v1/auth_stream/secret/rotate:
    post:
      description: >
        Generate a new ASA HMAC secret key. The old ASA HMAC secret key will be deactivated 24 hours after a
        successful request to this endpoint. Make a [`GET
        /auth_stream/secret`](https://docs.lithic.com/reference/getauthstreamsecret) request to retrieve the
        new secret key.
      operationId: rotateAuthStreamSecret
      responses:
        '204':
          description: We have successfully rotated the secret key.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Rotate the ASA HMAC secret key
      tags:
        - Auth Stream Access (ASA)
  /v1/balances:
    get:
      description: Get the balances for a program, business, or a given end-user account
      operationId: getBalances
      parameters:
        - description: List balances for all financial accounts of a given account_token.
          in: query
          name: account_token
          schema:
            format: uuid
            type: string
        - description: List balances for all financial accounts of a given business_account_token.
          in: query
          name: business_account_token
          schema:
            format: uuid
            type: string
        - description: UTC date and time of the balances to retrieve. Defaults to latest available balances
          in: query
          name: balance_date
          schema:
            format: date-time
            type: string
        - description: List balances for a given Financial Account type.
          in: query
          name: financial_account_type
          schema:
            enum:
              - ISSUING
              - OPERATING
              - RESERVE
              - SECURITY
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/balance'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List balances
      tags:
        - Balance
  /v1/card_programs:
    get:
      description: List card programs.
      operationId: getCardPrograms
      parameters:
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/CardProgram'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List card programs
      tags:
        - Card
  /v1/card_programs/{card_program_token}:
    get:
      description: Get card program.
      operationId: getCardProgram
      parameters:
        - $ref: '#/components/parameters/cardProgramTokenPath'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardProgram'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get card program
      tags:
        - Card
  /v1/cards:
    get:
      description: List cards.
      operationId: getCards
      parameters:
        - description: |
            Returns cards associated with the specified account.
          in: query
          name: account_token
          schema:
            format: uuid
            type: string
        - description: |
            Returns cards with the specified state.
          in: query
          name: state
          schema:
            enum:
              - CLOSED
              - OPEN
              - PAUSED
              - PENDING_ACTIVATION
              - PENDING_FULFILLMENT
            type: string
        - description: |
            Returns cards containing the specified partial or full memo text.
          in: query
          name: memo
          schema:
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/non_pci_card_response'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List cards
      tags:
        - Card
    post:
      description: >
        Create a new virtual or physical card. Parameters `shipping_address` and `product_id` only apply to
        physical cards.
      operationId: postCards
      parameters:
        - $ref: '#/components/parameters/idempotencyKey'
      requestBody:
        content:
          application/json:
            examples:
              createCard:
                summary: Create card
                value:
                  memo: New Card
                  spend_limit: 1000
                  spend_limit_duration: TRANSACTION
                  state: OPEN
                  type: VIRTUAL
              createPhysicalCard:
                summary: Create a physical card
                value:
                  carrier:
                    qr_code_url: https://lithic.com/activate-card/1
                  memo: New physical card
                  product_id: '783991122'
                  shipping_address:
                    address1: '123'
                    city: NEW YORK
                    country: USA
                    first_name: Johnny
                    last_name: Appleseed
                    postal_code: '10001'
                    state: NY
                  state: OPEN
                  type: PHYSICAL
            schema:
              properties:
                account_token:
                  description: >
                    Globally unique identifier for the account that the card will be associated with. Required
                    for programs enrolling users using the [/account\_holders
                    endpoint](https://docs.lithic.com/docs/account-holders-kyc). See [Managing Your
                    Program](doc:managing-your-program) for more information.
                  format: uuid
                  type: string
                card_program_token:
                  description: >-
                    For card programs with more than one BIN range. This must be configured with Lithic before
                    use. Identifies the card program/BIN range under which to create the card. If omitted,
                    will utilize the program's default `card_program_token`. In Sandbox, use
                    00000000-0000-0000-1000-000000000000 and 00000000-0000-0000-2000-000000000000 to test
                    creating cards on specific card programs.
                  example: 5e9483eb-8103-4e16-9794-2106111b2eca
                  format: uuid
                  type: string
                bulk_order_token:
                  description: >-
                    Globally unique identifier for an existing bulk order to associate this card with. When
                    specified, the card will be added to the bulk order for batch shipment. Only applicable to
                    cards of type PHYSICAL
                  example: 5e9483eb-8103-4e16-9794-2106111b2eca
                  format: uuid
                  type: string
                carrier:
                  $ref: '#/components/schemas/Carrier'
                digital_card_art_token:
                  description: >-
                    Specifies the digital card art to be displayed in the user’s digital wallet after
                    tokenization. This artwork must be approved by Mastercard and configured by Lithic to use.
                    See [Flexible Card Art
                    Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
                  example: 5e9483eb-8103-4e16-9794-2106111b2eca
                  format: uuid
                  type: string
                exp_month:
                  description: >-
                    Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided, an
                    expiration date will be generated.
                  example: '06'
                  maxLength: 2
                  minLength: 2
                  type: string
                exp_year:
                  description: >-
                    Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is provided, an
                    expiration date will be generated.
                  example: '2027'
                  maxLength: 4
                  minLength: 4
                  type: string
                memo:
                  description: Friendly name to identify the card.
                  example: New Card
                  type: string
                pin:
                  description: >-
                    Encrypted PIN block (in base64). Applies to cards of type `PHYSICAL` and `VIRTUAL`. See
                    [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block).
                  type: string
                product_id:
                  description: >-
                    Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic before
                    use. Specifies the configuration (i.e., physical card art) that the card should be
                    manufactured with.
                  example: '1'
                  type: string
                replacement_for:
                  description: >-
                    Globally unique identifier for the card that this card will replace. If the card type is
                    `PHYSICAL` it will be replaced by a `PHYSICAL` card. If the card type is `VIRTUAL` it will
                    be replaced by a `VIRTUAL` card.
                  example: 5e9483eb-8103-4e16-9794-2106111b2eca
                  format: uuid
                  type: string
                replacement_substatus:
                  description: >
                    Card state substatus values for the card that this card will replace:

                    * `LOST` - The physical card is no longer in the cardholder's possession due to being lost
                    or never received by the cardholder.

                    * `COMPROMISED` - Card information has been exposed, potentially leading to unauthorized
                    access. This may involve physical card theft, cloning, or online data breaches.

                    * `DAMAGED` - The physical card is not functioning properly, such as having chip failures
                    or a demagnetized magnetic stripe.

                    * `END_USER_REQUEST` - The cardholder requested the closure of the card for reasons
                    unrelated to fraud or damage, such as switching to a different product or closing the
                    account.

                    * `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud or damage,
                    such as account inactivity, product or policy changes, or technology upgrades.

                    * `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified period,
                    applicable to statuses like `PAUSED` or `CLOSED`.

                    * `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or activities
                    that require review. This can involve prompting the cardholder to confirm legitimate use
                    or report confirmed fraud.

                    * `INTERNAL_REVIEW` - The card is temporarily paused pending further internal review.

                    * `EXPIRED` - The card has expired and has been closed without being reissued.

                    * `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been returned.

                    * `OTHER` - The reason for the status does not fall into any of the above categories. A
                    comment should be provided to specify the reason.
                  enum:
                    - LOST
                    - COMPROMISED
                    - DAMAGED
                    - END_USER_REQUEST
                    - ISSUER_REQUEST
                    - NOT_ACTIVE
                    - SUSPICIOUS_ACTIVITY
                    - INTERNAL_REVIEW
                    - EXPIRED
                    - UNDELIVERABLE
                    - OTHER
                  type: string
                replacement_comment:
                  description: Additional context or information related to the card that this card will replace.
                  type: string
                replacement_account_token:
                  description: >-
                    Restricted field limited to select use cases. Lithic will reach out directly if this field
                    should be used. Globally unique identifier for the replacement card's account. If this
                    field is specified, `replacement_for` must also be specified. If `replacement_for` is
                    specified and this field is omitted, the replacement card's account will be inferred from
                    the card being replaced.
                  example: 5e9483eb-8103-4e16-9794-2106111b2eca
                  format: uuid
                  type: string
                shipping_address:
                  $ref: '#/components/schemas/ShippingAddress'
                shipping_method:
                  description: >
                    Shipping method for the card. Only applies to cards of type PHYSICAL.

                    Use of options besides `STANDARD` require additional permissions.


                    * `STANDARD` - USPS regular mail or similar international option, with no tracking

                    * `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
                    tracking

                    * `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking

                    * `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day shipping, with
                    tracking

                    * `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with tracking

                    * `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight or similar
                    international option, with tracking

                    * `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
                  enum:
                    - 2_DAY
                    - BULK_EXPEDITED
                    - EXPEDITED
                    - EXPRESS
                    - PRIORITY
                    - STANDARD
                    - STANDARD_WITH_TRACKING
                  type: string
                spend_limit:
                  description: >-
                    Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
                    Transaction requests above the spend limit will be declined. Note that a spend limit of 0
                    is effectively no limit, and should only be used to reset or remove a prior limit. Only a
                    limit of 1 or above will result in declined transactions due to checks against the card
                    limit.
                  example: 0
                  minimum: 0
                  type: integer
                spend_limit_duration:
                  $ref: '#/components/schemas/spend_limit_duration'
                state:
                  description: |
                    Card state values:
                    * `OPEN` - Card will approve authorizations (if they match card and account parameters).
                    * `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
                  enum:
                    - OPEN
                    - PAUSED
                  type: string
                type:
                  default: VIRTUAL
                  description: >
                    Card types:

                    * `VIRTUAL` - Card will authorize at any merchant and can be added to a digital wallet
                    like Apple Pay or Google Pay (if the card program is digital wallet-enabled).

                    * `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label branding,
                    credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality. Reach out at
                    [lithic.com/contact](https://lithic.com/contact) for more information.

                    * `SINGLE_USE` - Card is closed upon first successful authorization.

                    * `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully authorizes
                    the card.

                    * `UNLOCKED` - *[Deprecated]* Similar behavior to VIRTUAL cards, please use VIRTUAL
                    instead.

                    * `DIGITAL_WALLET` - *[Deprecated]* Similar behavior to VIRTUAL cards, please use VIRTUAL
                    instead.
                  enum:
                    - MERCHANT_LOCKED
                    - PHYSICAL
                    - SINGLE_USE
                    - VIRTUAL
                    - UNLOCKED
                    - DIGITAL_WALLET
                  type: string
              required:
                - type
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                account_token: f3f4918c-dee9-464d-a819-4aa42901d624
                card_program_token: 5e9483eb-8103-4e16-9794-2106111b2eca
                cardholder_currency: USD
                created: '2021-06-28T22:53:15Z'
                cvv: '776'
                exp_month: '06'
                exp_year: '2027'
                funding:
                  account_name: Sandbox
                  created: '2020-07-08T17:57:36Z'
                  last_four: '5263'
                  nickname: checking account
                  state: ENABLED
                  token: b0f0d91a-3697-46d8-85f3-20f0a585cbea
                  type: DEPOSITORY_CHECKING
                hostname: ''
                last_four: '4142'
                memo: New Card
                pan: '4111111289144142'
                replacement_for: null
                spend_limit: 1000
                spend_limit_duration: TRANSACTION
                state: OPEN
                token: 7ef7d65c-9023-4da3-b113-3b8583fd7951
                type: VIRTUAL
                pin_status: NOT_SET
              schema:
                $ref: '#/components/schemas/pci_card_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create card
      tags:
        - Card
  /v1/cards/search_by_pan:
    post:
      description: >-
        Get card configuration such as spend limit and state. Customers must be PCI compliant to use this
        endpoint. Please contact [support@lithic.com](mailto:support@lithic.com) for questions.

        *Note: this is a `POST` endpoint because it is more secure to send sensitive data in a request body
        than in a URL.*
      operationId: searchCardByPan
      requestBody:
        content:
          application/json:
            examples:
              searchCardByPan:
                summary: Search for card for by PAN.
                value:
                  pan: '4111111289144142'
            schema:
              properties:
                pan:
                  description: The PAN for the card being retrieved.
                  example: '4111111289144142'
                  type: string
              required:
                - pan
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pci_card_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Search for card by PAN
      tags:
        - Card
  /v1/cards/{card_token}:
    get:
      description: Get card configuration such as spend limit and state.
      operationId: getCardByToken
      parameters:
        - $ref: '#/components/parameters/cardToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pci_card_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get card
      tags:
        - Card
    patch:
      description: |
        Update the specified properties of the card. Unsupplied properties will remain unchanged.

        *Note: setting a card to a `CLOSED` state is a final action that cannot be undone.*
      operationId: patchCardByToken
      parameters:
        - $ref: '#/components/parameters/cardToken'
      requestBody:
        content:
          application/json:
            examples:
              updateCard:
                summary: Update card
                value:
                  memo: Updated Name
                  spend_limit: 100
                  spend_limit_duration: FOREVER
                  state: OPEN
            schema:
              properties:
                digital_card_art_token:
                  description: >-
                    Specifies the digital card art to be displayed in the user’s digital wallet after
                    tokenization. This artwork must be approved by Mastercard and configured by Lithic to use.
                    See [Flexible Card Art
                    Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
                  example: 00000000-0000-0000-1000-000000000000
                  format: uuid
                  type: string
                memo:
                  description: Friendly name to identify the card.
                  example: New Card
                  type: string
                network_program_token:
                  description: >-
                    Globally unique identifier for the card's network program. Currently applicable to Visa
                    cards participating in Account Level Management only.
                  example: 00000000-0000-0000-1000-000000000000
                  format: uuid
                  type: string
                pin:
                  description: >-
                    Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and `VIRTUAL`.
                    Changing PIN also resets PIN status to `OK`. See [Encrypted PIN
                    Block](https://docs.lithic.com/docs/cards#encrypted-pin-block).
                  type: string
                pin_status:
                  description: >-
                    Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect attempts).
                    Can only be set to `OK` to unblock a card.
                  enum:
                    - OK
                  type: string
                spend_limit:
                  description: >-
                    Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
                    Transaction requests above the spend limit will be declined. Note that a spend limit of 0
                    is effectively no limit, and should only be used to reset or remove a prior limit. Only a
                    limit of 1 or above will result in declined transactions due to checks against the card
                    limit.
                  example: 0
                  type: integer
                spend_limit_duration:
                  $ref: '#/components/schemas/spend_limit_duration'
                state:
                  description: |
                    Card state values:
                    * `CLOSED` - Card will no longer approve authorizations. Closing a card cannot be undone.
                    * `OPEN` - Card will approve authorizations (if they match card and account parameters).
                    * `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
                  enum:
                    - CLOSED
                    - OPEN
                    - PAUSED
                  type: string
                substatus:
                  description: >
                    Card state substatus values:

                    * `LOST` - The physical card is no longer in the cardholder's possession due to being lost
                    or never received by the cardholder.

                    * `COMPROMISED` - Card information has been exposed, potentially leading to unauthorized
                    access. This may involve physical card theft, cloning, or online data breaches.

                    * `DAMAGED` - The physical card is not functioning properly, such as having chip failures
                    or a demagnetized magnetic stripe.

                    * `END_USER_REQUEST` - The cardholder requested the closure of the card for reasons
                    unrelated to fraud or damage, such as switching to a different product or closing the
                    account.

                    * `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud or damage,
                    such as account inactivity, product or policy changes, or technology upgrades.

                    * `NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified period,
                    applicable to statuses like `PAUSED` or `CLOSED`.

                    * `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or activities
                    that require review. This can involve prompting the cardholder to confirm legitimate use
                    or report confirmed fraud.

                    * `INTERNAL_REVIEW` - The card is temporarily paused pending further internal review.

                    * `EXPIRED` - The card has expired and has been closed without being reissued.

                    * `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been returned.

                    * `OTHER` - The reason for the status does not fall into any of the above categories. A
                    comment should be provided to specify the reason.
                  enum:
                    - LOST
                    - COMPROMISED
                    - DAMAGED
                    - END_USER_REQUEST
                    - ISSUER_REQUEST
                    - NOT_ACTIVE
                    - SUSPICIOUS_ACTIVITY
                    - INTERNAL_REVIEW
                    - EXPIRED
                    - UNDELIVERABLE
                    - OTHER
                  type: string
                comment:
                  description: Additional context or information related to the card.
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                account_token: f3f4918c-dee9-464d-a819-4aa42901d624
                card_program_token: 5e9483eb-8103-4e16-9794-2106111b2eca
                cardholder_currency: USD
                created: '2021-06-28T22:53:15Z'
                cvv: '742'
                exp_month: '05'
                exp_year: '2027'
                funding:
                  account_name: Sandbox
                  created: '2022-03-08T08:00:00Z'
                  last_four: '5263'
                  nickname: checking account
                  state: ENABLED
                  token: b0f0d91a-3697-46d8-85f3-20f0a585cbea
                  type: DEPOSITORY_CHECKING
                hostname: ''
                last_four: '4938'
                memo: Updated Name
                pan: '4111111289144142'
                spend_limit: 100
                spend_limit_duration: FOREVER
                replacement_for: null
                state: OPEN
                token: f5f905f5-8a8e-49bf-a9b4-c0adaa401456
                type: VIRTUAL
                pin_status: NOT_SET
              schema:
                $ref: '#/components/schemas/pci_card_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update card
      tags:
        - Card
  /v1/cards/{card_token}/balances:
    get:
      description: Get the balances for a given card.
      operationId: getCardBalance
      parameters:
        - description: UTC date of the balance to retrieve. Defaults to latest available balance
          in: query
          name: balance_date
          schema:
            format: date-time
            type: string
        - description: >
            Balance after a given financial event occured.

            For example, passing the event_token of a $5 CARD_CLEARING financial event will return a balance
            decreased by $5
          in: query
          name: last_transaction_event_token
          schema:
            format: uuid
            type: string
        - $ref: '#/components/parameters/cardToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/financial-account-balance'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get card balances
      tags:
        - Card
  /v1/cards/{card_token}/financial_transactions:
    get:
      description: List the financial transactions for a given card.
      operationId: getCardFinancialTransactions
      parameters:
        - description: Financial Transaction category to be returned.
          in: query
          name: category
          schema:
            enum:
              - CARD
              - TRANSFER
            type: string
        - description: Financial Transaction result to be returned.
          in: query
          name: result
          schema:
            enum:
              - APPROVED
              - DECLINED
            type: string
        - description: Financial Transaction status to be returned.
          in: query
          name: status
          schema:
            enum:
              - DECLINED
              - EXPIRED
              - PENDING
              - RETURNED
              - SETTLED
              - VOIDED
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/cardToken'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/financial-account-transaction'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List card financial transactions
      tags:
        - Card
  /v1/cards/{card_token}/financial_transactions/{financial_transaction_token}:
    get:
      description: Get the card financial transaction for the provided token.
      operationId: getCardFinancialTransactionByToken
      parameters:
        - $ref: '#/components/parameters/cardToken'
        - $ref: '#/components/parameters/financialTransactionToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get card financial transaction
      tags:
        - Card
  /v1/cards/{card_token}/provision:
    post:
      description: >
        Allow your cardholders to directly add payment cards to the device's digital wallet (e.g. Apple Pay)
        with one touch from your app.


        This requires some additional setup and configuration. Please [Contact Us](https://lithic.com/contact)
        or your Customer Success representative for more information.
      operationId: postCardProvision
      parameters:
        - $ref: '#/components/parameters/cardTokenDigitalWallet'
      requestBody:
        content:
          application/json:
            examples:
              provisionGoogleCard:
                summary: Provision a card in Google Pay
                value:
                  digital_wallet: GOOGLE_PAY
            schema:
              properties:
                certificate:
                  description: >-
                    Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activationData`
                    in the response. Apple's public leaf certificate. Base64 encoded in PEM format with
                    headers `(-----BEGIN CERTIFICATE-----)` and trailers omitted. Provided by the device's
                    wallet.
                  format: byte
                  type: string
                client_wallet_account_id:
                  description: >-
                    Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the card is on
                    the Visa network. Consumer ID that identifies the wallet account holder entity.
                  type: string
                client_device_id:
                  description: >-
                    Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the card is on
                    the Visa network. Stable device identification set by the wallet provider.
                  type: string
                digital_wallet:
                  description: Name of digital wallet provider.
                  enum:
                    - APPLE_PAY
                    - GOOGLE_PAY
                    - SAMSUNG_PAY
                  type: string
                nonce:
                  description: >-
                    Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activationData`
                    in the response. Base64 cryptographic nonce provided by the device's wallet.
                  format: byte
                  type: string
                nonce_signature:
                  description: >-
                    Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activationData`
                    in the response. Base64 cryptographic nonce provided by the device's wallet.
                  format: byte
                  type: string
              type: object
        description: Update request.
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  provisioning_payload:
                    oneOf:
                      - type: string
                        description: >-
                          Base64 encoded JSON payload representing a payment card that can be passed to a
                          device's digital wallet. Applies to Google and Samsung Pay wallets.
                      - type: object
                        properties:
                          activationData:
                            type: string
                          ephemeralPublicKey:
                            type: string
                          encryptedData:
                            type: string
                        description: >-
                          Object containing the fields required to add a card to Apple Pay. Applies only to
                          Apple Pay wallet.
                type: object
          description: >
            Returns `provisioning_payload`, a cryptographic payload representing a payment card that can be
            passed to a device's digital wallet. Each digital wallet has a different API; consult the wallet's
            documentation for more info.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Provision card (Digital Wallet)
      tags:
        - Card
  /v1/cards/{card_token}/web_provision:
    post:
      description: >
        Allow your cardholders to directly add payment cards to the device's digital wallet from a browser on
        the web.


        This requires some additional setup and configuration. Please [Contact Us](https://lithic.com/contact)
        or your Customer Success representative for more information.
      operationId: postCardWebProvision
      parameters:
        - $ref: '#/components/parameters/cardTokenDigitalWallet'
      requestBody:
        content:
          application/json:
            examples:
              webProvisionAppleCard:
                summary: Web push provision a card for Apple Pay
                value:
                  digital_wallet: APPLE_PAY
              webProvisionGoogleCard:
                summary: Web push provision a card for Google Pay
                value:
                  digital_wallet: GOOGLE_PAY
                  server_session_id: d3538acf-e5df-4446-8ce6-588fa4472ac1
                  client_device_id: d3538acf-e5df-4446-8ce6-588fa4472ac1
                  client_wallet_account_id: d3538acf-e5df-4446-8ce6-588fa4472ac1
            schema:
              properties:
                digital_wallet:
                  description: Name of digital wallet provider.
                  enum:
                    - APPLE_PAY
                    - GOOGLE_PAY
                  type: string
                server_session_id:
                  description: >-
                    Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push Provisioning
                    session identifier required for the FPAN flow.
                  format: uuid
                  type: string
                client_device_id:
                  description: >-
                    Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push Provisioning device
                    identifier required for the tokenization flow
                  format: uuid
                  type: string
                client_wallet_account_id:
                  description: >-
                    Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push Provisioning wallet
                    account identifier required for the tokenization flow
                  format: uuid
                  type: string
              type: object
        description: Update request.
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                applePayResponse:
                  summary: Web push provision response for Apple Pay
                  value:
                    jws:
                      header:
                        kid: 8dc7aed4-29e3-41e4-9cdb-673a05e6615c
                      protected: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9
                      payload: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9
                      signature: SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
                    state: 3cc4c292-727b-4ca8-b9a8-f96c15485f4e
                googlePayResponse:
                  summary: Web push provision response for Google Pay
                  value:
                    google_opc: WW91ciBTdHJpbmcgSGVyZQ==
                    tsp_opc: WW91ciBTdHJpbmcgSGVyZQ==
              schema:
                $ref: '#/components/schemas/WebPushProvisioningResponse'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Web Push Provision card (Digital Wallet)
      tags:
        - Card
  /v1/cards/{card_token}/reissue:
    post:
      description: >-
        Initiate print and shipment of a duplicate physical card (e.g. card is physically damaged).  The PAN,
        expiry, and CVC2 will remain the same and the original card can continue to be used until the new card
        is activated.

        Only applies to cards of type `PHYSICAL`.  A card can be reissued or renewed a total of 8 times.
      operationId: postCardReissue
      parameters:
        - $ref: '#/components/parameters/cardToken'
      requestBody:
        content:
          application/json:
            examples:
              reissueCardNewAddress:
                summary: Reissue card with a new address
                value:
                  carrier:
                    qr_code_url: https://lithic.com/activate-card/1
                  product_id: '100'
                  shipping_address:
                    address1: 5 Broad Street
                    address2: Unit 5A
                    city: NEW YORK
                    country: USA
                    first_name: Janet
                    last_name: Yellen
                    postal_code: '10001'
                    state: NY
                  shipping_method: STANDARD
            schema:
              properties:
                carrier:
                  $ref: '#/components/schemas/Carrier'
                  description: If omitted, the previous carrier will be used.
                product_id:
                  description: >
                    Specifies the configuration (e.g. physical card art) that the card should be manufactured
                    with, and only applies to cards of type `PHYSICAL`. This must be configured with Lithic
                    before use.
                  type: string
                shipping_address:
                  $ref: '#/components/schemas/ShippingAddress'
                  description: If omitted, the previous shipping address will be used.
                shipping_method:
                  description: >
                    Shipping method for the card. Only applies to cards of type PHYSICAL.

                    Use of options besides `STANDARD` require additional permissions.


                    * `STANDARD` - USPS regular mail or similar international option, with no tracking

                    * `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
                    tracking

                    * `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking

                    * `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day shipping, with
                    tracking

                    * `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with tracking

                    * `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight or similar
                    international option, with tracking

                    * `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
                  enum:
                    - 2_DAY
                    - BULK_EXPEDITED
                    - EXPEDITED
                    - EXPRESS
                    - PRIORITY
                    - STANDARD
                    - STANDARD_WITH_TRACKING
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                account_token: f3f4918c-dee9-464d-a819-4aa42901d624
                card_program_token: 5e9483eb-8103-4e16-9794-2106111b2eca
                cardholder_currency: USD
                created: '2021-06-28T22:53:15Z'
                cvv: '742'
                exp_month: '05'
                exp_year: '2027'
                funding:
                  account_name: Sandbox
                  created: '2022-03-08T08:00:00Z'
                  last_four: '5263'
                  nickname: checking account
                  state: ENABLED
                  token: b0f0d91a-3697-46d8-85f3-20f0a585cbea
                  type: DEPOSITORY_CHECKING
                hostname: ''
                last_four: '4938'
                memo: Updated Name
                pan: '4111111289144142'
                spend_limit: 100
                spend_limit_duration: FOREVER
                state: OPEN
                token: f5f905f5-8a8e-49bf-a9b4-c0adaa401456
                type: PHYSICAL
                pin_status: OK
              schema:
                $ref: '#/components/schemas/pci_card_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Reissue physical card
      tags:
        - Card
  /v1/cards/{card_token}/renew:
    post:
      description: >-
        Applies to card types `PHYSICAL` and `VIRTUAL`.

        For `PHYSICAL`, creates a new card with the same card token and PAN, but updated expiry and CVC2 code.
        The original card will keep working for card-present transactions until the new card is activated. For
        card-not-present transactions, the original card details (expiry, CVC2) will also keep working until
        the new card is activated.

        A `PHYSICAL` card can be reissued or renewed a total of 8 times.

        For `VIRTUAL`, the card will retain the same card token and PAN and receive an updated expiry and CVC2
        code.

        `product_id`, `shipping_method`, `shipping_address`, `carrier` are only relevant for renewing
        `PHYSICAL` cards.
      operationId: postCardRenew
      parameters:
        - $ref: '#/components/parameters/cardToken'
      requestBody:
        content:
          application/json:
            examples:
              renewCardNewAddress:
                summary: Renew card with a new address
                value:
                  carrier:
                    qr_code_url: https://lithic.com/activate-card/1
                  product_id: '100'
                  shipping_address:
                    address1: 5 Broad Street
                    address2: Unit 5A
                    city: NEW YORK
                    country: USA
                    first_name: Janet
                    last_name: Yellen
                    postal_code: '10001'
                    state: NY
                  shipping_method: STANDARD
            schema:
              properties:
                carrier:
                  $ref: '#/components/schemas/Carrier'
                  description: If omitted, the previous carrier will be used.
                exp_month:
                  description: >-
                    Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided, an
                    expiration date six years in the future will be generated.
                  example: '06'
                  maxLength: 2
                  minLength: 2
                  type: string
                exp_year:
                  description: >-
                    Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is provided, an
                    expiration date six years in the future will be generated.
                  example: '2027'
                  maxLength: 4
                  minLength: 4
                  type: string
                product_id:
                  description: >
                    Specifies the configuration (e.g. physical card art) that the card should be manufactured
                    with, and only applies to cards of type `PHYSICAL`. This must be configured with Lithic
                    before use.
                  type: string
                shipping_address:
                  $ref: '#/components/schemas/ShippingAddress'
                  description: The shipping address this card will be sent to.
                shipping_method:
                  description: >
                    Shipping method for the card. Only applies to cards of type PHYSICAL.

                    Use of options besides `STANDARD` require additional permissions.


                    * `STANDARD` - USPS regular mail or similar international option, with no tracking

                    * `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
                    tracking

                    * `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking

                    * `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day shipping, with
                    tracking

                    * `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with tracking

                    * `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight or similar
                    international option, with tracking

                    * `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
                  enum:
                    - 2_DAY
                    - BULK_EXPEDITED
                    - EXPEDITED
                    - EXPRESS
                    - PRIORITY
                    - STANDARD
                    - STANDARD_WITH_TRACKING
                  type: string
              required:
                - shipping_address
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                account_token: f3f4918c-dee9-464d-a819-4aa42901d624
                card_program_token: 5e9483eb-8103-4e16-9794-2106111b2eca
                cardholder_currency: USD
                created: '2021-06-28T22:53:15Z'
                cvv: '742'
                exp_month: '05'
                exp_year: '2027'
                funding:
                  account_name: Sandbox
                  created: '2020-07-08T17:57:36Z'
                  last_four: '5263'
                  nickname: checking account
                  state: ENABLED
                  token: b0f0d91a-3697-46d8-85f3-20f0a585cbea
                  type: DEPOSITORY_CHECKING
                hostname: ''
                last_four: '4938'
                memo: Updated Name
                pan: '4111111289144142'
                spend_limit: 100
                spend_limit_duration: FOREVER
                state: OPEN
                token: f5f905f5-8a8e-49bf-a9b4-c0adaa401456
                type: PHYSICAL
                pin_status: OK
              schema:
                $ref: '#/components/schemas/pci_card_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Renew a card
      tags:
        - Card
  /v1/cards/{card_token}/convert_physical:
    post:
      description: >-
        Convert a virtual card into a physical card and manufacture it.

        Customer must supply relevant fields for physical card creation including `product_id`, `carrier`,
        `shipping_method`, and `shipping_address`.

        The card token will be unchanged.  The card's type will be altered to `PHYSICAL`.

        The card will be set to state `PENDING_FULFILLMENT` and fulfilled at next fulfillment cycle.

        Virtual cards created on card programs which do not support physical cards cannot be converted.  The
        card program cannot be changed as part of the conversion.  Cards must be in an `OPEN` state to be
        converted.

        Only applies to cards of type `VIRTUAL` (or existing cards with deprecated types of `DIGITAL_WALLET`
        and `UNLOCKED`).
      operationId: postConvertPhysical
      parameters:
        - $ref: '#/components/parameters/cardToken'
      requestBody:
        content:
          application/json:
            examples:
              convertPhysicalAddress:
                summary: Convert virtual card to physical card
                value:
                  carrier:
                    qr_code_url: https://lithic.com/activate-card/1
                  product_id: '100'
                  shipping_address:
                    address1: 5 Broad Street
                    address2: Unit 5A
                    city: NEW YORK
                    country: USA
                    first_name: Janet
                    last_name: Yellen
                    postal_code: '10001'
                    state: NY
                  shipping_method: STANDARD
            schema:
              properties:
                carrier:
                  $ref: '#/components/schemas/Carrier'
                  description: If omitted, the previous carrier will be used.
                product_id:
                  description: >
                    Specifies the configuration (e.g. physical card art) that the card should be manufactured
                    with, and only applies to cards of type `PHYSICAL`. This must be configured with Lithic
                    before use.
                  type: string
                shipping_address:
                  $ref: '#/components/schemas/ShippingAddress'
                  description: The shipping address this card will be sent to.
                shipping_method:
                  description: >
                    Shipping method for the card. Only applies to cards of type PHYSICAL.

                    Use of options besides `STANDARD` require additional permissions.


                    * `STANDARD` - USPS regular mail or similar international option, with no tracking

                    * `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
                    tracking

                    * `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking

                    * `EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day shipping, with
                    tracking

                    * `2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with tracking

                    * `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight or similar
                    international option, with tracking

                    * `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
                  enum:
                    - 2_DAY
                    - BULK_EXPEDITED
                    - EXPEDITED
                    - EXPRESS
                    - PRIORITY
                    - STANDARD
                    - STANDARD_WITH_TRACKING
                  type: string
              required:
                - shipping_address
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                account_token: f3f4918c-dee9-464d-a819-4aa42901d624
                card_program_token: 5e9483eb-8103-4e16-9794-2106111b2eca
                cardholder_currency: USD
                created: '2021-06-28T22:53:15Z'
                cvv: '742'
                exp_month: '05'
                exp_year: '2027'
                funding:
                  account_name: Sandbox
                  created: '2020-07-08T17:57:36Z'
                  last_four: '5263'
                  nickname: checking account
                  state: ENABLED
                  token: b0f0d91a-3697-46d8-85f3-20f0a585cbea
                  type: DEPOSITORY_CHECKING
                hostname: ''
                last_four: '4938'
                memo: Updated Name
                pan: '4111111289144142'
                spend_limit: 100
                spend_limit_duration: FOREVER
                state: OPEN
                token: f5f905f5-8a8e-49bf-a9b4-c0adaa401456
                type: PHYSICAL
                pin_status: OK
              schema:
                $ref: '#/components/schemas/pci_card_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Convert virtual to physical card
      tags:
        - Card
  /v1/cards/{card_token}/spend_limits:
    get:
      description: >-
        Get a Card's available spend limit, which is based on the spend limit configured on the Card and the
        amount already spent over the spend limit's duration. For example, if the Card has a monthly spend
        limit of $1000 configured, and has spent $600 in the last month, the available spend limit returned
        would be $400.
      operationId: getCardSpendLimits
      parameters:
        - $ref: '#/components/parameters/cardToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardSpendLimits'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get card's available spend limit
      tags:
        - Card
  /v1/card_bulk_orders:
    get:
      description: List bulk orders for physical card shipments **[BETA]**
      operationId: getCardBulkOrders
      parameters:
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/bulk-order-response'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List bulk orders
      tags:
        - Card Bulk Orders
    post:
      description: >-
        Create a new bulk order for physical card shipments **[BETA]**. Cards can be added to the order via
        the POST /v1/cards endpoint by specifying the bulk_order_token. Lock the order via PATCH
        /v1/card_bulk_orders/{bulk_order_token} to prepare for shipment. Please work with your Customer
        Success Manager and card personalization bureau to ensure bulk shipping is supported for your program.
      operationId: postCardBulkOrder
      requestBody:
        content:
          application/json:
            example:
              shipping_address:
                address1: 123 Main Street
                city: NEW YORK
                country: USA
                first_name: Johnny
                last_name: Appleseed
                postal_code: '10001'
                state: NY
              shipping_method: BULK_EXPEDITED
              customer_product_id: custom-card-design-123
            schema:
              $ref: '#/components/schemas/create-bulk-order-request'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bulk-order-response'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create bulk order
      tags:
        - Card Bulk Orders
  /v1/card_bulk_orders/{bulk_order_token}:
    get:
      description: Retrieve a specific bulk order by token **[BETA]**
      operationId: getCardBulkOrder
      parameters:
        - description: Globally unique identifier for the bulk order
          in: path
          name: bulk_order_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bulk-order-response'
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get bulk order
      tags:
        - Card Bulk Orders
    patch:
      description: >-
        Update a bulk order **[BETA]**. Primarily used to lock the order, preventing additional cards from
        being added
      operationId: patchCardBulkOrder
      parameters:
        - description: Globally unique identifier for the bulk order
          in: path
          name: bulk_order_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            example:
              status: LOCKED
            schema:
              $ref: '#/components/schemas/update-bulk-order-request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bulk-order-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update bulk order
      tags:
        - Card Bulk Orders
  /v1/digital_card_art:
    get:
      description: List digital card art.
      operationId: getDigitalCardArt
      parameters:
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/DigitalCardArt'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List digital card art
      tags:
        - Tokenization
  /v1/digital_card_art/{digital_card_art_token}:
    get:
      description: Get digital card art by token.
      operationId: getDigitalCardArtByToken
      parameters:
        - description: >-
            Specifies the digital card art to be displayed in the user’s digital wallet after tokenization.
            This artwork must be approved by Mastercard and configured by Lithic to use. See [Flexible Card
            Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
          in: path
          name: digital_card_art_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalCardArt'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get digital card art by token
      tags:
        - Tokenization
  /v1/disputes:
    get:
      description: List chargeback requests.
      operationId: getDisputes
      parameters:
        - description: Filter by status.
          in: query
          name: status
          required: false
          schema:
            enum:
              - ARBITRATION
              - CASE_CLOSED
              - CASE_WON
              - NEW
              - PENDING_CUSTOMER
              - PREARBITRATION
              - REPRESENTMENT
              - SUBMITTED
            type: string
        - description: Transaction tokens to filter by.
          explode: false
          in: query
          name: transaction_tokens
          required: false
          schema:
            items:
              format: uuid
              type: string
            maxItems: 50
            type: array
          style: form
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/dispute-v1'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List chargeback requests
      tags:
        - Chargeback
    post:
      description: Request a chargeback.
      operationId: postDisputes
      requestBody:
        content:
          application/json:
            examples:
              initiateDispute:
                summary: Request chargeback
                value:
                  amount: 10000
                  customer_filed_date: '2021-06-28T22:53:15Z'
                  reason: FRAUD_CARD_PRESENT
                  transaction_token: 12345624-aa69-4cbc-a946-30d90181b621
            schema:
              properties:
                amount:
                  description: Amount for chargeback
                  type: integer
                customer_filed_date:
                  description: Date the customer filed the chargeback request
                  format: date-time
                  type: string
                customer_note:
                  description: Customer description
                  maximum: 5000
                  type: string
                reason:
                  description: Reason for chargeback
                  enum:
                    - ATM_CASH_MISDISPENSE
                    - CANCELLED
                    - DUPLICATED
                    - FRAUD_CARD_NOT_PRESENT
                    - FRAUD_CARD_PRESENT
                    - FRAUD_OTHER
                    - GOODS_SERVICES_NOT_AS_DESCRIBED
                    - GOODS_SERVICES_NOT_RECEIVED
                    - INCORRECT_AMOUNT
                    - MISSING_AUTH
                    - OTHER
                    - PROCESSING_ERROR
                    - RECURRING_TRANSACTION_NOT_CANCELLED
                    - REFUND_NOT_PROCESSED
                  type: string
                transaction_token:
                  description: Transaction for chargeback
                  format: uuid
                  type: string
              required:
                - amount
                - reason
                - transaction_token
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute-v1'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Request chargeback
      tags:
        - Chargeback
  /v1/disputes/{dispute_token}:
    delete:
      description: Withdraw chargeback request.
      operationId: deleteDisputeByToken
      parameters:
        - $ref: '#/components/parameters/disputeToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute-v1'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Withdraw chargeback request
      tags:
        - Chargeback
    get:
      description: Get chargeback request.
      operationId: getDisputeByToken
      parameters:
        - $ref: '#/components/parameters/disputeToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute-v1'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get chargeback request
      tags:
        - Chargeback
    patch:
      description: Update chargeback request. Can only be modified if status is `NEW`.
      operationId: updateDisputeByToken
      parameters:
        - $ref: '#/components/parameters/disputeToken'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                amount:
                  description: Amount for chargeback
                  type: integer
                customer_filed_date:
                  description: Date the customer filed the chargeback request
                  format: date-time
                  type: string
                customer_note:
                  description: Customer description
                  type: string
                reason:
                  description: Reason for chargeback
                  enum:
                    - ATM_CASH_MISDISPENSE
                    - CANCELLED
                    - DUPLICATED
                    - FRAUD_CARD_NOT_PRESENT
                    - FRAUD_CARD_PRESENT
                    - FRAUD_OTHER
                    - GOODS_SERVICES_NOT_AS_DESCRIBED
                    - GOODS_SERVICES_NOT_RECEIVED
                    - INCORRECT_AMOUNT
                    - MISSING_AUTH
                    - OTHER
                    - PROCESSING_ERROR
                    - RECURRING_TRANSACTION_NOT_CANCELLED
                    - REFUND_NOT_PROCESSED
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute-v1'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update chargeback request
      tags:
        - Chargeback
  /v1/disputes/{dispute_token}/evidences:
    get:
      description: List evidence for a chargeback request.
      operationId: getDisputeEvidences
      parameters:
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/disputeToken'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/dispute-evidence'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List evidence
      tags:
        - Chargeback
    post:
      description: >
        Use this endpoint to upload evidence for a chargeback request. It will return a URL to upload your
        documents to. The URL will expire in 30 minutes.


        Uploaded documents must either be a `jpg`, `png` or `pdf` file, and each must be less than 5 GiB.
      operationId: postEvidenceDocument
      parameters:
        - $ref: '#/components/parameters/disputeToken'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                filename:
                  description: Filename of the evidence.
                  type: string
              type: object
        required: false
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute-evidence'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Upload evidence
      tags:
        - Chargeback
  /v1/disputes/{dispute_token}/evidences/{evidence_token}:
    delete:
      description: >-
        Soft delete evidence for a chargeback request. Evidence will not be reviewed or submitted by Lithic
        after it is withdrawn.
      operationId: deleteDisputeEvidenceByToken
      parameters:
        - $ref: '#/components/parameters/disputeEvidenceToken'
        - $ref: '#/components/parameters/disputeToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute-evidence'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Delete evidence
      tags:
        - Chargeback
    get:
      description: Get evidence for a chargeback request.
      operationId: getDisputeEvidenceByToken
      parameters:
        - $ref: '#/components/parameters/disputeEvidenceToken'
        - $ref: '#/components/parameters/disputeToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute-evidence'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get evidence
      tags:
        - Chargeback
  /v1/embed/card:
    get:
      description: >
        Handling full card PANs and CVV codes requires that you comply with the Payment Card Industry Data
        Security Standards (PCI DSS). Some clients choose to reduce their compliance obligations by leveraging
        our embedded card UI solution documented below.


        In this setup, PANs and CVV codes are presented to the end-user via a card UI that we provide,
        optionally styled in the customer's branding using a specified css stylesheet. A user's browser makes
        the request directly to api.lithic.com, so card PANs and CVVs never touch the API customer's servers
        while full card data is displayed to their end-users. The response contains an HTML document (see
        Embedded Card UI or Changelog for upcoming changes in January). This means that the url for the
        request can be inserted straight into the `src` attribute of an iframe.


        ```html

        <iframe id="card-iframe"
                src="https://sandbox.lithic.com/v1/embed/card?embed_request=eyJjc3MiO...;hmac=r8tx1..."
                allow="clipboard-write" class="content"></iframe>
        ```


        You should compute the request payload on the server side. You can render it (or the whole iframe) on
        the server or make an ajax call from your front end code, but **do not ever embed your API key into
        front end code, as doing so introduces a serious security vulnerability**.
      operationId: getEmbedCard
      parameters:
        - description: A base64 encoded JSON string of an EmbedRequest to specify which card to load.
          in: query
          name: embed_request
          required: true
          schema:
            type: string
        - description: SHA256 HMAC of the embed_request JSON string with base64 digest.
          in: query
          name: hmac
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            text/html:
              examples:
                html:
                  summary: Card UI
                  value: >
                    <html>

                    <head>

                    <link rel="stylesheet" type="text/css"
                    href="https://demo.lithic.com/backend/embedded.css">

                    <style>
                        #alert { display: none; }
                    </style>

                    <script type="text/javascript">
                        var timeout;

                        function clearAlertDelay() {
                            clearTimeout(timeout);
                            var messageDiv = document.getElementById('alert');
                            timeout = window.setTimeout(
                                function() {
                                    messageDiv.className = "empty";
                                    messageDiv.innerText = "";
                                },
                                1200
                            );
                        }

                        function copySuccess(divId) {
                            var messageDiv = document.getElementById('alert');
                            messageDiv.innerText = divId + " copied to clipboard";
                            messageDiv.className = "success";
                            console.log('Copying to clipboard was successful!');
                            clearAlertDelay();
                        }

                        function copyFailed(divId) {
                            var messageDiv = document.getElementById('alert');
                            messageDiv.innerText = "error copying " + divId;
                            messageDiv.className = "error";
                            console.error('Copying to clipboard failed');
                            clearAlertDelay();
                        }

                        function copyToClip(divId) {
                            var messageDiv = document.getElementById('alert');
                            var copyEl = document.getElementById(divId);
                            var copyText = copyEl.textContent;
                            navigator.clipboard.writeText(copyText)
                                .then(function () {
                                    copySuccess(divId);
                                    clearAlertDelay();
                                })
                                .catch(function(err) {
                                    try {
                                        var copied = false;
                                        if (document.createRange) {
                                            range = document.createRange();
                                            range.selectNode(copyEl)
                                            select = window.getSelection();
                                            select.removeAllRanges();
                                            select.addRange(range);
                                            copied = document.execCommand('copy');
                                            select.removeAllRanges();
                                        }
                                        else {
                                            range = document.body.createTextRange();
                                            range.moveToElementText(copyEl);
                                            range.select();
                                            copied = document.execCommand('copy');
                                        }

                                        if (copied) {
                                            copySuccess(divId);
                                        }
                                        else {
                                            copyFailed(divId);
                                        }
                                    }
                                    catch (err) {
                                        copyFailed(divId);
                                    }
                                    clearAlertDelay();
                                })
                        }
                    </script>

                    </head>

                    <body>
                        <div id="card">
                            <div id="pan" onclick="copyToClip('pan')">9999<span class='pan-separator'></span>9999<span class='pan-separator'></span>9999<span class='pan-separator'></span>9999</div>
                            <div id="expiry">
                                <span id="month" onclick="copyToClip('month')">08</span>
                                <span id="separator">/</span>
                                <span id="year" onclick="copyToClip('year')">27</span>
                            </div>
                            <div id="cvv" onclick="copyToClip('cvv')">574</div>
                            <div id="alert" class="empty"></div>
                        </div>
                    </body>

                    </html>
              schema:
                type: string
          description: >
            The endpoint returns an HTML document similar to the one below. It is up to the API client to
            provide css styles for these elements in the EmbedRequest. You can always rely on the `card`,
            `pan`, `expiry`, `cvv`, and `alert` ids, as well as the `pan-separator` class. You shouldn't make
            any other assumptions about the structure of the document as it could change at any time.


            Note that using the default style sheet there is no visual indication that copying is happening
            on-click, and you may need to add on-click styling yourself.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Embedded card UI
      tags:
        - Card
  /v1/fraud/transactions/{transaction_token}:
    get:
      description: |
        Retrieve a fraud report for a specific transaction identified by its unique transaction token.
      summary: Get a fraud report for a transaction
      operationId: getFraudReport
      tags:
        - Fraud Report
      parameters:
        - required: true
          schema:
            title: Transaction Token
            type: string
            format: uuid
          name: transaction_token
          description: The token of the transaction that the enhanced data is associated with.
          in: path
          example: 00000000-0000-0000-0000-000000000000
      responses:
        '200':
          description: Fraud report for the specified transaction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/fraud-report-response'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
    post:
      description: >
        Report fraud for a specific transaction token by providing details such as fraud type, fraud status,
        and any additional comments.
      summary: Create or update a fraud report for a transaction
      operationId: createUpdateFraudReport
      tags:
        - Fraud Report
      parameters:
        - required: true
          schema:
            title: Transaction Token
            type: string
            format: uuid
          name: transaction_token
          description: The token of the transaction that the enhanced data is associated with.
          in: path
          example: 00000000-0000-0000-0000-000000000000
      requestBody:
        required: true
        description: The details of the fraud report to create or update.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/fraud-report-request'
      responses:
        '200':
          description: The created or updated fraud report.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/fraud-report-response'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /v1/transactions/{transaction_token}/enhanced_commercial_data:
    get:
      description: Get all L2/L3 enhanced commercial data associated with a transaction. Not available in sandbox.
      summary: List enhanced commercial data
      operationId: listEnhancedTransactionData
      tags:
        - Transaction
      parameters:
        - required: true
          schema:
            title: Transaction Token
            type: string
            format: uuid
          name: transaction_token
          description: The token of the transaction that the enhanced data is associated with.
          in: path
          example: 00000000-0000-0000-0000-000000000000
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhancedDataListResponse'
              examples:
                listEnhancedTransactionDataResponse:
                  value:
                    data:
                      - token: fda41769-2a3f-5532-898f-0d2034f2da85
                        transaction_token: 6b79924e-0f01-4bdf-9485-9f6da44b6be2
                        event_token: 49bbd49c-dfe1-56db-86ad-98c7c2bd75e4
                        common:
                          customer_reference_number: null
                          merchant_reference_number: null
                          order_date: null
                          line_items: []
                          tax:
                            merchant_tax_id: '521236050'
                            amount: null
                            exempt: null
                        fleet:
                          - service_type: SELF_SERVICE
                            driver_number: null
                            vehicle_number: '012345'
                            odometer: 12345
                            amount_totals:
                              gross_sale: 104
                              discount: null
                              net_sale: 104
                            fuel:
                              quantity: '0.24300'
                              type: PREMIUM_SUPER
                              unit_of_measure: GALLONS
                              unit_price: 4300
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /v1/transactions/{transaction_token}/expire_authorization:
    post:
      summary: Expire an authorization
      description: Expire authorization
      operationId: expireAuthorization
      tags:
        - Transaction
      parameters:
        - required: true
          schema:
            title: Transaction Token
            type: string
            format: uuid
          name: transaction_token
          description: The token of the transaction to expire.
          in: path
          example: 00000000-0000-0000-0000-000000000000
      responses:
        '202':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /v1/transactions/events/{event_token}/enhanced_commercial_data:
    get:
      description: Get L2/L3 enhanced commercial data associated with a transaction event. Not available in sandbox.
      summary: Get enhanced commercial data
      operationId: getEnhancedTransactionData
      tags:
        - Transaction
      parameters:
        - required: true
          schema:
            title: Event Token
            type: string
            format: uuid
          name: event_token
          description: The token of the transaction event that the enhanced data is associated with.
          in: path
          example: 00000000-0000-0000-0000-000000000000
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/enhanced-data'
              examples:
                getEnhancedTransactionDataResponse:
                  value:
                    token: fda41769-2a3f-5532-898f-0d2034f2da85
                    transaction_token: 6b79924e-0f01-4bdf-9485-9f6da44b6be2
                    event_token: 49bbd49c-dfe1-56db-86ad-98c7c2bd75e4
                    common:
                      customer_reference_number: null
                      merchant_reference_number: null
                      order_date: null
                      line_items: []
                      tax:
                        merchant_tax_id: '521236050'
                        amount: null
                        exempt: null
                    fleet:
                      - service_type: SELF_SERVICE
                        driver_number: null
                        vehicle_number: '012345'
                        odometer: 12345
                        amount_totals:
                          gross_sale: 104
                          discount: null
                          net_sale: 104
                        fuel:
                          quantity: '0.24300'
                          type: PREMIUM_SUPER
                          unit_of_measure: GALLONS
                          unit_price: 4300
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /v1/event_subscriptions:
    get:
      description: List all the event subscriptions.
      operationId: getEventSubscriptions
      parameters:
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  - description: A subscription for all events
                    disabled: false
                    token: ep_1srOrx2ZWZBpBUvZwXKQmoEYga1
                    url: https://example.com/webhook
                has_more: false
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/EventSubscription'
                    type: array
                  has_more:
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List event subscriptions
      tags:
        - Event
    post:
      description: Create a new event subscription.
      operationId: createEventSubscription
      requestBody:
        content:
          application/json:
            schema:
              properties:
                description:
                  description: Event subscription description.
                  type: string
                disabled:
                  default: false
                  description: Whether the event subscription is active (false) or inactive (true).
                  type: boolean
                event_types:
                  description: >-
                    Indicates types of events that will be sent to this subscription. If left blank, all types
                    will be sent.
                  items:
                    $ref: '#/components/schemas/event_type'
                  type: array
                url:
                  description: URL to which event webhooks will be sent. URL must be a valid HTTPS address.
                  format: uri
                  type: string
              required:
                - url
              type: object
      responses:
        '201':
          content:
            application/json:
              example:
                description: A subscription for all events
                disabled: false
                token: ep_1srOrx2ZWZBpBUvZwXKQmoEYga1
                url: https://example.com/webhook
                event_types:
                  - dispute.updated
              schema:
                $ref: '#/components/schemas/EventSubscription'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create event subscription
      tags:
        - Event
  /v1/event_subscriptions/{event_subscription_token}:
    delete:
      description: Delete an event subscription.
      operationId: deleteEventSubscription
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json: {}
      responses:
        '204':
          description: No Content
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Delete event subscription
      tags:
        - Event
    get:
      description: Get an event subscription.
      operationId: getEventSubscription
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                description: A subscription for all events
                disabled: false
                token: ep_1srOrx2ZWZBpBUvZwXKQmoEYga1
                url: https://example.com/webhook
                event_types:
                  - dispute.updated
              schema:
                $ref: '#/components/schemas/EventSubscription'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get event subscription
      tags:
        - Event
    patch:
      description: Update an event subscription.
      operationId: updateEventSubscription
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                description:
                  description: Event subscription description.
                  type: string
                disabled:
                  default: false
                  description: Whether the event subscription is active (false) or inactive (true).
                  type: boolean
                event_types:
                  description: >-
                    Indicates types of events that will be sent to this subscription. If left blank, all types
                    will be sent.
                  items:
                    $ref: '#/components/schemas/event_type'
                  type: array
                url:
                  description: URL to which event webhooks will be sent. URL must be a valid HTTPS address.
                  format: uri
                  type: string
              required:
                - url
              type: object
      responses:
        '200':
          content:
            application/json:
              example:
                description: A subscription for all events
                disabled: false
                token: ep_1srOrx2ZWZBpBUvZwXKQmoEYga1
                url: https://example.com/webhook
                event_types:
                  - dispute.updated
              schema:
                $ref: '#/components/schemas/EventSubscription'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update event subscription
      tags:
        - Event
  /v1/event_subscriptions/{event_subscription_token}/attempts:
    get:
      description: List all the message attempts for a given event subscription.
      operationId: getMessageAttemptsForEventSubscription
      parameters:
        - in: query
          name: status
          schema:
            enum:
              - FAILED
              - PENDING
              - SENDING
              - SUCCESS
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/eventSubscriptionToken'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/MessageAttempt'
                    type: array
                  has_more:
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List message attempts for an event subscription
      tags:
        - Event
  /v1/event_subscriptions/{event_subscription_token}/recover:
    post:
      description: Resend all failed messages since a given time.
      operationId: recoverEventSubscription
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
      requestBody:
        content:
          application/json: {}
      responses:
        '202':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Resend failed messages
      tags:
        - Event
  /v1/event_subscriptions/{event_subscription_token}/replay_missing:
    post:
      description: >
        Replays messages to the endpoint. Only messages that were created after `begin` will be sent. Messages
        that were previously sent to the endpoint are not resent.

        Message will be retried if endpoint responds with a non-2xx status code. See [Retry
        Schedule](https://docs.lithic.com/docs/events-api#retry-schedule) for details.
      operationId: replayMissingEventSubscription
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '202':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Replay missing messages
      tags:
        - Event
  /v1/event_subscriptions/{event_subscription_token}/secret:
    get:
      description: Get the secret for an event subscription.
      operationId: getEventSubscriptionSecret
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                secret: whsec_C2FVsBQIhrscChlQIMA
              schema:
                properties:
                  secret:
                    description: The secret for the event subscription.
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get event subscription secret
      tags:
        - Event
  /v1/event_subscriptions/{event_subscription_token}/secret/rotate:
    post:
      description: |
        Rotate the secret for an event subscription. The previous secret will be valid for the next 24 hours.
      operationId: rotateEventSubscriptionSecret
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
      responses:
        '204':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Rotate event subscription secret
      tags:
        - Event
  /v1/events:
    get:
      description: List all events.
      operationId: getEvents
      parameters:
        - description: Event types to filter events by.
          explode: false
          in: query
          name: event_types
          required: false
          schema:
            items:
              $ref: '#/components/schemas/event_type'
            maxLength: 10
            type: array
          style: form
        - description: Whether to include the event payload content in the response.
          in: query
          name: with_content
          required: false
          schema:
            type: boolean
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  - created: '2020-07-08T17:57:36Z'
                    event_type: dispute.updated
                    payload: {}
                    token: msg_1srOrx2ZWZBpBUvZwXKQmoEYga1
                has_more: false
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/Event'
                    type: array
                  has_more:
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List events
      tags:
        - Event
  /v1/events/{event_token}:
    get:
      description: Get an event.
      operationId: getEvent
      parameters:
        - in: path
          name: event_token
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Event'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get event
      tags:
        - Event
  /v1/events/{event_token}/attempts:
    get:
      description: List all the message attempts for a given event.
      operationId: getMessageAttemptsForEvent
      parameters:
        - in: query
          name: status
          schema:
            enum:
              - FAILED
              - PENDING
              - SENDING
              - SUCCESS
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/eventToken'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/MessageAttempt'
                    type: array
                  has_more:
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List message attempts for an event
      tags:
        - Event
  /v1/events/{event_token}/event_subscriptions/{event_subscription_token}/resend:
    post:
      description: Resend an event to an event subscription.
      operationId: resendEvent
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
        - in: path
          name: event_token
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json: {}
      responses:
        '202':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Resend event
      tags:
        - Event
  /v1/external_bank_accounts:
    get:
      description: List all the external bank accounts for the provided search criteria.
      operationId: searchExternalBankAccounts
      parameters:
        - in: query
          name: account_token
          required: false
          schema:
            format: uuid
            title: Account Token
            type: string
        - in: query
          name: account_types
          required: false
          schema:
            items:
              $ref: '#/components/schemas/account_type'
              x-stainless-naming:
                java:
                  type_name: AccountType
            title: Account Types
            type: array
        - in: query
          name: countries
          required: false
          schema:
            items:
              type: string
            title: Countries
            type: array
        - in: query
          name: owner_types
          required: false
          schema:
            items:
              $ref: '#/components/schemas/owner_type'
            title: Owner Types
            type: array
        - in: query
          name: states
          required: false
          schema:
            items:
              $ref: '#/components/schemas/account_state'
              x-stainless-naming:
                java:
                  type_name: AccountState
            title: Account States
            type: array
        - in: query
          name: verification_states
          required: false
          schema:
            items:
              $ref: '#/components/schemas/verification_state'
            title: Verification States
            type: array
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_accounts_api_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List external bank accounts
      tags:
        - External Bank Account
    post:
      description: Creates an external bank account within a program or Lithic account.
      operationId: createExternalBankAccount
      requestBody:
        content:
          application/json:
            examples:
              createBankAccountViaMicroDeposits:
                summary: Add external bank account via Micro Deposit Verification
                value:
                  account_number: '13719713158835300'
                  address:
                    address1: 5 Broad Street
                    city: New York
                    country: USA
                    postal_code: '10001'
                    state: NY
                  country: USA
                  currency: USD
                  name: John Does Checking
                  financial_account_token: dabadb3b-700c-41e3-8801-d5dfc84ebea0
                  owner: John Doe
                  owner_type: BUSINESS
                  routing_number: '011103093'
                  type: CHECKING
                  verification_method: MICRO_DEPOSIT
              createBankAccountViaPrenote:
                summary: Add external bank account via Prenote Verification
                value:
                  account_number: '13719713158835300'
                  address:
                    address1: 5 Broad Street
                    city: New York
                    country: USA
                    postal_code: '10001'
                    state: NY
                  country: USA
                  currency: USD
                  name: John Does Checking
                  financial_account_token: dabadb3b-700c-41e3-8801-d5dfc84ebea0
                  owner: John Doe
                  owner_type: BUSINESS
                  routing_number: '011103093'
                  type: CHECKING
                  verification_method: PRENOTE
            schema:
              discriminator:
                propertyName: verification_method
                mapping:
                  MICRO_DEPOSIT: '#/components/schemas/bank_verified_create_bank_account_api_request'
                  PRENOTE: '#/components/schemas/bank_verified_create_bank_account_api_request'
                  EXTERNALLY_VERIFIED: '#/components/schemas/externally_verified_create_bank_account_api_request'
                  UNVERIFIED: '#/components/schemas/unverified_create_bank_account_api_request'
              oneOf:
                - $ref: '#/components/schemas/bank_verified_create_bank_account_api_request'
                - $ref: '#/components/schemas/externally_verified_create_bank_account_api_request'
                - $ref: '#/components/schemas/unverified_create_bank_account_api_request'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response_unlinked'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/create_external_bank_account_error_response'
          description: Conflict
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create external bank account
      tags:
        - External Bank Account
  /v1/external_bank_accounts/{external_bank_account_token}:
    get:
      description: Get the external bank account by token.
      operationId: getExternalBankAccountByToken
      parameters:
        - in: path
          name: external_bank_account_token
          required: true
          schema:
            format: uuid
            title: External Bank Account Token
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response_unlinked'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get external bank account by token
      tags:
        - External Bank Account
    patch:
      description: Update the external bank account by token.
      operationId: patchExternalBankAccountByToken
      parameters:
        - in: path
          name: external_bank_account_token
          required: true
          schema:
            format: uuid
            title: External Bank Account Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/update_bank_account_api_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response_unlinked'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update external bank account
      tags:
        - External Bank Account
  /v1/external_bank_accounts/{external_bank_account_token}/micro_deposits:
    post:
      description: Verify the external bank account by providing the micro deposit amounts.
      operationId: verifyExternalBankAccountByMicroDeposits
      parameters:
        - in: path
          name: external_bank_account_token
          required: true
          schema:
            format: uuid
            title: External Bank Account Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/micro_deposit_verification_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response_unlinked'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Verify external bank account via micro deposit amounts
      tags:
        - External Bank Account
  /v1/external_bank_accounts/{external_bank_account_token}/retry_micro_deposits:
    post:
      description: Retry external bank account micro deposit verification.
      operationId: retryMicroDeposit
      parameters:
        - in: path
          name: external_bank_account_token
          required: true
          schema:
            format: uuid
            title: External Bank Account Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/retry_micro_deposit_verification_request'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response_unlinked'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retry external bank account via micro deposit
      tags:
        - External Bank Account
  /v1/external_bank_accounts/{external_bank_account_token}/retry_prenote:
    post:
      description: Retry external bank account prenote verification.
      operationId: retryPrenote
      parameters:
        - in: path
          name: external_bank_account_token
          required: true
          schema:
            format: uuid
            title: External Bank Account Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/retry_prenote_verification_request'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retry external bank account via prenote
      tags:
        - External Bank Account
  /v1/external_bank_accounts/{external_bank_account_token}/set_verification_method:
    post:
      description: |
        Update the verification method for an external bank account. Verification method can only be updated
        if the `verification_state` is `PENDING`.
      operationId: setVerificationMethod
      parameters:
        - in: path
          name: external_bank_account_token
          required: true
          schema:
            format: uuid
            title: External Bank Account Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/set_verification_method_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Set verification method
      tags:
        - External Bank Account
  /v1/external_bank_accounts/{external_bank_account_token}/unpause:
    post:
      description: |
        Unpause an external bank account
      operationId: unpauseExternalBankAccount
      parameters:
        - in: path
          name: external_bank_account_token
          required: true
          schema:
            format: uuid
            title: External Bank Account Token
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bank_account_api_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Unpause external bank account
      tags:
        - External Bank Account
  /v1/credit_products/{credit_product_token}/extended_credit:
    get:
      description: Get the extended credit for a given credit product under a program
      operationId: getExtendedCredit
      parameters:
        - description: Credit Product Token
          in: path
          name: credit_product_token
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/extended_credit'
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get extended credit
      tags:
        - Credit Product
  /v1/credit_products/{credit_product_token}/prime_rates:
    get:
      operationId: getPrimeRates
      parameters:
        - description: Globally unique identifier for credit products.
          in: path
          name: credit_product_token
          required: true
          schema:
            description: Globally unique identifier for credit products.
            title: Credit Product Token
            type: string
        - in: query
          name: starting_after
          required: false
          schema:
            type: string
            format: date
          description: The effective date that the prime rate starts after
        - in: query
          name: ending_before
          required: false
          schema:
            type: string
            format: date
          description: The effective date that the prime rates ends before
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/prime_rates_response'
          description: Successful Response
      summary: Get Credit Product Prime Rates
      tags:
        - Credit Product
    post:
      operationId: createPrimeRates
      parameters:
        - description: Globally unique identifier for credit products.
          in: path
          name: credit_product_token
          required: true
          schema:
            description: Globally unique identifier for credit products.
            title: Credit Product Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/interest_rate'
        required: true
      responses:
        '202':
          description: Successful Response
      summary: Post Credit Product Prime Rate
      tags:
        - Credit Product
  /v1/financial_accounts:
    get:
      description: Retrieve information on your financial accounts including routing and account number.
      operationId: getFinancialAccounts
      parameters:
        - description: List financial accounts for a given account_token or business_account_token
          in: query
          name: account_token
          schema:
            format: uuid
            type: string
        - description: List financial accounts for a given business_account_token
          in: query
          name: business_account_token
          schema:
            format: uuid
            type: string
        - description: List financial accounts of a given type
          in: query
          name: type
          schema:
            enum:
              - ISSUING
              - OPERATING
              - RESERVE
              - SECURITY
              - EARLY_DIRECT_DEPOSIT_FLOAT
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-accounts-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List financial accounts
      tags:
        - Financial Account
    post:
      description: Create a new financial account
      operationId: createFinancialAccount
      parameters:
        - $ref: '#/components/parameters/idempotencyKey'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFinancialAccountRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create financial account
      tags:
        - Financial Account
  /v1/financial_accounts/{financial_account_token}:
    get:
      description: Get a financial account
      operationId: getFinancialAccountByToken
      parameters:
        - in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get financial account
      tags:
        - Financial Account
    patch:
      description: Update a financial account
      operationId: updateFinancialAccountByToken
      parameters:
        - in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFinancialAccountRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update financial account
      tags:
        - Financial Account
  /v1/financial_accounts/{financial_account_token}/balances:
    get:
      description: Get the balances for a given financial account.
      operationId: getBalance
      parameters:
        - description: UTC date of the balance to retrieve. Defaults to latest available balance
          in: query
          name: balance_date
          schema:
            format: date-time
            type: string
        - description: >
            Balance after a given financial event occured.

            For example, passing the event_token of a $5 CARD_CLEARING financial event will return a balance
            decreased by $5
          in: query
          name: last_transaction_event_token
          schema:
            format: uuid
            type: string
        - $ref: '#/components/parameters/financialAccountToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/financial-account-balance'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get balances
      tags:
        - Balance
  /v1/financial_accounts/{financial_account_token}/credit_configuration:
    get:
      description: Get an Account's credit configuration
      operationId: getAccountCreditConfiguration
      parameters:
        - $ref: '#/components/parameters/financialAccountToken'
      summary: Get account credit configuration
      tags:
        - Financial Account
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-credit-config-response'
    patch:
      description: Update an account's credit configuration
      operationId: patchAccountCreditConfiguration
      summary: Update account credit configuration
      tags:
        - Financial Account
      parameters:
        - $ref: '#/components/parameters/financialAccountToken'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/financial-account-credit-config-request'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-credit-config-response'
  /v1/financial_accounts/{financial_account_token}/financial_transactions:
    get:
      description: List the financial transactions for a given financial account.
      operationId: getFinancialTransactions
      parameters:
        - description: Financial Transaction category to be returned.
          in: query
          name: category
          schema:
            enum:
              - ACH
              - CARD
              - INTERNAL
              - TRANSFER
            type: string
        - description: Financial Transaction result to be returned.
          in: query
          name: result
          schema:
            enum:
              - APPROVED
              - DECLINED
            type: string
        - description: Financial Transaction status to be returned.
          in: query
          name: status
          schema:
            enum:
              - DECLINED
              - EXPIRED
              - PENDING
              - RETURNED
              - SETTLED
              - VOIDED
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/financialAccountToken'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/financial-account-transaction'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List financial transactions
      tags:
        - Financial Account
  /v1/financial_accounts/{financial_account_token}/financial_transactions/{financial_transaction_token}:
    get:
      description: Get the financial transaction for the provided token.
      operationId: getFinancialTransactionByToken
      parameters:
        - $ref: '#/components/parameters/financialAccountToken'
        - $ref: '#/components/parameters/financialTransactionToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get financial transaction
      tags:
        - Financial Account
  /v1/financial_accounts/{financial_account_token}/register_account_number:
    post:
      description: Register account number
      operationId: registerAccountNumber
      parameters:
        - $ref: '#/components/parameters/financialAccountToken'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/register_account_number_request'
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Register Account Number
      tags:
        - Financial Account
  /v1/financial_accounts/{financial_account_token}/holds:
    get:
      description: List holds for a financial account.
      operationId: getFinancialAccountHolds
      parameters:
        - description: Globally unique identifier for the financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
        - description: Hold status to filter by.
          in: query
          name: status
          required: false
          schema:
            $ref: '#/components/schemas/hold_status'
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/holds_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List holds
      tags:
        - Hold
    post:
      description: |
        Create a hold on a financial account. Holds reserve funds by moving them
        from available to pending balance. They can be resolved via settlement
        (linked to a payment or book transfer), voiding, or expiration.
      operationId: createHold
      parameters:
        - description: Globally unique identifier for the financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/create_hold_request'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hold_transaction'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create hold
      tags:
        - Hold
  /v1/holds/{hold_token}:
    get:
      description: Get hold by token.
      operationId: getHold
      parameters:
        - description: Globally unique identifier for the hold.
          in: path
          name: hold_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hold_transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get hold
      tags:
        - Hold
  /v1/holds/{hold_token}/void:
    post:
      description: |
        Void an active hold. This returns the held funds from pending back to
        available balance. Only holds in PENDING status can be voided.
      operationId: voidHold
      parameters:
        - description: Globally unique identifier for the hold.
          in: path
          name: hold_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/void_hold_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hold_transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Void hold
      tags:
        - Hold
  /v1/financial_accounts/{financial_account_token}/statements:
    get:
      description: List the statements for a given financial account.
      operationId: getStatements
      parameters:
        - description: Date string in RFC 3339 format. Only entries created after the specified date will be included.
          in: query
          name: begin
          required: false
          schema:
            description: Date string in RFC 3339 format. Only entries created after the specified date will be included.
            format: date
            title: Begin
            type: string
        - description: Date string in RFC 3339 format. Only entries created before the specified date will be included.
          in: query
          name: end
          required: false
          schema:
            description: Date string in RFC 3339 format. Only entries created before the specified date will be included.
            format: date
            title: End
            type: string
        - description: >-
            A cursor representing an item's token before which a page of results should end. Used to retrieve
            the previous page of results before this item.
          in: query
          name: ending_before
          required: false
          schema:
            description: >-
              A cursor representing an item's token before which a page of results should end. Used to
              retrieve the previous page of results before this item.
            title: Ending Before
            type: string
        - description: Globally unique identifier for financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            description: Globally unique identifier for financial account.
            format: uuid
            title: Financial Account Token
            type: string
        - description: Page size (for pagination).
          in: query
          name: page_size
          required: false
          schema:
            default: 50
            description: Page size (for pagination).
            maximum: 100
            minimum: 1
            title: Page Size
            type: integer
        - description: >-
            A cursor representing an item's token after which a page of results should begin. Used to retrieve
            the next page of results after this item.
          in: query
          name: starting_after
          required: false
          schema:
            description: >-
              A cursor representing an item's token after which a page of results should begin. Used to
              retrieve the next page of results after this item.
            title: Starting After
            type: string
        - description: Whether to include the initial statement. It is not included by default.
          in: query
          name: include_initial_statements
          required: false
          schema:
            description: Whether to include the initial statement. It is not included by default.
            title: Include Initial Statements
            type: boolean
            default: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/statements_response'
          description: OK
      summary: List statements
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/statements/{statement_token}:
    get:
      description: Get a specific statement for a given financial account.
      operationId: getStatement
      parameters:
        - description: Globally unique identifier for financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            description: Globally unique identifier for financial account.
            format: uuid
            title: Financial Account Token
            type: string
        - description: Globally unique identifier for statements.
          in: path
          name: statement_token
          required: true
          schema:
            description: Globally unique identifier for statements.
            title: Statement Token
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/statement_response'
          description: OK
      summary: Get statement by token
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/statements/{statement_token}/line_items:
    get:
      description: List the line items for a given statement within a given financial account.
      operationId: getStatementLineItems
      parameters:
        - description: >-
            A cursor representing an item's token before which a page of results should end. Used to retrieve
            the previous page of results before this item.
          in: query
          name: ending_before
          required: false
          schema:
            description: >-
              A cursor representing an item's token before which a page of results should end. Used to
              retrieve the previous page of results before this item.
            title: Ending Before
            type: string
        - description: Globally unique identifier for financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            description: Globally unique identifier for financial account.
            format: uuid
            title: Financial Account Token
            type: string
        - description: Page size (for pagination).
          in: query
          name: page_size
          required: false
          schema:
            default: 50
            description: Page size (for pagination).
            maximum: 100
            minimum: 1
            title: Page Size
            type: integer
        - description: >-
            A cursor representing an item's token after which a page of results should begin. Used to retrieve
            the next page of results after this item.
          in: query
          name: starting_after
          required: false
          schema:
            description: >-
              A cursor representing an item's token after which a page of results should begin. Used to
              retrieve the next page of results after this item.
            title: Starting After
            type: string
        - description: Globally unique identifier for statements.
          in: path
          name: statement_token
          required: true
          schema:
            description: Globally unique identifier for statements.
            title: Statement Token
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/statement_line_items_response'
          description: OK
      summary: List line items for a statement
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/loan_tapes:
    get:
      description: List the loan tapes for a given financial account.
      operationId: getLoanTapes
      parameters:
        - description: Date string in RFC 3339 format. Only entries created after the specified date will be included.
          in: query
          name: begin
          required: false
          schema:
            description: Date string in RFC 3339 format. Only entries created after the specified date will be included.
            format: date
            title: Begin
            type: string
        - description: Date string in RFC 3339 format. Only entries created before the specified date will be included.
          in: query
          name: end
          required: false
          schema:
            description: Date string in RFC 3339 format. Only entries created before the specified date will be included.
            format: date
            title: End
            type: string
        - description: >-
            A cursor representing an item's token before which a page of results should end. Used to retrieve
            the previous page of results before this item.
          in: query
          name: ending_before
          required: false
          schema:
            description: >-
              A cursor representing an item's token before which a page of results should end. Used to
              retrieve the previous page of results before this item.
            title: Ending Before
            type: string
        - description: Globally unique identifier for financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            description: Globally unique identifier for financial account.
            format: uuid
            title: Financial Account Token
            type: string
        - description: Page size (for pagination).
          in: query
          name: page_size
          required: false
          schema:
            default: 50
            description: Page size (for pagination).
            maximum: 100
            minimum: 1
            title: Page Size
            type: integer
        - description: >-
            A cursor representing an item's token after which a page of results should begin. Used to retrieve
            the next page of results after this item.
          in: query
          name: starting_after
          required: false
          schema:
            description: >-
              A cursor representing an item's token after which a page of results should begin. Used to
              retrieve the next page of results after this item.
            title: Starting After
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/loan_tapes_response'
          description: OK
      summary: List loan tapes
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/loan_tapes/{loan_tape_token}:
    get:
      description: Get a specific loan tape for a given financial account.
      operationId: getLoanTape
      parameters:
        - description: Globally unique identifier for financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            description: Globally unique identifier for financial account.
            format: uuid
            title: Financial Account Token
            type: string
        - description: Globally unique identifier for loan tape.
          in: path
          name: loan_tape_token
          required: true
          schema:
            description: Globally unique identifier for loan tape.
            title: Loan Tape Token
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/loan_tape_response'
          description: OK
      summary: Get loan tape by token
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/loan_tape_configuration:
    get:
      description: Get the loan tape configuration for a given financial account.
      operationId: getLoanTapeConfiguration
      parameters:
        - description: Globally unique identifier for financial account.
          in: path
          name: financial_account_token
          required: true
          schema:
            description: Globally unique identifier for financial account.
            format: uuid
            title: Financial Account Token
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/loan_tape_configuration'
          description: OK
      summary: Get loan tape configuration
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/interest_tier_schedule:
    get:
      description: |-
        List interest tier schedules for a financial account with optional date filtering.

        If no date parameters are provided, returns all tier schedules.
        If date parameters are provided, uses filtering to return matching schedules (max 100).
        - for_date: Returns exact match (takes precedence over other dates)
        - before_date: Returns schedules with effective_date <= before_date
        - after_date: Returns schedules with effective_date >= after_date
        - Both before_date and after_date: Returns schedules in range
      operationId: listInterestTierSchedules
      parameters:
        - description: Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
          in: query
          name: after_date
          required: false
          schema:
            format: date
            type: string
        - description: Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
          in: query
          name: before_date
          required: false
          schema:
            format: date
            type: string
        - description: Globally unique identifier for financial account
          in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
        - description: Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
          in: query
          name: for_date
          required: false
          schema:
            format: date
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tier_schedule_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List interest tier schedules
      tags:
        - Statements
    post:
      description: Create a new interest tier schedule entry for a supported financial account
      operationId: createInterestTierSchedule
      parameters:
        - description: Globally unique identifier for financial account
          in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tier_schedule_entry'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tier_schedule_entry'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create interest tier schedule
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/interest_tier_schedule/{effective_date}:
    delete:
      description: >-
        Delete an interest tier schedule entry.


        Returns:

        - 400 Bad Request: Invalid effective_date format OR attempting to delete the earliest
          tier schedule entry for a non-PENDING account
        - 404 Not Found: Tier schedule entry not found for the given effective_date OR ledger account not
        found


        Note: PENDING accounts can delete the earliest tier schedule entry (account hasn't opened yet).

        Active/non-PENDING accounts cannot delete the earliest entry to prevent orphaning the account.


        If the deleted tier schedule has a past effective_date and the account is ACTIVE,

        the loan tape rebuild configuration will be updated to trigger rebuilds from that date.
      operationId: deleteInterestTierSchedule
      parameters:
        - description: Effective date in ISO format (YYYY-MM-DD)
          in: path
          name: effective_date
          required: true
          schema:
            format: date
            type: string
        - description: Globally unique identifier for financial account
          in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '204':
          description: No Content
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Delete interest tier schedule
      tags:
        - Statements
    get:
      description: Get a specific interest tier schedule by effective date
      operationId: getInterestTierSchedule
      parameters:
        - description: Effective date in ISO format (YYYY-MM-DD)
          in: path
          name: effective_date
          required: true
          schema:
            format: date
            type: string
        - description: Globally unique identifier for financial account
          in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tier_schedule_entry'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get interest tier schedule
      tags:
        - Statements
    put:
      description: Update an existing interest tier schedule
      operationId: updateInterestTierSchedule
      parameters:
        - description: Effective date in ISO format (YYYY-MM-DD)
          in: path
          name: effective_date
          required: true
          schema:
            format: date
            type: string
        - description: Globally unique identifier for financial account
          in: path
          name: financial_account_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/update_tier_schedule_entry_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tier_schedule_entry'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update interest tier schedule
      tags:
        - Statements
  /v1/financial_accounts/{financial_account_token}/update_status:
    post:
      description: Update financial account status
      operationId: updateFinancialAccountStatus
      summary: Update financial account status
      tags:
        - Financial Account
      parameters:
        - $ref: '#/components/parameters/financialAccountToken'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/update-financial-account-status-request'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/financial-account-response'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /v1/account_activity:
    get:
      operationId: listAccountActivity
      summary: List Account Activity
      description: Retrieve a list of transactions across all public accounts.
      parameters:
        - name: status
          in: query
          description: Filter by transaction status
          schema:
            enum:
              - DECLINED
              - EXPIRED
              - PENDING
              - RETURNED
              - REVERSED
              - SETTLED
              - VOIDED
        - name: result
          in: query
          description: Filter by transaction result
          schema:
            enum:
              - APPROVED
              - DECLINED
        - name: financial_account_token
          in: query
          description: Filter by financial account token
          schema:
            type: string
            format: uuid
        - name: business_account_token
          in: query
          description: Filter by business account token
          schema:
            type: string
            format: uuid
        - name: account_token
          in: query
          description: Filter by account token
          schema:
            type: string
            format: uuid
        - name: category
          in: query
          description: Filter by transaction category
          schema:
            $ref: '#/components/schemas/transaction_category'
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          description: Successful response with unified transaction data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/base-transactions-response'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      tags:
        - Financial Account
  /v1/account_activity/{transaction_token}:
    get:
      operationId: getAccountActivity
      summary: Get Single Transaction from Account Activity
      description: Retrieve a single transaction
      parameters:
        - name: transaction_token
          in: path
          required: true
          description: The unique identifier for the transaction
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response with the requested account activity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/base-transaction-response'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      tags:
        - Financial Account
  /v1/payments:
    get:
      description: List all the payments for the provided search criteria.
      operationId: searchPayments
      parameters:
        - in: query
          name: financial_account_token
          required: false
          schema:
            format: uuid
            title: Financial Account Token
            type: string
        - in: query
          name: business_account_token
          required: false
          schema:
            format: uuid
            title: Business Account Token
            type: string
        - in: query
          name: account_token
          required: false
          schema:
            format: uuid
            title: Account Token
            type: string
        - in: query
          name: result
          required: false
          schema:
            enum:
              - APPROVED
              - DECLINED
            title: Result
            type: string
        - in: query
          name: status
          required: false
          schema:
            enum:
              - DECLINED
              - PENDING
              - RETURNED
              - SETTLED
            title: Status
            type: string
        - in: query
          name: category
          required: false
          schema:
            enum:
              - ACH
            title: Category
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/payment-transaction'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List payments
      tags:
        - Payment
    post:
      description: Initiates a payment between a financial account and an external bank account.
      operationId: createPayment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePaymentRequest'
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPaymentResponse'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create payment
      tags:
        - Payment
  /v1/payments/{payment_token}:
    get:
      description: Get the payment by token.
      operationId: getPaymentByToken
      parameters:
        - in: path
          name: payment_token
          required: true
          schema:
            format: uuid
            title: Payment Token
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/payment-transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get payment by token
      tags:
        - Payment
  /v1/payments/{payment_token}/retry:
    post:
      description: Retry an origination which has been returned.
      operationId: retryPayment
      parameters:
        - in: path
          name: payment_token
          required: true
          schema:
            format: uuid
            title: Payment Token
            type: string
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPaymentResponse'
          description: Accepted
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retry payment
      tags:
        - Payment
  /v1/payments/{payment_token}/return:
    post:
      description: >
        Return an ACH payment with a specified return reason code. Returns must be initiated

        within the time window specified by NACHA rules for each return code (typically 2 banking

        days for most codes, 60 calendar days for unauthorized debits). For a complete list of

        return codes and their meanings, see the [ACH Return Reasons
        documentation](https://docs.lithic.com/docs/ach-overview#ach-return-reasons).


        Note:
          * This endpoint does not modify the state of the financial account associated with the payment. If you would like to change the account state, use the [Update financial account status](https://docs.lithic.com/reference/updatefinancialaccountstatus) endpoint.
          * By default this endpoint is not enabled for your account. Please contact your implementations manager to enable this feature.
      operationId: returnPayment
      parameters:
        - in: path
          name: payment_token
          required: true
          schema:
            format: uuid
            title: Payment Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/payment_return_request'
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/payment-transaction'
          description: Accepted
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: >
                      | Message | Description |

                      |---|---|

                      | Invalid account | The financial account token provided does not exist or is invalid |

                      | Invalid return reason code: {code} | The return reason code provided is not a valid
                      NACHA return code |

                      | Return code RXX cannot be used for X accounts (SEC code: XYZ) | The return code is not
                      valid for the account type (consumer vs non-consumer) |

                      | Return window expired. RXX must be initiated within {time_window}. Transaction posted
                      {days} days ago. | The return is being initiated outside the allowed time window for the
                      return code |

                      | date_of_death is required for return reason code RXX | The return code (R14 or R15)
                      requires a date_of_death parameter |

                      | date_of_death must be in YYYY-MM-DD format, got: {date} | The date_of_death parameter
                      is not in the correct format |
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: >
                      | Message | Description |

                      |---|---|

                      | Transaction not found for this instance | The payment token does not correspond to a
                      transaction for this account |
        '412':
          description: Precondition Failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: >
                      | Message | Description |

                      |---|---|

                      | Could only return ACH receipt | The transaction is not an ACH receipt (credit or
                      debit) |

                      | Cannot return an ACH receipt that has already been returned | A return has already
                      been initiated for this payment |

                      | Cannot return an ACH receipt that has not yet settled | The payment must be settled
                      before it can be returned |
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Return payment
      tags:
        - Payment
  /v1/reports/settlement/details/{report_date}:
    get:
      description: List details.
      operationId: getSettlementDetails
      parameters:
        - description: Date of the settlement report to retrieve. Not available in sandbox.
          example: '2023-09-01'
          in: path
          name: report_date
          required: true
          schema:
            format: date
            type: string
        - $ref: '#/components/parameters/endingBefore'
        - description: Number of records per page.
          in: query
          name: page_size
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 50
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  - account_token: 6c25d6a4-4ff3-46f0-8f9b-f2cbb7e20e09
                    card_program_token: 62135b36-324f-443a-a630-bab38fe86868
                    card_token: 047298ea-5789-46e4-95fa-154aeeab6af3
                    created: '2023-06-17T13:00:29.979106'
                    currency: USD
                    disputes_gross_amount: 0
                    event_tokens:
                      - 8fce9192-41ff-4a7a-8359-bd33b3e0a7c9
                    institution: '00001'
                    interchange_fee_extended_precision: -70000
                    interchange_gross_amount: -7
                    network: VISA
                    other_fees_details: {}
                    other_fees_gross_amount: 0
                    report_date: '2023-06-16'
                    settlement_date: '2023-06-16'
                    token: e34a817f-119d-4976-9fb3-8b020b8bbec3
                    transaction_token: 0e98152b-3753-4a17-bfe2-c6f575c83b85
                    transactions_gross_amount: 1900
                    type: CLEARING
                    updated: '2023-06-17T13:00:29.979106'
                has_more: false
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/SettlementDetail'
                    type: array
                  has_more:
                    description: More data exists.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List settlement details
      tags:
        - Settlement Report
  /v1/reports/settlement/summary/{report_date}:
    get:
      description: Get the settlement report for a specified report date. Not available in sandbox.
      operationId: getSummary
      parameters:
        - description: Date of the settlement report to retrieve.
          example: '2023-09-01'
          in: path
          name: report_date
          required: true
          schema:
            format: date
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/settlement-report'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get settlement summary
      tags:
        - Settlement Report
  /v1/reports/settlement/network_totals:
    get:
      description: List network total records with optional filters. Not available in sandbox.
      operationId: listNetworkTotals
      parameters:
        - description: >-
            Singular report date to filter on (YYYY-MM-DD). Cannot be populated in conjunction with
            report_date_begin or report_date_end.
          in: query
          name: report_date
          schema:
            format: date
            type: string
        - description: Earliest report date to filter on, inclusive (YYYY-MM-DD).
          in: query
          name: report_date_begin
          schema:
            format: date
            type: string
        - description: Latest report date to filter on, inclusive (YYYY-MM-DD).
          in: query
          name: report_date_end
          schema:
            format: date
            type: string
        - description: Network to filter on.
          in: query
          name: network
          schema:
            type: string
            enum:
              - VISA
              - MASTERCARD
              - MAESTRO
              - INTERLINK
        - description: Institution ID to filter on.
          in: query
          name: institution_id
          schema:
            type: string
        - description: Settlement institution ID to filter on.
          in: query
          name: settlement_institution_id
          schema:
            type: string
        - description: >-
            Datetime in RFC 3339 format. Only entries created after the specified time will be included. UTC
            time zone.
          in: query
          name: begin
          schema:
            format: date-time
            type: string
        - description: >-
            Datetime in RFC 3339 format. Only entries created before the specified time will be included. UTC
            time zone.
          in: query
          name: end
          schema:
            format: date-time
            type: string
        - description: Number of records per page.
          in: query
          name: page_size
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - description: >-
            A cursor representing an item's token after which a page of results should begin. Used to retrieve
            the next page of results after this item.
          in: query
          name: starting_after
          schema:
            type: string
            format: uuid
        - description: >-
            A cursor representing an item's token before which a page of results should end. Used to retrieve
            the previous page of results before this item.
          in: query
          name: ending_before
          schema:
            type: string
            format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/network_totals_list'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List network totals
      tags:
        - Settlement Report
  /v1/reports/settlement/network_totals/{token}:
    get:
      description: Retrieve a specific network total record by token. Not available in sandbox.
      operationId: getNetworkTotal
      parameters:
        - description: Token of the network total record to retrieve
          in: path
          name: token
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/network_total'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get network total
      tags:
        - Settlement Report
  /v1/responder_endpoints:
    delete:
      operationId: deleteResponderEndpoint
      parameters:
        - description: The type of the endpoint.
          in: query
          name: type
          required: true
          schema:
            enum:
              - AUTH_STREAM_ACCESS
              - THREE_DS_DECISIONING
              - TOKENIZATION_DECISIONING
            type: string
      responses:
        '200':
          content: {}
          description: Endpoint disenrolled successfully
      summary: Disenroll a responder endpoint
      tags:
        - Responder Endpoints
    get:
      operationId: getResponderEndpoints
      parameters:
        - description: The type of the endpoint.
          in: query
          name: type
          required: true
          schema:
            enum:
              - AUTH_STREAM_ACCESS
              - THREE_DS_DECISIONING
              - TOKENIZATION_DECISIONING
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  enrolled:
                    description: True if the instance has an endpoint enrolled.
                    type: boolean
                  url:
                    description: The URL of the currently enrolled endpoint or null.
                    format: uri
                    type:
                      - string
                      - 'null'
                type: object
          description: Responder endpoint status
      summary: Check the status of a responder endpoint
      tags:
        - Responder Endpoints
    post:
      operationId: postResponderEndpoints
      requestBody:
        content:
          application/json:
            schema:
              properties:
                type:
                  description: The type of the endpoint.
                  enum:
                    - AUTH_STREAM_ACCESS
                    - THREE_DS_DECISIONING
                    - TOKENIZATION_DECISIONING
                  type: string
                url:
                  description: The URL for the responder endpoint (must be http(s)).
                  format: uri
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  enrolled:
                    description: True if the endpoint was enrolled successfully.
                    type: boolean
                type: object
          description: Endpoint enrolled successfully
      summary: Enroll a responder endpoint
      tags:
        - Responder Endpoints
  /v1/simulate/authorization_advice:
    post:
      description: >
        Simulates an authorization advice from the card network as if it came from a merchant acquirer. An
        authorization advice changes the pending amount of the transaction.
      operationId: postSimulateAuthorizationAdvice
      requestBody:
        content:
          application/json:
            examples:
              simulateAuthorizationAdvice:
                summary: Simulate an authorization
                value:
                  amount: 3831
                  token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
            schema:
              properties:
                amount:
                  description: >-
                    Amount (in cents) to authorize. This amount will override the transaction's amount that
                    was originally set by /v1/simulate/authorize.
                  minimum: 0
                  maximum: 2000000000
                  type: integer
                token:
                  description: The transaction token returned from the /v1/simulate/authorize. response.
                  format: uuid
                  type: string
              required:
                - amount
                - token
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                debugging_request_id: d31645af-da9e-4952-b7dc-3ffb06618b39
                token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
              schema:
                properties:
                  debugging_request_id:
                    description: Debugging request ID to share with Lithic Support team.
                    format: uuid
                    type: string
                  token:
                    description: A unique token to reference this transaction.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/SimulateAuthorizationFailure'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate authorization advice
      tags:
        - Transaction
  /v1/simulate/authorize:
    post:
      description: >
        Simulates an authorization request from the card network as if it came from a merchant acquirer.

        If you are configured for ASA, simulating authorizations requires your ASA client to be set up
        properly, i.e. be able to respond to the ASA request with a valid JSON. For users that are not
        configured for ASA, a daily transaction limit of $5000 USD is applied by default. You can update this
        limit via the [update account](https://docs.lithic.com/reference/patchaccountbytoken) endpoint.
      operationId: postSimulateAuthorize
      requestBody:
        content:
          application/json:
            examples:
              simulateAuthorization:
                summary: Simulate an authorization
                value:
                  amount: 3831
                  descriptor: COFFEE SHOP
                  merchant_acceptor_city: LOS ANGELES
                  merchant_acceptor_state: CA
                  merchant_acceptor_country: USA
                  pan: '4111111289144142'
              simulateBalanceInquiry:
                summary: Simulate a balance inquiry
                value:
                  amount: 0
                  descriptor: NEIGHBORHOOD ATM
                  pan: '4111111289144142'
                  status: BALANCE_INQUIRY
              simulateFinancialCreditAuthorization:
                summary: Simulate a financial credit authorization
                value:
                  amount: 3831
                  descriptor: COFFEE SHOP
                  pan: '4111111289144142'
                  status: FINANCIAL_CREDIT_AUTHORIZATION
            schema:
              properties:
                amount:
                  description: >-
                    Amount (in cents) to authorize. For credit authorizations and financial credit
                    authorizations, any value entered will be converted into a negative amount in the
                    simulated transaction. For example, entering 100 in this field will result in a -100
                    amount in the transaction. For balance inquiries, this field must be set to 0.
                  minimum: 0
                  maximum: 2000000000
                  type: integer
                descriptor:
                  description: Merchant descriptor.
                  example: COFFEE SHOP
                  maxLength: 25
                  minLength: 1
                  type: string
                mcc:
                  description: >
                    Merchant category code for the transaction to be simulated. A four-digit number listed in
                    ISO 18245.

                    Supported merchant category codes can be found
                    [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
                  example: '5812'
                  type: string
                merchant_acceptor_id:
                  description: Unique identifier to identify the payment card acceptor.
                  example: OODKZAPJVN4YS7O
                  maxLength: 15
                  minLength: 1
                  type: string
                merchant_acceptor_city:
                  description: Merchant acceptor city
                  example: LOS ANGELES
                  maxLength: 13
                  type: string
                merchant_acceptor_state:
                  description: Merchant acceptor state/province (ISO 3166-2 subdivision code)
                  example: CA
                  maxLength: 3
                  type: string
                merchant_acceptor_country:
                  description: Merchant acceptor country code (ISO 3166-1 alpha-3)
                  example: USA
                  maxLength: 3
                  minLength: 3
                  type: string
                merchant_amount:
                  description: >-
                    Amount of the transaction to be simulated in currency specified in merchant_currency,
                    including any acquirer fees.
                  type: integer
                merchant_currency:
                  description: >-
                    3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD, GBP, EUR
                    and defaults to GBP if another ISO 4217 code is provided
                  example: GBP
                  type: string
                pan:
                  description: Sixteen digit card number.
                  example: '4111111289144142'
                  maxLength: 16
                  minLength: 16
                  type: string
                partial_approval_capable:
                  description: |
                    Set to true if the terminal is capable of partial approval otherwise false.
                    Partial approval is when part of a transaction is approved and another
                    payment must be used for the remainder.
                  type: boolean
                pin:
                  description: Simulate entering a PIN. If omitted, PIN check will not be performed.
                  example: '1234'
                  maxLength: 12
                  minLength: 4
                  type: string
                status:
                  default: AUTHORIZATION
                  description: >
                    Type of event to simulate.

                    * `AUTHORIZATION` is a dual message purchase authorization, meaning a subsequent clearing
                    step is required to settle the transaction.

                    * `BALANCE_INQUIRY` is a $0 authorization requesting the balance held on the card, and is
                    most often observed when a cardholder requests to view a card's balance at an ATM.

                    * `CREDIT_AUTHORIZATION` is a dual message request from a merchant to authorize a refund,
                    meaning a subsequent clearing step is required to settle the transaction.

                    * `FINANCIAL_AUTHORIZATION` is a single message request from a merchant to debit funds
                    immediately (such as an ATM withdrawal), and no subsequent clearing is required to settle
                    the transaction.

                    * `FINANCIAL_CREDIT_AUTHORIZATION` is a single message request from a merchant to credit
                    funds immediately, and no subsequent clearing is required to settle the transaction.
                  enum:
                    - AUTHORIZATION
                    - BALANCE_INQUIRY
                    - CREDIT_AUTHORIZATION
                    - FINANCIAL_AUTHORIZATION
                    - FINANCIAL_CREDIT_AUTHORIZATION
                  example: AUTHORIZATION
                  type: string
              required:
                - amount
                - descriptor
                - pan
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                debugging_request_id: d31645af-da9e-4952-b7dc-3ffb06618b39
                token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
              schema:
                properties:
                  debugging_request_id:
                    description: Debugging request ID to share with Lithic Support team.
                    format: uuid
                    type: string
                  token:
                    description: >-
                      A unique token to reference this transaction with later calls to void or clear the
                      authorization.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/SimulateAuthorizationFailure'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate authorization
      tags:
        - Transaction
  /v1/simulate/clearing:
    post:
      description: >
        Clears an existing authorization, either debit or credit. After this event, the transaction
        transitions from `PENDING` to `SETTLED` status.


        If `amount` is not set, the full amount of the transaction will be cleared. Transactions that have
        already cleared, either partially or fully, cannot be cleared again using this endpoint.
      operationId: postSimulateClearing
      requestBody:
        content:
          application/json:
            examples:
              simulateClear:
                summary: Simulate clearing a transaction
                value:
                  amount: 0
                  token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
            schema:
              properties:
                amount:
                  description: >
                    Amount (in cents) to clear. Typically this will match the amount in the original
                    authorization, but can be higher or lower. The sign of this amount will automatically
                    match the sign of the original authorization's amount. For example, entering 100 in this
                    field will result in a -100 amount in the transaction, if the original authorization is a
                    credit authorization.


                    If `amount` is not set, the full amount of the transaction will be cleared. Transactions
                    that have already cleared, either partially or fully, cannot be cleared again using this
                    endpoint.
                  maximum: 2000000000
                  type: integer
                token:
                  description: The transaction token returned from the /v1/simulate/authorize response.
                  format: uuid
                  type: string
              required:
                - token
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                debugging_request_id: 3ec51ef1-b68d-4243-be6c-2204229b09cf
              schema:
                properties:
                  debugging_request_id:
                    description: Debugging request ID to share with Lithic Support team.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate clearing
      tags:
        - Transaction
  /v1/simulate/credit_authorization_advice:
    post:
      description: |
        Simulates a credit authorization advice from the card network.
        This message indicates that the network approved a credit authorization on your behalf.
      operationId: postSimulateCreditAuthorizationAdvice
      requestBody:
        content:
          application/json:
            examples:
              simulateCreditAuthorizationAdvice:
                summary: Simulate a credit authorization advice
                value:
                  amount: 3831
                  descriptor: COFFEE SHOP
                  merchant_acceptor_id: XRKGDPOWEWQRRWU
                  merchant_acceptor_city: SEATTLE
                  merchant_acceptor_state: WA
                  merchant_acceptor_country: USA
                  pan: '4111111289144142'
            schema:
              properties:
                amount:
                  description: >-
                    Amount (in cents). Any value entered will be converted into a negative amount in the
                    simulated transaction. For example, entering 100 in this field will appear as a -100
                    amount in the transaction.
                  minimum: 0
                  maximum: 2000000000
                  type: integer
                descriptor:
                  description: Merchant descriptor.
                  example: COFFEE SHOP
                  maxLength: 25
                  minLength: 1
                  type: string
                mcc:
                  description: >
                    Merchant category code for the transaction to be simulated. A four-digit number listed in
                    ISO 18245.

                    Supported merchant category codes can be found
                    [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
                  example: '5812'
                  type: string
                merchant_acceptor_id:
                  description: Unique identifier to identify the payment card acceptor.
                  example: XRKGDPOWEWQRRWU
                  maxLength: 15
                  minLength: 1
                  type: string
                merchant_acceptor_city:
                  description: Merchant acceptor city
                  example: SEATTLE
                  maxLength: 13
                  type: string
                merchant_acceptor_state:
                  description: Merchant acceptor state/province (ISO 3166-2 subdivision code)
                  example: WA
                  maxLength: 3
                  type: string
                merchant_acceptor_country:
                  description: Merchant acceptor country code (ISO 3166-1 alpha-3)
                  example: USA
                  maxLength: 3
                  minLength: 3
                  type: string
                pan:
                  description: Sixteen digit card number.
                  example: '4111111289144142'
                  maxLength: 16
                  minLength: 16
                  type: string
              required:
                - amount
                - descriptor
                - pan
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                debugging_request_id: d31645af-da9e-4952-b7dc-3ffb06618b39
                token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
              schema:
                properties:
                  debugging_request_id:
                    description: Debugging request ID to share with Lithic Support team.
                    format: uuid
                    type: string
                  token:
                    description: A unique token to reference this transaction.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/SimulateAuthorizationFailure'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate credit authorization advice
      tags:
        - Transaction
  /v1/simulate/event_subscriptions/{event_subscription_token}/send_example:
    post:
      description: Send an example message for event.
      operationId: sendEventSubscriptionExample
      parameters:
        - in: path
          name: event_subscription_token
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                event_type:
                  description: Event type to send example message for.
                  $ref: '#/components/schemas/event_type'
              type: object
      responses:
        '202':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Send event type example message
      tags:
        - Event
  /v1/simulate/payments/receipt:
    post:
      description: Simulates a receipt of a Payment.
      operationId: simulatePaymentsReceipt
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/simulate_receipt_request'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/simulate_payment_response'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate receipt
      tags:
        - Payment
  /v1/simulate/payments/release:
    post:
      description: Simulates a release of a Payment.
      operationId: simulatePaymentsRelease
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/simulate_origination_release_request'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/simulate_payment_response'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate release payment
      tags:
        - Payment
  /v1/simulate/payments/return:
    post:
      description: Simulates a return of a Payment.
      operationId: simulatePaymentsReturn
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/simulate_origination_return_request'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/simulate_payment_response'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate return payment
      tags:
        - Payment
  /v1/simulate/payments/{payment_token}/action:
    post:
      description: Simulate payment lifecycle event
      operationId: simulatePaymentAction
      parameters:
        - in: path
          name: payment_token
          required: true
          schema:
            format: uuid
            title: Payment Token
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/simulate_action_request'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/simulate_payment_response'
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate payment lifecycle event
      tags:
        - Payment
  /v1/simulate/return:
    post:
      description: >
        Returns, or refunds, an amount back to a card. Returns simulated via this endpoint clear immediately,
        without prior authorization, and result in a `SETTLED` transaction status.
      operationId: postSimulateReturn
      requestBody:
        content:
          application/json:
            examples:
              simulateReturn:
                summary: Simulate a return
                value:
                  amount: 3831
                  descriptor: COFFEE SHOP
                  pan: '4111111289144142'
            schema:
              properties:
                amount:
                  description: Amount (in cents) to authorize.
                  minimum: 0
                  maximum: 2000000000
                  type: integer
                descriptor:
                  description: Merchant descriptor.
                  example: COFFEE SHOP
                  maxLength: 25
                  minLength: 1
                  type: string
                pan:
                  description: Sixteen digit card number.
                  example: '4111111289144142'
                  maxLength: 16
                  minLength: 16
                  type: string
              required:
                - amount
                - descriptor
                - pan
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                debugging_request_id: d31645af-da9e-4952-b7dc-3ffb06618b39
                token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
              schema:
                properties:
                  debugging_request_id:
                    description: Debugging request ID to share with Lithic Support team.
                    format: uuid
                    type: string
                  token:
                    description: A unique token to reference this transaction.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate return
      tags:
        - Transaction
  /v1/simulate/return_reversal:
    post:
      description: >
        Reverses a return, i.e. a credit transaction with a `SETTLED` status. Returns can be financial credit
        authorizations, or credit authorizations that have cleared.
      operationId: postSimulateReturnReversal
      requestBody:
        content:
          application/json:
            examples:
              simulateReturnReversal:
                summary: Simulate a return reversal
                value:
                  token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
            schema:
              properties:
                token:
                  description: The transaction token returned from the /v1/simulate/authorize response.
                  format: uuid
                  type: string
              required:
                - token
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                debugging_request_id: d31645af-da9e-4952-b7dc-3ffb06618b39
              schema:
                properties:
                  debugging_request_id:
                    description: Debugging request ID to share with Lithic Support team.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate return reversal
      tags:
        - Transaction
  /v1/simulate/tokenizations:
    post:
      description: >
        This endpoint is used to simulate a card's tokenization in the Digital Wallet and merchant
        tokenization ecosystem.
      operationId: postSimulateTokenizations
      requestBody:
        content:
          application/json:
            examples:
              simulateTokenizations:
                summary: Simulates a card's tokenization
                value:
                  account_score: 5
                  cvv: '776'
                  device_score: 5
                  expiration_date: 08/29
                  pan: '4111111289144142'
                  tokenization_source: APPLE_PAY
                  wallet_recommended_decision: APPROVED
            schema:
              properties:
                account_score:
                  default: 5
                  description: >-
                    The account score (1-5) that represents how the Digital Wallet's view on how reputable an
                    end user's account is.
                  type: integer
                cvv:
                  description: The three digit cvv for the card.
                  example: '776'
                  maxLength: 3
                  minLength: 3
                  type: string
                device_score:
                  default: 5
                  description: >-
                    The device score (1-5) that represents how the Digital Wallet's view on how reputable an
                    end user's device is.
                  type: integer
                entity:
                  description: >-
                    Optional field to specify the token requestor name for a merchant token simulation.
                    Ignored when tokenization_source is not MERCHANT.
                  type: string
                expiration_date:
                  description: The expiration date of the card in 'MM/YY' format.
                  maxLength: 5
                  minLength: 5
                  type: string
                pan:
                  description: The sixteen digit card number.
                  example: '4111111289144142'
                  maxLength: 16
                  minLength: 16
                  type: string
                tokenization_source:
                  description: The source of the tokenization request.
                  enum:
                    - APPLE_PAY
                    - GOOGLE
                    - SAMSUNG_PAY
                    - MERCHANT
                  type: string
                wallet_recommended_decision:
                  default: APPROVED
                  description: The decision that the Digital Wallet's recommend
                  enum:
                    - APPROVED
                    - DECLINED
                    - REQUIRE_ADDITIONAL_AUTHENTICATION
                  type: string
              required:
                - cvv
                - expiration_date
                - pan
                - tokenization_source
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                account_token: 61c3acef-3c2c-4d61-9352-941397b92ca3
                card_token: 16a410c9-7f5c-43e9-8108-bb8a72c063f7
                created_at: '2023-08-28T15:57:14.578051'
                events:
                  - created_at: '2023-09-13T16:01:13.643241'
                    result: TOKEN_ACTIVATED
                    token: a690b617-d3d4-4976-82f6-901f817ad98a
                    type: TOKENIZATION_UPDATED
                  - created_at: '2023-09-13T16:01:13.643241'
                    result: APPROVED
                    token: 2b2a1038-45f3-42e4-98bb-e745be3f1de1
                    type: TOKENIZATION_AUTHORIZATION
                status: ACTIVE
                token: 3e9a10da-11be-4a62-a510-d43548bfcec1
                tokenization_channel: DIGITAL_WALLET
                token_requestor_name: APPLE_PAY
                token_unique_reference: DM4MMC0000332872ef1029f38fa0184b5c9260383da192b22
                dpan: '5489123487251234'
                payment_account_reference_id: 50019T0AL7DEFGJ4AGGT8BQDOABCD
                updated_at: '2023-08-28T15:57:14.578051'
              schema:
                $ref: '#/components/schemas/tokenization'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate a card's tokenization
      tags:
        - Tokenization
  /v1/simulate/void:
    post:
      description: >
        Voids a pending authorization. If `amount` is not set, the full amount will be voided. Can be used on
        partially voided transactions but not partially cleared transactions. _Simulating an authorization
        expiry on credit authorizations or credit authorization advice is not currently supported but will be
        added soon._
      operationId: postSimulateVoid
      requestBody:
        content:
          application/json:
            examples:
              simulateAuthorizationExpiry:
                summary: Simulate expiring a transaction
                value:
                  amount: 100
                  token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
                  type: AUTHORIZATION_EXPIRY
              simulateAuthorizationReversal:
                summary: Simulate reversing a transaction
                value:
                  amount: 100
                  token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
                  type: AUTHORIZATION_REVERSAL
            schema:
              properties:
                amount:
                  description: >-
                    Amount (in cents) to void. Typically this will match the amount in the original
                    authorization, but can be less. Applies to authorization reversals only. An authorization
                    expiry will always apply to the full pending amount.
                  minimum: 0
                  maximum: 2000000000
                  type: integer
                token:
                  description: The transaction token returned from the /v1/simulate/authorize response.
                  format: uuid
                  type: string
                type:
                  default: AUTHORIZATION_REVERSAL
                  description: |
                    Type of event to simulate. Defaults to `AUTHORIZATION_REVERSAL`.

                    * `AUTHORIZATION_EXPIRY` indicates authorization has expired and been reversed by Lithic.
                    * `AUTHORIZATION_REVERSAL` indicates authorization was reversed by the merchant.
                  enum:
                    - AUTHORIZATION_EXPIRY
                    - AUTHORIZATION_REVERSAL
                  example: AUTHORIZATION_EXPIRY
                  type: string
              required:
                - token
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                debugging_request_id: 3ec51ef1-b68d-4243-be6c-2204229b09cf
              schema:
                properties:
                  debugging_request_id:
                    description: Debugging request ID to share with Lithic Support team.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate void
      tags:
        - Transaction
  /v1/simulate/account_holders/enrollment_review:
    post:
      summary: Simulate an account holder's enrollment review
      description: ' Simulates an enrollment review for an account holder. This endpoint is only applicable for workflows that may required intervention such as `KYB_BASIC`. '
      operationId: simulateAccountHolderEnrollmentReview
      requestBody:
        content:
          application/json:
            examples:
              simulateAcceptedReviewRequest:
                summary: Simulate an accepted enrollment review request
                value:
                  account_holder_token: 1415964d-4400-4d79-9fb3-eee0faaee4e4
                  status: ACCEPTED
                  status_reasons: []
              simulateRejectedReviewRequest:
                summary: Simulate a rejected enrollment review request
                value:
                  account_holder_token: b8d0cdd2-182c-4623-b104-9f50808b8373
                  status: REJECTED
                  status_reasons:
                    - PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE
              simulatePendingReviewRequest:
                summary: Simulate a pending review enrollment review request
                value:
                  account_holder_token: b8d0cdd2-182c-4623-b104-9f50808b8373
                  status: PENDING_REVIEW
                  status_reasons:
                    - CONTROL_PERSON_NAME_VERIFICATION_FAILURE
            schema:
              $ref: '#/components/schemas/simulate-enrollment-review-request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account-holder-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      tags:
        - Account Holder
  /v1/simulate/account_holders/enrollment_document_review:
    post:
      summary: Simulate an account holder document upload's review
      description: Simulates a review for an account holder document upload.
      operationId: simulateAccountHolderEnrollmentDocumentReview
      requestBody:
        content:
          application/json:
            examples:
              simulateUploadedReviewRequest:
                summary: Simulate an uploaded enrollment document upload review request
                value:
                  document_upload_token: b11cd67b-0a52-4180-8365-314f3def5426
                  status: UPLOADED
              simulateAcceptedReviewRequest:
                summary: Simulate an accepted enrollment document upload review request
                value:
                  document_upload_token: 70bde493-66a7-454b-8e79-51a0d976a7d2
                  status: ACCEPTED
              simulateRejectedReviewRequest:
                summary: Simulate a rejected enrollment document upload review request
                value:
                  document_upload_token: 30a8fff6-941f-4143-9b7b-e7ac4cbeb91f
                  status: REJECTED
                  status_reason: DOCUMENT_MISSING_REQUIRED_DATA
              simulatePartialApprovalReviewRequest:
                summary: Simulates a partial approval enrollment document upload review request
                value:
                  document_upload_token: 30a8fff6-941f-4143-9b7b-e7ac4cbeb91f
                  status: PARTIAL_APPROVAL
                  status_reason: DOCUMENT_MISSING_REQUIRED_DATA
                  accepted_entity_status_reasons:
                    - PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE
            schema:
              $ref: '#/components/schemas/simulate-enrollment-document-review-request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/document'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      tags:
        - Account Holder
  /v1/status:
    get:
      description: Status of api
      operationId: getStatus
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                type: object
          description: Endpoint for users to check whether they can reach the api.
      security: []
      summary: API status check
      tags:
        - Status
  /v1/three_ds_authentication/simulate:
    post:
      description: >-
        Simulates a 3DS authentication request from the payment network as if it came from an ACS. If you're
        configured for 3DS Customer Decisioning, simulating authentications requires your customer decisioning
        endpoint to be set up properly (respond with a valid JSON). If the authentication decision is to
        challenge, ensure that the account holder associated with the card transaction has a valid phone
        number configured to receive the OTP code via SMS. 
      operationId: postSimulateAuthentication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/simulate-authentication-request'
        required: true
      responses:
        '201':
          content:
            application/json:
              example:
                token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
              schema:
                properties:
                  token:
                    description: Globally unique identifier for the 3DS authentication.
                    format: uuid
                    type: string
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate 3DS authentication
      tags:
        - 3DS
  /v1/three_ds_decisioning/simulate/enter_otp:
    post:
      description: >-
        Endpoint for simulating entering OTP into 3DS Challenge UI. A call to
        [/v1/three_ds_authentication/simulate](https://docs.lithic.com/reference/postsimulateauthentication)
        that resulted in triggered SMS-OTP challenge must precede. Only a single attempt is supported; upon
        entering OTP, the challenge is either approved or declined.
      requestBody:
        content:
          application/json:
            example:
              token: fabd829d-7f7b-4432-a8f2-07ea4889aaac
              otp: '123456'
            schema:
              properties:
                token:
                  description: >-
                    A unique token returned as part of a /v1/three_ds_authentication/simulate call that
                    resulted in PENDING_CHALLENGE authentication result.
                  format: uuid
                  type: string
                otp:
                  description: The OTP entered by the cardholder
                  example: '123456'
                  type: string
              required:
                - token
                - otp
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Simulate entering OTP into 3DS Challenge UI
      tags:
        - 3DS
  /v1/three_ds_authentication/{three_ds_authentication_token}:
    get:
      description: Get 3DS Authentication by token
      operationId: getThreeDsAuthenticationByToken
      parameters:
        - description: Globally unique identifier for the 3DS authentication.
          in: path
          name: three_ds_authentication_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authentication'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get 3DS authentication
      tags:
        - 3DS
  /v1/three_ds_decisioning/secret:
    get:
      description: >
        Retrieve the 3DS Decisioning HMAC secret key. If one does not exist for your program yet, calling this
        endpoint will create one for you. The headers (which you can use to verify 3DS Decisioning requests)
        will begin appearing shortly after calling this endpoint for the first time. See [this
        page](https://docs.lithic.com/docs/3ds-decisioning#3ds-decisioning-hmac-secrets) for more detail about
        verifying 3DS Decisioning requests.
      operationId: getThreeDsDecisioningSecret
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  secret:
                    description: The 3DS Decisioning HMAC secret
                    example: whsec_1NDsYinMGr951KuDEaj78VtWzlyPaOnwUVagFiWIPJs=
                    type: string
                type: object
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retrieve the 3DS Decisioning HMAC secret key
      tags:
        - 3DS
  /v1/three_ds_decisioning/secret/rotate:
    post:
      description: >
        Generate a new 3DS Decisioning HMAC secret key. The old secret key will be deactivated 24 hours after
        a successful request to this endpoint. Make a [`GET
        /three_ds_decisioning/secret`](https://docs.lithic.com/reference/getthreedsdecisioningsecret) request
        to retrieve the new secret key.
      operationId: rotateThreeDsDecisioningSecret
      responses:
        '204':
          description: We have successfully rotated the secret key.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Rotate the 3DS Decisioning HMAC secret key
      tags:
        - 3DS
  /v1/three_ds_decisioning/challenge_response:
    post:
      description: >-
        Card program's response to a 3DS Challenge Request.

        Challenge Request is emitted as a webhook
        [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge)
        and your Card Program needs to be configured with Out of Band (OOB) Challenges in order to receive it
        (see https://docs.lithic.com/docs/3ds-challenge-flow for more information).
      summary: Respond to a Challenge Request
      security:
        - ApiKeyAuth: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/challenge-response'
      responses:
        '200':
          description: Challenge Response was received and forwarded to the ACS
        '400':
          description: Invalid request body
        '404':
          description: The provided token was not found
        '422':
          description: >-
            Challenge Response could not be actioned because a response was already set, or the status was
            updated by the upstream 3DS Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/challenge-response-unprocessable'
        '500':
          description: Lithic Error
      tags:
        - 3DS
  /v1/tokenization_decisioning/secret:
    get:
      description: >
        Retrieve the Tokenization Decisioning secret key. If one does not exist your program yet, calling this
        endpoint will create one for you. The headers of the Tokenization Decisioning request will contain a
        hmac signature which you can use to verify requests originate from Lithic. See [this
        page](https://docs.lithic.com/docs/events-api#verifying-webhooks) for more detail about verifying
        Tokenization Decisioning requests.
      operationId: getTokenizationDecisioningSecret
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  secret:
                    description: The Tokenization Decisioning HMAC secret
                    example: whsec_1NDsYinMGr951KuDEaj78VtWzlyPaOnwUVagFiWIPJs=
                    type: string
                type: object
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retrieve the Tokenization Decisioning HMAC secret key
      tags:
        - Tokenization
  /v1/tokenization_decisioning/secret/rotate:
    post:
      description: >
        Generate a new Tokenization Decisioning secret key. The old Tokenization Decisioning secret key will
        be deactivated 24 hours after a successful request to this endpoint.
      operationId: rotateTokenizationDecisioningSecret
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  secret:
                    description: The new Tokenization Decisioning HMAC secret
                    example: whsec_1NDsYinMGr951KuDEaj78VtWzlyPaOnwUVagFiWIPJs=
                    type: string
                type: object
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Rotate the Tokenization Decisioning HMAC secret key
      tags:
        - Tokenization
  /v1/tokenizations:
    get:
      description: List card tokenizations
      operationId: getTokenizations
      parameters:
        - description: Filters for tokenizations associated with a specific account.
          in: query
          name: account_token
          schema:
            format: uuid
            type: string
        - description: Filter for tokenizations created after this date.
          in: query
          name: begin
          schema:
            format: date
            type: string
        - description: Filters for tokenizations associated with a specific card.
          in: query
          name: card_token
          schema:
            format: uuid
            type: string
        - description: Filter for tokenizations created before this date.
          in: query
          name: end
          schema:
            format: date
            type: string
        - description: >-
            Filter for tokenizations by tokenization channel. If this is not specified, only DIGITAL_WALLET
            tokenizations will be returned.
          in: query
          name: tokenization_channel
          schema:
            enum:
              - DIGITAL_WALLET
              - MERCHANT
              - ALL
            type: string
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  - account_token: 61c3acef-3c2c-4d61-9352-941397b92ca3
                    card_token: 16a410c9-7f5c-43e9-8108-bb8a72c063f7
                    created_at: '2023-08-28T15:57:14.578051'
                    events:
                      - created_at: '2023-09-13T16:01:13.643241'
                        result: TOKEN_ACTIVATED
                        token: a690b617-d3d4-4976-82f6-901f817ad98a
                        type: TOKENIZATION_UPDATED
                      - created_at: '2023-09-13T16:01:13.643241'
                        result: APPROVED
                        token: 2b2a1038-45f3-42e4-98bb-e745be3f1de1
                        type: TOKENIZATION_AUTHORIZATION
                        tokenization_decline_reasons: []
                        tokenization_tfa_reasons: []
                        rule_results: []
                    status: ACTIVE
                    token: 3e9a10da-11be-4a62-a510-d43548bfcec1
                    token_requestor_name: APPLE_PAY
                    token_unique_reference: DM4MMC0000332872ef1029f38fa0184b5c9260383da192b22
                    tokenization_channel: DIGITAL_WALLET
                    dpan: '5489123487251234'
                    device_id: ba6f05c312d4a5789b2e04f05c1f9d3b81GJ4AG1
                    payment_account_reference_id: 50019T0AL7DEFGJ4AGGT8BQDOABCD
                    updated_at: '2023-08-28T15:57:14.578051'
                has_more: false
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/tokenization'
                    type: array
                  has_more:
                    type: boolean
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get a card's tokenizations
      tags:
        - Tokenization
  /v1/tokenizations/{tokenization_token}:
    get:
      description: Get tokenization
      operationId: getTokenization
      parameters:
        - description: Tokenization token
          in: path
          name: tokenization_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                account_token: 61c3acef-3c2c-4d61-9352-941397b92ca3
                card_token: 16a410c9-7f5c-43e9-8108-bb8a72c063f7
                created_at: '2023-08-28T15:57:14.578051'
                events:
                  - created_at: '2023-09-13T16:01:13.643241'
                    result: TOKEN_ACTIVATED
                    token: a690b617-d3d4-4976-82f6-901f817ad98a
                    type: TOKENIZATION_UPDATED
                  - created_at: '2023-09-13T16:01:13.643241'
                    result: APPROVED
                    token: 2b2a1038-45f3-42e4-98bb-e745be3f1de1
                    type: TOKENIZATION_AUTHORIZATION
                    tokenization_decline_reasons: []
                    tokenization_tfa_reasons: []
                    rule_results: []
                status: ACTIVE
                token: 3e9a10da-11be-4a62-a510-d43548bfcec1
                token_requestor_name: APPLE_PAY
                token_unique_reference: DM4MMC0000332872ef1029f38fa0184b5c9260383da192b22
                tokenization_channel: DIGITAL_WALLET
                dpan: '5489123487251234'
                device_id: ba6f05c312d4a5789b2e04f05c1f9d3b81GJ4AG1
                payment_account_reference_id: 50019T0AL7DEFGJ4AGGT8BQDOABCD
                updated_at: '2023-08-28T15:57:14.578051'
              schema:
                $ref: '#/components/schemas/tokenization'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get a single card tokenization
      tags:
        - Tokenization
  /v1/tokenizations/{tokenization_token}/pause:
    post:
      description: >-
        This endpoint is used to ask the card network to pause a tokenization. A successful response indicates
        that the request was successfully delivered to the card network. When the card network pauses the
        tokenization, the state will be updated and a tokenization.updated event will be sent. The endpoint
        may only be used on tokenizations with status `ACTIVE`.

        A paused token will prevent merchants from sending authorizations, and is a temporary status that can
        be changed.

        Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
      operationId: pauseTokenization
      parameters:
        - description: Tokenization token
          in: path
          name: tokenization_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content: {}
          description: Pause tokenization request successfully delivered to the card network.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Pause a card tokenization
      tags:
        - Tokenization
  /v1/tokenizations/{tokenization_token}/unpause:
    post:
      description: >-
        This endpoint is used to ask the card network to unpause a tokenization. A successful response
        indicates that the request was successfully delivered to the card network. When the card network
        unpauses the tokenization, the state will be updated and a tokenization.updated event will be sent.
        The endpoint may only be used on tokenizations with status `PAUSED`.

        This will put the tokenization in an active state, and transactions may resume.

        Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
      operationId: unpauseTokenization
      parameters:
        - description: Tokenization token
          in: path
          name: tokenization_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content: {}
          description: Unpause tokenization request successfully delivered to the card network.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Unpause a card tokenization
      tags:
        - Tokenization
  /v1/tokenizations/{tokenization_token}/deactivate:
    post:
      description: >-
        This endpoint is used to ask the card network to deactivate a tokenization. A successful response
        indicates that the request was successfully delivered to the card network. When the card network
        deactivates the tokenization, the state will be updated and a tokenization.updated event will be sent.

        Authorizations attempted with a deactivated tokenization will be blocked and will not be forwarded to
        Lithic from the network. Deactivating the token is a permanent operation. If the target is a digital
        wallet tokenization, it will be removed from its device.

        Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
      operationId: deactivateTokenization
      parameters:
        - description: Tokenization token
          in: path
          name: tokenization_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content: {}
          description: Deactivate tokenization request successfully delivered to the card network.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Deactivate a card tokenization
      tags:
        - Tokenization
  /v1/tokenizations/{tokenization_token}/activate:
    post:
      description: >-
        This endpoint is used to ask the card network to activate a tokenization. A successful response
        indicates that the request was successfully delivered to the card network. When the card network
        activates the tokenization, the state will be updated and a tokenization.updated event will be sent.
        The endpoint may only be used on digital wallet tokenizations with status `INACTIVE`,
        `PENDING_ACTIVATION`, or `PENDING_2FA`.

        This will put the tokenization in an active state, and transactions will be allowed.

        Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
      operationId: activateTokenization
      parameters:
        - description: Tokenization token
          in: path
          name: tokenization_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content: {}
          description: Activate tokenization request successfully delivered to the card network.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Activate a card tokenization
      tags:
        - Tokenization
  /v1/tokenizations/{tokenization_token}/resend_activation_code:
    post:
      description: >-
        This endpoint is used to ask the card network to send another activation code to a cardholder that has
        already tried tokenizing a card. A successful response indicates that the request was successfully
        delivered to the card network.

        The endpoint may only be used on Mastercard digital wallet tokenizations with status `INACTIVE`,
        `PENDING_ACTIVATION`, or `PENDING_2FA`. The network will send a new activation code to the one of the
        contact methods provided in the initial tokenization flow. If a user fails to enter the code correctly
        3 times, the contact method will not be eligible for resending the activation code, and the cardholder
        must restart the provision process.

        Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
      operationId: resendActivationCodeForTokenization
      parameters:
        - description: Tokenization token
          in: path
          name: tokenization_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            examples:
              resendActivationCodeSms:
                summary: Resend activation code to SMS contact method
                value:
                  activation_method_type: TEXT_TO_CARDHOLDER_NUMBER
            schema:
              properties:
                activation_method_type:
                  description: >-
                    The communication method that the user has selected to use to receive the authentication
                    code.

                    Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email = "EMAIL_TO_CARDHOLDER_ADDRESS"
                  enum:
                    - EMAIL_TO_CARDHOLDER_ADDRESS
                    - TEXT_TO_CARDHOLDER_NUMBER
                  type: string
      responses:
        '200':
          content: {}
          description: Resend activation code request successfully delivered to the card network.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Resend activation code for a card tokenization
      tags:
        - Tokenization
  /v1/tokenizations/{tokenization_token}/update_digital_card_art:
    post:
      description: >-
        This endpoint is used update the digital card art for a digital wallet tokenization. A successful
        response indicates that the card network has updated the tokenization's art, and the tokenization's
        `digital_cart_art_token` field was updated.

        The endpoint may not be used on tokenizations with status `DEACTIVATED`.

        Note that this updates the art for one specific tokenization, not all tokenizations for a card. New
        tokenizations for a card will be created with the art referenced in the card object's
        `digital_card_art_token` field.

        Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
      operationId: updateDigitalCardArtForTokenization
      parameters:
        - description: Tokenization token
          in: path
          name: tokenization_token
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                digital_card_art_token:
                  description: >-
                    Specifies the digital card art to be displayed in the user’s digital wallet for a
                    tokenization. This artwork must be approved by the network and configured by Lithic to
                    use. See [Flexible Card Art
                    Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
                  example: 5e9483eb-8103-4e16-9794-2106111b2eca
                  format: uuid
                  type: string
      responses:
        '200':
          content:
            application/json:
              example:
                account_token: 61c3acef-3c2c-4d61-9352-941397b92ca3
                card_token: 16a410c9-7f5c-43e9-8108-bb8a72c063f7
                created_at: '2023-08-28T15:57:14.578051'
                digital_card_art_token: 0ca42d08-12ae-4bc6-bd00-787e6df53cff
                events:
                  - created_at: '2023-09-13T16:01:13.643241'
                    result: TOKEN_ACTIVATED
                    token: a690b617-d3d4-4976-82f6-901f817ad98a
                    type: TOKENIZATION_UPDATED
                  - created_at: '2023-09-13T16:01:13.643241'
                    result: APPROVED
                    token: 2b2a1038-45f3-42e4-98bb-e745be3f1de1
                    type: TOKENIZATION_AUTHORIZATION
                status: ACTIVE
                token: 3e9a10da-11be-4a62-a510-d43548bfcec1
                token_requestor_name: APPLE_PAY
                token_unique_reference: DM4MMC0000332872ef1029f38fa0184b5c9260383da192b22
                dpan: '5489123487251234'
                device_id: ba6f05c312d4a5789b2e04f05c1f9d3b81GJ4AG1
                payment_account_reference_id: 50019T0AL7DEFGJ4AGGT8BQDOABCD
                updated_at: '2023-08-28T15:57:14.578051'
                tokenization_channel: DIGITAL_WALLET
              schema:
                $ref: '#/components/schemas/tokenization'
          description: Card art successfully updated at the network and Lithic levels.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Update digital card art for a card tokenization
      tags:
        - Tokenization
  /v1/transactions:
    get:
      description: >
        List card transactions. All amounts are in the smallest unit of their respective currency (e.g., cents
        for USD) and inclusive of any acquirer fees.
      operationId: getTransactions
      parameters:
        - description: |
            Filters for transactions associated with a specific account.
          in: query
          name: account_token
          schema:
            format: uuid
            type: string
        - description: Filters for transactions associated with a specific card.
          in: query
          name: card_token
          schema:
            format: uuid
            type: string
        - description: Filters for transactions using transaction result field. Can filter by `APPROVED`, and `DECLINED`.
          in: query
          name: result
          schema:
            enum:
              - APPROVED
              - DECLINED
            type: string
        - in: query
          description: Filters for transactions using transaction status field.
          name: status
          required: false
          schema:
            $ref: '#/components/schemas/card_transaction_status_filter'
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/list_transactions_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List card transactions
      tags:
        - Transaction
  /v1/transactions/{transaction_token}:
    get:
      description: >
        Get a specific card transaction. All amounts are in the smallest unit of their respective currency
        (e.g., cents for USD).
      operationId: getTransactionByToken
      parameters:
        - $ref: '#/components/parameters/transactionToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/card_transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get card transaction
      tags:
        - Transaction
  /v1/transfer:
    post:
      deprecated: true
      description: Transfer funds between two financial accounts or between a financial account and card
      operationId: postTransfer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                amount:
                  description: >-
                    Amount to be transferred in the currency’s smallest unit (e.g., cents for USD). This
                    should always be a positive value.
                  type: integer
                from:
                  description: >-
                    Globally unique identifier for the financial account or card that will send the funds.
                    Accepted type dependent on the program's use case.
                  format: uuid
                  type: string
                memo:
                  description: Optional descriptor for the transfer.
                  type: string
                to:
                  description: >-
                    Globally unique identifier for the financial account or card that will receive the funds.
                    Accepted type dependent on the program's use case.
                  format: uuid
                  type: string
                token:
                  description: >-
                    Customer-provided token that will serve as an idempotency token. This token will become
                    the transaction token.
                  format: uuid
                  type: string
              required:
                - amount
                - from
                - to
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transfer'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Transfer funds within Lithic
      tags:
        - Book Transfer
  /v1/transfer_limits:
    get:
      description: Get transfer limits for a specified date
      operationId: getTransferLimits
      parameters:
        - description: Date for which to retrieve transfer limits (ISO 8601 format)
          example: '2025-11-10'
          in: query
          name: date
          required: false
          schema:
            format: date
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/transfer_limits_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get transfer limits
      tags:
        - Transfer Limits
  /v1/book_transfers:
    get:
      description: List book transfers
      parameters:
        - description: Book Transfer category to be returned.
          in: query
          name: category
          schema:
            $ref: '#/components/schemas/book_transfer_category'
        - description: >-
            Globally unique identifier for the financial account or card that will send the funds. Accepted
            type dependent on the program's use case.
          in: query
          name: financial_account_token
          schema:
            format: uuid
            type: string
        - in: query
          name: business_account_token
          required: false
          schema:
            format: uuid
            title: Business Account Token
            type: string
        - in: query
          name: account_token
          required: false
          schema:
            format: uuid
            title: Account Token
            type: string
        - description: Book transfer result to be returned.
          in: query
          name: result
          schema:
            enum:
              - APPROVED
              - DECLINED
            type: string
        - description: Book transfer status to be returned.
          in: query
          name: status
          schema:
            enum:
              - DECLINED
              - SETTLED
            type: string
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      operationId: getBookTransfers
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/book-transfer-transaction'
                    title: Data
                    type: array
                  has_more:
                    title: More data exists
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List book transfers
      tags:
        - Book Transfer
    post:
      description: Book transfer funds between two financial accounts or between a financial account and card
      operationId: postBookTransfers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/create_book_transfer_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/book-transfer-transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create book transfer
      tags:
        - Book Transfer
  /v1/book_transfers/{book_transfer_token}:
    get:
      description: Get book transfer by token
      parameters:
        - description: Id of the book transfer to retrieve
          in: path
          name: book_transfer_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: getBookTransfer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/book-transfer-transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get book transfer by token
      tags:
        - Book Transfer
  /v1/book_transfers/{book_transfer_token}/retry:
    post:
      description: Retry a book transfer that has been declined
      parameters:
        - description: Token of the book transfer to retry
          in: path
          name: book_transfer_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: retryBookTransfer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/retry_book_transfer_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/book-transfer-transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retry book transfer
      tags:
        - Book Transfer
  /v1/book_transfers/{book_transfer_token}/reverse:
    post:
      description: Reverse a book transfer
      parameters:
        - description: Id of the book transfer to retrieve
          in: path
          name: book_transfer_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: reverseBookTransfer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                memo:
                  description: Optional descriptor for the reversal.
                  type: string
                  maxLength: 512
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/book-transfer-transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Reverse book transfer
      tags:
        - Book Transfer
  /v1/external_payments:
    get:
      description: List external payments
      parameters:
        - description: External Payment category to be returned.
          in: query
          name: category
          schema:
            $ref: '#/components/schemas/external_payment_category'
        - description: >-
            Globally unique identifier for the financial account or card that will send the funds. Accepted
            type dependent on the program's use case.
          in: query
          name: financial_account_token
          schema:
            format: uuid
            type: string
        - in: query
          name: business_account_token
          required: false
          schema:
            format: uuid
            title: Business Account Token
            type: string
        - description: External Payment result to be returned.
          in: query
          name: result
          schema:
            $ref: '#/components/schemas/transaction_result'
        - description: Book transfer status to be returned.
          in: query
          name: status
          schema:
            $ref: '#/components/schemas/transaction_status'
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      operationId: getExternalPayments
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/external_payments_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List external payments
      tags:
        - External Payments
    post:
      description: Create external payment
      operationId: postExternalPayments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/create_external_payment_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/external_payment_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create external payment
      tags:
        - External Payments
  /v1/external_payments/{external_payment_token}:
    get:
      description: Get external payment
      parameters:
        - description: Globally unique identifier for the external payment
          in: path
          name: external_payment_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: getExternalPayment
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/external_payment_response'
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get external payment
      tags:
        - External Payments
  /v1/external_payments/{external_payment_token}/settle:
    post:
      description: Settle external payment
      parameters:
        - description: Globally unique identifier for the external payment
          in: path
          name: external_payment_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: settleExternalPayment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/external_payment_action_with_progress_to_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/external_payment_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Settle external payment
      tags:
        - External Payments
  /v1/external_payments/{external_payment_token}/release:
    post:
      description: Release external payment
      parameters:
        - description: Globally unique identifier for the external payment
          in: path
          name: external_payment_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: releaseExternalPayment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/external_payment_action_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/external_payment_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Release external payment
      tags:
        - External Payments
  /v1/external_payments/{external_payment_token}/cancel:
    post:
      description: Cancel external payment
      parameters:
        - description: Globally unique identifier for the external payment
          in: path
          name: external_payment_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: cancelExternalPayment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/external_payment_action_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/external_payment_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Cancel external payment
      tags:
        - External Payments
  /v1/external_payments/{external_payment_token}/reverse:
    post:
      description: Reverse external payment
      parameters:
        - description: Globally unique identifier for the external payment
          in: path
          name: external_payment_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: reverseExternalPayment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/external_payment_action_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/external_payment_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Reverse external payment
      tags:
        - External Payments
  /v1/management_operations:
    get:
      description: List management operations
      parameters:
        - description: Management operation category to be returned.
          in: query
          name: category
          schema:
            $ref: '#/components/schemas/management_operation_category'
        - description: >-
            Globally unique identifier for the financial account. Accepted type dependent on the program's use
            case.
          in: query
          name: financial_account_token
          schema:
            format: uuid
            type: string
        - in: query
          name: business_account_token
          required: false
          schema:
            format: uuid
            title: Business Account Token
            type: string
        - description: Management operation status to be returned.
          in: query
          name: status
          schema:
            $ref: '#/components/schemas/transaction_status'
        - $ref: '#/components/parameters/beginTime'
        - $ref: '#/components/parameters/endingBefore'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/pageSize'
        - $ref: '#/components/parameters/startingAfter'
      operationId: getManagementOperations
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/management_operation_transactions_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List management operations
      tags:
        - Management Operations
    post:
      description: Create management operation
      operationId: postManagementOperations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/create_management_operation_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/management_operation_transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Create management operation
      tags:
        - Management Operations
  /v1/management_operations/{management_operation_token}:
    get:
      description: Get management operation
      parameters:
        - description: Globally unique identifier for the management operation
          in: path
          name: management_operation_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: getManagementOperation
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/management_operation_transaction'
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get management operation
      tags:
        - Management Operations
  /v1/management_operations/{management_operation_token}/reverse:
    post:
      description: Reverse a management operation
      parameters:
        - description: Globally unique identifier for the management operation
          in: path
          name: management_operation_token
          required: true
          schema:
            format: uuid
            type: string
      operationId: reverseManagementOperation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/management_operation_action_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/management_operation_transaction'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Reverse management operation
      tags:
        - Management Operations
  /v1/network_programs:
    get:
      description: List network programs.
      operationId: getNetworkPrograms
      parameters:
        - description: Page size (for pagination).
          in: query
          name: page_size
          schema:
            default: 50
            maximum: 100
            minimum: 1
            type: integer
        - description: >-
            Date string in RFC 3339 format. Only entries created after the specified time will be included.
            UTC time zone.
          in: query
          name: begin
          schema:
            format: date-time
            type: string
        - description: >-
            Date string in RFC 3339 format. Only entries created before the specified time will be included.
            UTC time zone.
          in: query
          name: end
          schema:
            format: date-time
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/NetworkProgram'
                    type: array
                  has_more:
                    description: Whether there are more network programs to be retrieved.
                    type: boolean
                required:
                  - data
                  - has_more
                type: object
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List network programs
      tags:
        - Network Program
  /v1/network_programs/{network_program_token}:
    get:
      description: Get network program.
      operationId: getNetworkProgram
      parameters:
        - description: Globally unique identifier for the network program.
          in: path
          name: network_program_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkProgram'
              examples:
                getNetworkProgramResponse:
                  value:
                    token: 94644cff-d693-4881-b472-3a51e742ea47
                    registered_program_identification_number: '00000000'
                    name: Visa Signature Preferred Credit Card
                    default_product_code: D
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get network program
      tags:
        - Network Program
  /v1/funding_events:
    get:
      description: Get all funding events for program
      operationId: getFundingEvents
      parameters:
        - description: >-
            A cursor representing an item's token before which a page of results should end. Used to retrieve
            the previous page of results before this item.
          in: query
          name: ending_before
          required: false
          schema:
            type: string
            format: uuid
        - description: Page size (for pagination).
          in: query
          name: page_size
          schema:
            default: 50
            maximum: 100
            minimum: 1
            type: integer
        - description: >-
            A cursor representing an item's token after which a page of results should begin. Used to retrieve
            the next page of results after this item.
          in: query
          name: starting_after
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/funding_event_responses'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List funding events
      tags:
        - Funding Events
  /v1/funding_events/{funding_event_token}:
    get:
      description: Get funding event for program by id
      operationId: getFundingEventById
      parameters:
        - description: Globally unique identifier for funding event.
          in: path
          name: funding_event_token
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/funding_event_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get funding event by ID
      tags:
        - Funding Events
  /v1/funding_events/{funding_event_token}/details:
    get:
      description: Get funding event details by id
      operationId: getFundingEventDetailsById
      parameters:
        - description: Globally unique identifier for funding event.
          in: path
          name: funding_event_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/funding_event_details_response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Get funding event details
      tags:
        - Funding Events
  /v2/disputes:
    get:
      description: Returns a paginated list of disputes.
      operationId: getDisputesV2
      parameters:
        - description: RFC 3339 timestamp for filtering by created date, inclusive.
          in: query
          name: begin
          required: false
          schema:
            format: date-time
            type: string
        - description: RFC 3339 timestamp for filtering by created date, inclusive.
          in: query
          name: end
          required: false
          schema:
            format: date-time
            type: string
        - description: Number of items to return.
          in: query
          name: page_size
          required: false
          schema:
            default: 50
            maximum: 100
            minimum: 1
            type: integer
        - description: >-
            A cursor representing an item's token after which a page of results should begin. Used to retrieve
            the next page of results after this item.
          in: query
          name: starting_after
          required: false
          schema:
            type: string
        - description: >-
            A cursor representing an item's token before which a page of results should end. Used to retrieve
            the previous page of results before this item.
          in: query
          name: ending_before
          required: false
          schema:
            type: string
        - description: >-
            Filter by the token of the transaction being disputed. Corresponds with
            transaction_series.related_transaction_token in the Dispute.
          in: query
          name: disputed_transaction_token
          required: false
          schema:
            format: uuid
            type: string
        - description: Filter by card token.
          in: query
          name: card_token
          required: false
          schema:
            format: uuid
            type: string
        - description: Filter by account token.
          in: query
          name: account_token
          required: false
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/disputes-response'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: List disputes
      tags:
        - Managed Disputes
  /v2/disputes/{dispute_token}:
    get:
      description: Retrieves a specific dispute by its token.
      operationId: getDisputeByTokenV2
      parameters:
        - description: Token of the dispute to retrieve.
          in: path
          name: dispute_token
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispute'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      summary: Retrieve a dispute
      tags:
        - Managed Disputes
components:
  parameters:
    webhookId:
      in: header
      name: webhook-id
      description: Webhook ID
      schema:
        type: string
        format: uuid
      example: 65a9dad4-1b60-4686-83fd-65b25078a4b4
    webhookTimestamp:
      in: header
      name: webhook-timestamp
      description: Unix timestamp used for HMAC verification
      schema:
        type: integer
      example: 1698031907
    webhookSignature:
      in: header
      name: webhook-signature
      description: >-
        A list of HMAC signatures encoded in Base64 and separated by spaces. Can contain multiple HMAC
        signatures as a result of key rotation.
      schema:
        type: string
      example: v1,g0hM9SsE+OTPJTGt/tmIKtSyZlE3uFJELVlNIOLJ1OE= v1,bm9ldHUjKzFob2VudXRob2VodWUzMjRvdWVvdW9ldQo=
    endingBefore:
      description: >-
        A cursor representing an item's token before which a page of results should end. Used to retrieve the
        previous page of results before this item.
      in: query
      name: ending_before
      required: false
      schema:
        type: string
    startingAfter:
      description: >-
        A cursor representing an item's token after which a page of results should begin. Used to retrieve the
        next page of results after this item.
      in: query
      name: starting_after
      required: false
      schema:
        type: string
    beginTime:
      description: >-
        Date string in RFC 3339 format. Only entries created after the specified time will be included. UTC
        time zone.
      in: query
      name: begin
      schema:
        format: date-time
        type: string
    endTime:
      description: >-
        Date string in RFC 3339 format. Only entries created before the specified time will be included. UTC
        time zone.
      in: query
      name: end
      schema:
        format: date-time
        type: string
    accountHolderTokenPath:
      description: Globally unique identifier for the account holder.
      examples:
        accountHolderTokenExample:
          summary: A sample account holder token
          value: 65db64b2-ae89-491a-97d9-f64788f8b2ab
      in: path
      name: account_holder_token
      required: true
      schema:
        format: uuid
        type: string
    accountHolderToken:
      description: Globally unique identifier for the account holder.
      examples:
        accountHolderTokenExample:
          summary: A sample account holder token
          value: 65db64b2-ae89-491a-97d9-f64788f8b2ab
      in: path
      name: account_holder_token
      required: true
      schema:
        format: uuid
        type: string
    documentToken:
      description: Globally unique identifier for the document.
      examples:
        documentTokenExample:
          summary: A sample document token
          value: 76ca80c3-bf90-491a-97d9-f64788f8b2ab
      in: path
      name: document_token
      required: true
      schema:
        format: uuid
        type: string
    entityTokenPath:
      description: Globally unique identifier for the entity.
      examples:
        entityTokenExample:
          summary: A sample entity token
          value: 4e541f1a-bf90-491a-97d9-f64788f8b2ab
      in: path
      name: entity_token
      required: true
      schema:
        format: uuid
        type: string
    pageSize:
      description: Page size (for pagination).
      in: query
      name: page_size
      schema:
        default: 50
        maximum: 100
        minimum: 1
        type: integer
    accountToken:
      description: Globally unique identifier for account.
      examples:
        accountTokenExample:
          summary: A sample account token
          value: d86a0a4d-7459-471a-83b4-431136320828
      in: path
      name: account_token
      required: true
      schema:
        format: uuid
        type: string
    EndingBefore:
      description: >-
        A cursor representing an item's token before which a page of results should end. Used to retrieve the
        previous page of results before this item.
      in: query
      name: ending_before
      required: false
      schema:
        type: string
        format: uuid
    PageSize:
      description: Page size (for pagination).
      in: query
      name: page_size
      schema:
        default: 50
        maximum: 100
        minimum: 1
        type: integer
    StartingAfter:
      description: >-
        A cursor representing an item's token after which a page of results should begin. Used to retrieve the
        next page of results after this item.
      in: query
      name: starting_after
      required: false
      schema:
        type: string
        format: uuid
    AuthRuleToken:
      name: auth_rule_token
      in: path
      required: true
      schema:
        type: string
        format: uuid
    AuthRuleBacktestToken:
      name: auth_rule_backtest_token
      in: path
      required: true
      schema:
        type: string
        format: uuid
    cardProgramTokenPath:
      description: Globally unique identifier for the card program.
      examples:
        cardProgramTokenExample:
          summary: A sample card program token
          value: 65db64b2-ae89-491a-97d9-f64788f8b2ab
      in: path
      name: card_program_token
      required: true
      schema:
        format: uuid
        type: string
    idempotencyKey:
      description: Idempotency key for the request
      in: header
      name: Idempotency-Key
      schema:
        type: string
        format: uuid
      example: 65a9dad4-1b60-4686-83fd-65b25078a4b4
    cardToken:
      examples:
        cardTokenExample:
          summary: A sample card token
          value: 73ca53a1-ae89-491a-97d9-f64788f8b2ab
      in: path
      name: card_token
      required: true
      schema:
        format: uuid
        type: string
    financialTransactionToken:
      description: Globally unique identifier for financial transaction token.
      examples:
        financialTransactionTokenExample:
          summary: A sample financial transaction token
          value: 18394f8e-711b-4b3e-ae21-d35a9eafe7d1
      in: path
      name: financial_transaction_token
      required: true
      schema:
        format: uuid
        type: string
    cardTokenDigitalWallet:
      description: The unique token of the card to add to the device's digital wallet.
      examples:
        cardTokenExample:
          summary: A sample card token
          value: 73ca53a1-ae89-491a-97d9-f64788f8b2ab
      in: path
      name: card_token
      required: true
      schema:
        format: uuid
        type: string
    disputeToken:
      examples:
        disputeTokenExample:
          summary: A sample chargeback request token
          value: 73ca53a1-ae89-491a-97d9-f64788f8b2ab
      in: path
      name: dispute_token
      required: true
      schema:
        format: uuid
        type: string
    disputeEvidenceToken:
      examples:
        disputeEvidenceExample:
          summary: A sample evidence token
          value: 73ca53a1-ae89-491a-97d9-f64788f8b2ab
      in: path
      name: evidence_token
      required: true
      schema:
        format: uuid
        type: string
    eventSubscriptionToken:
      in: path
      name: event_subscription_token
      required: true
      schema:
        type: string
    eventToken:
      in: path
      name: event_token
      required: true
      schema:
        type: string
    financialAccountToken:
      description: Globally unique identifier for financial account.
      examples:
        financialAccountTokenExample:
          summary: A sample financial account token
          value: 3fa85f64-5717-4562-b3fc-2c963f66afa6
      in: path
      name: financial_account_token
      required: true
      schema:
        format: uuid
        type: string
    transactionToken:
      description: Globally unique identifier for the transaction.
      examples:
        transactionTokenExample:
          summary: A sample transaction token
          value: 84bc53a1-bf91-502b-97d9-f75888f8b2ab
      in: path
      name: transaction_token
      required: true
      schema:
        format: uuid
        type: string
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: Authorization
      type: apiKey
  schemas:
    Address:
      properties:
        address1:
          description: Valid deliverable address (no PO boxes).
          example: 123 Old Forest Way
          type: string
        address2:
          description: Unit or apartment number (if applicable).
          type: string
        city:
          description: Name of city.
          example: Omaha
          type: string
        country:
          description: >-
            Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character format. Only USA is
            currently supported for all workflows. KYC_EXEMPT supports CAN additionally. 
          example: USA
          type: string
        postal_code:
          description: >-
            Valid postal code. USA postal codes (ZIP codes) are supported, entered as a five-digit postal code
            or nine-digit postal code (ZIP+4) using the format 12345-1234.  KYC_EXEMPT supports Canadian
            postal codes. 
          example: '68022'
          type: string
        state:
          description: >-
            Valid state code. USA state codes are supported, entered in uppercase ISO 3166-2 two-character
            format. KYC_EXEMPT supports Canadian province codes.
          example: NE
          type: string
      required:
        - address1
        - city
        - country
        - postal_code
        - state
      type: object
    AccountHolderIndividualResponse:
      description: >-
        Information about an individual associated with an account holder. A subset of the information
        provided via KYC. For example, we do not return the government id.
      properties:
        address:
          $ref: '#/components/schemas/Address'
          description: Individual's current address
        dob:
          description: Individual's date of birth, as an RFC 3339 date.
          example: '1991-03-08 08:00:00'
          type: string
        email:
          description: Individual's email address.
          example: tom@middle-earth.com
          type: string
        first_name:
          description: Individual's first name, as it appears on government-issued identity documents.
          example: Tom
          type: string
        last_name:
          description: Individual's last name, as it appears on government-issued identity documents.
          example: Bombadil
          type: string
        phone_number:
          description: Individual's phone number, entered in E.164 format.
          example: '+15555555555'
          type: string
        entity_token:
          description: Globally unique identifier for the entity.
          type: string
          format: uuid
      type: object
      required:
        - address
        - dob
        - email
        - first_name
        - last_name
        - phone_number
        - entity_token
    AccountHolderBusinessResponse:
      properties:
        address:
          $ref: '#/components/schemas/Address'
          description: >
            Business's physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are
            acceptable.
        dba_business_name:
          description: Any name that the business operates under that is not its legal business name (if applicable).
          type: string
        government_id:
          description: >
            Government-issued identification number. US Federal Employer Identification Numbers (EIN) are
            currently supported, entered as full nine-digits, with or without hyphens.
          example: 114-123-1513
          type: string
        legal_business_name:
          description: Legal (formal) business name.
          example: Acme, Inc.
          type: string
        parent_company:
          description: Parent company name (if applicable).
          type: string
        phone_numbers:
          description: One or more of the business's phone number(s), entered as a list in E.164 format.
          items:
            description: Business phone number, entered in E.164 format.
            example: '+15555555555'
            type: string
          minItems: 1
          type: array
        entity_token:
          description: Globally unique identifier for the entity.
          type: string
          format: uuid
      required:
        - address
        - government_id
        - dba_business_name
        - legal_business_name
        - phone_numbers
        - entity_token
      type: object
    AccountHolderVerificationApplication:
      description: Represents the status of an identity verification application for an account holder
      properties:
        created:
          description: Timestamp of when the application was created.
          format: date-time
          type: string
        status:
          description: |
            KYC and KYB evaluation states.

            Note:
            * `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
          enum:
            - ACCEPTED
            - PENDING_REVIEW
            - PENDING_DOCUMENT
            - PENDING_RESUBMIT
            - REJECTED
          type: string
        status_reasons:
          description: Reason for the evaluation status.
          items:
            enum:
              - ADDRESS_VERIFICATION_FAILURE
              - AGE_THRESHOLD_FAILURE
              - COMPLETE_VERIFICATION_FAILURE
              - DOB_VERIFICATION_FAILURE
              - ID_VERIFICATION_FAILURE
              - MAX_DOCUMENT_ATTEMPTS
              - MAX_RESUBMISSION_ATTEMPTS
              - NAME_VERIFICATION_FAILURE
              - OTHER_VERIFICATION_FAILURE
              - RISK_THRESHOLD_FAILURE
              - WATCHLIST_ALERT_FAILURE
            type: string
          type: array
        updated:
          description: Timestamp of when the application was last updated.
          format: date-time
          type: string
      type: object
    required-document:
      title: Account Holder Required Document
      type: object
      properties:
        entity_token:
          type: string
          format: uuid
          description: Globally unique identifier for an entity.
        valid_documents:
          type: array
          description: A list of valid documents that will satisfy the KYC requirements for the specified entity.
          items:
            type: string
            description: The name of a required document.
        status_reasons:
          type: array
          description: Provides the status reasons that will be satisfied by providing one of the valid documents.
          items:
            type: string
            description: An account holder's status reason
      required:
        - entity_token
        - valid_documents
        - status_reasons
    AccountHolder:
      properties:
        account_token:
          description: Globally unique identifier for the account.
          format: uuid
          type: string
        beneficial_owner_individuals:
          description: >-
            Only present when user_type == "BUSINESS".

            You must submit a list of all direct and indirect individuals with 25% or more ownership in the
            company. A maximum of 4 beneficial owners can be submitted. If no individual owns 25% of the
            company you do not need to send beneficial owner information.

            See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section I) for more background on individuals that should be included.
          items:
            $ref: '#/components/schemas/AccountHolderIndividualResponse'
          minItems: 0
          type: array
        business_account_token:
          description: >-
            Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of
            businesses. Pass the account_token of the enrolled business associated with the AUTHORIZED_USER in
            this field.
          format: uuid
          type: string
        business_entity:
          $ref: '#/components/schemas/AccountHolderBusinessResponse'
          description: >-
            Only present when user_type == "BUSINESS". Information about the business for which the account is
            being opened and KYB is being run.
        control_person:
          $ref: '#/components/schemas/AccountHolderIndividualResponse'
          description: >
            Only present when user_type == "BUSINESS".

            An individual with significant responsibility for managing the legal entity (e.g., a Chief
            Executive Officer, Chief Financial Officer, Chief Operating Officer,

            Managing Member, General Partner, President, Vice President, or Treasurer). This can be an
            executive, or someone who will have program-wide access

            to the cards that Lithic will provide. In some cases, this individual could also be a beneficial
            owner listed above.
        created:
          description: Timestamp of when the account holder was created.
          format: date-time
          type: string
        email:
          description: >
            (Deprecated. Use control_person.email when user_type == "BUSINESS". Use individual.phone_number
            when user_type == "INDIVIDUAL".)

            Primary email of Account Holder.
          example: '+15555555555'
          type: string
        exemption_type:
          description: The type of KYC exemption for a KYC-Exempt Account Holder.
          enum:
            - AUTHORIZED_USER
            - PREPAID_CARD_USER
          type: string
        external_id:
          description: >-
            Customer-provided token that indicates a relationship with an object outside of the Lithic
            ecosystem.
          type: string
        individual:
          $ref: '#/components/schemas/AccountHolderIndividualResponse'
          description: >-
            Only present when user_type == "INDIVIDUAL". Information about the individual for which the
            account is being opened and KYC is being run.
        naics_code:
          description: >-
            Only present when user_type == "BUSINESS". 6-digit North American Industry Classification System
            (NAICS) code for the business.
          type: string
        nature_of_business:
          description: Only present when user_type == "BUSINESS". User-submitted description of the business.
          type: string
        phone_number:
          description: >
            (Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use
            individual.phone_number when user_type == "INDIVIDUAL".)

            Primary phone of Account Holder, entered in E.164 format.
          example: '+15555555555'
          type: string
        status:
          description: |
            (Deprecated. Use verification_application.status instead)

            KYC and KYB evaluation states.

            Note:
            * `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
          enum:
            - ACCEPTED
            - PENDING_REVIEW
            - PENDING_DOCUMENT
            - PENDING_RESUBMIT
            - REJECTED
          type: string
        status_reasons:
          description: |
            (Deprecated. Use verification_application.status_reasons)

            Reason for the evaluation status.
          items:
            enum:
              - ADDRESS_VERIFICATION_FAILURE
              - AGE_THRESHOLD_FAILURE
              - COMPLETE_VERIFICATION_FAILURE
              - DOB_VERIFICATION_FAILURE
              - ID_VERIFICATION_FAILURE
              - MAX_DOCUMENT_ATTEMPTS
              - MAX_RESUBMISSION_ATTEMPTS
              - NAME_VERIFICATION_FAILURE
              - OTHER_VERIFICATION_FAILURE
              - RISK_THRESHOLD_FAILURE
              - WATCHLIST_ALERT_FAILURE
            type: string
          type: array
        token:
          description: Globally unique identifier for the account holder.
          format: uuid
          type: string
        user_type:
          description: >-
            The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
            present.

            If the type is "BUSINESS" then the "business_entity", "control_person",
            "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url" attributes
            will be present.
          enum:
            - BUSINESS
            - INDIVIDUAL
          type: string
        verification_application:
          $ref: '#/components/schemas/AccountHolderVerificationApplication'
          description: Information about the most recent identity verification attempt
        required_documents:
          description: >-
            Only present for "KYB_BASIC" workflow. A list of documents required for the account holder to be
            approved.
          type: array
          items:
            $ref: '#/components/schemas/required-document'
        website_url:
          description: Only present when user_type == "BUSINESS". Business's primary website.
          type: string
      required:
        - token
        - created
      type: object
    error:
      type: object
      properties:
        debugging_request_id:
          type: string
          format: uuid
          description: Identifier to help debug an error.
        message:
          type: string
          description: Explanation of error response.
      required:
        - debugging_request_id
        - message
    Individual:
      properties:
        address:
          $ref: '#/components/schemas/Address'
          description: >
            Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO
            are acceptable. Only USA addresses are currently supported.
        dob:
          description: Individual's date of birth, as an RFC 3339 date.
          example: '1991-03-08 08:00:00'
          type: string
        email:
          description: >
            Individual's email address.

            If utilizing Lithic for chargeback processing, this customer email address may be used to
            communicate dispute status and resolution.
          example: tom@middle-earth.com
          type: string
        first_name:
          description: Individual's first name, as it appears on government-issued identity documents.
          example: Tom
          type: string
        government_id:
          description: >
            Government-issued identification number (required for identity verification and compliance with
            banking regulations). Social Security Numbers (SSN) and Individual Taxpayer Identification Numbers
            (ITIN) are currently supported, entered as full nine-digits, with or without hyphens
          example: 111-23-1412
          type: string
        last_name:
          description: Individual's last name, as it appears on government-issued identity documents.
          example: Bombadil
          type: string
        phone_number:
          description: |
            Individual's phone number, entered in E.164 format.
          example: '+15555555555'
          type: string
      type: object
    KybIndividual:
      allOf:
        - $ref: '#/components/schemas/Individual'
        - required:
            - address
            - dob
            - email
            - first_name
            - government_id
            - last_name
          type: object
      description: Individuals associated with a KYB application. Phone number is optional.
    BusinessEntity:
      properties:
        address:
          $ref: '#/components/schemas/Address'
          description: >
            Business's physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are
            acceptable.
        dba_business_name:
          description: Any name that the business operates under that is not its legal business name (if applicable).
          type: string
        government_id:
          description: >
            Government-issued identification number. US Federal Employer Identification Numbers (EIN) are
            currently supported, entered as full nine-digits, with or without hyphens.
          example: 114-123-1513
          type: string
        legal_business_name:
          description: Legal (formal) business name.
          example: Acme, Inc.
          type: string
        parent_company:
          description: Parent company name (if applicable).
          type: string
        phone_numbers:
          description: One or more of the business's phone number(s), entered as a list in E.164 format.
          items:
            description: Business phone number, entered in E.164 format.
            example: '+15555555555'
            type: string
          minItems: 1
          type: array
      required:
        - address
        - government_id
        - legal_business_name
        - phone_numbers
      type: object
    Kyb:
      properties:
        beneficial_owner_individuals:
          description: >-
            You must submit a list of all direct and indirect individuals with 25% or more ownership in the
            company. A maximum of 4 beneficial owners can be submitted. If no individual owns 25% of the
            company you do not need to send beneficial owner information.

            See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section I) for more background on individuals that should be included.
          items:
            $ref: '#/components/schemas/KybIndividual'
          minItems: 0
          type: array
        business_entity:
          $ref: '#/components/schemas/BusinessEntity'
          description: Information for business for which the account is being opened and KYB is being run.
        control_person:
          $ref: '#/components/schemas/KybIndividual'
          description: >
            An individual with significant responsibility for managing the legal entity (e.g., a Chief
            Executive Officer, Chief Financial Officer, Chief Operating Officer,

            Managing Member, General Partner, President, Vice President, or Treasurer). This can be an
            executive, or someone who will have program-wide access

            to the cards that Lithic will provide. In some cases, this individual could also be a beneficial
            owner listed above.

            See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section II) for more background.
        external_id:
          description: A user provided id that can be used to link an account holder with an external system
          type: string
        kyb_passed_timestamp:
          description: >
            An RFC 3339 timestamp indicating when precomputed KYB was completed on the business with a pass
            result.


            This field is required only if workflow type is `KYB_BYO`.
          example: '2018-05-29T21:16:05Z'
          type: string
        naics_code:
          description: 6-digit North American Industry Classification System (NAICS) code for the business.
          example: '541512'
          type: string
        nature_of_business:
          description: >-
            Short description of the company's line of business (i.e., what does the company do?). Values
            longer than 255 characters will be truncated before KYB verification
          example: Software company selling solutions to the restaurant industry
          type: string
        tos_timestamp:
          description: >-
            An RFC 3339 timestamp indicating when the account holder accepted the applicable legal agreements
            (e.g., cardholder terms) as agreed upon during API customer's implementation with Lithic.
          example: '2018-05-29T21:16:05Z'
          type: string
        website_url:
          description: Company website URL.
          example: www.mybusiness.com
          type: string
        workflow:
          description: Specifies the type of KYB workflow to run.
          enum:
            - KYB_BASIC
            - KYB_BYO
          type: string
      required:
        - beneficial_owner_individuals
        - business_entity
        - control_person
        - nature_of_business
        - tos_timestamp
        - workflow
      type: object
    KybDelegatedIndividual:
      allOf:
        - $ref: '#/components/schemas/Individual'
        - required:
            - first_name
            - last_name
          type: object
      description: Individuals associated with a KYB_DELEGATED application. Only first and last name are required.
    KybDelegatedBusinessEntity:
      properties:
        address:
          $ref: '#/components/schemas/Address'
          description: >
            Business's physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are
            acceptable.
        dba_business_name:
          description: Any name that the business operates under that is not its legal business name (if applicable).
          type: string
        government_id:
          description: >
            Government-issued identification number. US Federal Employer Identification Numbers (EIN) are
            currently supported, entered as full nine-digits, with or without hyphens.
          example: 114-123-1513
          type: string
        legal_business_name:
          description: Legal (formal) business name.
          example: Acme, Inc.
          type: string
        parent_company:
          description: Parent company name (if applicable).
          type: string
        phone_numbers:
          description: One or more of the business's phone number(s), entered as a list in E.164 format.
          items:
            description: Business phone number, entered in E.164 format.
            example: '+15555555555'
            type: string
          minItems: 1
          type: array
      required:
        - address
        - legal_business_name
      type: object
    KybDelegated:
      properties:
        beneficial_owner_individuals:
          description: >-
            You can submit a list of all direct and indirect individuals with 25% or more ownership in the
            company. A maximum of 4 beneficial owners can be submitted. If no individual owns 25% of the
            company you do not need to send beneficial owner information.

            See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section I) for more background on individuals that should be included.
          items:
            $ref: '#/components/schemas/KybDelegatedIndividual'
          minItems: 0
          type: array
        business_entity:
          $ref: '#/components/schemas/KybDelegatedBusinessEntity'
          description: Information for business for which the account is being opened.
        control_person:
          $ref: '#/components/schemas/KybDelegatedIndividual'
          description: >
            An individual with significant responsibility for managing the legal entity (e.g., a Chief
            Executive Officer, Chief Financial Officer, Chief Operating Officer,

            Managing Member, General Partner, President, Vice President, or Treasurer). This can be an
            executive, or someone who will have program-wide access

            to the cards that Lithic will provide. In some cases, this individual could also be a beneficial
            owner listed above.

            See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section II) for more background.
        external_id:
          description: A user provided id that can be used to link an account holder with an external system
          type: string
        naics_code:
          description: 6-digit North American Industry Classification System (NAICS) code for the business.
          example: '541512'
          type: string
        nature_of_business:
          description: >-
            Short description of the company's line of business (i.e., what does the company do?). Values
            longer than 255 characters will be truncated before KYB verification
          example: Software company selling solutions to the restaurant industry
          type: string
        tos_timestamp:
          description: >-
            An RFC 3339 timestamp indicating when the account holder accepted the applicable legal agreements
            (e.g., cardholder terms) as agreed upon during API customer's implementation with Lithic.
          example: '2022-03-08 08:00:00'
          type: string
        website_url:
          description: Company website URL.
          example: www.mybusiness.com
          type: string
        workflow:
          description: Specifies the type of KYB workflow to run.
          enum:
            - KYB_DELEGATED
          type: string
      required:
        - business_entity
      type: object
    KycIndividual:
      allOf:
        - $ref: '#/components/schemas/Individual'
        - required:
            - address
            - dob
            - email
            - first_name
            - government_id
            - last_name
            - phone_number
          type: object
      description: Individuals associated with a KYC application.
      x-stainless-naming:
        java:
          type_name: Individual
    Kyc:
      properties:
        external_id:
          description: A user provided id that can be used to link an account holder with an external system
          type: string
        individual:
          $ref: '#/components/schemas/KycIndividual'
          description: Information on individual for whom the account is being opened and KYC is being run.
        kyc_passed_timestamp:
          description: >
            An RFC 3339 timestamp indicating when precomputed KYC was completed on the individual with a pass
            result.


            This field is required only if workflow type is `KYC_BYO`.
          type: string
        tos_timestamp:
          description: >-
            An RFC 3339 timestamp indicating when the account holder accepted the applicable legal agreements
            (e.g., cardholder terms) as agreed upon during API customer's implementation with Lithic.
          type: string
        workflow:
          description: Specifies the type of KYC workflow to run.
          enum:
            - KYC_BASIC
            - KYC_BYO
          type: string
      required:
        - individual
        - tos_timestamp
        - workflow
      type: object
    KycExempt:
      properties:
        address:
          $ref: '#/components/schemas/Address'
          description: >
            KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not acceptable;
            APO/FPO are acceptable.
        business_account_token:
          description: >-
            Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of
            businesses. Pass the account_token of the enrolled business associated with the AUTHORIZED_USER in
            this field.
          type: string
        email:
          description: The KYC Exempt user's email
          type: string
        external_id:
          description: A user provided id that can be used to link an account holder with an external system
          type: string
        first_name:
          description: The KYC Exempt user's first name
          type: string
        kyc_exemption_type:
          description: Specifies the type of KYC Exempt user
          enum:
            - AUTHORIZED_USER
            - PREPAID_CARD_USER
          type: string
        last_name:
          description: The KYC Exempt user's last name
          type: string
        phone_number:
          description: The KYC Exempt user's phone number, entered in E.164 format.
          type: string
        workflow:
          description: Specifies the workflow type. This must be 'KYC_EXEMPT'
          enum:
            - KYC_EXEMPT
          type: string
      required:
        - address
        - email
        - first_name
        - kyc_exemption_type
        - last_name
        - phone_number
        - workflow
      type: object
    status-reasons:
      title: KYC/KYB Status Reasons
      description: Status Reasons for KYC/KYB enrollment states
      type: string
      enum:
        - ADDRESS_VERIFICATION_FAILURE
        - AGE_THRESHOLD_FAILURE
        - COMPLETE_VERIFICATION_FAILURE
        - DOB_VERIFICATION_FAILURE
        - ID_VERIFICATION_FAILURE
        - MAX_DOCUMENT_ATTEMPTS
        - MAX_RESUBMISSION_ATTEMPTS
        - NAME_VERIFICATION_FAILURE
        - OTHER_VERIFICATION_FAILURE
        - RISK_THRESHOLD_FAILURE
        - WATCHLIST_ALERT_FAILURE
        - PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE
        - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
        - PRIMARY_BUSINESS_ENTITY_NAME_VERIFICATION_FAILURE
        - PRIMARY_BUSINESS_ENTITY_BUSINESS_OFFICERS_NOT_MATCHED
        - PRIMARY_BUSINESS_ENTITY_SOS_FILING_INACTIVE
        - PRIMARY_BUSINESS_ENTITY_SOS_NOT_MATCHED
        - PRIMARY_BUSINESS_ENTITY_CMRA_FAILURE
        - PRIMARY_BUSINESS_ENTITY_WATCHLIST_FAILURE
        - PRIMARY_BUSINESS_ENTITY_REGISTERED_AGENT_FAILURE
        - CONTROL_PERSON_BLOCKLIST_ALERT_FAILURE
        - CONTROL_PERSON_ID_VERIFICATION_FAILURE
        - CONTROL_PERSON_DOB_VERIFICATION_FAILURE
        - CONTROL_PERSON_NAME_VERIFICATION_FAILURE
    address-patch:
      title: Address
      type: object
      properties:
        address1:
          description: Valid deliverable address (no PO boxes).
          example: 123 Old Forest Way
          type: string
        address2:
          description: Unit or apartment number (if applicable).
          type: string
        city:
          description: Name of city.
          example: Omaha
          type: string
        country:
          description: >-
            Valid country code. Only USA is currently supported, entered in uppercase ISO 3166-1 alpha-3
            three-character format.
          example: USA
          type: string
        postal_code:
          description: >-
            Valid postal code. Only USA ZIP codes are currently supported, entered as a five-digit ZIP or
            nine-digit ZIP+4.
          example: '68022'
          type: string
        state:
          description: >-
            Valid state code. Only USA state codes are currently supported, entered in uppercase ISO 3166-2
            two-character format.
          example: NE
          type: string
    individual-patch:
      title: Individual
      type: object
      properties:
        entity_token:
          type: string
          format: uuid
          description: Globally unique identifier for an entity.
        address:
          $ref: '#/components/schemas/address-patch'
          description: >-
            Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO
            are acceptable. Only USA addresses are currently supported.
        dob:
          type: string
          example: '1991-03-08 08:00:00'
          description: Individual's date of birth, as an RFC 3339 date.
        email:
          type: string
          example: tom@middle-earth.com
          description: >-
            Individual's email address. If utilizing Lithic for chargeback processing, this customer email
            address may be used to communicate dispute status and resolution.
        first_name:
          type: string
          example: Tom
          description: Individual's first name, as it appears on government-issued identity documents.
        last_name:
          type: string
          example: Bombadil
          description: Individual's last name, as it appears on government-issued identity documents.
        phone_number:
          type: string
          example: '+15555555555'
          description: Individual's phone number, entered in E.164 format.
        government_id:
          type: string
          example: 111-23-1412
          description: >-
            Government-issued identification number (required for identity verification and compliance with
            banking regulations). Social Security Numbers (SSN) and Individual Taxpayer Identification Numbers
            (ITIN) are currently supported, entered as full nine-digits, with or without hyphens
          writeOnly: true
    kyb-individual-patch:
      title: KYB Individual
      type: object
      description: Individuals associated with a KYB application. Phone number is optional.
      allOf:
        - $ref: '#/components/schemas/individual-patch'
        - required:
            - entity_token
    kyb-business-entity-patch:
      title: KYB Business Entity
      type: object
      properties:
        entity_token:
          type: string
          format: uuid
          description: Globally unique identifier for an entity.
        address:
          $ref: '#/components/schemas/address-patch'
          description: >-
            Business''s physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO
            are acceptable.
        dba_business_name:
          description: Any name that the business operates under that is not its legal business name (if applicable).
          type: string
        government_id:
          description: >-
            Government-issued identification number. US Federal Employer Identification Numbers (EIN) are
            currently supported, entered as full nine-digits, with or without hyphens.
          example: 114-123-1513
          type: string
        legal_business_name:
          description: Legal (formal) business name.
          example: Acme, Inc.
          type: string
        parent_company:
          description: Parent company name (if applicable).
          type: string
        phone_numbers:
          description: One or more of the business's phone number(s), entered as a list in E.164 format.
          items:
            description: Business phone number, entered in E.164 format.
            example: '+15555555555'
            type: string
          minItems: 1
          type: array
      required:
        - entity_token
    kyb-patch-request:
      title: Business Patch Request
      type: object
      description: The KYB request payload for updating a business.
      properties:
        beneficial_owner_individuals:
          description: >-
            You must submit a list of all direct and indirect individuals with 25% or more ownership in the
            company. A maximum of 4 beneficial owners can be submitted. If no individual owns 25% of the
            company you do not need to send beneficial owner information. See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section I) for more background on individuals that should be included.
          items:
            $ref: '#/components/schemas/kyb-individual-patch'
          minItems: 0
          type: array
        business_entity:
          description: Information for business for which the account is being opened and KYB is being run.
          $ref: '#/components/schemas/kyb-business-entity-patch'
        control_person:
          description: >-
            An individual with significant responsibility for managing the legal entity (e.g., a Chief
            Executive Officer, Chief Financial Officer, Chief Operating Officer, Managing Member, General
            Partner, President, Vice President, or Treasurer). This can be an executive, or someone who will
            have program-wide access to the cards that Lithic will provide. In some cases, this individual
            could also be a beneficial owner listed above. See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section II) for more background.
          $ref: '#/components/schemas/kyb-individual-patch'
        external_id:
          description: A user provided id that can be used to link an account holder with an external system
          type: string
        naics_code:
          description: 6-digit North American Industry Classification System (NAICS) code for the business.
          example: '541512'
          type: string
        nature_of_business:
          description: >-
            Short description of the company's line of business (i.e., what does the company do?). Values
            longer than 255 characters will be truncated before KYB verification
          example: Software company selling solutions to the restaurant industry
          type: string
        website_url:
          description: Company website URL.
          example: www.mybusiness.com
          type: string
    kyc-individual-patch:
      title: Individuals associated with a KYC application.
      type: object
      allOf:
        - $ref: '#/components/schemas/individual-patch'
        - required:
            - entity_token
    kyc-patch-request:
      title: Individual Patch Request
      type: object
      description: The KYC request payload for updating an account holder.
      properties:
        individual:
          $ref: '#/components/schemas/kyc-individual-patch'
          description: Information on the individual for whom the account is being opened and KYC is being run.
        external_id:
          description: A user provided id that can be used to link an account holder with an external system
          type: string
    patch-request:
      title: Legacy Patch Request
      type: object
      description: The legacy request for updating an account holder.
      properties:
        email:
          description: >-
            Allowed for all Account Holders. Account holder's email address. The primary purpose of this field
            is for cardholder identification and verification during the digital wallet tokenization process.
          type: string
        phone_number:
          description: >-
            Allowed for all Account Holders. Account holder's phone number, entered in E.164 format. The
            primary purpose of this field is for cardholder identification and verification during the digital
            wallet tokenization process.
          type: string
        address:
          description: 'Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB.'
          $ref: '#/components/schemas/address-patch'
        business_account_token:
          description: >-
            Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the account holder is
            associated.
          type: string
        first_name:
          description: Allowed for KYC-Exempt, BYO-KYC. Account holder's first name.
          type: string
        last_name:
          description: Allowed for KYC-Exempt, BYO-KYC. Account holder's last name.
          type: string
        legal_business_name:
          description: Allowed for BYO-KYB. Legal business name of the account holder.
          type: string
    status:
      title: KYC/KYB Status
      description: Enrollment status for KYC/KYB
      type: string
      enum:
        - ACCEPTED
        - PENDING_DOCUMENT
        - PENDING_RESUBMIT
        - REJECTED
    verification-application:
      title: Verification Application
      type: object
      description: Represents the status of an identity verification application for an account holder
      properties:
        created:
          type: string
          format: date-time
          description: Timestamp of when the application was created.
        status:
          description: |-
            KYC and KYB evaluation states.

            Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `ADVANCED` workflow.
          $ref: '#/components/schemas/status'
        status_reasons:
          type: array
          items:
            $ref: '#/components/schemas/status-reasons'
          description: Reason for the evaluation status.
        updated:
          type: string
          format: date-time
          description: Timestamp of when the application was last updated.
        ky_passed_at:
          type: string
          format: date-time
          description: >-
            Timestamp of when the application passed the verification process. Only present if `status` is
            `ACCEPTED`
      required:
        - created
        - status
        - status_reasons
        - updated
    address:
      title: Address
      type: object
      properties:
        address1:
          description: Valid deliverable address (no PO boxes).
          example: 123 Old Forest Way
          type: string
        address2:
          description: Unit or apartment number (if applicable).
          type: string
        city:
          description: Name of city.
          example: Omaha
          type: string
        country:
          description: >-
            Valid country code. Only USA is currently supported, entered in uppercase ISO 3166-1 alpha-3
            three-character format.
          example: USA
          type: string
        postal_code:
          description: >-
            Valid postal code. Only USA ZIP codes are currently supported, entered as a five-digit ZIP or
            nine-digit ZIP+4.
          example: '68022'
          type: string
        state:
          description: >-
            Valid state code. Only USA state codes are currently supported, entered in uppercase ISO 3166-2
            two-character format.
          example: NE
          type: string
      required:
        - address1
        - city
        - country
        - postal_code
        - state
    individual:
      title: Individual
      type: object
      properties:
        address:
          $ref: '#/components/schemas/address'
          description: >-
            Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO
            are acceptable. Only USA addresses are currently supported.
        dob:
          type: string
          example: '1991-03-08 08:00:00'
          description: Individual's date of birth, as an RFC 3339 date.
        email:
          type: string
          example: tom@middle-earth.com
          description: >-
            Individual's email address. If utilizing Lithic for chargeback processing, this customer email
            address may be used to communicate dispute status and resolution.
        first_name:
          type: string
          example: Tom
          description: Individual's first name, as it appears on government-issued identity documents.
        last_name:
          type: string
          example: Bombadil
          description: Individual's last name, as it appears on government-issued identity documents.
        phone_number:
          type: string
          example: '+15555555555'
          description: Individual's phone number, entered in E.164 format.
        government_id:
          type: string
          example: 111-23-1412
          description: >-
            Government-issued identification number (required for identity verification and compliance with
            banking regulations). Social Security Numbers (SSN) and Individual Taxpayer Identification Numbers
            (ITIN) are currently supported, entered as full nine-digits, with or without hyphens
          writeOnly: true
    kyb-business-entity:
      title: KYB Business Entity
      type: object
      properties:
        address:
          $ref: '#/components/schemas/address'
          description: >-
            Business''s physical address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO
            are acceptable.
        dba_business_name:
          description: Any name that the business operates under that is not its legal business name (if applicable).
          type: string
        government_id:
          description: >-
            Government-issued identification number. US Federal Employer Identification Numbers (EIN) are
            currently supported, entered as full nine-digits, with or without hyphens.
          example: 114-123-1513
          type: string
        legal_business_name:
          description: Legal (formal) business name.
          example: Acme, Inc.
          type: string
        parent_company:
          description: Parent company name (if applicable).
          type: string
        phone_numbers:
          description: One or more of the business's phone number(s), entered as a list in E.164 format.
          items:
            description: Business phone number, entered in E.164 format.
            example: '+15555555555'
            type: string
          minItems: 1
          type: array
      required:
        - address
        - government_id
        - legal_business_name
        - phone_numbers
    kyb-kyc-patch-response:
      title: Business/Individual Patch Response
      type: object
      properties:
        token:
          description: Globally unique identifier for the account holder.
          type: string
          format: uuid
        account_token:
          description: Globally unique identifier for the account.
          type: string
          format: uuid
        business_account_token:
          description: >-
            Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of
            businesses. Pass the account_token of the enrolled business associated with the AUTHORIZED_USER in
            this field.
          type:
            - string
            - 'null'
          format: uuid
        created:
          description: Timestamp of when the account holder was created.
          type: string
          format: date-time
        exemption_type:
          description: >-
            The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account holder is not
            KYC-Exempt.
          type: string
          enum:
            - AUTHORIZED_USER
            - PREPAID_CARD_USER
        external_id:
          description: >-
            Customer-provided token that indicates a relationship with an object outside of the Lithic
            ecosystem.
          type: string
        user_type:
          description: >-
            The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
            present.


            If the type is "BUSINESS" then the "business_entity", "control_person",
            "beneficial_owner_individuals",

            "naics_code", "nature_of_business", and "website_url" attributes will be present.
          type: string
          enum:
            - BUSINESS
            - INDIVIDUAL
        verification_application:
          $ref: '#/components/schemas/verification-application'
          description: Information about the most recent identity verification attempt
        individual:
          $ref: '#/components/schemas/individual'
          description: >-
            Only present when user_type == "INDIVIDUAL". Information about the individual for which the
            account is being opened and KYC is being run.
        business_entity:
          $ref: '#/components/schemas/kyb-business-entity'
          description: >-
            Only present when user_type == "BUSINESS". Information about the business for which the account is
            being opened and KYB is being run.
        beneficial_owner_individuals:
          description: >-
            Only present when user_type == "BUSINESS". You must submit a list of all direct and indirect
            individuals with 25% or more ownership in the company. A maximum of 4 beneficial owners can be
            submitted. If no individual owns 25% of the company you do not need to send beneficial owner
            information. See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section I) for more background on individuals that should be included.
          type: array
          items:
            $ref: '#/components/schemas/individual'
          minItems: 0
        control_person:
          $ref: '#/components/schemas/individual'
          description: >-
            Only present when user_type == "BUSINESS".


            An individual with significant responsibility for managing the legal entity (e.g., a Chief
            Executive Officer, Chief Financial Officer, Chief Operating Officer,


            Managing Member, General Partner, President, Vice President, or Treasurer). This can be an
            executive, or someone who will have program-wide access


            to the cards that Lithic will provide. In some cases, this individual could also be a beneficial
            owner listed above.
        naics_code:
          description: >-
            Only present when user_type == "BUSINESS". 6-digit North American Industry Classification System
            (NAICS) code for the business.
          type: string
        nature_of_business:
          description: Only present when user_type == "BUSINESS". User-submitted description of the business.
          type: string
        website_url:
          description: Only present when user_type == "BUSINESS". Business's primary website.
          type: string
        email:
          description: |
            (Deprecated. Use control_person.email when user_type == "BUSINESS".
            Use individual.phone_number when user_type == "INDIVIDUAL".)
            Primary email of Account Holder.
          type: string
        phone_number:
          description: |
            (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
            Use individual.phone_number when user_type == "INDIVIDUAL".)
            Primary phone of Account Holder, entered in E.164 format.
          type: string
        status:
          description: |+
            (Deprecated. Use verification_application.status instead)
            KYC and KYB evaluation states.

            Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `ADVANCED` workflow.

          $ref: '#/components/schemas/status'
        status_reasons:
          description: |-
            (Deprecated. Use verification_application.status_reasons)
             Reason for the evaluation status.
          type: array
          items:
            $ref: '#/components/schemas/status-reasons'
        required_documents:
          description: >-
            Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required for the
            account holder to be approved.
          type: array
          items:
            $ref: '#/components/schemas/required-document'
    patch-response:
      title: Legacy Patch Response
      type: object
      properties:
        token:
          description: The token for the account holder that was updated
          type: string
        email:
          description: The email for the account holder
          type: string
        phone_number:
          description: The phone_number for the account holder
          type: string
        business_account_token:
          description: The token for the business account that the account holder is associated with
          type:
            - string
            - 'null'
        address:
          description: The address for the account holder
          $ref: '#/components/schemas/address'
        first_name:
          description: The first name for the account holder
          type: string
        last_name:
          description: The last name for the account holder
          type: string
        legal_business_name:
          description: The legal business name for the account holder
          type: string
    document-type:
      title: Account Holder document types
      description: Type of documentation to be submitted for verification of an account holder
      type: string
      enum:
        - DRIVERS_LICENSE
        - PASSPORT
        - PASSPORT_CARD
        - EIN_LETTER
        - TAX_RETURN
        - OPERATING_AGREEMENT
        - CERTIFICATE_OF_FORMATION
        - CERTIFICATE_OF_GOOD_STANDING
        - ARTICLES_OF_INCORPORATION
        - ARTICLES_OF_ORGANIZATION
        - BYLAWS
        - GOVERNMENT_BUSINESS_LICENSE
        - PARTNERSHIP_AGREEMENT
        - SS4_FORM
        - BANK_STATEMENT
        - UTILITY_BILL_STATEMENT
        - SSN_CARD
        - ITIN_LETTER
        - FINCEN_BOI_REPORT
    document-upload-status:
      title: Account holder document upload status
      description: Status of an account holder's document upload.
      type: string
      enum:
        - ACCEPTED
        - REJECTED
        - PENDING_UPLOAD
        - UPLOADED
        - PARTIAL_APPROVAL
    document-upload-status-reasons:
      title: Account holder document upload status reasons
      description: The status reasons for an account holder document upload that is not ACCEPTED
      type: string
      enum:
        - DOCUMENT_MISSING_REQUIRED_DATA
        - DOCUMENT_UPLOAD_TOO_BLURRY
        - FILE_SIZE_TOO_LARGE
        - INVALID_DOCUMENT_TYPE
        - INVALID_DOCUMENT_UPLOAD
        - INVALID_ENTITY
        - DOCUMENT_EXPIRED
        - DOCUMENT_ISSUED_GREATER_THAN_30_DAYS
        - DOCUMENT_TYPE_NOT_SUPPORTED
        - UNKNOWN_FAILURE_REASON
        - UNKNOWN_ERROR
    document:
      title: Account Holder KYC Document
      type: object
      description: |-
        Describes the document and the required document image uploads
        required to re-run KYC
      examples:
        - account_holder_token: aab6ad9a-3630-4cd0-bbec-1a0fa5c7e149
          token: f41c975e-cad8-4e4f-a5cb-cef92ed91083
          document_type: EIN_LETTER
          entity_token: b50a84c9-8e86-4016-b1c7-0b9f71d4bb84
          required_document_uploads:
            - image_type: FRONT
              status: PENDING_UPLOAD
              status_reasons: []
              upload_url: https://lithic-document-verification-uploads.com
              token: e254beee-67db-4d8c-b610-306ee07de886
              accepted_entity_status_reasons: []
              rejected_entity_status_reasons: []
              created: '2024-09-18T12:34:56Z'
              updated: '2024-09-18T12:34:56Z'
      properties:
        token:
          type: string
          format: uuid
          description: Globally unique identifier for the document.
        account_holder_token:
          type: string
          format: uuid
          description: Globally unique identifier for the account holder.
        document_type:
          $ref: '#/components/schemas/document-type'
        entity_token:
          type: string
          format: uuid
          description: Globally unique identifier for an entity.
        required_document_uploads:
          type: array
          description: Represents a single image of the document to upload.
          items:
            type: object
            description: Represents a single image of the document to upload.
            properties:
              image_type:
                type: string
                enum:
                  - FRONT
                  - BACK
                description: Type of image to upload.
              status:
                $ref: '#/components/schemas/document-upload-status'
              status_reasons:
                description: Reasons for document image upload status.
                type: array
                items:
                  $ref: '#/components/schemas/document-upload-status-reasons'
              upload_url:
                type: string
                description: >-
                  URL to upload document image to.


                  Note that the upload URLs expire after 7 days. If an upload URL expires, you can

                  refresh the URLs by retrieving the document upload from `GET
                  /account_holders/{account_holder_token}/documents`.
              token:
                type: string
                format: uuid
                description: Globally unique identifier for the document upload.
              accepted_entity_status_reasons:
                description: >-
                  A list of status reasons associated with a KYB account holder that have been satisfied by
                  the document upload
                type: array
                items:
                  type: string
              rejected_entity_status_reasons:
                description: >-
                  A list of status reasons associated with a KYB account holder that have not been satisfied
                  by the document upload
                type: array
                items:
                  type: string
              created:
                type: string
                format: date-time
                description: When the document upload was created
              updated:
                type: string
                format: date-time
                description: When the document upload was last updated
            required:
              - image_type
              - status
              - status_reasons
              - upload_url
              - token
              - created
              - updated
              - accepted_entity_status_reasons
              - rejected_entity_status_reasons
      required:
        - account_holder_token
        - document_type
        - entity_token
        - required_document_uploads
        - token
    entity-type:
      title: Account Holder Entity Type
      description: The type of entity associated with an account holder
      type: string
      enum:
        - BENEFICIAL_OWNER_INDIVIDUAL
        - CONTROL_PERSON
    create-entity-request:
      title: Account Holder Entity Create Request
      description: >-
        Request body for creating a new beneficial owner or replacing the control person entity on an existing
        KYB account holder.
      allOf:
        - $ref: '#/components/schemas/individual'
        - type: object
          properties:
            type:
              $ref: '#/components/schemas/entity-type'
              description: The type of entity to create on the account holder
          required:
            - type
            - first_name
            - last_name
            - dob
            - email
            - phone_number
            - government_id
            - address
    entity-status:
      title: Account Holder Entity Status
      description: The status of an entity associated with an account holder
      type: string
      enum:
        - ACCEPTED
        - INACTIVE
        - PENDING_REVIEW
        - REJECTED
    create-entity-response:
      title: Account Holder Entity Create Response
      type: object
      description: >-
        Response body for creating a new beneficial owner or replacing the control person entity on an
        existing KYB account holder.
      properties:
        account_holder_token:
          type: string
          format: uuid
          description: Globally unique identifier for the account holder
        created:
          type: string
          format: date-time
          description: Timestamp of when the entity was created
        status:
          $ref: '#/components/schemas/entity-status'
          description: Entity verification status
        status_reasons:
          type: array
          description: Reason for the evaluation status
          items:
            $ref: '#/components/schemas/status-reasons'
        required_documents:
          type: array
          description: A list of documents required for the entity to be approved
          items:
            $ref: '#/components/schemas/required-document'
        token:
          type: string
          format: uuid
          description: Globally unique identifier for the entity
      required:
        - account_holder_token
        - created
        - status
        - status_reasons
        - token
        - required_documents
    entity-response:
      title: Account Holder Entity
      type: object
      description: Information about an entity associated with an account holder
      properties:
        account_holder_token:
          type: string
          format: uuid
          description: Globally unique identifier for the account holder
        token:
          type: string
          format: uuid
          description: Globally unique identifier for the entity
        type:
          $ref: '#/components/schemas/entity-type'
          description: The type of entity
        status:
          $ref: '#/components/schemas/entity-status'
          description: The status of the entity
        first_name:
          type:
            - string
            - 'null'
          description: Individual's first name, as it appears on government-issued identity documents
          example: Tom
        last_name:
          type:
            - string
            - 'null'
          description: Individual's last name, as it appears on government-issued identity documents
          example: Bombadil
        email:
          type:
            - string
            - 'null'
          description: Individual's email address
          example: tom@middle-earth.com
        phone_number:
          type:
            - string
            - 'null'
          description: Individual's phone number, entered in E.164 format
          example: '+15555555555'
        dob:
          type:
            - string
            - 'null'
          description: Individual's date of birth, as an RFC 3339 date
          example: '1991-03-08 08:00:00'
        address:
          $ref: '#/components/schemas/address'
          description: Individual's current address
      required:
        - account_holder_token
        - token
        - type
        - status
        - first_name
        - last_name
        - email
        - phone_number
        - dob
        - address
    AccountConfiguration:
      properties:
        account_holder:
          properties:
            business_account_token:
              description: >-
                Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of
                businesses. Account_token of the enrolled business associated with an enrolled AUTHORIZED_USER
                individual.
              example: e87db14a-4abf-4901-adad-5d5c9f46aff2
              type: string
            email:
              description: Email address.
              example: jack@lithic.com
              type: string
            phone_number:
              description: Phone number of the individual.
              example: '+15555555555'
              type: string
            token:
              description: Globally unique identifier for the account holder.
              example: 95e5f1b7-cfd5-4520-aa3c-2451bab8608d
              type: string
          required:
            - business_account_token
            - email
            - phone_number
            - token
          type: object
        auth_rule_tokens:
          description: >-
            List of identifiers for the Auth Rule(s) that are applied on the account.

            This field is deprecated and will no longer be populated in the `account_holder` object. The key
            will be removed from the schema in a future release. Use the `/auth_rules` endpoints to fetch Auth
            Rule information instead.
          items:
            type: string
          type: array
          deprecated: true
        cardholder_currency:
          description: 3-character alphabetic ISO 4217 code for the currency of the cardholder.
          example: USD
          type: string
        spend_limit:
          description: >
            Spend limit information for the user containing the daily, monthly, and lifetime spend limit of
            the account. Any charges to a card owned by this account will be declined once their transaction
            volume has surpassed the value in the applicable time limit (rolling). A lifetime limit of 0
            indicates that the lifetime limit feature is disabled.
          properties:
            daily:
              description: Daily spend limit (in cents).
              example: 10000
              minimum: 0
              type: integer
            lifetime:
              description: Total spend limit over account lifetime (in cents).
              example: 100000
              minimum: 0
              type: integer
            monthly:
              description: Monthly spend limit (in cents).
              example: 40000
              minimum: 0
              type: integer
          required:
            - daily
            - lifetime
            - monthly
          type: object
        state:
          description: >-
            Account state:
              * `ACTIVE` - Account is able to transact and create new cards.
              * `PAUSED` - Account will not be able to transact or create new cards. It can be set back
            to `ACTIVE`.
              * `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` accounts
            are unable to be transitioned to `ACTIVE` or `PAUSED` states. Accounts can be manually set to
            `CLOSED`, or this can be done by Lithic due to failure to pass KYB/KYC or for risk/compliance
            reasons. Please contact [support@lithic.com](mailto:support@lithic.com) if you believe this was
            done by mistake.
          enum:
            - ACTIVE
            - PAUSED
            - CLOSED
          type: string
        substatus:
          description: >
            Account state substatus values:

            * `FRAUD_IDENTIFIED` - The account has been recognized as being created or used with stolen or
            fabricated identity information, encompassing both true identity theft and synthetic identities.

            * `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as unauthorized
            access or fraudulent transactions, necessitating further investigation.

            * `RISK_VIOLATION` - The account has been involved in deliberate misuse by the legitimate account
            holder. Examples include disputing valid transactions without cause, falsely claiming non-receipt
            of goods, or engaging in intentional bust-out schemes to exploit account services.

            * `END_USER_REQUEST` - The account holder has voluntarily requested the closure of the account for
            personal reasons. This encompasses situations such as bankruptcy, other financial considerations,
            or the account holder's death.

            * `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to business strategy,
            risk management, inactivity, product changes, regulatory concerns, or violations of terms and
            conditions.

            * `NOT_ACTIVE` - The account has not had any transactions or payment activity within a specified
            period. This status applies to accounts that are paused or closed due to inactivity.

            * `INTERNAL_REVIEW` - The account is temporarily paused pending further internal review. In future
            implementations, this status may prevent clients from activating the account via APIs until the
            review is completed.

            * `OTHER` - The reason for the account's current status does not fall into any of the above
            categories. A comment should be provided to specify the particular reason.
          enum:
            - FRAUD_IDENTIFIED
            - SUSPICIOUS_ACTIVITY
            - RISK_VIOLATION
            - END_USER_REQUEST
            - ISSUER_REQUEST
            - NOT_ACTIVE
            - INTERNAL_REVIEW
            - OTHER
          type: string
        comment:
          description: Additional context or information related to the account.
          type: string
        token:
          description: >
            Globally unique identifier for the account. This is the same as the account_token returned by the
            enroll endpoint. If using this parameter, do not include pagination.
          example: b68b7424-aa69-4cbc-a946-30d90181b621
          format: uuid
          type: string
        verification_address:
          properties:
            address1:
              description: Valid deliverable address (no PO boxes).
              example: 124 Old Forest Way
              type: string
            address2:
              description: Unit or apartment number (if applicable).
              example: Apt 21
              type: string
            city:
              description: City name.
              example: Seattle
              type: string
            country:
              description: Country name. Only USA is currently supported.
              example: USA
              type: string
            postal_code:
              description: >-
                Valid postal code. Only USA postal codes (ZIP codes) are currently supported, entered as a
                five-digit postal code or nine-digit postal code (ZIP+4) using the format 12345-1234.
              example: '98109'
              type: string
            state:
              description: >-
                Valid state code. Only USA state codes are currently supported, entered in uppercase ISO
                3166-2 two-character format.
              example: WA
              type: string
          required:
            - address1
            - city
            - country
            - postal_code
            - state
          type: object
          deprecated: true
        created:
          description: Timestamp of when the account was created.
          format: date-time
          type:
            - string
            - 'null'
      required:
        - spend_limit
        - state
        - token
        - created
      type: object
    AccountSpendLimits:
      properties:
        available_spend_limit:
          properties:
            daily:
              description: >-
                The available spend limit (in cents) relative to the daily limit configured on the Account
                (e.g. 100000 would be a $1,000 limit).
              example: 100000
              type: integer
            lifetime:
              description: The available spend limit (in cents) relative to the lifetime limit configured on the Account.
              example: 300000
              type: integer
            monthly:
              description: The available spend limit (in cents) relative to the monthly limit configured on the Account.
              example: 200000
              type: integer
          type: object
        spend_limit:
          properties:
            daily:
              description: The configured daily spend limit (in cents) on the Account.
              example: 500000
              type: integer
            lifetime:
              description: The configured lifetime spend limit (in cents) on the Account.
              example: 500000
              type: integer
            monthly:
              description: The configured monthly spend limit (in cents) on the Account.
              example: 500000
              type: integer
          type: object
        spend_velocity:
          properties:
            daily:
              description: Current daily spend velocity (in cents) on the Account. Present if daily spend limit is set.
              example: 40000
              type: integer
            lifetime:
              description: >-
                Current lifetime spend velocity (in cents) on the Account. Present if lifetime spend limit is
                set.
              example: 20000
              type: integer
            monthly:
              description: >-
                Current monthly spend velocity (in cents) on the Account. Present if monthly spend limit is
                set.
              example: 30000
              type: integer
          type: object
      required:
        - available_spend_limit
      type: object
    event-stream:
      title: Event Stream Types
      type: string
      enum:
        - AUTHORIZATION
        - THREE_DS_AUTHENTICATION
        - TOKENIZATION
        - ACH_CREDIT_RECEIPT
        - ACH_DEBIT_RECEIPT
      description: The event stream during which the rule will be evaluated.
    auth-rule-token:
      title: Auth Rule Token
      description: Auth Rule Token
      type: string
      format: uuid
    auth-rule-state:
      title: Auth Rule State
      type: string
      description: The state of the Auth Rule
      enum:
        - ACTIVE
        - INACTIVE
    program-level:
      title: Auth Rule Program Level Parameter
      type: boolean
      description: Whether the Auth Rule applies to all authorizations on the card program.
    card-tokens:
      title: Auth Rule Card Tokens
      description: Card tokens to which the Auth Rule applies.
      type: array
      items:
        type: string
        format: uuid
    excluded-card-tokens:
      title: Auth Rule Excluded Card Tokens
      description: Card tokens to which the Auth Rule does not apply.
      type: array
      items:
        type: string
        format: uuid
    excluded-account-tokens:
      title: Auth Rule Excluded Account Tokens
      description: Account tokens to which the Auth Rule does not apply.
      type: array
      items:
        type: string
        format: uuid
    excluded-business-account-tokens:
      title: Auth Rule Excluded Business Account Tokens
      description: Business account tokens to which the Auth Rule does not apply.
      type: array
      items:
        type: string
        format: uuid
    account-tokens:
      title: Auth Rule Account Tokens
      description: Account tokens to which the Auth Rule applies.
      type: array
      items:
        type: string
        format: uuid
    business-account-tokens:
      title: Auth Rule Business Account Tokens
      description: Business Account tokens to which the Auth Rule applies.
      type: array
      items:
        type: string
        format: uuid
    auth-rule-type:
      title: Auth Rule Types
      type: string
      enum:
        - CONDITIONAL_BLOCK
        - VELOCITY_LIMIT
        - MERCHANT_LOCK
        - CONDITIONAL_ACTION
        - TYPESCRIPT_CODE
      description: >-
        The type of Auth Rule. For certain rule types, this determines the event stream during which it will
        be evaluated. For rules that can be applied to one of several event streams, the effective one is
        defined by the separate `event_stream` field.


        - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. AUTHORIZATION event stream.

        - `VELOCITY_LIMIT`: AUTHORIZATION event stream.

        - `MERCHANT_LOCK`: AUTHORIZATION event stream.

        - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, ACH_CREDIT_RECEIPT, or
        ACH_DEBIT_RECEIPT event stream.

        - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, ACH_CREDIT_RECEIPT, or
        ACH_DEBIT_RECEIPT event stream.
    conditional-operation:
      title: Conditional Operation
      type: string
      description: The operation to apply to the attribute
      enum:
        - IS_ONE_OF
        - IS_NOT_ONE_OF
        - MATCHES
        - DOES_NOT_MATCH
        - IS_EQUAL_TO
        - IS_NOT_EQUAL_TO
        - IS_GREATER_THAN
        - IS_GREATER_THAN_OR_EQUAL_TO
        - IS_LESS_THAN
        - IS_LESS_THAN_OR_EQUAL_TO
        - IS_AFTER
        - IS_BEFORE
        - CONTAINS_ANY
        - CONTAINS_ALL
        - CONTAINS_NONE
    conditional-value:
      title: Conditional Value
      anyOf:
        - title: Regex
          type: string
          description: A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
        - title: Number
          type: integer
          format: int64
          description: >-
            A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`,
            `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
        - title: List of Strings
          type: array
          minItems: 1
          items:
            type: string
          description: An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
        - title: Timestamp
          type: string
          format: date-time
          description: A timestamp, to be used with `IS_AFTER` or `IS_BEFORE`
    conditional-block-parameters:
      title: Conditional Block Parameters
      deprecated: true
      description: 'Deprecated: Use CONDITIONAL_ACTION instead.'
      type: object
      properties:
        conditions:
          type: array
          items:
            type: object
            properties:
              attribute:
                type: string
                description: >-
                  The attribute to target.


                  The following attributes may be targeted:

                  * `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a business by
                  the types of goods or services it provides.

                  * `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all ISO 3166-1
                  alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.

                  * `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of the
                  transaction.

                  * `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor (merchant).

                  * `DESCRIPTOR`: Short description of card acceptor.

                  * `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer applies to
                  the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or `TOKEN_AUTHENTICATED`.

                  * `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number (PAN) was
                  entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, `ECOMMERCE`,
                  `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, `MAGNETIC_STRIPE`, `MANUAL`,
                  `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.

                  * `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer fee field
                  in the settlement/cardholder billing currency. This is the amount the issuer should
                  authorize against unless the issuer is paying the acquirer fee on behalf of the cardholder.

                  * `RISK_SCORE`: Network-provided score assessing risk level associated with a given
                  authorization. Scores are on a range of 0-999, with 0 representing the lowest risk and 999
                  representing the highest risk. For Visa transactions, where the raw score has a range of
                  0-99, Lithic will normalize the score by multiplying the raw score by 10x.

                  * `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the trailing 15
                  minutes before the authorization.

                  * `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the trailing hour
                  up and until the authorization.

                  * `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the trailing 24
                  hours up and until the authorization.

                  * `CARD_STATE`: The current state of the card associated with the transaction. Valid values
                  are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`.

                  * `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. Valid values
                  are `TRUE`, `FALSE`.

                  * `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, `OK`,
                  `BLOCKED`.

                  * `WALLET_TYPE`: For transactions using a digital wallet token, indicates the source of the
                  token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`,
                  `OTHER`, `NONE`.

                  * `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address data with the
                  cardholder KYC data if it exists. Valid values are `MATCH`, `MATCH_ADDRESS_ONLY`,
                  `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
                enum:
                  - MCC
                  - COUNTRY
                  - CURRENCY
                  - MERCHANT_ID
                  - DESCRIPTOR
                  - LIABILITY_SHIFT
                  - PAN_ENTRY_MODE
                  - TRANSACTION_AMOUNT
                  - RISK_SCORE
                  - CARD_TRANSACTION_COUNT_15M
                  - CARD_TRANSACTION_COUNT_1H
                  - CARD_TRANSACTION_COUNT_24H
                  - CARD_STATE
                  - PIN_ENTERED
                  - PIN_STATUS
                  - WALLET_TYPE
                  - ADDRESS_MATCH
              operation:
                $ref: '#/components/schemas/conditional-operation'
              value:
                $ref: '#/components/schemas/conditional-value'
            required:
              - attribute
              - operation
              - value
      required:
        - conditions
    velocity-scope:
      title: Velocity Limits Scope
      type: string
      enum:
        - CARD
        - ACCOUNT
      description: The scope the velocity is calculated for
    velocity-limit-period:
      title: Velocity Limit Period
      oneOf:
        - title: Trailing Window Object
          type: object
          properties:
            duration:
              type: integer
              description: >-
                The size of the trailing window to calculate Spend Velocity over in seconds. The minimum value
                is 10 seconds, and the maximum value is 2678400 seconds (31 days).
              minimum: 10
              maximum: 2678400
            type:
              type: string
              const: CUSTOM
          required:
            - duration
            - type
        - title: Fixed Window Day
          type: object
          description: Velocity over the current day since 00:00 / 12 AM in Eastern Time
          properties:
            type:
              type: string
              const: DAY
          required:
            - type
        - title: Fixed Window Week
          type: object
          description: Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified `day_of_week`
          properties:
            type:
              type: string
              const: WEEK
            day_of_week:
              type: integer
              description: >-
                The day of the week to start the week from. Following ISO-8601, 1 is Monday and 7 is Sunday.
                Defaults to Monday if not specified.
              minimum: 1
              maximum: 7
              default: 1
          required:
            - type
        - title: Fixed Window Month
          type: object
          description: Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified `day_of_month`.
          properties:
            type:
              type: string
              const: MONTH
            day_of_month:
              type: integer
              description: >-
                The day of the month to start from. Accepts values from 1 to 31, and will reset at the end of
                the month if the day exceeds the number of days in the month. Defaults to the 1st of the month
                if not specified.
              minimum: 1
              maximum: 31
              default: 1
          required:
            - type
        - title: Fixed Window Year
          type: object
          description: >-
            Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified `month` and
            `day_of_month`. This validates the month and day of the year to start from is a real date. In the
            event that February 29th is selected, in non-leap years, the window will start from February 28th.
          properties:
            type:
              type: string
              const: YEAR
            day_of_month:
              type: integer
              description: The day of the month to start from. Defaults to the 1st of the month if not specified.
              minimum: 1
              maximum: 31
              default: 1
            month:
              type: integer
              description: >-
                The month to start from. 1 is January and 12 is December. Defaults to January if not
                specified.
              minimum: 1
              maximum: 12
              default: 1
          required:
            - type
    velocity-limit-filters:
      title: Velocity Limits Filters
      type: object
      properties:
        include_mccs:
          anyOf:
            - title: Null (include all MCCs)
              type: 'null'
              description: Include all MCCs into the velocity computation.
            - title: List of MCCs
              type: array
              minItems: 1
              items:
                type: string
                pattern: ^[0-9]{4}$
                example: '5542'
              description: >-
                Merchant Category Codes to include in the velocity calculation. Transactions not matching this
                MCC will not be included in the calculated velocity.
        exclude_mccs:
          anyOf:
            - title: Null (do not exclude any MCCs)
              type: 'null'
              description: Do not exclude any MCCs from the velocity computation.
            - title: List of MCCs
              type: array
              minItems: 1
              items:
                type: string
                pattern: ^[0-9]{4}$
                example: '5542'
              description: >-
                Merchant Category Codes to exclude from the velocity calculation. Transactions matching this
                MCC will be excluded from the calculated velocity.
        include_countries:
          anyOf:
            - title: Null (include all countries)
              type: 'null'
              description: Include all countries into the velocity computation.
            - title: List of Country Codes
              type: array
              minItems: 1
              items:
                type: string
                pattern: ^[A-Z]{3}$
                example: USD
              description: >-
                ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. Transactions not
                matching any of the provided will not be included in the calculated velocity.
        exclude_countries:
          anyOf:
            - title: Null (do not exclude any countries)
              type: 'null'
              description: Do not exclude any countries from the velocity computation.
            - title: List of Country Codes
              type: array
              minItems: 1
              items:
                type: string
                pattern: ^[A-Z]{3}$
                example: USD
              description: >-
                ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation. Transactions
                matching any of the provided will be excluded from the calculated velocity.
        include_pan_entry_modes:
          anyOf:
            - title: Null (include all PAN entry modes)
              type: 'null'
              description: Include all PAN entry modes into the velocity computation.
            - title: List of PAN Entry Modes
              type: array
              minItems: 1
              items:
                type: string
                enum:
                  - AUTO_ENTRY
                  - BAR_CODE
                  - CONTACTLESS
                  - CREDENTIAL_ON_FILE
                  - ECOMMERCE
                  - ERROR_KEYED
                  - ERROR_MAGNETIC_STRIPE
                  - ICC
                  - KEY_ENTERED
                  - MAGNETIC_STRIPE
                  - MANUAL
                  - OCR
                  - SECURE_CARDLESS
                  - UNSPECIFIED
                  - UNKNOWN
              description: >-
                PAN entry modes to include in the velocity calculation. Transactions not matching any of the
                provided will not be included in the calculated velocity.
    velocity-limit-parameters:
      title: Velocity Limit Parameters
      type: object
      properties:
        scope:
          $ref: '#/components/schemas/velocity-scope'
        period:
          $ref: '#/components/schemas/velocity-limit-period'
        filters:
          $ref: '#/components/schemas/velocity-limit-filters'
        limit_amount:
          anyOf:
            - title: Null (no amount limit)
              type: 'null'
              description: No velocity limit on amount is applied to the transaction.
            - title: Limit
              type: integer
              format: int64
              minimum: 0
              description: >-
                The maximum amount of spend velocity allowed in the period in minor units (the smallest unit
                of a currency, e.g. cents for USD). Transactions exceeding this limit will be declined.
              example: 10000
        limit_count:
          anyOf:
            - title: Null (no limit)
              type: 'null'
              description: No limit on the number of velocity impacting events is applied.
            - title: Limit
              type: integer
              format: int64
              minimum: 0
              description: >-
                The number of spend velocity impacting transactions may not exceed this limit in the period.
                Transactions exceeding this limit will be declined.

                A spend velocity impacting transaction is a transaction that has been authorized, and
                optionally settled, or a force post (a transaction that settled without prior authorization).
      required:
        - scope
        - period
    merchant-lock-parameters:
      title: Merchant Lock Inputs
      type: object
      properties:
        merchants:
          type: array
          items:
            type: object
            properties:
              merchant_id:
                type: string
                description: >-
                  Unique alphanumeric identifier for the payment card acceptor (merchant). This attribute
                  specifies the merchant entity that will be locked or referenced for authorization rules.
              descriptor:
                type: string
                description: >-
                  Short description of the merchant, often used to provide more human-readable context about
                  the transaction merchant. This is typically the name or label shown on transaction
                  summaries.
              comment:
                type: string
                description: A comment or explanation about the merchant, used internally for rule management purposes.
            oneOf:
              - required:
                  - merchant_id
              - required:
                  - descriptor
            description: >-
              Represents a specific merchant lock based on their ID or descriptor. Each merchant object allows
              transaction rules to work at a granular level and requires at least one of merchant_id or
              descriptor.
          description: >-
            A list of merchant locks defining specific merchants or groups of merchants (based on descriptors
            or IDs) that the lock applies to.
      required:
        - merchants
    authentication-3ds-action:
      title: Authentication (3DS) Action
      type: string
      enum:
        - DECLINE
        - CHALLENGE
    conditional-3ds-action-parameters:
      title: Conditional Action (3DS) Parameters
      type: object
      properties:
        action:
          description: The action to take if the conditions are met.
          $ref: '#/components/schemas/authentication-3ds-action'
        conditions:
          type: array
          items:
            type: object
            properties:
              attribute:
                type: string
                description: >-
                  The attribute to target.


                  The following attributes may be targeted:

                  * `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a business by
                  the types of goods or services it provides.

                  * `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all ISO 3166-1
                  alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.

                  * `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of the
                  transaction.

                  * `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor (merchant).

                  * `DESCRIPTOR`: Short description of card acceptor.

                  * `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer fee field
                  in the settlement/cardholder billing currency. This is the amount the issuer should
                  authorize against unless the issuer is paying the acquirer fee on behalf of the cardholder.

                  * `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication risk level,
                  with a higher value indicating a higher amount of risk.

                  * `MESSAGE_CATEGORY`: The category of the authentication being processed.

                  * `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address data with the
                  cardholder KYC data if it exists. Valid values are `MATCH`, `MATCH_ADDRESS_ONLY`,
                  `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
                enum:
                  - MCC
                  - COUNTRY
                  - CURRENCY
                  - MERCHANT_ID
                  - DESCRIPTOR
                  - TRANSACTION_AMOUNT
                  - RISK_SCORE
                  - MESSAGE_CATEGORY
                  - ADDRESS_MATCH
              operation:
                $ref: '#/components/schemas/conditional-operation'
              value:
                $ref: '#/components/schemas/conditional-value'
            required:
              - attribute
              - operation
              - value
      required:
        - action
        - conditions
    authorization-action:
      title: Authorization Action
      type: string
      enum:
        - DECLINE
        - CHALLENGE
    conditional-authorization-action-parameters:
      title: Conditional Action (Authorization) Parameters
      type: object
      properties:
        action:
          description: The action to take if the conditions are met.
          $ref: '#/components/schemas/authorization-action'
        conditions:
          type: array
          items:
            type: object
            properties:
              attribute:
                type: string
                description: >-
                  The attribute to target.


                  The following attributes may be targeted:

                  * `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a business by
                  the types of goods or services it provides.

                  * `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all ISO 3166-1
                  alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.

                  * `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of the
                  transaction.

                  * `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor (merchant).

                  * `DESCRIPTOR`: Short description of card acceptor.

                  * `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer applies to
                  the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or `TOKEN_AUTHENTICATED`.

                  * `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number (PAN) was
                  entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, `ECOMMERCE`,
                  `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, `MAGNETIC_STRIPE`, `MANUAL`,
                  `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.

                  * `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer fee field
                  in the settlement/cardholder billing currency. This is the amount the issuer should
                  authorize against unless the issuer is paying the acquirer fee on behalf of the cardholder.

                  * `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This represents
                  the amount of cash being withdrawn or advanced.

                  * `RISK_SCORE`: Network-provided score assessing risk level associated with a given
                  authorization. Scores are on a range of 0-999, with 0 representing the lowest risk and 999
                  representing the highest risk. For Visa transactions, where the raw score has a range of
                  0-99, Lithic will normalize the score by multiplying the raw score by 10x.

                  * `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the trailing 15
                  minutes before the authorization.

                  * `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the trailing hour
                  up and until the authorization.

                  * `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the trailing 24
                  hours up and until the authorization.

                  * `CARD_STATE`: The current state of the card associated with the transaction. Valid values
                  are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`.

                  * `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. Valid values
                  are `TRUE`, `FALSE`.

                  * `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, `OK`,
                  `BLOCKED`.

                  * `WALLET_TYPE`: For transactions using a digital wallet token, indicates the source of the
                  token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`,
                  `OTHER`, `NONE`.

                  * `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates the source of
                  the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.

                  * `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address data with the
                  cardholder KYC data if it exists. Valid values are `MATCH`, `MATCH_ADDRESS_ONLY`,
                  `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.

                  * `SERVICE_LOCATION_STATE`: The state/province code (ISO 3166-2) where the cardholder
                  received the service, e.g. "NY". When a service location is present in the network data, the
                  service location state is used. Otherwise, falls back to the card acceptor state.

                  * `SERVICE_LOCATION_POSTAL_CODE`: The postal code where the cardholder received the service,
                  e.g. "10001". When a service location is present in the network data, the service location
                  postal code is used. Otherwise, falls back to the card acceptor postal code.

                  * `CARD_AGE`: The age of the card in seconds at the time of the authorization.

                  * `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time of the
                  authorization.
                enum:
                  - MCC
                  - COUNTRY
                  - CURRENCY
                  - MERCHANT_ID
                  - DESCRIPTOR
                  - LIABILITY_SHIFT
                  - PAN_ENTRY_MODE
                  - TRANSACTION_AMOUNT
                  - CASH_AMOUNT
                  - RISK_SCORE
                  - CARD_TRANSACTION_COUNT_15M
                  - CARD_TRANSACTION_COUNT_1H
                  - CARD_TRANSACTION_COUNT_24H
                  - CARD_STATE
                  - PIN_ENTERED
                  - PIN_STATUS
                  - WALLET_TYPE
                  - TRANSACTION_INITIATOR
                  - ADDRESS_MATCH
                  - SERVICE_LOCATION_STATE
                  - SERVICE_LOCATION_POSTAL_CODE
                  - CARD_AGE
                  - ACCOUNT_AGE
              operation:
                $ref: '#/components/schemas/conditional-operation'
              value:
                $ref: '#/components/schemas/conditional-value'
            required:
              - attribute
              - operation
              - value
      required:
        - action
        - conditions
    ach-action:
      title: ACH Action
      oneOf:
        - title: Approve Action (ACH)
          type: object
          properties:
            type:
              type: string
              enum:
                - APPROVE
              description: Approve the ACH transaction
          required:
            - type
        - title: Return Action
          type: object
          properties:
            type:
              type: string
              enum:
                - RETURN
              description: Return the ACH transaction
            code:
              type: string
              description: >-
                NACHA return code to use when returning the transaction. Note that the list of available
                return codes is subject to an allowlist configured at the program level
              enum:
                - R01
                - R02
                - R03
                - R04
                - R05
                - R06
                - R07
                - R08
                - R09
                - R10
                - R11
                - R12
                - R13
                - R14
                - R15
                - R16
                - R17
                - R18
                - R19
                - R20
                - R21
                - R22
                - R23
                - R24
                - R25
                - R26
                - R27
                - R28
                - R29
                - R30
                - R31
                - R32
                - R33
                - R34
                - R35
                - R36
                - R37
                - R38
                - R39
                - R40
                - R41
                - R42
                - R43
                - R44
                - R45
                - R46
                - R47
                - R50
                - R51
                - R52
                - R53
                - R61
                - R62
                - R67
                - R68
                - R69
                - R70
                - R71
                - R72
                - R73
                - R74
                - R75
                - R76
                - R77
                - R80
                - R81
                - R82
                - R83
                - R84
                - R85
          required:
            - type
            - code
    conditional-ach-action-parameters:
      title: Conditional Action (ACH) Parameters
      type: object
      properties:
        action:
          description: The action to take if the conditions are met.
          $ref: '#/components/schemas/ach-action'
        conditions:
          type: array
          items:
            type: object
            properties:
              attribute:
                type: string
                description: >-
                  The attribute to target.


                  The following attributes may be targeted:

                  * `COMPANY_NAME`: The name of the company initiating the ACH transaction.

                  * `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company ID) of the
                  entity initiating the ACH transaction.

                  * `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.

                  * `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units (cents).

                  * `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction. Valid values
                  include PPD (Prearranged Payment and Deposit Entry), CCD (Corporate Credit or Debit Entry),
                  WEB (Internet-Initiated/Mobile Entry), TEL (Telephone-Initiated Entry), and others.

                  * `MEMO`: Optional memo or description field included with the ACH transaction.
                enum:
                  - COMPANY_NAME
                  - COMPANY_ID
                  - TIMESTAMP
                  - TRANSACTION_AMOUNT
                  - SEC_CODE
                  - MEMO
              operation:
                $ref: '#/components/schemas/conditional-operation'
              value:
                $ref: '#/components/schemas/conditional-value'
            required:
              - attribute
              - operation
              - value
      required:
        - action
        - conditions
    tokenization-action:
      title: Tokenization Action
      oneOf:
        - title: Decline Action (Tokenization)
          type: object
          properties:
            type:
              type: string
              enum:
                - DECLINE
              description: Decline the tokenization request
            reason:
              type: string
              description: Reason code for declining the tokenization request
              enum:
                - ACCOUNT_SCORE_1
                - DEVICE_SCORE_1
                - ALL_WALLET_DECLINE_REASONS_PRESENT
                - WALLET_RECOMMENDED_DECISION_RED
                - CVC_MISMATCH
                - CARD_EXPIRY_MONTH_MISMATCH
                - CARD_EXPIRY_YEAR_MISMATCH
                - CARD_INVALID_STATE
                - CUSTOMER_RED_PATH
                - INVALID_CUSTOMER_RESPONSE
                - NETWORK_FAILURE
                - GENERIC_DECLINE
                - DIGITAL_CARD_ART_REQUIRED
          required:
            - type
        - title: Require TFA Action
          type: object
          properties:
            type:
              type: string
              enum:
                - REQUIRE_TFA
              description: Require two-factor authentication for the tokenization request
            reason:
              type: string
              description: Reason code for requiring two-factor authentication
              enum:
                - WALLET_RECOMMENDED_TFA
                - SUSPICIOUS_ACTIVITY
                - DEVICE_RECENTLY_LOST
                - TOO_MANY_RECENT_ATTEMPTS
                - TOO_MANY_RECENT_TOKENS
                - TOO_MANY_DIFFERENT_CARDHOLDERS
                - OUTSIDE_HOME_TERRITORY
                - HAS_SUSPENDED_TOKENS
                - HIGH_RISK
                - ACCOUNT_SCORE_LOW
                - DEVICE_SCORE_LOW
                - CARD_STATE_TFA
                - HARDCODED_TFA
                - CUSTOMER_RULE_TFA
                - DEVICE_HOST_CARD_EMULATION
          required:
            - type
    conditional-tokenization-action-parameters:
      title: Conditional Action (Tokenization) Parameters
      type: object
      properties:
        action:
          description: The action to take if the conditions are met.
          $ref: '#/components/schemas/tokenization-action'
        conditions:
          type: array
          items:
            type: object
            properties:
              attribute:
                type: string
                description: >-
                  The attribute to target.


                  The following attributes may be targeted:

                  * `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.

                  * `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was initiated.
                  Valid values are `DIGITAL_WALLET`, `MERCHANT`.

                  * `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values are
                  `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`, `CONTACTLESS_TAP`,
                  `TOKEN`, `UNKNOWN`.

                  * `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid values are
                  `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`, `ANDROID_PAY`, `APPLE_PAY`,
                  `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`, `GOOGLE_PAY`, `GOOGLE_VCN`, `ISSUER_HCE`,
                  `MICROSOFT_PAY`, `NETFLIX`, `SAMSUNG_PAY`, `UNKNOWN`, `VISA_CHECKOUT`.

                  * `WALLET_ACCOUNT_SCORE`: Risk score for the account in the digital wallet. Numeric value
                  where lower numbers indicate higher risk (e.g., 1 = high risk, 2 = medium risk).

                  * `WALLET_DEVICE_SCORE`: Risk score for the device in the digital wallet. Numeric value
                  where lower numbers indicate higher risk (e.g., 1 = high risk, 2 = medium risk).

                  * `WALLET_RECOMMENDED_DECISION`: The decision recommended by the digital wallet provider.
                  Valid values include APPROVE, DECLINE, REQUIRE_ADDITIONAL_AUTHENTICATION.

                  * `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital wallet provider
                  for the recommended decision. Valid values are:
                    - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`, `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
                    - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`, `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`, `WALLET_ACCOUNT_TOO_NEW`
                    - Amex only: `DEVICE_USING_VPN_PROXY`, `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`, `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`, `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`, `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`, `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`, `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`, `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
                  * `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.

                  * `WALLET_TOKEN_STATUS`: The current status of the wallet token.

                  * `CARD_STATE`: The state of the card being tokenized. Valid values are `CLOSED`, `OPEN`,
                  `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`.
                enum:
                  - TIMESTAMP
                  - TOKENIZATION_CHANNEL
                  - TOKENIZATION_SOURCE
                  - TOKEN_REQUESTOR_NAME
                  - WALLET_ACCOUNT_SCORE
                  - WALLET_DEVICE_SCORE
                  - WALLET_RECOMMENDED_DECISION
                  - WALLET_RECOMMENDATION_REASONS
                  - TOKEN_REQUESTOR_ID
                  - WALLET_TOKEN_STATUS
                  - CARD_STATE
              operation:
                $ref: '#/components/schemas/conditional-operation'
              value:
                $ref: '#/components/schemas/conditional-value'
            required:
              - attribute
              - operation
              - value
      required:
        - action
        - conditions
    rule-feature:
      title: Rule Feature
      description: >-
        A feature made available to the rule. The `name` field is the variable name used in the rule function
        signature. The `type` field determines which data the feature provides to the rule at evaluation time.


        - `AUTHORIZATION`: The authorization request being evaluated. Only available for AUTHORIZATION event
        stream rules.

        - `AUTHENTICATION`: The 3DS authentication request being evaluated. Only available for
        THREE_DS_AUTHENTICATION event stream rules.

        - `TOKENIZATION`: The tokenization request being evaluated. Only available for TOKENIZATION event
        stream rules.

        - `ACH_RECEIPT`: The ACH receipt being evaluated. Only available for ACH_CREDIT_RECEIPT and
        ACH_DEBIT_RECEIPT event stream rules.

        - `CARD`: The card associated with the event. Available for AUTHORIZATION and THREE_DS_AUTHENTICATION
        event stream rules.

        - `ACCOUNT_HOLDER`: The account holder associated with the card. Available for AUTHORIZATION and
        THREE_DS_AUTHENTICATION event stream rules.

        - `IP_METADATA`: IP address metadata for the request. Available for THREE_DS_AUTHENTICATION event
        stream rules.

        - `SPEND_VELOCITY`: Spend velocity data for the card or account. Requires `scope`, `period`, and
        optionally `filters` to configure the velocity calculation. Available for AUTHORIZATION event stream
        rules.
      allOf:
        - type: object
          properties:
            name:
              type: string
              description: The variable name for this feature in the rule function signature
          required:
            - name
        - oneOf:
            - title: Authorization Feature
              type: object
              properties:
                type:
                  type: string
                  const: AUTHORIZATION
              required:
                - type
            - title: Authentication Feature
              type: object
              properties:
                type:
                  type: string
                  const: AUTHENTICATION
              required:
                - type
            - title: Tokenization Feature
              type: object
              properties:
                type:
                  type: string
                  const: TOKENIZATION
              required:
                - type
            - title: ACH Receipt Feature
              type: object
              properties:
                type:
                  type: string
                  const: ACH_RECEIPT
              required:
                - type
            - title: Card Feature
              type: object
              properties:
                type:
                  type: string
                  const: CARD
              required:
                - type
            - title: Account Holder Feature
              type: object
              properties:
                type:
                  type: string
                  const: ACCOUNT_HOLDER
              required:
                - type
            - title: IP Metadata Feature
              type: object
              properties:
                type:
                  type: string
                  const: IP_METADATA
              required:
                - type
            - title: Spend Velocity Feature
              type: object
              properties:
                type:
                  type: string
                  const: SPEND_VELOCITY
                scope:
                  $ref: '#/components/schemas/velocity-scope'
                period:
                  $ref: '#/components/schemas/velocity-limit-period'
                filters:
                  $ref: '#/components/schemas/velocity-limit-filters'
              required:
                - type
                - scope
                - period
          discriminator:
            propertyName: type
    typescript-code-parameters:
      title: TypeScript Code Parameters
      description: Parameters for defining a TypeScript code rule
      type: object
      properties:
        features:
          type: array
          description: Features available to the TypeScript code at evaluation time
          items:
            $ref: '#/components/schemas/rule-feature'
        code:
          type: string
          description: >-
            The TypeScript source code of the rule. Must define a `rule()` function that accepts the declared
            features as positional arguments (in the same order as the `features` array) and returns an array
            of actions.
      required:
        - features
        - code
    auth-rule-parameters:
      title: Auth Rule Parameters
      description: Parameters for the Auth Rule
      anyOf:
        - $ref: '#/components/schemas/conditional-block-parameters'
        - $ref: '#/components/schemas/velocity-limit-parameters'
        - $ref: '#/components/schemas/merchant-lock-parameters'
        - $ref: '#/components/schemas/conditional-3ds-action-parameters'
        - $ref: '#/components/schemas/conditional-authorization-action-parameters'
        - $ref: '#/components/schemas/conditional-ach-action-parameters'
        - $ref: '#/components/schemas/conditional-tokenization-action-parameters'
        - $ref: '#/components/schemas/typescript-code-parameters'
    auth-rule-version-id:
      title: Auth Rule Version
      type: integer
      description: The version of the rule, this is incremented whenever the rule's parameters change.
      readOnly: true
    current-version:
      title: Auth Rule Current Version
      anyOf:
        - type: 'null'
          description: No current version.
        - type: object
          properties:
            parameters:
              $ref: '#/components/schemas/auth-rule-parameters'
            version:
              $ref: '#/components/schemas/auth-rule-version-id'
          required:
            - parameters
            - version
    draft-version:
      title: Auth Rule Draft Version
      anyOf:
        - type: 'null'
          description: No draft version.
        - type: object
          properties:
            parameters:
              $ref: '#/components/schemas/auth-rule-parameters'
            version:
              $ref: '#/components/schemas/auth-rule-version-id'
            state:
              type: string
              enum:
                - PENDING
                - SHADOWING
                - ERROR
              description: >-
                The state of the draft version. Most rules are created synchronously and the state is
                immediately `SHADOWING`. Rules backed by TypeScript code are compiled asynchronously — the
                state starts as `PENDING` and transitions to `SHADOWING` on success or `ERROR` on failure.


                - `PENDING`: Compilation of the rule is in progress (TypeScript rules only).

                - `SHADOWING`: The draft version is ready and evaluating in shadow mode alongside the current
                active version. It can be promoted to the active version.

                - `ERROR`: Compilation of the rule failed. Check the `error` field for details.
            error:
              type:
                - string
                - 'null'
              description: >-
                An error message if the draft version failed compilation. Populated when `state` is `ERROR`,
                `null` otherwise.
          required:
            - parameters
            - version
            - state
            - error
    auth-rule-name:
      title: Auth Rule Name
      description: Auth Rule Name
      anyOf:
        - type: 'null'
        - type: string
          maxLength: 1024
    auth-rule:
      title: Auth Rule
      type: object
      properties:
        token:
          $ref: '#/components/schemas/auth-rule-token'
        state:
          $ref: '#/components/schemas/auth-rule-state'
        program_level:
          $ref: '#/components/schemas/program-level'
        card_tokens:
          $ref: '#/components/schemas/card-tokens'
        excluded_card_tokens:
          $ref: '#/components/schemas/excluded-card-tokens'
        excluded_account_tokens:
          $ref: '#/components/schemas/excluded-account-tokens'
        excluded_business_account_tokens:
          $ref: '#/components/schemas/excluded-business-account-tokens'
        account_tokens:
          $ref: '#/components/schemas/account-tokens'
        business_account_tokens:
          $ref: '#/components/schemas/business-account-tokens'
        type:
          $ref: '#/components/schemas/auth-rule-type'
        current_version:
          $ref: '#/components/schemas/current-version'
        draft_version:
          $ref: '#/components/schemas/draft-version'
        name:
          $ref: '#/components/schemas/auth-rule-name'
        event_stream:
          $ref: '#/components/schemas/event-stream'
        lithic_managed:
          type: boolean
          description: >-
            Indicates whether this auth rule is managed by Lithic. If true, the rule cannot be modified or
            deleted by the user
      required:
        - token
        - state
        - program_level
        - card_tokens
        - account_tokens
        - business_account_tokens
        - type
        - current_version
        - draft_version
        - name
        - event_stream
        - lithic_managed
    Error:
      type: object
      properties:
        error:
          type: string
          example: Invalid input
    create-auth-rule-request:
      title: Auth Rule Parameters
      type: object
      anyOf:
        - title: Account Level Rule
          properties:
            account_tokens:
              $ref: '#/components/schemas/account-tokens'
            business_account_tokens:
              $ref: '#/components/schemas/business-account-tokens'
            type:
              $ref: '#/components/schemas/auth-rule-type'
            parameters:
              $ref: '#/components/schemas/auth-rule-parameters'
            name:
              $ref: '#/components/schemas/auth-rule-name'
            event_stream:
              $ref: '#/components/schemas/event-stream'
          required:
            - type
            - parameters
        - title: Card Level Rule
          properties:
            card_tokens:
              $ref: '#/components/schemas/card-tokens'
            type:
              $ref: '#/components/schemas/auth-rule-type'
            parameters:
              $ref: '#/components/schemas/auth-rule-parameters'
            name:
              $ref: '#/components/schemas/auth-rule-name'
            event_stream:
              $ref: '#/components/schemas/event-stream'
          required:
            - type
            - parameters
            - card_tokens
        - title: Program Level Rule
          properties:
            program_level:
              $ref: '#/components/schemas/program-level'
            excluded_card_tokens:
              $ref: '#/components/schemas/excluded-card-tokens'
            excluded_account_tokens:
              $ref: '#/components/schemas/excluded-account-tokens'
            excluded_business_account_tokens:
              $ref: '#/components/schemas/excluded-business-account-tokens'
            type:
              $ref: '#/components/schemas/auth-rule-type'
            parameters:
              $ref: '#/components/schemas/auth-rule-parameters'
            name:
              $ref: '#/components/schemas/auth-rule-name'
            event_stream:
              $ref: '#/components/schemas/event-stream'
          required:
            - type
            - parameters
            - program_level
    patch-auth-rule-request:
      title: Auth Rule Patch Request
      type: object
      properties:
        state:
          description: >-
            The desired state of the Auth Rule.


            Note that only deactivating an Auth Rule through this endpoint is supported at this time. If you
            need to (re-)activate an Auth Rule the /promote endpoint should be used to promote a draft to the
            currently active version.
          type: string
          const: INACTIVE
        name:
          $ref: '#/components/schemas/auth-rule-name'
      anyOf:
        - title: Account Level Rule
          type: object
          properties:
            account_tokens:
              $ref: '#/components/schemas/account-tokens'
            business_account_tokens:
              $ref: '#/components/schemas/business-account-tokens'
        - title: Card Level Rule
          type: object
          properties:
            card_tokens:
              $ref: '#/components/schemas/card-tokens'
        - title: Program Level Rule
          type: object
          properties:
            program_level:
              $ref: '#/components/schemas/program-level'
            excluded_card_tokens:
              $ref: '#/components/schemas/excluded-card-tokens'
            excluded_account_tokens:
              $ref: '#/components/schemas/excluded-account-tokens'
            excluded_business_account_tokens:
              $ref: '#/components/schemas/excluded-business-account-tokens'
    spend-feature-state:
      title: Spend Feature State
      type: object
      properties:
        scope:
          $ref: '#/components/schemas/velocity-scope'
        period:
          $ref: '#/components/schemas/velocity-limit-period'
        filters:
          $ref: '#/components/schemas/velocity-limit-filters'
        value:
          type: object
          properties:
            amount:
              type: integer
              minimum: 0
              description: |-
                Amount (in cents) for the given Auth Rule that is used as input for calculating the rule. 
                For Velocity Limit rules this would be the calculated Velocity. 
                For Conditional Rules using CARD_TRANSACTION_COUNT_* this will be 0
            count:
              type: integer
              minimum: 0
              description: Number of velocity impacting transactions matching the given scope, period and filters
          required:
            - amount
            - count
      required:
        - scope
        - period
        - filters
        - value
    auth-rule-feature-state:
      title: Auth Rule Feature State
      type: object
      properties:
        evaluated:
          type: string
          format: date-time
          description: Timestamp at which the Features were evaluated
        features:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/spend-feature-state'
          description: Calculated Features used for evaluation of the provided Auth Rule
      required:
        - evaluated
        - features
    auth-rule-version-state:
      title: Auth Rule Version State
      description: The current state of this version.
      type: string
      enum:
        - ACTIVE
        - SHADOW
        - INACTIVE
    auth-rule-version:
      title: Auth Rule Version
      type: object
      properties:
        version:
          $ref: '#/components/schemas/auth-rule-version-id'
        state:
          $ref: '#/components/schemas/auth-rule-version-state'
        parameters:
          $ref: '#/components/schemas/auth-rule-parameters'
        created:
          description: Timestamp of when this version was created.
          type: string
          format: date-time
      required:
        - version
        - state
        - parameters
        - created
    detailed_result:
      example: APPROVED
      title: Detailed Result
      type: string
      enum:
        - ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED
        - ACCOUNT_DELINQUENT
        - ACCOUNT_INACTIVE
        - ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED
        - ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED
        - ACCOUNT_PAUSED
        - ACCOUNT_UNDER_REVIEW
        - ADDRESS_INCORRECT
        - APPROVED
        - AUTH_RULE_ALLOWED_COUNTRY
        - AUTH_RULE_ALLOWED_MCC
        - AUTH_RULE_BLOCKED_COUNTRY
        - AUTH_RULE_BLOCKED_MCC
        - AUTH_RULE
        - CARD_CLOSED
        - CARD_CRYPTOGRAM_VALIDATION_FAILURE
        - CARD_EXPIRED
        - CARD_EXPIRY_DATE_INCORRECT
        - CARD_INVALID
        - CARD_NOT_ACTIVATED
        - CARD_PAUSED
        - CARD_PIN_INCORRECT
        - CARD_RESTRICTED
        - CARD_SECURITY_CODE_INCORRECT
        - CARD_SPEND_LIMIT_EXCEEDED
        - CONTACT_CARD_ISSUER
        - CUSTOMER_ASA_TIMEOUT
        - CUSTOM_ASA_RESULT
        - DECLINED
        - DO_NOT_HONOR
        - DRIVER_NUMBER_INVALID
        - FORMAT_ERROR
        - INSUFFICIENT_FUNDING_SOURCE_BALANCE
        - INSUFFICIENT_FUNDS
        - LITHIC_SYSTEM_ERROR
        - LITHIC_SYSTEM_RATE_LIMIT
        - MALFORMED_ASA_RESPONSE
        - MERCHANT_INVALID
        - MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE
        - MERCHANT_NOT_PERMITTED
        - OVER_REVERSAL_ATTEMPTED
        - PIN_BLOCKED
        - PROGRAM_CARD_SPEND_LIMIT_EXCEEDED
        - PROGRAM_SUSPENDED
        - PROGRAM_USAGE_RESTRICTION
        - REVERSAL_UNMATCHED
        - SECURITY_VIOLATION
        - SINGLE_USE_CARD_REATTEMPTED
        - SUSPECTED_FRAUD
        - TRANSACTION_INVALID
        - TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL
        - TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER
        - TRANSACTION_PREVIOUSLY_COMPLETED
        - UNAUTHORIZED_MERCHANT
        - VEHICLE_NUMBER_INVALID
        - CARDHOLDER_CHALLENGED
        - CARDHOLDER_CHALLENGE_FAILED
    result-authorization-action:
      title: Authorization Action (Result)
      oneOf:
        - title: Decline Action (Authorization)
          type: object
          properties:
            type:
              type: string
              enum:
                - DECLINE
            code:
              $ref: '#/components/schemas/detailed_result'
              description: The detailed result code explaining the specific reason for the decline
          required:
            - type
            - code
        - title: Challenge Action (Authorization)
          type: object
          properties:
            type:
              type: string
              enum:
                - CHALLENGE
          required:
            - type
    result-authentication-3ds-action:
      title: Authentication (3DS) Action (Result)
      type: object
      properties:
        type:
          $ref: '#/components/schemas/authentication-3ds-action'
      required:
        - type
    report-stats:
      title: Auth Rule Report Statistics
      type: object
      properties:
        action_counts:
          type: object
          description: >-
            A mapping of action types to the number of times that action was returned by this rule during the
            relevant period. Actions are the possible outcomes of a rule evaluation, such as DECLINE,
            CHALLENGE, REQUIRE_TFA, etc. In case rule didn't trigger any action, it's counted under NO_ACTION
            key.
          additionalProperties:
            type: integer
        approved:
          type: integer
          deprecated: true
          description: >-
            The total number of historical transactions approved by this rule during the relevant period, or
            the number of transactions that would have been approved if the rule was evaluated in shadow mode.
        declined:
          type: integer
          deprecated: true
          description: >-
            The total number of historical transactions declined by this rule during the relevant period, or
            the number of transactions that would have been declined if the rule was evaluated in shadow mode.
        challenged:
          type: integer
          deprecated: true
          description: >-
            The total number of historical transactions challenged by this rule during the relevant period, or
            the number of transactions that would have been challenged if the rule was evaluated in shadow
            mode. Currently applicable only for 3DS Auth Rules.
        examples:
          type: array
          description: Example events and their outcomes.
          items:
            type: object
            properties:
              event_token:
                type: string
                format: uuid
                description: The event token.
              timestamp:
                type: string
                format: date-time
                description: The timestamp of the event.
              actions:
                type: array
                description: The actions taken by the rule for this event.
                items:
                  oneOf:
                    - $ref: '#/components/schemas/result-authorization-action'
                    - $ref: '#/components/schemas/result-authentication-3ds-action'
                    - $ref: '#/components/schemas/tokenization-action'
                    - $ref: '#/components/schemas/ach-action'
              approved:
                type: boolean
                deprecated: true
                description: Whether the rule would have approved the request.
              decision:
                type: string
                deprecated: true
                enum:
                  - APPROVED
                  - DECLINED
                  - CHALLENGED
                description: The decision made by the rule for this event.
    report-stats-v2:
      title: Auth Rule Version Report Statistics
      type: object
      properties:
        version:
          description: The rule version number.
          type: integer
        state:
          description: The evaluation mode of this version during the reported period.
          $ref: '#/components/schemas/auth-rule-version-state'
        action_counts:
          type: object
          description: >-
            A mapping of action types to the number of times that action was returned by this version during
            the relevant period. Actions are the possible outcomes of a rule evaluation, such as DECLINE,
            CHALLENGE, REQUIRE_TFA, etc. In case rule didn't trigger any action, it's counted under NO_ACTION
            key.
          additionalProperties:
            type: integer
        examples:
          type: array
          description: Example events and their outcomes for this version.
          items:
            type: object
            properties:
              event_token:
                type: string
                format: uuid
                description: The event token.
              timestamp:
                type: string
                format: date-time
                description: The timestamp of the event.
              actions:
                type: array
                description: The actions taken by this version for this event.
                items:
                  oneOf:
                    - $ref: '#/components/schemas/result-authorization-action'
                    - $ref: '#/components/schemas/result-authentication-3ds-action'
                    - $ref: '#/components/schemas/tokenization-action'
                    - $ref: '#/components/schemas/ach-action'
            required:
              - event_token
              - timestamp
              - actions
      required:
        - version
        - state
        - action_counts
        - examples
    performance-report-v2:
      title: Auth Rule Performance Report V2
      type: object
      properties:
        auth_rule_token:
          $ref: '#/components/schemas/auth-rule-token'
        begin:
          description: The start date (UTC) of the report.
          type: string
          format: date
        end:
          description: The end date (UTC) of the report.
          type: string
          format: date
        daily_statistics:
          description: Daily evaluation statistics for the Auth Rule.
          type: array
          items:
            type: object
            properties:
              date:
                description: The date (UTC) for which the statistics are reported.
                type: string
                format: date
              current_version_statistics:
                description: Detailed statistics for the current version of the rule.
                type:
                  - object
                  - 'null'
                $ref: '#/components/schemas/report-stats'
              draft_version_statistics:
                description: Detailed statistics for the draft version of the rule.
                type:
                  - object
                  - 'null'
                $ref: '#/components/schemas/report-stats'
              versions:
                description: Statistics for each version of the rule that was evaluated during the reported day.
                type: array
                items:
                  $ref: '#/components/schemas/report-stats-v2'
            required:
              - date
              - current_version_statistics
              - draft_version_statistics
              - versions
      required:
        - auth_rule_token
        - begin
        - end
        - daily_statistics
    backtest-token:
      title: Auth Rule Backtest Token
      description: Auth Rule Backtest Token
      type: string
      format: uuid
    backtest-simulation-parameters:
      title: Backtest Simulation Parameters
      type: object
      properties:
        start:
          type: string
          format: date-time
          description: The start time of the simulation
        end:
          type: string
          format: date-time
          description: The end time of the simulation
      required:
        - start
        - end
    backtest-status:
      title: Backtest Status
      description: Status of a backtest job
      type: string
      enum:
        - PENDING
        - RUNNING
        - SUCCESS
        - FAILURE
    backtest-list-item:
      title: Backtest List Item
      type: object
      properties:
        backtest_token:
          $ref: '#/components/schemas/backtest-token'
        simulation_parameters:
          $ref: '#/components/schemas/backtest-simulation-parameters'
        status:
          $ref: '#/components/schemas/backtest-status'
        created:
          type: string
          format: date-time
          description: Timestamp of when the backtest was created
      required:
        - backtest_token
        - simulation_parameters
        - status
        - created
    backtest-request:
      title: Backtest Request Parameters
      type: object
      properties:
        start:
          type: string
          format: date-time
          description: The start time of the backtest.
        end:
          type: string
          format: date-time
          description: The end time of the backtest.
    backtest-stats:
      title: Auth Rule Backtest Statistics
      type: object
      properties:
        version:
          $ref: '#/components/schemas/auth-rule-version-id'
        approved:
          type: integer
          description: >-
            The total number of historical transactions approved by this rule during the backtest period, or
            the number of transactions that would have been approved if the rule was evaluated in shadow mode.
        declined:
          type: integer
          description: >-
            The total number of historical transactions declined by this rule during the backtest period, or
            the number of transactions that would have been declined if the rule was evaluated in shadow mode.
        challenged:
          type: integer
          description: >-
            The total number of historical transactions challenged by this rule during the backtest period, or
            the number of transactions that would have been challenged if the rule was evaluated in shadow
            mode. Currently applicable only for 3DS Auth Rules.
        examples:
          type: array
          description: Example events and their outcomes.
          items:
            type: object
            properties:
              event_token:
                type: string
                format: uuid
                description: The event token.
              timestamp:
                type: string
                format: date-time
                description: The timestamp of the event.
              decision:
                type: string
                enum:
                  - APPROVED
                  - DECLINED
                  - CHALLENGED
                description: The decision made by the rule for this event.
    backtest-results:
      title: Auth Rules Backtest Results
      type: object
      properties:
        backtest_token:
          $ref: '#/components/schemas/backtest-token'
        simulation_parameters:
          $ref: '#/components/schemas/backtest-simulation-parameters'
        results:
          type: object
          properties:
            current_version:
              anyOf:
                - type: 'null'
                  description: No results available for the current version.
                - $ref: '#/components/schemas/backtest-stats'
            draft_version:
              anyOf:
                - type: 'null'
                  description: No results available for the draft version.
                - $ref: '#/components/schemas/backtest-stats'
      required:
        - backtest_token
        - simulation_parameters
        - results
    action_explanation:
      type: object
      properties:
        explanation:
          type: string
          description: Optional explanation for why this action was taken
    auth-rule-result:
      title: Auth Rule Result
      description: Result of an Auth Rule evaluation
      type: object
      properties:
        token:
          type: string
          format: uuid
          description: Globally unique identifier for the evaluation
        auth_rule_token:
          type: string
          format: uuid
          description: The Auth Rule token
        event_token:
          type: string
          format: uuid
          description: Token of the event that triggered the evaluation
        evaluation_time:
          type: string
          format: date-time
          description: Timestamp of the rule evaluation
        rule_version:
          type: integer
          description: Version of the rule that was evaluated
        mode:
          $ref: '#/components/schemas/auth-rule-state'
      oneOf:
        - title: Authorization Result
          properties:
            event_stream:
              const: AUTHORIZATION
              description: The event stream during which the rule was evaluated
            actions:
              type: array
              description: Actions returned by the rule evaluation
              items:
                allOf:
                  - $ref: '#/components/schemas/result-authorization-action'
                  - $ref: '#/components/schemas/action_explanation'
          required:
            - token
            - auth_rule_token
            - event_token
            - evaluation_time
            - rule_version
            - mode
            - actions
            - event_stream
        - title: Authentication (3DS) Result
          properties:
            event_stream:
              const: THREE_DS_AUTHENTICATION
              description: The event stream during which the rule was evaluated
            actions:
              type: array
              description: Actions returned by the rule evaluation
              items:
                allOf:
                  - $ref: '#/components/schemas/result-authentication-3ds-action'
                  - $ref: '#/components/schemas/action_explanation'
          required:
            - token
            - auth_rule_token
            - event_token
            - evaluation_time
            - rule_version
            - mode
            - actions
            - event_stream
        - title: Tokenization Result
          properties:
            event_stream:
              const: TOKENIZATION
              description: The event stream during which the rule was evaluated
            actions:
              type: array
              description: Actions returned by the rule evaluation
              items:
                allOf:
                  - $ref: '#/components/schemas/tokenization-action'
                  - $ref: '#/components/schemas/action_explanation'
          required:
            - token
            - auth_rule_token
            - event_token
            - evaluation_time
            - rule_version
            - mode
            - actions
            - event_stream
        - title: ACH Result
          properties:
            event_stream:
              type: string
              enum:
                - ACH_CREDIT_RECEIPT
                - ACH_DEBIT_RECEIPT
              description: The event stream during which the rule was evaluated
            actions:
              type: array
              description: Actions returned by the rule evaluation
              items:
                allOf:
                  - $ref: '#/components/schemas/ach-action'
                  - $ref: '#/components/schemas/action_explanation'
          required:
            - token
            - auth_rule_token
            - event_token
            - evaluation_time
            - rule_version
            - mode
            - actions
            - event_stream
      $defs:
        action_explanation:
          type: object
          properties:
            explanation:
              type: string
              description: Optional explanation for why this action was taken
    balance:
      description: Balance
      properties:
        available_amount:
          description: Funds available for spend in the currency's smallest unit (e.g., cents for USD)
          type: integer
        created:
          description: Date and time for when the balance was first created.
          format: date-time
          type: string
        currency:
          description: 3-character alphabetic ISO 4217 code for the local currency of the balance.
          type: string
        financial_account_token:
          description: Globally unique identifier for the financial account that holds this balance.
          example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
          format: uuid
          type: string
        financial_account_type:
          description: Type of financial account.
          enum:
            - ISSUING
            - OPERATING
            - RESERVE
            - SECURITY
          type: string
        last_transaction_event_token:
          description: Globally unique identifier for the last financial transaction event that impacted this balance.
          format: uuid
          type: string
        last_transaction_token:
          description: Globally unique identifier for the last financial transaction that impacted this balance.
          format: uuid
          type: string
        pending_amount:
          description: >-
            Funds not available for spend due to card authorizations or pending ACH release. Shown in the
            currency's smallest unit (e.g., cents for USD).
          type: integer
        total_amount:
          description: The sum of available and pending balance in the currency's smallest unit (e.g., cents for USD).
          type: integer
        updated:
          description: Date and time for when the balance was last updated.
          format: date-time
          type: string
      required:
        - available_amount
        - created
        - currency
        - financial_account_token
        - financial_account_type
        - last_transaction_event_token
        - last_transaction_token
        - pending_amount
        - total_amount
        - updated
      type: object
    CardProgram:
      properties:
        account_level_management_enabled:
          description: >-
            Whether the card program is participating in Account Level Management. Currently applicable to
            Visa card programs only.
          type: boolean
        cardholder_currency:
          description: 3-character alphabetic ISO 4217 code for the currency of the cardholder.
          example: USD
          type: string
        created:
          description: Timestamp of when the card program was created.
          format: date-time
          type: string
        name:
          description: The name of the card program.
          example: My Prepaid Program
          type: string
        pan_range_end:
          description: The first digits of the card number that this card program ends with.
          example: '52304803'
          type: string
        pan_range_start:
          description: The first digits of the card number that this card program starts with.
          example: '52304803'
          type: string
        settlement_currencies:
          description: >-
            List of 3-character alphabetic ISO 4217 codes for the currencies that the card program supports
            for settlement.
          example:
            - USD
            - CAD
          items:
            type: string
          type: array
        token:
          description: Globally unique identifier.
          format: uuid
          type: string
      required:
        - account_level_management_enabled
        - created
        - name
        - pan_range_end
        - pan_range_start
        - token
      type: object
    funding_account:
      description: Funding account for a card
      type: object
      properties:
        account_name:
          description: Account name identifying the funding source. This may be `null`.
          type: string
        created:
          description: >-
            An RFC 3339 string representing when this funding source was added to the Lithic account. This may
            be `null`. UTC time zone.
          format: date-time
          type: string
        last_four:
          description: >-
            The last 4 digits of the account (e.g. bank account, debit card) associated with this
            FundingAccount. This may be null.
          maxLength: 4
          minLength: 4
          type: string
        nickname:
          description: The nickname given to the `FundingAccount` or `null` if it has no nickname.
          maxLength: 255
          minLength: 1
          type: string
        state:
          description: >-
            State of funding source. Funding source states: * `ENABLED` - The funding account is available to
            use for card creation and transactions. * `PENDING` - The funding account is still being verified
            e.g. bank micro-deposits verification. * `DELETED` - The founding account has been deleted.
          enum:
            - DELETED
            - ENABLED
            - PENDING
          type: string
        token:
          description: A globally unique identifier for this FundingAccount.
          format: uuid
          type: string
        type:
          description: >-
            Types of funding source: * `DEPOSITORY_CHECKING` - Bank checking account. * `DEPOSITORY_SAVINGS` -
            Bank savings account.
          enum:
            - DEPOSITORY_CHECKING
            - DEPOSITORY_SAVINGS
          type: string
      required:
        - created
        - last_four
        - state
        - token
        - type
    spend_limit_duration:
      description: >-
        Spend limit duration values:


        * `ANNUALLY` - Card will authorize transactions up to spend limit for the trailing year.

        * `FOREVER` - Card will authorize only up to spend limit for the entire lifetime of the card.

        * `MONTHLY` - Card will authorize transactions up to spend limit for the trailing month. To support
        recurring monthly payments, which can occur on different day every month, the time window we consider
        for monthly velocity starts 6 days after the current calendar date one month prior.

        * `TRANSACTION` - Card will authorize multiple transactions if each individual transaction is under
        the spend limit.
      type: string
      enum:
        - ANNUALLY
        - FOREVER
        - MONTHLY
        - TRANSACTION
    non_pci_card_response:
      description: Card details without PCI information
      type: object
      properties:
        account_token:
          description: Globally unique identifier for the account to which the card belongs.
          example: f3f4918c-dee9-464d-a819-4aa42901d624
          type: string
        auth_rule_tokens:
          description: >-
            List of identifiers for the Auth Rule(s) that are applied on the card. This field is deprecated
            and will no longer be populated in the `Card` object. The key will be removed from the schema in a
            future release. Use the `/auth_rules` endpoints to fetch Auth Rule information instead.
          items:
            type: string
          type: array
          deprecated: true
        card_program_token:
          description: Globally unique identifier for the card program on which the card exists.
          example: 5e9483eb-8103-4e16-9794-2106111b2eca
          type: string
        bulk_order_token:
          description: >-
            Globally unique identifier for the bulk order associated with this card. Only applicable to
            physical cards that are part of a bulk shipment
          example: 5e9483eb-8103-4e16-9794-2106111b2eca
          format: uuid
          type:
            - string
            - 'null'
        replacement_for:
          description: >-
            If the card is a replacement for another card, the globally unique identifier for the card that
            was replaced.
          example: 5e9483eb-8103-4e16-9794-2106111b2eca
          type:
            - string
            - 'null'
        cardholder_currency:
          description: 3-character alphabetic ISO 4217 code for the currency of the cardholder.
          example: USD
          type: string
        created:
          description: An RFC 3339 timestamp for when the card was created. UTC time zone.
          example: '2021-06-28T22:53:15Z'
          format: date-time
          type: string
        digital_card_art_token:
          description: >-
            Specifies the digital card art to be displayed in the user's digital wallet after tokenization.
            This artwork must be approved by Mastercard and configured by Lithic to use.
          example: 5e9483eb-8103-4e16-9794-2106111b2eca
          type: string
        exp_month:
          description: Two digit (MM) expiry month.
          example: '06'
          maxLength: 2
          minLength: 2
          type: string
        exp_year:
          description: Four digit (yyyy) expiry year.
          example: '2027'
          maxLength: 4
          minLength: 4
          type: string
        funding:
          description: 'Deprecated: Funding account for the card.'
          $ref: '#/components/schemas/funding_account'
        hostname:
          description: Hostname of card's locked merchant (will be empty if not applicable).
          type: string
        last_four:
          description: Last four digits of the card number.
          maxLength: 4
          minLength: 4
          type: string
        memo:
          description: Friendly name to identify the card.
          example: New Card
          type: string
        network_program_token:
          description: >-
            Globally unique identifier for the card's network program. Null if the card is not associated with
            a network program. Currently applicable to Visa cards participating in Account Level Management
            only
          example: 5e9483eb-8103-4e16-9794-2106111b2eca
          type:
            - string
            - 'null'
        pending_commands:
          description: >-
            Indicates if there are offline PIN changes pending card interaction with an offline PIN terminal.
            Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable only to cards issued in markets
            supporting offline PINs.
          items:
            type: string
          type: array
        pin_status:
          description: Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect attempts).
          enum:
            - OK
            - BLOCKED
            - NOT_SET
          type: string
        product_id:
          description: >-
            Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic before use.
            Specifies the configuration (i.e., physical card art) that the card should be manufactured with.
          example: '1'
          type: string
        spend_limit:
          description: >-
            Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
            Transaction requests above the spend limit will be declined.
          example: 1000
          type: integer
        spend_limit_duration:
          $ref: '#/components/schemas/spend_limit_duration'
        state:
          description: >-
            Card state values: * `CLOSED` - Card will no longer approve authorizations. Closing a card cannot
            be undone. * `OPEN` - Card will approve authorizations (if they match card and account
            parameters). * `PAUSED` - Card will decline authorizations, but can be resumed at a later time. *
            `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The card is provisioned
            pending manufacturing and fulfillment. Cards in this state can accept authorizations for
            e-commerce purchases, but not for "Card Present" purchases where the physical card itself is
            present. * `PENDING_ACTIVATION` - At regular intervals, cards of type `PHYSICAL` in state
            `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to state
            `PENDING_ACTIVATION`. Similar to `PENDING_FULFILLMENT`, cards in this state can be used for
            e-commerce transactions or can be added to mobile wallets. API clients should update the card's
            state to `OPEN` only after the cardholder confirms receipt of the card. In sandbox, the same daily
            batch fulfillment occurs, but no cards are actually manufactured.
          enum:
            - CLOSED
            - OPEN
            - PAUSED
            - PENDING_ACTIVATION
            - PENDING_FULFILLMENT
          type: string
        substatus:
          description: >-
            Card state substatus values: * `LOST` - The physical card is no longer in the cardholder's
            possession due to being lost or never received by the cardholder. * `COMPROMISED` - Card
            information has been exposed, potentially leading to unauthorized access. This may involve
            physical card theft, cloning, or online data breaches. * `DAMAGED` - The physical card is not
            functioning properly, such as having chip failures or a demagnetized magnetic stripe. *
            `END_USER_REQUEST` - The cardholder requested the closure of the card for reasons unrelated to
            fraud or damage, such as switching to a different product or closing the account. *
            `ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud or damage, such as
            account inactivity, product or policy changes, or technology upgrades. * `NOT_ACTIVE` - The card
            hasn’t had any transaction activity for a specified period, applicable to statuses like `PAUSED`
            or `CLOSED`. * `SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or
            activities that require review. This can involve prompting the cardholder to confirm legitimate
            use or report confirmed fraud. * `INTERNAL_REVIEW` - The card is temporarily paused pending
            further internal review. * `EXPIRED` - The card has expired and has been closed without being
            reissued. * `UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been
            returned. * `OTHER` - The reason for the status does not fall into any of the above categories. A
            comment can be provided to specify the reason.
          enum:
            - LOST
            - COMPROMISED
            - DAMAGED
            - END_USER_REQUEST
            - ISSUER_REQUEST
            - NOT_ACTIVE
            - SUSPICIOUS_ACTIVITY
            - INTERNAL_REVIEW
            - EXPIRED
            - UNDELIVERABLE
            - OTHER
          type: string
        comment:
          description: Additional context or information related to the card.
          type: string
        token:
          description: Globally unique identifier.
          example: 7ef7d65c-9023-4da3-b113-3b8583fd7951
          type: string
        type:
          description: >-
            Card types: * `VIRTUAL` - Card will authorize at any merchant and can be added to a digital wallet
            like Apple Pay or Google Pay (if the card program is digital wallet-enabled). * `PHYSICAL` -
            Manufactured and sent to the cardholder. We offer white label branding, credit, ATM, PIN debit,
            chip/EMV, NFC and magstripe functionality. * `SINGLE_USE` - Card is closed upon first successful
            authorization. * `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
            authorizes the card. * `UNLOCKED` - *[Deprecated]* Similar behavior to VIRTUAL cards, please use
            VIRTUAL instead. * `DIGITAL_WALLET` - *[Deprecated]* Similar behavior to VIRTUAL cards, please use
            VIRTUAL instead.
          enum:
            - MERCHANT_LOCKED
            - PHYSICAL
            - SINGLE_USE
            - VIRTUAL
            - UNLOCKED
            - DIGITAL_WALLET
          type: string
      required:
        - account_token
        - card_program_token
        - created
        - funding
        - last_four
        - pin_status
        - spend_limit
        - spend_limit_duration
        - state
        - token
        - type
    Carrier:
      properties:
        qr_code_url:
          description: >-
            QR code URL to display on the card carrier. The `qr_code_url` field requires your domain to be
            allowlisted by Lithic before use. Contact Support to configure your QR code domain
          type: string
      type: object
    ShippingAddress:
      properties:
        address1:
          description: Valid USPS routable address.
          example: 5 Broad Street
          maxLength: 40
          minLength: 1
          type: string
        address2:
          description: Unit number (if applicable).
          example: Unit 25A
          maxLength: 40
          minLength: 1
          type: string
        city:
          description: City
          example: NEW YORK
          maxLength: 30
          minLength: 1
          type: string
        country:
          description: Uppercase ISO 3166-1 alpha-3 three character abbreviation.
          example: USA
          maxLength: 3
          minLength: 3
          type: string
        email:
          description: >-
            Email address to be contacted for expedited shipping process purposes. Required if
            `shipping_method` is `EXPEDITED`.
          example: johnny@appleseed.com
          maxLength: 50
          minLength: 5
          type: string
        first_name:
          description: >-
            Customer's first name. This will be the first name printed on the physical card. The combined
            length of `first_name` and `last_name` may not exceed 25 characters.
          example: Michael
          maxLength: 24
          minLength: 1
          type: string
        last_name:
          description: >-
            Customer's surname (family name). This will be the last name printed on the physical card. The
            combined length of `first_name` and `last_name` may not exceed 25 characters.
          example: Bluth
          maxLength: 24
          minLength: 1
          type: string
        line2_text:
          description: >-
            Text to be printed on line two of the physical card. Use of this field requires additional
            permissions.
          example: The Bluth Company
          maxLength: 26
          minLength: 0
          type: string
        phone_number:
          description: >-
            Cardholder's phone number in E.164 format to be contacted for expedited shipping process purposes.
            Required if `shipping_method` is `EXPEDITED`.
          example: '+15555555555'
          maxLength: 16
          minLength: 8
          type: string
        postal_code:
          description: >-
            Postal code (formerly zipcode). For US addresses, either five-digit postal code or nine-digit
            postal code (ZIP+4) using the format 12345-1234.
          example: 10001-1809
          maxLength: 12
          minLength: 1
          type: string
        state:
          description: >-
            Uppercase ISO 3166-2 two character abbreviation for US and CA. Optional with a limit of 24
            characters for other countries.
          example: NY
          maxLength: 24
          minLength: 0
          type: string
      required:
        - address1
        - city
        - country
        - first_name
        - last_name
        - postal_code
        - state
      type: object
    pci_card_response:
      description: Card details with potentially PCI sensitive information for Enterprise customers
      allOf:
        - $ref: '#/components/schemas/non_pci_card_response'
        - type: object
          properties:
            pan:
              description: >-
                Primary Account Number (PAN) (i.e. the card number). Customers must be PCI compliant to have
                PAN returned as a field in production. Please contact support@lithic.com for questions.
              example: '4111111289144142'
              maxLength: 16
              minLength: 16
              type: string
            cvv:
              description: Three digit cvv printed on the back of the card.
              example: '776'
              maxLength: 3
              minLength: 3
              type: string
          examples:
            - pan: '4111111289144142'
              cvv: '776'
    financial-account-balance:
      title: Financial Account Balance
      description: Balance of a Financial Account
      properties:
        available_amount:
          description: Funds available for spend in the currency's smallest unit (e.g., cents for USD)
          type: integer
        created:
          description: Date and time for when the balance was first created.
          format: date-time
          type: string
        currency:
          description: 3-character alphabetic ISO 4217 code for the local currency of the balance.
          type: string
        token:
          description: Globally unique identifier for the financial account that holds this balance.
          example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
          format: uuid
          type: string
        type:
          description: Type of financial account.
          enum:
            - ISSUING
            - OPERATING
            - RESERVE
            - SECURITY
          type: string
        last_transaction_event_token:
          description: Globally unique identifier for the last financial transaction event that impacted this balance.
          format: uuid
          type: string
        last_transaction_token:
          description: Globally unique identifier for the last financial transaction that impacted this balance.
          format: uuid
          type: string
        pending_amount:
          description: >-
            Funds not available for spend due to card authorizations or pending ACH release. Shown in the
            currency's smallest unit (e.g., cents for USD).
          type: integer
        total_amount:
          description: The sum of available and pending balance in the currency's smallest unit (e.g., cents for USD).
          type: integer
        updated:
          description: Date and time for when the balance was last updated.
          format: date-time
          type: string
      required:
        - available_amount
        - created
        - currency
        - token
        - type
        - last_transaction_event_token
        - last_transaction_token
        - pending_amount
        - total_amount
        - updated
      type: object
    financial_event_type:
      title: Financial Event Type
      type: string
      enum:
        - ACH_ORIGINATION_CANCELLED
        - ACH_ORIGINATION_INITIATED
        - ACH_ORIGINATION_PROCESSED
        - ACH_ORIGINATION_RELEASED
        - ACH_ORIGINATION_REJECTED
        - ACH_ORIGINATION_REVIEWED
        - ACH_ORIGINATION_SETTLED
        - ACH_RECEIPT_PROCESSED
        - ACH_RECEIPT_RELEASED
        - ACH_RECEIPT_SETTLED
        - ACH_RETURN_INITIATED
        - ACH_RETURN_PROCESSED
        - ACH_RETURN_REJECTED
        - ACH_RETURN_SETTLED
        - AUTHORIZATION
        - AUTHORIZATION_ADVICE
        - AUTHORIZATION_EXPIRY
        - AUTHORIZATION_REVERSAL
        - BALANCE_INQUIRY
        - BILLING_ERROR
        - BILLING_ERROR_REVERSAL
        - CARD_TO_CARD
        - CASH_BACK
        - CASH_BACK_REVERSAL
        - CLEARING
        - COLLECTION
        - CORRECTION_CREDIT
        - CORRECTION_DEBIT
        - CREDIT_AUTHORIZATION
        - CREDIT_AUTHORIZATION_ADVICE
        - CURRENCY_CONVERSION
        - CURRENCY_CONVERSION_REVERSAL
        - DISPUTE_WON
        - EXTERNAL_ACH_CANCELED
        - EXTERNAL_ACH_INITIATED
        - EXTERNAL_ACH_RELEASED
        - EXTERNAL_ACH_REVERSED
        - EXTERNAL_ACH_SETTLED
        - EXTERNAL_CHECK_CANCELED
        - EXTERNAL_CHECK_INITIATED
        - EXTERNAL_CHECK_RELEASED
        - EXTERNAL_CHECK_REVERSED
        - EXTERNAL_CHECK_SETTLED
        - EXTERNAL_FEDNOW_CANCELED
        - EXTERNAL_FEDNOW_INITIATED
        - EXTERNAL_FEDNOW_RELEASED
        - EXTERNAL_FEDNOW_REVERSED
        - EXTERNAL_FEDNOW_SETTLED
        - EXTERNAL_RTP_CANCELED
        - EXTERNAL_RTP_INITIATED
        - EXTERNAL_RTP_RELEASED
        - EXTERNAL_RTP_REVERSED
        - EXTERNAL_RTP_SETTLED
        - EXTERNAL_TRANSFER_CANCELED
        - EXTERNAL_TRANSFER_INITIATED
        - EXTERNAL_TRANSFER_RELEASED
        - EXTERNAL_TRANSFER_REVERSED
        - EXTERNAL_TRANSFER_SETTLED
        - EXTERNAL_WIRE_CANCELED
        - EXTERNAL_WIRE_INITIATED
        - EXTERNAL_WIRE_RELEASED
        - EXTERNAL_WIRE_REVERSED
        - EXTERNAL_WIRE_SETTLED
        - FINANCIAL_AUTHORIZATION
        - FINANCIAL_CREDIT_AUTHORIZATION
        - INTEREST
        - INTEREST_REVERSAL
        - INTERNAL_ADJUSTMENT
        - LATE_PAYMENT
        - LATE_PAYMENT_REVERSAL
        - LOSS_WRITE_OFF
        - PROVISIONAL_CREDIT
        - PROVISIONAL_CREDIT_REVERSAL
        - SERVICE
        - RETURN
        - RETURN_REVERSAL
        - TRANSFER
        - TRANSFER_INSUFFICIENT_FUNDS
        - RETURNED_PAYMENT
        - RETURNED_PAYMENT_REVERSAL
        - LITHIC_NETWORK_PAYMENT
        - ANNUAL
        - ANNUAL_REVERSAL
        - QUARTERLY
        - QUARTERLY_REVERSAL
        - MONTHLY
        - MONTHLY_REVERSAL
    financial_event:
      title: Financial Event
      description: Financial Event
      type: object
      properties:
        amount:
          description: Amount of the financial event that has been settled in the currency's smallest unit (e.g., cents).
          type: integer
        created:
          description: Date and time when the financial event occurred. UTC time zone.
          type: string
          format: date-time
        result:
          description: >-
            APPROVED financial events were successful while DECLINED financial events were declined by user,
            Lithic, or the network.
          type: string
          enum:
            - APPROVED
            - DECLINED
        token:
          description: Globally unique identifier.
          type: string
          format: uuid
        type:
          $ref: '#/components/schemas/financial_event_type'
    financial-account-transaction:
      properties:
        category:
          description: |
            Status types:

            * `CARD` - Issuing card transaction.
            * `ACH` - Transaction over ACH.
            * `INTERNAL` - Transaction for internal adjustment.
            * `TRANSFER` - Internal transfer of funds between financial accounts in your program.
          enum:
            - ACH
            - CARD
            - INTERNAL
            - TRANSFER
          type: string
        created:
          description: Date and time when the financial transaction first occurred. UTC time zone.
          format: date-time
          type: string
        currency:
          description: 3-character alphabetic ISO 4217 code for the settling currency of the transaction.
          type: string
        descriptor:
          description: >-
            A string that provides a description of the financial transaction; may be useful to display to
            users.
          type: string
        events:
          description: A list of all financial events that have modified this financial transaction.
          items:
            $ref: '#/components/schemas/financial_event'
          type: array
        pending_amount:
          description: >
            Pending amount of the transaction in the currency's smallest unit (e.g., cents), including any
            acquirer fees.


            The value of this field will go to zero over time once the financial transaction is settled.
          type: integer
        result:
          description: >-
            APPROVED transactions were successful while DECLINED transactions were declined by user, Lithic,
            or the network.
          enum:
            - APPROVED
            - DECLINED
          type: string
        settled_amount:
          description: >-
            Amount of the transaction that has been settled in the currency's smallest unit (e.g., cents),
            including any acquirer fees. This may change over time.
          type: integer
        status:
          description: |
            Status types:

            * `DECLINED` - The transaction was declined.
            * `EXPIRED` - The authorization as it has passed its expiration time. Card transaction only.
            * `PENDING` - The transaction is expected to settle.
            * `RETURNED` - The transaction has been returned.
            * `SETTLED` - The transaction is completed.
            * `VOIDED` - The transaction was voided. Card transaction only.
          enum:
            - DECLINED
            - EXPIRED
            - PENDING
            - RETURNED
            - SETTLED
            - VOIDED
          type: string
        token:
          description: Globally unique identifier.
          format: uuid
          type: string
        updated:
          description: Date and time when the financial transaction was last updated. UTC time zone.
          format: date-time
          type: string
      required:
        - category
        - created
        - currency
        - descriptor
        - events
        - pending_amount
        - result
        - settled_amount
        - status
        - token
        - updated
      type: object
    WebPushProvisioningResponseHeader:
      properties:
        kid:
          description: The ID for the JWS Public Key of the key pair used to generate the signature.
          example: 8dc7aed4-29e3-41e4-9cdb-673a05e6615c
          type: string
    WebPushProvisioningResponseJws:
      properties:
        header:
          $ref: '#/components/schemas/WebPushProvisioningResponseHeader'
          description: >-
            JWS unprotected headers containing header parameters that aren't integrity-protected by the JWS
            signature.
        protected:
          description: >-
            Base64url encoded JWS protected headers containing the header parameters that are
            integrity-protected by the JWS signature.
          example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9
          type: string
        payload:
          description: Base64url encoded JSON object containing the provisioning payload.
          example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9
          type: string
        signature:
          description: Base64url encoded signature of the JWS object.
          example: SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
          type: string
      type: object
    AppleWebPushProvisioningResponse:
      properties:
        jws:
          $ref: '#/components/schemas/WebPushProvisioningResponseJws'
          description: JWS object required for handoff to Apple's script.
        state:
          description: A unique identifier for the JWS object.
          example: 3cc4c292-727b-4ca8-b9a8-f96c15485f4e
          type: string
      required:
        - jws
        - state
      type: object
    GoogleWebPushProvisioningResponse:
      properties:
        google_opc:
          description: A base64 encoded and encrypted payload representing card data for the Google Pay UWPP FPAN flow.
          example: WW91ciBTdHJpbmcgSGVyZQ==
          type: string
        tsp_opc:
          description: >-
            A base64 encoded and encrypted payload representing card data for the Google Pay UWPP tokenization
            flow.
          example: WW91ciBTdHJpbmcgSGVyZQ==
          type: string
      type: object
      not:
        properties:
          jws: {}
        required:
          - jws
    WebPushProvisioningResponse:
      oneOf:
        - $ref: '#/components/schemas/AppleWebPushProvisioningResponse'
        - $ref: '#/components/schemas/GoogleWebPushProvisioningResponse'
    CardSpendLimits:
      properties:
        available_spend_limit:
          properties:
            annually:
              description: >-
                The available spend limit (in cents) relative to the annual limit configured on the Card (e.g.
                100000 would be a $1,000 limit).
              example: 200000
              type: integer
            forever:
              description: The available spend limit (in cents) relative to the forever limit configured on the Card.
              example: 300000
              type: integer
            monthly:
              description: The available spend limit (in cents) relative to the monthly limit configured on the Card.
              example: 200000
              type: integer
          type: object
        spend_limit:
          properties:
            annually:
              description: The configured annual spend limit (in cents) on the Card.
              example: 500000
              type: integer
            forever:
              description: The configured forever spend limit (in cents) on the Card.
              example: 500000
              type: integer
            monthly:
              description: The configured monthly spend limit (in cents) on the Card.
              example: 500000
              type: integer
          type: object
        spend_velocity:
          properties:
            annually:
              description: Current annual spend velocity (in cents) on the Card. Present if annual spend limit is set.
              example: 300000
              type: integer
            forever:
              description: Current forever spend velocity (in cents) on the Card. Present if forever spend limit is set.
              example: 200000
              type: integer
            monthly:
              description: Current monthly spend velocity (in cents) on the Card. Present if monthly spend limit is set.
              example: 300000
              type: integer
          type: object
      required:
        - available_spend_limit
      type: object
    bulk-order-response:
      $schema: https://json-schema.org/draft/2020-12/schema
      title: Bulk Order Response
      description: Represents a bulk order for physical card shipments
      type: object
      properties:
        token:
          description: Globally unique identifier for the bulk order
          example: 7ef7d65c-9023-4da3-b113-3b8583fd7951
          format: uuid
          type: string
        status:
          description: >-
            Status of the bulk order. OPEN indicates the order is accepting cards. LOCKED indicates the order
            is finalized and no more cards can be added
          enum:
            - OPEN
            - LOCKED
          type: string
        shipping_address:
          description: Shipping address for all cards in this bulk order
          type: object
        shipping_method:
          description: Shipping method for all cards in this bulk order
          enum:
            - BULK_EXPEDITED
          type: string
        customer_product_id:
          description: >-
            Customer-specified product configuration for physical card manufacturing. This must be configured
            with Lithic before use
          example: custom-card-design-123
          type:
            - string
            - 'null'
        card_tokens:
          description: List of card tokens associated with this bulk order
          type: array
          items:
            type: string
            format: uuid
        created:
          description: An RFC 3339 timestamp for when the bulk order was created. UTC time zone
          example: '2021-06-28T22:53:15Z'
          format: date-time
          type: string
        updated:
          description: An RFC 3339 timestamp for when the bulk order was last updated. UTC time zone
          example: '2021-06-28T22:53:15Z'
          format: date-time
          type: string
      required:
        - token
        - status
        - shipping_address
        - shipping_method
        - customer_product_id
        - card_tokens
        - created
        - updated
    create-bulk-order-request:
      $schema: https://json-schema.org/draft/2020-12/schema
      title: Create Bulk Order Request
      description: >-
        Request to create a new bulk order for physical card shipments. Please work with your Customer Success
        Manager and card personalization bureau to ensure bulk shipping is supported for your program.
      type: object
      properties:
        shipping_address:
          description: Shipping address for all cards in this bulk order
          type: object
        shipping_method:
          description: Shipping method for all cards in this bulk order
          enum:
            - BULK_EXPEDITED
          type: string
        customer_product_id:
          description: >-
            Customer-specified product configuration for physical card manufacturing. This must be configured
            with Lithic before use
          example: custom-card-design-123
          type: string
      required:
        - shipping_address
        - shipping_method
        - customer_product_id
    update-bulk-order-request:
      $schema: https://json-schema.org/draft/2020-12/schema
      title: Update Bulk Order Request
      description: Request to update a bulk order, primarily to lock it
      type: object
      properties:
        status:
          description: Status to update the bulk order to. Use LOCKED to finalize the order
          enum:
            - LOCKED
          type: string
      required:
        - status
    DigitalCardArt:
      properties:
        card_program_token:
          description: Globally unique identifier for the card program.
          format: uuid
          type: string
        created:
          description: Timestamp of when card art was created.
          format: date-time
          type: string
        description:
          description: Description of the card art.
          type: string
        is_card_program_default:
          description: Whether the card art is the default card art to be added upon tokenization.
          type: boolean
        is_enabled:
          description: Whether the card art is enabled.
          type: boolean
        network:
          description: Card network.
          enum:
            - MASTERCARD
            - VISA
          type: string
        token:
          description: Globally unique identifier for the card art.
          format: uuid
          type: string
      required:
        - card_program_token
        - created
        - description
        - is_enabled
        - network
        - token
      type: object
    dispute-v1:
      title: Dispute
      description: Dispute.
      properties:
        amount:
          description: Amount under dispute. May be different from the original transaction amount.
          type: integer
        arbitration_date:
          description: Date dispute entered arbitration.
          format: date-time
          type:
            - string
            - 'null'
        created:
          description: Timestamp of when first Dispute was reported.
          format: date-time
          type: string
        customer_filed_date:
          description: Date that the dispute was filed by the customer making the dispute.
          format: date-time
          type:
            - string
            - 'null'
        customer_note:
          description: End customer description of the reason for the dispute.
          maxLength: 10000
          type:
            - string
            - 'null'
        network_claim_ids:
          description: Unique identifiers for the dispute from the network.
          oneOf:
            - type: array
              items:
                type: string
            - type: 'null'
        network_filed_date:
          description: Date that the dispute was submitted to the network.
          format: date-time
          type:
            - string
            - 'null'
        network_reason_code:
          description: Network reason code used to file the dispute.
          type:
            - string
            - 'null'
        prearbitration_date:
          description: Date dispute entered pre-arbitration.
          format: date-time
          type:
            - string
            - 'null'
        primary_claim_id:
          description: >-
            Unique identifier for the dispute from the network. If there are multiple, this will be the first
            claim id set by the network
          type:
            - string
            - 'null'
        reason:
          description: |
            Dispute reason:
            * `ATM_CASH_MISDISPENSE`: ATM cash misdispense.
            * `CANCELLED`: Transaction was cancelled by the customer.
            * `DUPLICATED`: The transaction was a duplicate.
            * `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present.
            * `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present.
            * `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable merchant activity.
            * `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as described.
            * `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received.
            * `INCORRECT_AMOUNT`: The transaction amount was incorrect.
            * `MISSING_AUTH`: The transaction was missing authorization.
            * `OTHER`: Other reason.
            * `PROCESSING_ERROR`: Processing error.
            * `REFUND_NOT_PROCESSED`: The refund was not processed.
            * `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not cancelled.
          enum:
            - ATM_CASH_MISDISPENSE
            - CANCELLED
            - DUPLICATED
            - FRAUD_CARD_NOT_PRESENT
            - FRAUD_CARD_PRESENT
            - FRAUD_OTHER
            - GOODS_SERVICES_NOT_AS_DESCRIBED
            - GOODS_SERVICES_NOT_RECEIVED
            - INCORRECT_AMOUNT
            - MISSING_AUTH
            - OTHER
            - PROCESSING_ERROR
            - RECURRING_TRANSACTION_NOT_CANCELLED
            - REFUND_NOT_PROCESSED
          type: string
        representment_date:
          description: Date the representment was received.
          format: date-time
          type:
            - string
            - 'null'
        resolution_date:
          description: Date that the dispute was resolved.
          format: date-time
          type:
            - string
            - 'null'
        resolution_note:
          description: Note by Dispute team on the case resolution.
          maxLength: 10000
          type:
            - string
            - 'null'
        resolution_reason:
          description: |
            Reason for the dispute resolution:
            * `CASE_LOST`: This case was lost at final arbitration.
            * `NETWORK_REJECTED`: Network rejected.
            * `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS.
            * `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold.
            * `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless.
            * `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid.
            * `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks.
            * `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other.
            * `PAST_FILING_DATE`: Past filing date.
            * `PREARBITRATION_REJECTED`: Prearbitration rejected.
            * `PROCESSOR_REJECTED_OTHER`: Processor rejected, other.
            * `REFUNDED`: Refunded.
            * `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback.
            * `WITHDRAWN`: Withdrawn.
            * `WON_ARBITRATION`: Won arbitration.
            * `WON_FIRST_CHARGEBACK`: Won first chargeback.
            * `WON_PREARBITRATION`: Won prearbitration.
          enum:
            - CASE_LOST
            - NETWORK_REJECTED
            - NO_DISPUTE_RIGHTS_3DS
            - NO_DISPUTE_RIGHTS_BELOW_THRESHOLD
            - NO_DISPUTE_RIGHTS_CONTACTLESS
            - NO_DISPUTE_RIGHTS_HYBRID
            - NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS
            - NO_DISPUTE_RIGHTS_OTHER
            - PAST_FILING_DATE
            - PREARBITRATION_REJECTED
            - PROCESSOR_REJECTED_OTHER
            - REFUNDED
            - REFUNDED_AFTER_CHARGEBACK
            - WITHDRAWN
            - WON_ARBITRATION
            - WON_FIRST_CHARGEBACK
            - WON_PREARBITRATION
            - null
          type:
            - string
            - 'null'
        status:
          description: |
            Status types:
            * `NEW` - New dispute case is opened.
            * `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more information.
            * `SUBMITTED` - Dispute is submitted to the card network.
            * `REPRESENTMENT` - Case has entered second presentment.
            * `PREARBITRATION` - Case has entered prearbitration.
            * `ARBITRATION` - Case has entered arbitration.
            * `CASE_WON` - Case was won and credit will be issued.
            * `CASE_CLOSED` - Case was lost or withdrawn.
          enum:
            - ARBITRATION
            - CASE_CLOSED
            - CASE_WON
            - NEW
            - PENDING_CUSTOMER
            - PREARBITRATION
            - REPRESENTMENT
            - SUBMITTED
          type: string
        token:
          description: Globally unique identifier.
          format: uuid
          type: string
        transaction_token:
          description: >-
            The transaction that is being disputed. A transaction can only be disputed once but may have
            multiple dispute cases.
          format: uuid
          type: string
      required:
        - amount
        - arbitration_date
        - created
        - customer_filed_date
        - customer_note
        - network_claim_ids
        - network_filed_date
        - network_reason_code
        - prearbitration_date
        - primary_claim_id
        - reason
        - representment_date
        - resolution_date
        - resolution_note
        - resolution_reason
        - status
        - token
        - transaction_token
      type: object
    dispute-evidence:
      title: Dispute Evidence
      description: Dispute evidence.
      properties:
        created:
          description: Timestamp of when dispute evidence was created.
          format: date-time
          type: string
        dispute_token:
          description: Dispute token evidence is attached to.
          format: uuid
          type: string
        download_url:
          description: URL to download evidence. Only shown when `upload_status` is `UPLOADED`.
          type: string
        filename:
          description: File name of evidence. Recommended to give the dispute evidence a human-readable identifier.
          type: string
        token:
          description: Globally unique identifier.
          format: uuid
          type: string
        upload_status:
          description: |
            Upload status types:
            * `DELETED` - Evidence was deleted.
            * `ERROR` - Evidence upload failed.
            * `PENDING` - Evidence is pending upload.
            * `REJECTED` - Evidence was rejected.
            * `UPLOADED` - Evidence was uploaded.
          enum:
            - DELETED
            - ERROR
            - PENDING
            - REJECTED
            - UPLOADED
          type: string
        upload_url:
          description: URL to upload evidence. Only shown when `upload_status` is `PENDING`.
          type: string
      required:
        - created
        - dispute_token
        - token
        - upload_status
      type: object
    fraud-report-response:
      title: Fraud Report Response
      type: object
      properties:
        transaction_token:
          type: string
          format: uuid
          description: The universally unique identifier (UUID) associated with the transaction being reported.
        fraud_status:
          type: string
          enum:
            - SUSPECTED_FRAUD
            - FRAUDULENT
            - NOT_FRAUDULENT
            - NO_REPORTED_FRAUD
          description: |-
            The fraud status of the transaction, string (enum) supporting the following values:

             - `SUSPECTED_FRAUD`: The transaction is suspected to be fraudulent, but this hasn’t been confirmed.
             - `FRAUDULENT`: The transaction is confirmed to be fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from the `SUSPECTED_FRAUD` state.
             - `NOT_FRAUDULENT`: The transaction is (explicitly) marked as not fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from the `SUSPECTED_FRAUD` state.
             - `NO_REPORTED_FRAUD`: Indicates that no fraud report exists for the transaction. It is the default state for transactions that have not been analyzed or associated with any known fraudulent activity.
        fraud_type:
          type: string
          enum:
            - FIRST_PARTY_FRAUD
            - ACCOUNT_TAKEOVER
            - CARD_COMPROMISED
            - IDENTITY_THEFT
            - CARDHOLDER_MANIPULATION
          description: >-
            Specifies the type or category of fraud that the transaction is suspected or confirmed to involve,
            string (enum) supporting the following values:

             - `FIRST_PARTY_FRAUD`: First-party fraud occurs when a legitimate account or cardholder intentionally misuses financial services for personal gain. This includes actions such as disputing legitimate transactions to obtain a refund, abusing return policies, or defaulting on credit obligations without intent to repay.
             - `ACCOUNT_TAKEOVER`: Account takeover fraud occurs when a fraudster gains unauthorized access to an existing account, modifies account settings, and carries out fraudulent transactions.
             - `CARD_COMPROMISED`: Card compromised fraud occurs when a fraudster gains access to card details without taking over the account, such as through physical card theft, cloning, or online data breaches.
             - `IDENTITY_THEFT`: Identity theft fraud occurs when a fraudster uses stolen personal information, such as Social Security numbers or addresses, to open accounts, apply for loans, or conduct financial transactions in someone's name.
             - `CARDHOLDER_MANIPULATION`: This type of fraud occurs when a fraudster manipulates or coerces a legitimate cardholder into unauthorized transactions, often through social engineering tactics.
        comment:
          type: string
          description: Provides additional context or details about the fraud report.
        created_at:
          type: string
          format: date-time
          description: Timestamp representing when the fraud report was created.
        updated_at:
          type: string
          format: date-time
          description: Timestamp representing the last update to the fraud report.
      required:
        - transaction_token
        - fraud_status
    fraud-report-request:
      title: Fraud Report Parameters
      type: object
      properties:
        fraud_status:
          type: string
          enum:
            - SUSPECTED_FRAUD
            - FRAUDULENT
            - NOT_FRAUDULENT
          description: |-
            The fraud status of the transaction, string (enum) supporting the following values:

             - `SUSPECTED_FRAUD`: The transaction is suspected to be fraudulent, but this hasn’t been confirmed.
             - `FRAUDULENT`: The transaction is confirmed to be fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from the `SUSPECTED_FRAUD` state.
             - `NOT_FRAUDULENT`: The transaction is (explicitly) marked as not fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from the `SUSPECTED_FRAUD` state.
        fraud_type:
          type: string
          enum:
            - FIRST_PARTY_FRAUD
            - ACCOUNT_TAKEOVER
            - CARD_COMPROMISED
            - IDENTITY_THEFT
            - CARDHOLDER_MANIPULATION
          description: >-
            Specifies the type or category of fraud that the transaction is suspected or confirmed to involve,
            string (enum) supporting the following values:

             - `FIRST_PARTY_FRAUD`: First-party fraud occurs when a legitimate account or cardholder intentionally misuses financial services for personal gain. This includes actions such as disputing legitimate transactions to obtain a refund, abusing return policies, or defaulting on credit obligations without intent to repay.
             - `ACCOUNT_TAKEOVER`: Account takeover fraud occurs when a fraudster gains unauthorized access to an existing account, modifies account settings, and carries out fraudulent transactions.
             - `CARD_COMPROMISED`: Card compromised fraud occurs when a fraudster gains access to card details without taking over the account, such as through physical card theft, cloning, or online data breaches.
             - `IDENTITY_THEFT`: Identity theft fraud occurs when a fraudster uses stolen personal information, such as Social Security numbers or addresses, to open accounts, apply for loans, or conduct financial transactions in someone's name.
             - `CARDHOLDER_MANIPULATION`: This type of fraud occurs when a fraudster manipulates or coerces a legitimate cardholder into unauthorized transactions, often through social engineering tactics.
        comment:
          type: string
          description: >-
            Optional field providing additional information or context about why the transaction is considered
            fraudulent.
      required:
        - fraud_status
    tax-exempt-indicator:
      title: TaxExemptIndicator
      description: A flag indicating whether the transaction is tax exempt or not.
      type:
        - string
        - 'null'
      enum:
        - TAX_INCLUDED
        - TAX_NOT_INCLUDED
        - NOT_SUPPORTED
        - null
    tax-data:
      title: TaxData
      type: object
      properties:
        amount:
          title: Amount
          description: The amount of tax collected.
          type:
            - integer
            - 'null'
        exempt:
          title: Exempt
          $ref: '#/components/schemas/tax-exempt-indicator'
        merchant_tax_id:
          title: Merchant Tax ID
          description: The tax ID of the merchant.
          type:
            - string
            - 'null'
    line-item:
      title: LineItem
      description: An L2/L3 enhanced commercial data line item.
      type: object
      properties:
        product_code:
          title: Product Code
          description: An identifier for the item purchased.
          type:
            - string
            - 'null'
        description:
          title: Description
          description: A human-readable description of the item.
          type:
            - string
            - 'null'
        quantity:
          title: Quantity
          description: The quantity of the item purchased.
          type:
            - string
            - 'null'
        amount:
          title: Amount
          description: The price of the item purchased in merchant currency.
          type:
            - string
            - 'null'
    common-data:
      title: CommonData
      required:
        - tax
        - line_items
      type: object
      properties:
        customer_reference_number:
          title: Customer Reference Number
          description: A customer identifier.
          type:
            - string
            - 'null'
        merchant_reference_number:
          title: Merchant Reference Number
          description: A merchant identifier.
          type:
            - string
            - 'null'
        order_date:
          title: Order Date
          description: The date of the order.
          type:
            - string
            - 'null'
          format: date
        tax:
          $ref: '#/components/schemas/tax-data'
        line_items:
          title: Line Items
          type: array
          items:
            $ref: '#/components/schemas/line-item'
    service-type:
      title: FuelServiceType
      description: The type of fuel service procured in a fleet transaction.
      enum:
        - UNKNOWN
        - UNDEFINED
        - SELF_SERVICE
        - FULL_SERVICE
        - NON_FUEL_ONLY
    fuel-type:
      title: FuelType
      description: The type of fuel purchased.
      type:
        - string
        - 'null'
      enum:
        - UNKNOWN
        - REGULAR
        - MID_PLUS
        - PREMIUM_SUPER
        - MID_PLUS_2
        - PREMIUM_SUPER_2
        - ETHANOL_5_7_BLEND
        - MID_PLUS_ETHANOL_5_7_PERCENT_BLEND
        - PREMIUM_SUPER_ETHANOL_5_7_PERCENT_BLEND
        - ETHANOL_7_7_PERCENT_BLEND
        - MID_PLUS_ETHANOL_7_7_PERCENT_BLEND
        - GREEN_GASOLINE_REGULAR
        - GREEN_GASOLINE_MID_PLUS
        - GREEN_GASOLINE_PREMIUM_SUPER
        - REGULAR_DIESEL_2
        - PREMIUM_DIESEL_2
        - REGULAR_DIESEL_1
        - COMPRESSED_NATURAL_GAS
        - LIQUID_PROPANE_GAS
        - LIQUID_NATURAL_GAS
        - E_85
        - REFORMULATED_1
        - REFORMULATED_2
        - REFORMULATED_3
        - REFORMULATED_4
        - REFORMULATED_5
        - DIESEL_OFF_ROAD_1_AND_2_NON_TAXABLE
        - DIESEL_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_OFF_ROAD_NON_TAXABLE
        - UNDEFINED_FUEL
        - RACING_FUEL
        - MID_PLUS_2_10_PERCENT_BLEND
        - PREMIUM_SUPER_2_10_PERCENT_BLEND
        - MID_PLUS_ETHANOL_2_15_PERCENT_BLEND
        - PREMIUM_SUPER_ETHANOL_2_15_PERCENT_BLEND
        - PREMIUM_SUPER_ETHANOL_7_7_PERCENT_BLEND
        - REGULAR_ETHANOL_10_PERCENT_BLEND
        - MID_PLUS_ETHANOL_10_PERCENT_BLEND
        - PREMIUM_SUPER_ETHANOL_10_PERCENT_BLEND
        - B2_DIESEL_BLEND_2_PERCENT_BIODIESEL
        - B5_DIESEL_BLEND_5_PERCENT_BIODIESEL
        - B10_DIESEL_BLEND_10_PERCENT_BIODIESEL
        - B11_DIESEL_BLEND_11_PERCENT_BIODIESEL
        - B15_DIESEL_BLEND_15_PERCENT_BIODIESEL
        - B20_DIESEL_BLEND_20_PERCENT_BIODIESEL
        - B100_DIESEL_BLEND_100_PERCENT_BIODIESEL
        - B1_DIESEL_BLEND_1_PERCENT_BIODIESEL
        - ADDITIZED_DIESEL_2
        - ADDITIZED_DIESEL_3
        - RENEWABLE_DIESEL_R95
        - RENEWABLE_DIESEL_BIODIESEL_6_20_PERCENT
        - DIESEL_EXHAUST_FLUID
        - PREMIUM_DIESEL_1
        - REGULAR_ETHANOL_15_PERCENT_BLEND
        - MID_PLUS_ETHANOL_15_PERCENT_BLEND
        - PREMIUM_SUPER_ETHANOL_15_PERCENT_BLEND
        - PREMIUM_DIESEL_BLEND_LESS_THAN_20_PERCENT_BIODIESEL
        - PREMIUM_DIESEL_BLEND_GREATER_THAN_20_PERCENT_BIODIESEL
        - B75_DIESEL_BLEND_75_PERCENT_BIODIESEL
        - B99_DIESEL_BLEND_99_PERCENT_BIODIESEL
        - MISCELLANEOUS_FUEL
        - JET_FUEL
        - AVIATION_FUEL_REGULAR
        - AVIATION_FUEL_PREMIUM
        - AVIATION_FUEL_JP8
        - AVIATION_FUEL_4
        - AVIATION_FUEL_5
        - BIOJET_DIESEL
        - AVIATION_BIOFUEL_GASOLINE
        - MISCELLANEOUS_AVIATION_FUEL
        - MARINE_FUEL_1
        - MARINE_FUEL_2
        - MARINE_FUEL_3
        - MARINE_FUEL_4
        - MARINE_FUEL_5
        - MARINE_OTHER
        - MARINE_DIESEL
        - MISCELLANEOUS_MARINE_FUEL
        - KEROSENE_LOW_SULFUR
        - WHITE_GAS
        - HEATING_OIL
        - OTHER_FUEL_NON_TAXABLE
        - KEROSENE_ULTRA_LOW_SULFUR
        - KEROSENE_LOW_SULFUR_NON_TAXABLE
        - KEROSENE_ULTRA_LOW_SULFUR_NON_TAXABLE
        - EVC_1_LEVEL_1_CHARGE_110V_15_AMP
        - EVC_2_LEVEL_2_CHARGE_240V_15_40_AMP
        - EVC_3_LEVEL_3_CHARGE_480V_3_PHASE_CHARGE
        - BIODIESEL_BLEND_2_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_5_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_10_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_11_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_15_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_20_PERCENT_OFF_ROAD_NON_TAXABLE
        - DIESEL_1_OFF_ROAD_NON_TAXABLE
        - DIESEL_2_OFF_ROAD_NON_TAXABLE
        - DIESEL_1_PREMIUM_OFF_ROAD_NON_TAXABLE
        - DIESEL_2_PREMIUM_OFF_ROAD_NON_TAXABLE
        - ADDITIVE_DOSAGE
        - ETHANOL_BLENDS_E16_E84
        - LOW_OCTANE_UNL
        - BLENDED_DIESEL_1_AND_2
        - OFF_ROAD_REGULAR_NON_TAXABLE
        - OFF_ROAD_MID_PLUS_NON_TAXABLE
        - OFF_ROAD_PREMIUM_SUPER_NON_TAXABLE
        - OFF_ROAD_MID_PLUS_2_NON_TAXABLE
        - OFF_ROAD_PREMIUM_SUPER_2_NON_TAXABLE
        - RECREATIONAL_FUEL_90_OCTANE
        - HYDROGEN_H35
        - HYDROGEN_H70
        - RENEWABLE_DIESEL_R95_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_1_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_75_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_99_PERCENT_OFF_ROAD_NON_TAXABLE
        - BIODIESEL_BLEND_100_PERCENT_OFF_ROAD_NON_TAXABLE
        - RENEWABLE_DIESEL_BIODIESEL_6_20_PERCENT_OFF_ROAD_NON_TAXABLE
        - MISCELLANEOUS_OTHER_FUEL
        - null
    fuel-unit-of-measure:
      title: FuelUnitOfMeasure
      description: Unit of measure for fuel disbursement.
      type:
        - string
        - 'null'
      enum:
        - GALLONS
        - LITERS
        - POUNDS
        - KILOGRAMS
        - IMPERIAL_GALLONS
        - NOT_APPLICABLE
        - UNKNOWN
        - null
    fuel-data:
      title: FuelData
      type: object
      properties:
        type:
          $ref: '#/components/schemas/fuel-type'
        quantity:
          title: Quantity
          description: The quantity of fuel purchased.
          type:
            - string
            - 'null'
        unit_price:
          title: Unit Price
          description: The price per unit of fuel.
          type:
            - integer
            - 'null'
        unit_of_measure:
          $ref: '#/components/schemas/fuel-unit-of-measure'
    amount-totals:
      title: AmountTotals
      type: object
      properties:
        gross_sale:
          title: Gross Sale
          description: The gross sale amount.
          type:
            - integer
            - 'null'
        discount:
          title: Discount
          description: The discount applied to the gross sale amount.
          type:
            - integer
            - 'null'
        net_sale:
          title: Net Sale
          description: The amount after discount.
          type:
            - integer
            - 'null'
    fleet:
      title: Fleet
      required:
        - fuel
        - amount_totals
      type: object
      properties:
        service_type:
          description: The type of fuel service.
          $ref: '#/components/schemas/service-type'
        odometer:
          title: Odometer
          description: The odometer reading entered into the terminal at the time of sale.
          type:
            - integer
            - 'null'
        vehicle_number:
          title: Vehicle Number
          description: The vehicle number entered into the terminal at the time of sale, with leading zeros stripped.
          type:
            - string
            - 'null'
        driver_number:
          title: Driver Number
          description: The driver number entered into the terminal at the time of sale, with leading zeros stripped.
          type:
            - string
            - 'null'
        fuel:
          $ref: '#/components/schemas/fuel-data'
        amount_totals:
          $ref: '#/components/schemas/amount-totals'
    enhanced-data:
      title: EnhancedData
      required:
        - token
        - transaction_token
        - event_token
        - common
        - fleet
      type: object
      properties:
        token:
          title: Token
          description: A unique identifier for the enhanced commercial data.
          type: string
          format: uuid
        transaction_token:
          title: Transaction Token
          description: The token of the transaction that the enhanced data is associated with.
          type: string
          format: uuid
        event_token:
          title: Event Token
          description: The token of the event that the enhanced data is associated with.
          type: string
          format: uuid
        common:
          $ref: '#/components/schemas/common-data'
        fleet:
          title: Fleet
          type: array
          items:
            $ref: '#/components/schemas/fleet'
    EnhancedDataListResponse:
      title: EnhancedDataListResponse
      required:
        - data
      type: object
      properties:
        data:
          title: Data
          type: array
          items:
            $ref: '#/components/schemas/enhanced-data'
    event_type:
      type: string
      enum:
        - account_holder_document.updated
        - account_holder.created
        - account_holder.updated
        - account_holder.verification
        - auth_rules.backtest_report.created
        - balance.updated
        - book_transfer_transaction.created
        - book_transfer_transaction.updated
        - card_transaction.enhanced_data.created
        - card_transaction.enhanced_data.updated
        - card_transaction.updated
        - card.converted
        - card.created
        - card.reissued
        - card.renewed
        - card.shipped
        - card.updated
        - digital_wallet.tokenization_result
        - digital_wallet.tokenization_two_factor_authentication_code
        - digital_wallet.tokenization_two_factor_authentication_code_sent
        - digital_wallet.tokenization_updated
        - dispute_evidence.upload_failed
        - dispute_transaction.created
        - dispute_transaction.updated
        - dispute.updated
        - external_bank_account.created
        - external_bank_account.updated
        - external_payment.created
        - external_payment.updated
        - financial_account.created
        - financial_account.updated
        - funding_event.created
        - internal_transaction.created
        - internal_transaction.updated
        - loan_tape.created
        - loan_tape.updated
        - management_operation.created
        - management_operation.updated
        - network_total.created
        - network_total.updated
        - payment_transaction.created
        - payment_transaction.updated
        - settlement_report.updated
        - statements.created
        - three_ds_authentication.challenge
        - three_ds_authentication.created
        - three_ds_authentication.updated
        - tokenization.approval_request
        - tokenization.result
        - tokenization.two_factor_authentication_code
        - tokenization.two_factor_authentication_code_sent
        - tokenization.updated
      description: >
        The type of event that occurred. Possible values:


        - account_holder_document.updated: Occurs when an account holder's document upload status has been
        updated

        - account_holder.created: Occurs when a new account_holder is created.

        - account_holder.updated: Occurs when an account_holder is updated.

        - account_holder.verification: Occurs when an asynchronous account_holder's verification is completed.

        - auth_rules.backtest_report.created: Auth Rules backtest report created.

        - balance.updated: Financial Account Balance Update

        - book_transfer_transaction.created: Occurs when a book transfer transaction is created.

        - book_transfer_transaction.updated: Occurs when a book transfer transaction is updated.

        - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial data is processed for
        a transaction event.

        - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial data is reprocessed
        for a transaction event.

        - card_transaction.updated: Occurs when a card transaction happens.

        - card.converted: Occurs when a card is converted from virtual to physical cards.

        - card.created: Occurs when a new card is created.

        - card.reissued: Occurs when a card is reissued.

        - card.renewed: Occurs when a card is renewed.

        - card.shipped: Occurs when a card is shipped.

        - card.updated: Occurs when a card is updated.

        - digital_wallet.tokenization_result: Occurs when a tokenization request succeeded or failed.


        This event will be deprecated in the future. We recommend using `tokenization.result` instead.

        - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a tokenization request 2FA
        code is sent to the Lithic customer for self serve delivery.


        This event will be deprecated in the future. We recommend using
        `tokenization.two_factor_authentication_code` instead.

        - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a tokenization request
        2FA code is sent to our downstream messaging providers for delivery.


        This event will be deprecated in the future. We recommend using
        `tokenization.two_factor_authentication_code_sent` instead.

        - digital_wallet.tokenization_updated: Occurs when a tokenization's status has changed.


        This event will be deprecated in the future. We recommend using `tokenization.updated` instead.

        - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.

        - dispute_transaction.created: Occurs when a new dispute transaction is created

        - dispute_transaction.updated: Occurs when a dispute transaction is updated

        - dispute.updated: Occurs when a dispute is updated.

        - external_bank_account.created: Occurs when an external bank account is created.

        - external_bank_account.updated: Occurs when an external bank account is updated.

        - external_payment.created: Occurs when an external payment is created.

        - external_payment.updated: Occurs when an external payment is updated.

        - financial_account.created: Occurs when a financial account is created.

        - financial_account.updated: Occurs when a financial account is updated.

        - funding_event.created: Occurs when a funding event is created.

        - internal_transaction.created: Occurs when an internal adjustment is created.

        - internal_transaction.updated: Occurs when an internal adjustment is updated.

        - loan_tape.created: Occurs when a loan tape is created.

        - loan_tape.updated: Occurs when a loan tape is updated.

        - management_operation.created: Occurs when an management operation is created.

        - management_operation.updated: Occurs when an management operation is updated.

        - network_total.created: Occurs when a network total is created.

        - network_total.updated: Occurs when a network total is updated.

        - payment_transaction.created: Occurs when a payment transaction is created.

        - payment_transaction.updated: Occurs when a payment transaction is updated.

        - settlement_report.updated: Occurs when a settlement report is created or updated.

        - statements.created: Occurs when a statement has been created

        - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon receiving
        this request, the Card Program should issue its own challenge to the cardholder. After a cardholder
        challenge is successfully completed, the Card Program needs to respond back to Lithic by call to
        [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
        Then the cardholder must navigate back to the merchant checkout flow to complete the transaction. Some
        merchants will include an `app_requestor_url` for app-based purchases; Lithic recommends triggering a
        redirect to that URL after the cardholder completes an app-based challenge.

        - three_ds_authentication.created: Occurs when a 3DS authentication is created.

        - three_ds_authentication.updated: Occurs when a 3DS authentication is updated (eg. challenge is
        completed).

        - tokenization.approval_request: Occurs when a tokenization approval request is made.

        - tokenization.result: Occurs when a tokenization request succeeded or failed.

        - tokenization.two_factor_authentication_code: Occurs when a tokenization request 2FA code is sent to
        the Lithic customer for self serve delivery.

        - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization request 2FA code is
        sent to our downstream messaging providers for delivery.

        - tokenization.updated: Occurs when a tokenization's status has changed.
    EventSubscription:
      description: A subscription to specific event types.
      properties:
        description:
          description: A description of the subscription.
          type: string
        disabled:
          description: Whether the subscription is disabled.
          type: boolean
        event_types:
          items:
            $ref: '#/components/schemas/event_type'
          type:
            - 'null'
            - array
        token:
          description: Globally unique identifier.
          example: ep_1srOrx2ZWZBpBUvZwXKQmoEYga1
          type: string
        url:
          format: uri
          type: string
      required:
        - description
        - disabled
        - token
        - url
      type: object
    MessageAttempt:
      description: A subscription to specific event types.
      properties:
        created:
          description: |
            An RFC 3339 timestamp for when the event was created. UTC time zone.

            If no timezone is specified, UTC will be used.
          format: date-time
          type: string
        event_subscription_token:
          description: Globally unique identifier.
          example: ep_1srOrx2ZWZBpBUvZwXKQmoEYga1
          type: string
        event_token:
          description: Globally unique identifier.
          example: msg_1srOrx2ZWZBpBUvZwXKQmoEYga1
          type: string
        response:
          description: The response body from the event subscription's URL.
          type: string
        response_status_code:
          description: The response status code from the event subscription's URL.
          type: integer
        status:
          description: The status of the event attempt.
          enum:
            - FAILED
            - PENDING
            - SENDING
            - SUCCESS
          type: string
        token:
          description: Globally unique identifier.
          example: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2
          type: string
        url:
          format: uri
          type: string
      required:
        - created
        - event_subscription_token
        - event_token
        - response
        - response_status_code
        - status
        - token
        - url
      type: object
    Event:
      description: A single event that affects the transaction state and lifecycle.
      properties:
        created:
          description: |
            An RFC 3339 timestamp for when the event was created. UTC time zone.

            If no timezone is specified, UTC will be used.
          format: date-time
          type: string
        event_type:
          $ref: '#/components/schemas/event_type'
        payload:
          type: object
          additionalProperties: true
          example: {}
        token:
          description: Globally unique identifier.
          example: msg_1srOrx2ZWZBpBUvZwXKQmoEYga1
          type: string
      required:
        - created
        - event_type
        - payload
        - token
      type: object
    owner_type:
      type: string
      enum:
        - INDIVIDUAL
        - BUSINESS
      title: Owner Type
    account_state:
      type: string
      enum:
        - ENABLED
        - CLOSED
        - PAUSED
      title: Account State
      x-stainless-naming:
        java:
          type_name: State
    verification_state:
      type: string
      enum:
        - PENDING
        - ENABLED
        - FAILED_VERIFICATION
        - INSUFFICIENT_FUNDS
      title: Verification State
    verification_method:
      type: string
      enum:
        - MANUAL
        - MICRO_DEPOSIT
        - PRENOTE
        - EXTERNALLY_VERIFIED
        - UNVERIFIED
      title: Verification Method
    external_bank_account_address:
      title: External Bank Account Address
      type: object
      properties:
        address1:
          type: string
          minLength: 1
          maxLength: 40
        address2:
          type:
            - string
            - 'null'
          minLength: 1
          maxLength: 40
        city:
          type: string
          minLength: 1
          maxLength: 40
        state:
          type: string
          minLength: 2
          maxLength: 2
        postal_code:
          type: string
          minLength: 5
          maxLength: 10
          pattern: ^[0-9]{5}(-[0-9]{4})?$
          example: '11201'
        country:
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
          example: USD
      required:
        - address1
        - city
        - state
        - postal_code
        - country
    bank_account_api_response:
      title: Bank Account Api Response
      type: object
      properties:
        token:
          description: >-
            A globally unique identifier for this record of an external bank account association. If a program
            links an external bank account to more than one end-user or to both the program and the end-user,
            then Lithic will return each record of the association
          type: string
          format: uuid
        owner:
          description: >-
            Legal Name of the business or individual who owns the external account. This will appear in
            statements
          type: string
        routing_number:
          description: Routing Number
          type: string
        last_four:
          description: The last 4 digits of the bank account. Derived by Lithic from the account number passed
          type: string
        name:
          description: The nickname for this External Bank Account
          type:
            - string
            - 'null'
        currency:
          description: currency of the external account 3-character alphabetic ISO 4217 code
          type: string
        country:
          description: >-
            The country that the bank account is located in using ISO 3166-1. We will only accept USA bank
            accounts e.g., USA
          type: string
        account_token:
          description: >-
            Indicates which Lithic account the external account is associated with. For external accounts that
            are associated with the program, account_token field returned will be null
          type:
            - string
            - 'null'
          format: uuid
        created:
          description: An ISO 8601 string representing when this funding source was added to the Lithic account.
          type: string
          format: date-time
        company_id:
          description: Optional field that helps identify bank accounts in receipts
          type:
            - string
            - 'null'
        dob:
          description: Date of Birth of the Individual that owns the external bank account
          title: Date of Birth
          type:
            - string
            - 'null'
          format: date
        doing_business_as:
          description: Doing Business As
          type:
            - string
            - 'null'
        user_defined_id:
          description: User Defined ID
          title: User Defined ID
          type:
            - string
            - 'null'
        verification_failed_reason:
          description: >-
            Optional free text description of the reason for the failed verification. For ACH micro-deposits
            returned, this field will display the reason return code sent by the ACH network
          type:
            - string
            - 'null'
        verification_attempts:
          description: The number of attempts at verification
          type: integer
        financial_account_token:
          description: The financial account token of the operating account to fund the micro deposits
          type:
            - string
            - 'null'
          format: uuid
        type:
          description: Account Type
          $ref: '#/components/schemas/account_type'
        verification_method:
          description: Verification Method
          $ref: '#/components/schemas/verification_method'
        owner_type:
          description: Owner Type
          $ref: '#/components/schemas/owner_type'
        state:
          description: Account State
          $ref: '#/components/schemas/account_state'
        verification_state:
          description: Verification State
          $ref: '#/components/schemas/verification_state'
        address:
          description: Address
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/external_bank_account_address'
      required:
        - token
        - type
        - verification_method
        - owner_type
        - owner
        - state
        - verification_state
        - routing_number
        - last_four
        - currency
        - country
        - created
        - verification_attempts
    bank_accounts_api_response:
      title: Bank Accounts Api Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/bank_account_api_response_unlinked'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    bank_verified_verification_method:
      type: string
      enum:
        - MICRO_DEPOSIT
        - PRENOTE
      title: Bank Verified Verification Methods
    bank_verified_create_bank_account_api_request:
      title: Bank Verified Create Bank Account Api Request
      type: object
      properties:
        verification_method:
          description: Verification Method
          $ref: '#/components/schemas/verification_method'
        owner_type:
          description: Owner Type
          $ref: '#/components/schemas/owner_type'
        owner:
          description: >-
            Legal Name of the business or individual who owns the external account. This will appear in
            statements
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[!-~ ]*$
        account_token:
          description: >-
            Indicates which Lithic account the external account is associated with. For external accounts that
            are associated with the program, account_token field returned will be null
          type: string
          format: uuid
        company_id:
          description: Optional field that helps identify bank accounts in receipts
          type: string
          minLength: 1
          maxLength: 10
          pattern: ^[a-zA-Z0-9]*$
        doing_business_as:
          description: Doing Business As
          type: string
          minLength: 1
          maxLength: 40
        dob:
          description: Date of Birth of the Individual that owns the external bank account
          title: Date of Birth
          type: string
          format: date
        user_defined_id:
          description: User Defined ID
          title: User Defined ID
          type: string
          minLength: 1
          maxLength: 256
        type:
          description: Account Type
          $ref: '#/components/schemas/account_type'
          x-stainless-naming:
            java:
              type_name: AccountType
        routing_number:
          description: Routing Number
          type: string
          minLength: 9
          maxLength: 9
          pattern: ^[0-9]{9}$
          example: '123456789'
        account_number:
          description: Account Number
          type: string
          minLength: 1
          maxLength: 17
          pattern: ^[0-9-]{1,17}$
          example: '12345678901234567'
        name:
          description: The nickname for this External Bank Account
          type: string
          minLength: 1
          maxLength: 50
          pattern: ^[!-~ ]*$
        country:
          description: >-
            The country that the bank account is located in using ISO 3166-1. We will only accept USA bank
            accounts e.g., USA
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
          example: USD
        currency:
          description: currency of the external account 3-character alphabetic ISO 4217 code
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
          example: USD
        verification_enforcement:
          type: boolean
          default: true
        address:
          description: Address
          $ref: '#/components/schemas/external_bank_account_address'
        financial_account_token:
          description: The financial account token of the operating account to fund the micro deposits
          type: string
          format: uuid
      required:
        - type
        - routing_number
        - account_number
        - country
        - currency
        - verification_method
        - owner_type
        - owner
        - financial_account_token
    externally_verified_verification_method:
      type: string
      enum:
        - EXTERNALLY_VERIFIED
      title: Externally Verified Verification Methods
    externally_verified_create_bank_account_api_request:
      title: Externally Verified Create Bank Account Api Request
      type: object
      properties:
        verification_method:
          description: Verification Method
          $ref: '#/components/schemas/externally_verified_verification_method'
        owner_type:
          description: Owner Type
          $ref: '#/components/schemas/owner_type'
        owner:
          description: >-
            Legal Name of the business or individual who owns the external account. This will appear in
            statements
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[!-~ ]*$
        account_token:
          description: >-
            Indicates which Lithic account the external account is associated with. For external accounts that
            are associated with the program, account_token field returned will be null
          type: string
          format: uuid
        company_id:
          description: Optional field that helps identify bank accounts in receipts
          type: string
          minLength: 1
          maxLength: 10
          pattern: ^[a-zA-Z0-9]*$
        doing_business_as:
          description: Doing Business As
          type: string
          minLength: 1
          maxLength: 40
        dob:
          description: Date of Birth of the Individual that owns the external bank account
          title: Date of Birth
          type: string
          format: date
        user_defined_id:
          description: User Defined ID
          title: User Defined ID
          type: string
          minLength: 1
          maxLength: 256
        type:
          description: Account Type
          $ref: '#/components/schemas/account_type'
        routing_number:
          description: Routing Number
          type: string
          minLength: 9
          maxLength: 9
          pattern: ^[0-9]{9}$
          example: '123456789'
        account_number:
          description: Account Number
          type: string
          minLength: 1
          maxLength: 17
          pattern: ^[0-9-]{1,17}$
          example: '12345678901234567'
        name:
          description: The nickname for this External Bank Account
          type: string
          minLength: 1
          maxLength: 50
          pattern: ^[!-~ ]*$
        country:
          description: >-
            The country that the bank account is located in using ISO 3166-1. We will only accept USA bank
            accounts e.g., USA
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
          example: USD
        currency:
          description: currency of the external account 3-character alphabetic ISO 4217 code
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
          example: USD
        address:
          description: Address
          $ref: '#/components/schemas/external_bank_account_address'
      required:
        - type
        - routing_number
        - account_number
        - country
        - currency
        - verification_method
        - owner_type
        - owner
    unverified_verification_method:
      type: string
      enum:
        - UNVERIFIED
      title: Unverified Verification Methods
    unverified_create_bank_account_api_request:
      title: Unverified Create Bank Account Api Request
      type: object
      properties:
        verification_method:
          description: Verification Method
          $ref: '#/components/schemas/unverified_verification_method'
        owner_type:
          description: Owner Type
          $ref: '#/components/schemas/owner_type'
        owner:
          description: >-
            Legal Name of the business or individual who owns the external account. This will appear in
            statements
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[!-~ ]*$
        account_token:
          description: >-
            Indicates which Lithic account the external account is associated with. For external accounts that
            are associated with the program, account_token field returned will be null
          type: string
          format: uuid
        company_id:
          description: Optional field that helps identify bank accounts in receipts
          type: string
          minLength: 1
          maxLength: 10
          pattern: ^[a-zA-Z0-9]*$
        doing_business_as:
          description: Doing Business As
          type: string
          minLength: 1
          maxLength: 40
        dob:
          description: Date of Birth of the Individual that owns the external bank account
          title: Date of Birth
          type: string
          format: date
        user_defined_id:
          description: User Defined ID
          title: User Defined ID
          type: string
          minLength: 1
          maxLength: 256
        type:
          description: Account Type
          $ref: '#/components/schemas/account_type'
        routing_number:
          description: Routing Number
          type: string
          minLength: 9
          maxLength: 9
          pattern: ^[0-9]{9}$
          example: '123456789'
        account_number:
          description: Account Number
          type: string
          minLength: 1
          maxLength: 17
          pattern: ^[0-9-]{1,17}$
          example: '12345678901234567'
        name:
          description: The nickname for this External Bank Account
          type: string
          minLength: 1
          maxLength: 50
          pattern: ^[!-~ ]*$
        country:
          description: >-
            The country that the bank account is located in using ISO 3166-1. We will only accept USA bank
            accounts e.g., USA
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
          example: USD
        currency:
          description: currency of the external account 3-character alphabetic ISO 4217 code
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
          example: USD
        address:
          description: Address
          $ref: '#/components/schemas/external_bank_account_address'
      required:
        - type
        - routing_number
        - account_number
        - country
        - currency
        - verification_method
        - owner_type
        - owner
    create_external_bank_account_error_response_context:
      title: Create External Bank Account Api Response Context
      type: object
      properties:
        existing_token:
          type: string
          format: uuid
          description: The existing external bank account token.
      required:
        - existing_token
    create_external_bank_account_error_response:
      title: Create External Bank Account Api Response
      type: object
      properties:
        debugging_request_id:
          type: string
          format: uuid
          description: Identifier to help debug an error.
        message:
          type: string
          description: Explanation of error response.
        context:
          description: context
          $ref: '#/components/schemas/create_external_bank_account_error_response_context'
      required:
        - debugging_request_id
        - message
        - context
    account_type_external:
      type: string
      enum:
        - CHECKING
        - SAVINGS
      title: Account Type External
    update_bank_account_api_request:
      title: Update Bank Account Api Request
      type: object
      properties:
        owner:
          description: >-
            Legal Name of the business or individual who owns the external account. This will appear in
            statements
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[!-~ ]*$
        owner_type:
          description: Owner Type
          $ref: '#/components/schemas/owner_type'
        name:
          description: The nickname for this External Bank Account
          type: string
          minLength: 1
          maxLength: 50
          pattern: ^[!-~ ]*$
        company_id:
          description: Optional field that helps identify bank accounts in receipts
          type: string
          minLength: 1
          maxLength: 10
          pattern: ^[a-zA-Z0-9]*$
        address:
          description: Address
          $ref: '#/components/schemas/external_bank_account_address'
        dob:
          description: Date of Birth of the Individual that owns the external bank account
          title: Date of Birth
          type: string
          format: date
        doing_business_as:
          description: Doing Business As
          type: string
          minLength: 1
          maxLength: 40
        user_defined_id:
          description: User Defined ID
          title: User Defined ID
          type: string
          minLength: 1
          maxLength: 256
        type:
          $ref: '#/components/schemas/account_type_external'
    micro_deposit_verification_request:
      title: Micro Deposit Verification Request
      type: object
      properties:
        micro_deposits:
          type: array
          title: Micro Deposits
          maxItems: 2
          minItems: 2
          items:
            type: integer
      required:
        - micro_deposits
    retry_micro_deposit_verification_request:
      title: Retry Micro Deposit Verification Request
      type: object
      properties:
        financial_account_token:
          type: string
          format: uuid
    retry_prenote_verification_request:
      title: Retry Prenote Verification Request
      type: object
      properties:
        financial_account_token:
          type: string
          format: uuid
    set_verification_method_allowed_verification_methods:
      type: string
      enum:
        - MICRO_DEPOSIT
        - PRENOTE
        - EXTERNALLY_VERIFIED
      title: Set Verification Method Allowed Verification Methods
    set_verification_method_request:
      title: Set Verification Method Request
      type: object
      properties:
        verification_method:
          description: The verification method to set for the external bank account
          type: string
          $ref: '#/components/schemas/set_verification_method_allowed_verification_methods'
        financial_account_token:
          description: >-
            The financial account token of the operating account to fund the micro deposits. Required when
            verification_method is MICRO_DEPOSIT or PRENOTE.
          type: string
          format: uuid
      required:
        - verification_method
    extended_credit:
      title: Extended Credit
      type: object
      properties:
        credit_extended:
          type: integer
      required:
        - credit_extended
    interest_rate:
      title: Interest Rate
      type: object
      properties:
        effective_date:
          type: string
          format: date
          description: Date the rate goes into effect
        rate:
          type: string
          description: The rate in decimal format
      required:
        - effective_date
        - rate
    prime_rates_response:
      title: Prime Rates Response
      type: object
      properties:
        data:
          description: List of prime rates
          type: array
          items:
            $ref: '#/components/schemas/interest_rate'
        has_more:
          description: Whether there are more prime rates
          type: boolean
      required:
        - data
        - has_more
    instance-financial-account-type:
      title: Instance Financial Account Type
      description: Type of instance financial account
      type: string
      enum:
        - ISSUING
        - RESERVE
        - OPERATING
        - CHARGED_OFF_FEES
        - CHARGED_OFF_INTEREST
        - CHARGED_OFF_PRINCIPAL
        - SECURITY
        - PROGRAM_RECEIVABLES
        - COLLECTION
        - PROGRAM_BANK_ACCOUNTS_PAYABLE
        - EARLY_DIRECT_DEPOSIT_FLOAT
    account-financial-account-type:
      title: Account Financial Account Type
      description: Type of account financial account
      type: string
      enum:
        - ISSUING
        - OPERATING
    financial-account-status:
      title: Financial Account Status
      description: Status of the financial account
      type: string
      enum:
        - OPEN
        - CLOSED
        - SUSPENDED
        - PENDING
    financial-account-substatus:
      title: Financial Account Substatus
      description: Substatus for the financial account
      type: string
      enum:
        - CHARGED_OFF_DELINQUENT
        - CHARGED_OFF_FRAUD
        - END_USER_REQUEST
        - BANK_REQUEST
        - DELINQUENT
        - INTEREST_AND_FEES_PAUSED
    auto-collection-configuration-response:
      title: Auto Collection Configuration Response
      type: object
      properties:
        auto_collection_enabled:
          type: boolean
          description: If auto collection is enabled for this account
      required:
        - auto_collection_enabled
    financial-account-credit-config:
      title: Financial Account Credit Config
      type:
        - object
        - 'null'
      properties:
        credit_limit:
          type:
            - integer
            - 'null'
        external_bank_account_token:
          type:
            - string
            - 'null'
          format: uuid
        credit_product_token:
          type:
            - string
            - 'null'
          description: Globally unique identifier for the credit product
        tier:
          type:
            - string
            - 'null'
          description: Tier assigned to the financial account
        auto_collection_configuration:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/auto-collection-configuration-response'
      required:
        - credit_limit
        - external_bank_account_token
        - credit_product_token
        - tier
        - auto_collection_configuration
    financial-account-response:
      title: Financial Account Response
      type: object
      properties:
        token:
          type: string
          description: Globally unique identifier for the account
          example: b68b7424-aa69-4cbc-a946-30d90181b621
          format: uuid
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
        type:
          anyOf:
            - $ref: '#/components/schemas/instance-financial-account-type'
            - $ref: '#/components/schemas/account-financial-account-type'
        routing_number:
          type:
            - string
            - 'null'
        account_number:
          type:
            - string
            - 'null'
        nickname:
          type:
            - string
            - 'null'
        account_token:
          type:
            - string
            - 'null'
          format: uuid
        status:
          $ref: '#/components/schemas/financial-account-status'
        substatus:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/financial-account-substatus'
        user_defined_status:
          type:
            - string
            - 'null'
          description: User-defined status for the financial account
        is_for_benefit_of:
          type: boolean
          description: Whether financial account is for the benefit of another entity
        credit_configuration:
          $ref: '#/components/schemas/financial-account-credit-config'
      required:
        - token
        - created
        - updated
        - type
        - nickname
        - is_for_benefit_of
        - account_token
        - credit_configuration
        - status
        - substatus
        - user_defined_status
    financial-accounts-response:
      title: Financial Accounts Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/financial-account-response'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    CreateFinancialAccountRequest:
      properties:
        account_token:
          format: uuid
          title: Account token to create the new account under
          type: string
        nickname:
          maxLength: 256
          title: Nickname of the financial account
          type: string
        type:
          enum:
            - OPERATING
          title: Account Type
          type: string
        is_for_benefit_of:
          title: Is For Benefit Of
          type: boolean
      required:
        - nickname
        - type
      title: CreateFinancialAccountRequest
      type: object
    UpdateFinancialAccountRequest:
      properties:
        nickname:
          maxLength: 256
          title: Nickname
          type: string
      title: UpdateFinancialAccountRequest
      type: object
    financial-account-credit-config-response:
      title: Financial Account Credit Configuration Response
      type: object
      properties:
        account_token:
          type: string
          description: Globally unique identifier for the account
          example: b68b7424-aa69-4cbc-a946-30d90181b621
          format: uuid
        credit_limit:
          type:
            - integer
            - 'null'
        external_bank_account_token:
          type:
            - string
            - 'null'
          format: uuid
        credit_product_token:
          type:
            - string
            - 'null'
          description: Globally unique identifier for the credit product
        tier:
          type:
            - string
            - 'null'
          description: Tier assigned to the financial account
        auto_collection_configuration:
          $ref: '#/components/schemas/auto-collection-configuration-response'
      required:
        - account_token
        - credit_limit
        - external_bank_account_token
        - credit_product_token
        - tier
        - auto_collection_configuration
    auto-collection-configuration-request:
      title: Auto Collection Configuration Request
      type: object
      properties:
        auto_collection_enabled:
          type: boolean
          description: If auto collection is enabled for this account
      required: []
    financial-account-credit-config-request:
      title: Financial Account Credit Configuration Request
      type: object
      properties:
        credit_limit:
          type: integer
          minimum: 0
        external_bank_account_token:
          type: string
          format: uuid
        credit_product_token:
          type: string
          description: Globally unique identifier for the credit product
        tier:
          type: string
          description: Tier to assign to a financial account
          minLength: 1
        auto_collection_configuration:
          $ref: '#/components/schemas/auto-collection-configuration-request'
      required: []
    register_account_number_request:
      title: Register Account Number Request
      type: object
      properties:
        account_number:
          type: string
      required:
        - account_number
    hold_status:
      title: Hold Status
      description: Status of a hold transaction
      type: string
      enum:
        - PENDING
        - SETTLED
        - EXPIRED
        - VOIDED
    transaction_status:
      title: Transaction Status
      type: string
      enum:
        - PENDING
        - SETTLED
        - DECLINED
        - REVERSED
        - CANCELED
        - RETURNED
    base_transaction:
      title: base_transaction
      description: Base class for all transaction types in the ledger service
      type: object
      properties:
        status:
          $ref: '#/components/schemas/transaction_status'
          description: The status of the transaction
        token:
          type: string
          description: Unique identifier for the transaction
          format: uuid
        created:
          type: string
          description: ISO 8601 timestamp of when the transaction was created
          format: date-time
        updated:
          type: string
          description: ISO 8601 timestamp of when the transaction was last updated
          format: date-time
      required:
        - status
        - token
        - created
        - updated
    transaction_result:
      title: Transaction Result
      type: string
      enum:
        - APPROVED
        - DECLINED
    hold_event_type:
      title: Hold Event Type
      description: Type of hold lifecycle event
      type: string
      enum:
        - HOLD_INITIATED
        - HOLD_VOIDED
        - HOLD_EXPIRED
        - HOLD_SETTLED
    detailed_results:
      title: Detailed Results
      type: string
      enum:
        - APPROVED
        - INSUFFICIENT_FUNDS
    hold_event:
      title: Hold Event
      description: Event representing a lifecycle change to a hold
      type: object
      properties:
        token:
          type: string
          format: uuid
        type:
          $ref: '#/components/schemas/hold_event_type'
        result:
          $ref: '#/components/schemas/transaction_result'
        detailed_results:
          type: array
          items:
            $ref: '#/components/schemas/detailed_results'
        amount:
          type: integer
          description: Amount in cents
        created:
          type: string
          format: date-time
        memo:
          type:
            - string
            - 'null'
        settling_transaction_token:
          type:
            - string
            - 'null'
          format: uuid
          description: Transaction token of the payment that settled this hold (only populated for HOLD_SETTLED events)
      required:
        - token
        - type
        - result
        - detailed_results
        - amount
        - created
        - memo
        - settling_transaction_token
    hold_transaction:
      title: Hold Transaction
      description: >-
        A hold transaction representing reserved funds on a financial account. Holds move funds from available
        to pending balance in anticipation of future payments. They can be resolved via settlement (linked to
        payment), manual release, or expiration.
      allOf:
        - $ref: '#/components/schemas/base_transaction'
        - type: object
          properties:
            family:
              type: string
              const: HOLD
              description: HOLD - Hold Transaction
            result:
              $ref: '#/components/schemas/transaction_result'
            status:
              $ref: '#/components/schemas/hold_status'
            financial_account_token:
              type: string
              format: uuid
            pending_amount:
              type: integer
              description: Current pending amount (0 when resolved)
            currency:
              type: string
            events:
              type: array
              items:
                $ref: '#/components/schemas/hold_event'
            user_defined_id:
              type:
                - string
                - 'null'
            expiration_datetime:
              type:
                - string
                - 'null'
              format: date-time
              description: When the hold will auto-expire if not resolved
      required:
        - family
        - result
        - status
        - financial_account_token
        - pending_amount
        - currency
        - events
        - user_defined_id
        - expiration_datetime
    holds_response:
      title: Holds Response
      description: Paginated response containing hold transactions
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/hold_transaction'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    create_hold_request:
      title: Create Hold Request
      description: Request to create a new hold on a financial account
      type: object
      properties:
        amount:
          type: integer
          minimum: 1
          description: Amount to hold in cents
        memo:
          type:
            - string
            - 'null'
          description: Reason for the hold
        token:
          type: string
          format: uuid
          description: Customer-provided token for idempotency. Becomes the hold token.
        expiration_datetime:
          type: string
          format: date-time
          description: When the hold should auto-expire
        user_defined_id:
          type: string
          description: User-provided identifier for the hold
      required:
        - amount
    void_hold_request:
      title: Void Hold Request
      description: Request to void an active hold
      type: object
      properties:
        memo:
          type:
            - string
            - 'null'
          description: Reason for voiding the hold
    payment_details:
      title: Payment Details
      description: Breakdown of payments
      type: object
      patternProperties:
        ^.*$:
          type: object
          patternProperties:
            ^.*$:
              type: integer
              description: Amount in cents for this payment category and event type combination
          additionalProperties: false
      additionalProperties: false
    debit_details:
      title: Debit Details
      description: Breakdown of debits
      type: object
      patternProperties:
        ^.*$:
          type: object
          patternProperties:
            ^.*$:
              type: integer
              description: Amount in cents for this debit category and event type combination
          additionalProperties: false
      additionalProperties: false
    credit_details:
      title: Credit Details
      description: Breakdown of credits
      type: object
      patternProperties:
        ^.*$:
          type: object
          patternProperties:
            ^.*$:
              type: integer
              description: Amount in cents for this credit category and event type combination
          additionalProperties: false
      additionalProperties: false
    statement_totals:
      title: Statement Totals
      type: object
      properties:
        payments:
          type: integer
          description: Any funds transfers which affective the balance in cents
        payment_details:
          $ref: '#/components/schemas/payment_details'
        purchases:
          type: integer
          description: Net card transaction volume less any cash advances in cents
        fees:
          type: integer
          description: Volume of debit management operation transactions less any interest in cents
        debits:
          type: integer
          description: Volume of debit management operation transactions less any interest in cents
        debit_details:
          $ref: '#/components/schemas/debit_details'
        credits:
          type: integer
          description: Volume of credit management operation transactions less any balance transfers in cents
        credit_details:
          $ref: '#/components/schemas/credit_details'
        interest:
          type: integer
          description: Interest accrued in cents
        cash_advances:
          type: integer
          description: ATM and cashback transactions in cents
        balance_transfers:
          type: integer
          description: Opening balance transferred from previous account in cents
      required:
        - payments
        - purchases
        - fees
        - debits
        - credits
        - interest
        - cash_advances
        - balance_transfers
    period_state:
      type: string
      enum:
        - STANDARD
        - PROMO
        - PENALTY
      title: Period State
    financial_account_state:
      title: Financial Account State
      description: Information about the financial account state
      type: object
      properties:
        status:
          $ref: '#/components/schemas/financial-account-status'
        substatus:
          oneOf:
            - $ref: '#/components/schemas/financial-account-substatus'
            - type: 'null'
      required:
        - status
    account_standing:
      title: Account Standing
      type: object
      properties:
        period_state:
          $ref: '#/components/schemas/period_state'
        period_number:
          description: Current overall period number
          type: integer
        consecutive_minimum_payments_made:
          description: Number of consecutive minimum payments made
          type: integer
        consecutive_minimum_payments_missed:
          description: Number of consecutive minimum payments missed
          type: integer
        consecutive_full_payments_made:
          description: Number of consecutive full payments made
          type: integer
        days_past_due:
          description: Number of days past due
          type: integer
        has_grace:
          description: Whether the account currently has grace or not
          type: boolean
        financial_account_state:
          $ref: '#/components/schemas/financial_account_state'
      required:
        - period_state
        - period_number
        - consecutive_minimum_payments_made
        - consecutive_minimum_payments_missed
        - consecutive_full_payments_made
        - days_past_due
        - has_grace
        - financial_account_state
    amount_due:
      title: Amount Due
      type: object
      properties:
        amount:
          description: >-
            Payment due at the end of the billing period in cents. Negative amount indicates something is
            owed. If the amount owed is positive there was a net credit. If auto-collections are enabled this
            is the amount that will be requested on the payment due date
          type: integer
        past_due:
          description: Amount past due for statement in cents
          type: integer
      required:
        - amount
        - past_due
    payoff_details:
      title: Payoff Details
      description: Details on number and size of payments to pay off balance
      type: object
      properties:
        minimum_payment_months:
          description: >-
            The number of months it would take to pay off the balance in full by only paying the minimum
            payment. "NA" will signal negative or zero amortization
          type: string
        minimum_payment_total:
          description: >-
            The sum of all interest and principal paid, in cents, when only paying minimum monthly payment.
            "NA" will signal negative or zero amortization
          type: string
        payoff_period_length_months:
          description: Number of months to full pay off
          type:
            - integer
            - 'null'
        payoff_period_monthly_payment_amount:
          description: >-
            The amount needed to be paid, in cents, each month in order to pay off current balance in the
            payoff period
          type:
            - integer
            - 'null'
        payoff_period_payment_total:
          description: The sum of all interest and principal paid, in cents, when paying off in the payoff period
          type:
            - integer
            - 'null'
      required:
        - minimum_payment_months
        - minimum_payment_total
        - payoff_period_length_months
        - payoff_period_monthly_payment_amount
        - payoff_period_payment_total
    interest_calculation_method:
      type: string
      enum:
        - DAILY
        - AVERAGE_DAILY
      title: Interest Calculation method
    category_details:
      title: Category Details
      type: object
      properties:
        purchases:
          type: string
        cash_advances:
          type: string
        balance_transfers:
          type: string
      required:
        - purchases
        - cash_advances
        - balance_transfers
    interest_details:
      title: Interest Details
      type: object
      properties:
        prime_rate:
          type:
            - string
            - 'null'
        interest_calculation_method:
          $ref: '#/components/schemas/interest_calculation_method'
        effective_apr:
          $ref: '#/components/schemas/category_details'
        interest_for_period:
          $ref: '#/components/schemas/category_details'
        daily_balance_amounts:
          $ref: '#/components/schemas/category_details'
        minimum_interest_charged:
          type:
            - integer
            - 'null'
        actual_interest_charged:
          type:
            - integer
            - 'null'
      required:
        - prime_rate
        - interest_calculation_method
        - effective_apr
        - interest_for_period
        - actual_interest_charged
        - daily_balance_amounts
    statement_type:
      type: string
      enum:
        - INITIAL
        - PERIOD_END
        - FINAL
      title: Statement Type
    statement_response:
      title: Statement Response
      type: object
      properties:
        token:
          type: string
          description: Globally unique identifier for a statement
          title: Statement Token
        financial_account_token:
          description: Globally unique identifier for a financial account
          type: string
          format: uuid
        statement_start_date:
          description: Date when the billing period began
          type: string
          format: date
        statement_end_date:
          description: Date when the billing period ended
          type: string
          format: date
        next_statement_end_date:
          description: Date when the next billing period will end
          type: string
          format: date
        payment_due_date:
          oneOf:
            - type: 'null'
            - description: Date when the payment is due
              type: string
              format: date
        next_payment_due_date:
          description: Date when the next payment is due
          type: string
          format: date
        days_in_billing_cycle:
          description: Number of days in the billing cycle
          type: integer
        credit_limit:
          description: This is the maximum credit balance extended by the lender in cents
          type: integer
        available_credit:
          description: Amount of credit available to spend in cents
          type: integer
        starting_balance:
          description: Balance at the start of the billing period
          type: integer
        ending_balance:
          description: >-
            Balance at the end of the billing period. For charge cards, this should be the same at the
            statement amount due in cents
          type: integer
        period_totals:
          $ref: '#/components/schemas/statement_totals'
        ytd_totals:
          $ref: '#/components/schemas/statement_totals'
        created:
          description: Timestamp of when the statement was created
          type: string
          format: date-time
        updated:
          description: Timestamp of when the statement was updated
          type: string
          format: date-time
        credit_product_token:
          description: Globally unique identifier for a credit product
          type: string
        account_standing:
          $ref: '#/components/schemas/account_standing'
        amount_due:
          $ref: '#/components/schemas/amount_due'
        payoff_details:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/payoff_details'
        interest_details:
          anyOf:
            - type: 'null'
            - $ref: '#/components/schemas/interest_details'
        statement_type:
          $ref: '#/components/schemas/statement_type'
      required:
        - token
        - financial_account_token
        - statement_start_date
        - statement_end_date
        - payment_due_date
        - days_in_billing_cycle
        - credit_limit
        - available_credit
        - starting_balance
        - ending_balance
        - amount_due
        - period_totals
        - ytd_totals
        - created
        - updated
        - credit_product_token
        - account_standing
        - statement_type
    statements_response:
      title: Statements Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/statement_response'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    transaction_category:
      title: Transaction Category
      description: >-
        Note: Inbound wire transfers are coming soon (availability varies by partner bank). The WIRE category
        is a preview. To learn more, contact your customer success manager.
      type: string
      enum:
        - ACH
        - WIRE
        - BALANCE_OR_FUNDING
        - FEE
        - REWARD
        - ADJUSTMENT
        - DERECOGNITION
        - DISPUTE
        - CARD
        - EXTERNAL_ACH
        - EXTERNAL_CHECK
        - EXTERNAL_FEDNOW
        - EXTERNAL_RTP
        - EXTERNAL_TRANSFER
        - EXTERNAL_WIRE
        - MANAGEMENT_ADJUSTMENT
        - MANAGEMENT_DISPUTE
        - MANAGEMENT_FEE
        - MANAGEMENT_REWARD
        - MANAGEMENT_DISBURSEMENT
        - HOLD
        - PROGRAM_FUNDING
    statement_line_item_response:
      title: Statement Line Item Response
      type: object
      properties:
        token:
          type: string
          description: Globally unique identifier for a Statement Line Item
        financial_account_token:
          description: Globally unique identifier for a financial account
          type: string
          format: uuid
        card_token:
          description: Globally unique identifier for a card
          type: string
          format: uuid
        financial_transaction_token:
          description: Globally unique identifier for a financial transaction
          type: string
          format: uuid
        financial_transaction_event_token:
          description: Globally unique identifier for a financial transaction event
          type: string
          format: uuid
        category:
          $ref: '#/components/schemas/transaction_category'
        event_type:
          $ref: '#/components/schemas/financial_event_type'
        event_subtype:
          type:
            - string
            - 'null'
          description: Subtype of the event that generated the line items
        loan_tape_date:
          type:
            - string
            - 'null'
          format: date
          description: Date of the loan tape that generated this line item
        effective_date:
          description: Date that the transaction effected the account balance
          type: string
          format: date
        descriptor:
          type: string
        amount:
          type: integer
          description: Transaction amount in cents
        currency:
          type: string
          description: 3-character alphabetic ISO 4217 code for the settling currency of the transaction
        created:
          type: string
          format: date-time
          description: Timestamp of when the line item was generated
      required:
        - token
        - financial_account_token
        - financial_transaction_token
        - financial_transaction_event_token
        - category
        - event_type
        - effective_date
        - amount
        - currency
        - created
    statement_line_items_response:
      title: Statement Line Items Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/statement_line_item_response'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    category_balances:
      title: Category Balances
      type: object
      properties:
        interest:
          type: integer
        principal:
          type: integer
        fees:
          type: integer
      required:
        - interest
        - principal
        - fees
    balances:
      title: Balances
      type: object
      properties:
        past_due:
          description: Amount not paid off on previous due dates
          $ref: '#/components/schemas/category_balances'
        due:
          description: >-
            Amount due for the prior billing cycle. Any amounts not fully paid off on this due date will be
            considered past due the next day
          $ref: '#/components/schemas/category_balances'
        past_statements_due:
          description: Amount due for the past billing cycles.
          $ref: '#/components/schemas/category_balances'
        next_statement_due:
          description: >-
            Amount due for the current billing cycle. Any amounts not paid off by early payments or credits
            will be considered due at the end of the current billing period
          $ref: '#/components/schemas/category_balances'
      required:
        - past_due
        - due
        - past_statements_due
        - next_statement_due
    payment_allocation:
      title: Payment Allocation
      type: object
      properties:
        interest:
          type: integer
          description: Amount allocated to interest in cents
        principal:
          type: integer
          description: Amount allocated to principal in cents
        fees:
          type: integer
          description: Amount allocated to fees in cents
        interest_details:
          anyOf:
            - type: 'null'
            - $ref: '#/components/schemas/category_details'
        principal_details:
          anyOf:
            - type: 'null'
            - $ref: '#/components/schemas/category_details'
        fee_details:
          anyOf:
            - type: 'null'
            - $ref: '#/components/schemas/category_details'
      required:
        - interest
        - principal
        - fees
        - interest_details
        - principal_details
        - fee_details
    balance_details:
      title: Balance Details
      type: object
      properties:
        amount:
          type: integer
        remaining:
          type: integer
      required:
        - amount
        - remaining
    loan_tape_response:
      title: Loan Tape Response
      type: object
      properties:
        token:
          type: string
          description: Globally unique identifier for a loan tape
          title: Loan Tape Token
        financial_account_token:
          description: Globally unique identifier for a financial account
          type: string
          format: uuid
        date:
          description: Date of transactions that this loan tape covers
          type: string
          format: date
        created:
          description: Timestamp of when the loan tape was created
          type: string
          format: date-time
        updated:
          description: Timestamp of when the loan tape was updated
          type: string
          format: date-time
        version:
          description: Version number of the loan tape. This starts at 1
          type: integer
        ytd_totals:
          $ref: '#/components/schemas/statement_totals'
        period_totals:
          $ref: '#/components/schemas/statement_totals'
        day_totals:
          $ref: '#/components/schemas/statement_totals'
        balances:
          $ref: '#/components/schemas/balances'
        starting_balance:
          description: Balance at the start of the day
          type: integer
        ending_balance:
          description: Balance at the end of the day
          type: integer
        credit_limit:
          description: >-
            For prepay accounts, this is the minimum prepay balance that must be maintained. For charge card
            accounts, this is the maximum credit balance extended by a lender
          type: integer
        available_credit:
          description: Amount of credit available to spend in cents
          type: integer
        excess_credits:
          description: >-
            Excess credits in the form of provisional credits, payments, or purchase refunds. If positive, the
            account is in net credit state with no outstanding balances. An overpayment could land an account
            in this state
          type: integer
        account_standing:
          $ref: '#/components/schemas/account_standing'
        credit_product_token:
          description: Globally unique identifier for a credit product
          type: string
        tier:
          description: Interest tier to which this account belongs to
          type:
            - string
            - 'null'
        payment_allocation:
          $ref: '#/components/schemas/payment_allocation'
        minimum_payment_balance:
          $ref: '#/components/schemas/balance_details'
        previous_statement_balance:
          $ref: '#/components/schemas/balance_details'
        interest_details:
          anyOf:
            - type: 'null'
            - $ref: '#/components/schemas/interest_details'
      required:
        - token
        - financial_account_token
        - date
        - created
        - updated
        - version
        - ytd_totals
        - period_totals
        - day_totals
        - credit_limit
        - excess_credits
        - account_standing
        - credit_product_token
        - payment_allocation
        - balances
        - minimum_payment_balance
        - previous_statement_balance
        - starting_balance
        - ending_balance
        - available_credit
        - interest_details
    loan_tapes_response:
      title: Loan Tapes Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/loan_tape_response'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    loan_tape_rebuild_configuration:
      title: Loan Tape Rebuild Configuration
      description: Configuration for building loan tapes
      type: object
      properties:
        rebuild_needed:
          type: boolean
          description: Whether the account's loan tapes need to be rebuilt or not
        rebuild_from:
          type: string
          format: date
          description: Date from which to start rebuilding from if the account requires a rebuild
        last_rebuild:
          type: string
          format: date
          description: The date for which the account's loan tapes were last rebuilt
      required:
        - rebuild_needed
    loan_tape_configuration:
      title: Loan Tape Configuration
      description: Configuration for loan tapes
      type: object
      properties:
        instance_token:
          type: string
          format: uuid
        financial_account_token:
          type: string
          format: uuid
        credit_product_token:
          type: string
        loan_tape_rebuild_configuration:
          $ref: '#/components/schemas/loan_tape_rebuild_configuration'
        tier_schedule_changed_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - instance_token
        - financial_account_token
        - created_at
        - updated_at
    category_tier:
      title: Category Tier
      description: Rate and rate cap for interest on a category
      type: object
      properties:
        rate:
          type: string
          description: Interest rate for this category, e.g. '0.0525' for 5.25%
        cap_rate:
          type: string
          description: Maximum interest rate for this category, e.g. '0.0525' for 5.25%
    tier_schedule_entry:
      title: Tier Schedule Entry
      description: Entry in the Tier Schedule of an account
      type: object
      properties:
        tier_name:
          type: string
          description: Name of a tier contained in the credit product. Mutually exclusive with tier_rates
        effective_date:
          type: string
          format: date
          description: Date the tier should be effective in YYYY-MM-DD format
        tier_rates:
          type: object
          patternProperties:
            ^.*$:
              $ref: '#/components/schemas/category_tier'
          description: Custom rates per category.  Mutually exclusive with tier_name
        penalty_rates:
          type: object
          patternProperties:
            ^.*$:
              $ref: '#/components/schemas/category_tier'
          description: Custom rates per category for penalties
        credit_product_token:
          type: string
          description: Globally unique identifier for a credit product
      required:
        - effective_date
        - credit_product_token
    tier_schedule_response:
      title: Tier Schedule Response
      description: Tier Schedule of the given account.  Only applicable for credit products with v2 configuration
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/tier_schedule_entry'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    update_tier_schedule_entry_request:
      title: Update Tier Schedule Entry Request
      description: Entry in the Tier Schedule of an account
      type: object
      properties:
        tier_name:
          type: string
          description: Name of a tier contained in the credit product. Mutually exclusive with tier_rates
        tier_rates:
          type: object
          patternProperties:
            ^.*$:
              $ref: '#/components/schemas/category_tier'
          description: Custom rates per category.  Mutually exclusive with tier_name
        penalty_rates:
          type: object
          patternProperties:
            ^.*$:
              $ref: '#/components/schemas/category_tier'
          description: Custom rates per category for penalties
    update-financial-account-substatus:
      title: Update Financial Account Substatus
      description: Substatus for the financial account
      type: string
      enum:
        - CHARGED_OFF_FRAUD
        - END_USER_REQUEST
        - BANK_REQUEST
        - CHARGED_OFF_DELINQUENT
        - INTEREST_AND_FEES_PAUSED
    update-financial-account-status-request:
      title: Update financial account status request
      type: object
      properties:
        status:
          $ref: '#/components/schemas/financial-account-status'
        substatus:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/update-financial-account-substatus'
        user_defined_status:
          type: string
          description: User-defined status for the financial account
          pattern: ^[A-Z0-9_ ]*$
          maxLength: 100
      required:
        - status
        - substatus
      examples:
        - status: CLOSED
          substatus: END_USER_REQUEST
    financial-transaction:
      title: Financial Transaction
      description: Financial transaction with inheritance from unified base transaction
      allOf:
        - $ref: '#/components/schemas/base_transaction'
        - type: object
          properties:
            family:
              type: string
              const: INTERNAL
              description: INTERNAL - Financial Transaction
            category:
              $ref: '#/components/schemas/transaction_category'
              description: Transaction category
            result:
              $ref: '#/components/schemas/transaction_result'
              description: Transaction result
            currency:
              type: string
              description: Currency of the transaction, represented in ISO 4217 format
              example: USD
            settled_amount:
              type: integer
              description: Settled amount in cents
              example: 200
            pending_amount:
              type: integer
              description: Pending amount in cents
              example: 500
            events:
              type: array
              items:
                $ref: '#/components/schemas/financial_event'
              description: List of transaction events
            descriptor:
              type: string
              description: Transaction descriptor
            financial_account_token:
              type: string
              format: uuid
              description: Financial account token associated with the transaction
              example: 0cc87075-57cf-4607-8722-f42e2cb2c0cd
          required:
            - category
            - currency
            - family
            - result
            - settled_amount
            - pending_amount
            - events
            - descriptor
            - financial_account_token
    book_transfer_category:
      title: Book Transfer Category
      type: string
      enum:
        - ADJUSTMENT
        - BALANCE_OR_FUNDING
        - DERECOGNITION
        - DISPUTE
        - FEE
        - INTERNAL
        - REWARD
        - PROGRAM_FUNDING
        - TRANSFER
    book_transfer_type:
      type: string
      enum:
        - ATM_BALANCE_INQUIRY
        - ATM_WITHDRAWAL
        - ATM_DECLINE
        - INTERNATIONAL_ATM_WITHDRAWAL
        - INACTIVITY
        - STATEMENT
        - MONTHLY
        - QUARTERLY
        - ANNUAL
        - CUSTOMER_SERVICE
        - ACCOUNT_MAINTENANCE
        - ACCOUNT_ACTIVATION
        - ACCOUNT_CLOSURE
        - CARD_REPLACEMENT
        - CARD_DELIVERY
        - CARD_CREATE
        - CURRENCY_CONVERSION
        - INTEREST
        - LATE_PAYMENT
        - BILL_PAYMENT
        - CASH_BACK
        - ACCOUNT_TO_ACCOUNT
        - CARD_TO_CARD
        - DISBURSE
        - BILLING_ERROR
        - LOSS_WRITE_OFF
        - EXPIRED_CARD
        - EARLY_DERECOGNITION
        - ESCHEATMENT
        - INACTIVITY_FEE_DOWN
        - PROVISIONAL_CREDIT
        - DISPUTE_WON
        - SERVICE
        - TRANSFER
        - COLLECTION
      description: Type of the book transfer
      title: Book Transfer Type
    book_transfer_detailed_results:
      title: Book Transfer Detailed Results
      type: string
      enum:
        - APPROVED
        - FUNDS_INSUFFICIENT
    book_transfer_event:
      title: Book Transfer Event
      description: Book transfer Event
      type: object
      properties:
        amount:
          description: Amount of the financial event that has been settled in the currency's smallest unit (e.g., cents).
          type: integer
        type:
          $ref: '#/components/schemas/book_transfer_type'
        result:
          description: >-
            APPROVED financial events were successful while DECLINED financial events were declined by user,
            Lithic, or the network.
          type: string
          enum:
            - APPROVED
            - DECLINED
        created:
          description: Date and time when the financial event occurred. UTC time zone.
          type: string
          format: date-time
        token:
          description: Globally unique identifier.
          type: string
          format: uuid
        subtype:
          description: The program specific subtype code for the specified category/type.
          type: string
        memo:
          description: Memo for the transfer.
          type: string
        detailed_results:
          type: array
          items:
            $ref: '#/components/schemas/book_transfer_detailed_results'
      required:
        - amount
        - type
        - result
        - created
        - token
        - subtype
        - memo
        - detailed_results
    transaction_series:
      title: Transaction Series
      type: object
      properties:
        type:
          type: string
          example: FEE
        related_transaction_token:
          oneOf:
            - type: string
              format: uuid
              example: 123e4567-e89b-12d3-a456-426614174000
            - type: 'null'
        related_transaction_event_token:
          oneOf:
            - type: string
              format: uuid
              example: 123e4567-e89b-12d3-a456-426614174000
            - type: 'null'
      required:
        - type
        - related_transaction_token
        - related_transaction_event_token
    external_resource_type:
      title: ExternalResourceType
      type: string
      enum:
        - STATEMENT
        - COLLECTION
        - DISPUTE
        - UNKNOWN
      description: Type of external resource associated with the management operation
    external_resource:
      title: ExternalResource
      type: object
      required:
        - external_resource_type
        - external_resource_token
      properties:
        external_resource_type:
          $ref: '#/components/schemas/external_resource_type'
        external_resource_token:
          type: string
          description: Token identifying the external resource
        external_resource_sub_token:
          type: string
          description: Token identifying the external resource sub-resource
      description: External resource associated with the management operation
      additionalProperties: false
    book-transfer-transaction:
      title: Book Transfer Transaction
      description: Book transfer transaction
      allOf:
        - $ref: '#/components/schemas/base_transaction'
        - type: object
          properties:
            family:
              type: string
              const: TRANSFER
              description: TRANSFER - Book Transfer Transaction
            result:
              $ref: '#/components/schemas/transaction_result'
            category:
              $ref: '#/components/schemas/book_transfer_category'
            currency:
              type: string
              description: 3-character alphabetic ISO 4217 code for the settling currency of the transaction
              example: USD
            settled_amount:
              type: integer
              description: Amount of the transaction that has been settled in the currency's smallest unit (e.g., cents)
              example: 500
            pending_amount:
              type: integer
              description: >
                Pending amount of the transaction in the currency's smallest unit (e.g., cents), including any
                acquirer fees.


                The value of this field will go to zero over time once the financial transaction is settled.
              example: 1000
            events:
              type: array
              items:
                $ref: '#/components/schemas/book_transfer_event'
              description: A list of all financial events that have modified this transfer
            from_financial_account_token:
              type: string
              format: uuid
              description: >-
                Globally unique identifier for the financial account or card that will send the funds.
                Accepted type dependent on the program's use case
            to_financial_account_token:
              type: string
              format: uuid
              description: >-
                Globally unique identifier for the financial account or card that will receive the funds.
                Accepted type dependent on the program's use case
            external_id:
              description: External ID defined by the customer
              oneOf:
                - type: string
                - type: 'null'
            transaction_series:
              description: A series of transactions that are grouped together
              oneOf:
                - $ref: '#/components/schemas/transaction_series'
                - type: 'null'
            external_resource:
              description: An external resource associated with the transfer
              oneOf:
                - $ref: '#/components/schemas/external_resource'
                - type: 'null'
          required:
            - family
            - result
            - category
            - currency
            - settled_amount
            - pending_amount
            - events
            - from_financial_account_token
            - to_financial_account_token
    currency:
      description: 3-character alphabetic ISO 4217 currency
      example: USD
      title: Currency
      type: string
    transaction_amounts:
      title: Transaction Amounts
      type: object
      properties:
        cardholder:
          properties:
            amount:
              description: The estimated settled amount of the transaction in the cardholder billing currency.
              type: integer
              example: -1000
            conversion_rate:
              description: The exchange rate used to convert the merchant amount to the cardholder billing amount.
              type: string
              example: '1.000000'
            currency:
              $ref: '#/components/schemas/currency'
          type: object
          required:
            - amount
            - conversion_rate
            - currency
        hold:
          properties:
            amount:
              description: The pending amount of the transaction in the anticipated settlement currency.
              type: integer
              example: 0
            currency:
              $ref: '#/components/schemas/currency'
          type: object
          required:
            - amount
            - currency
        merchant:
          properties:
            amount:
              description: The settled amount of the transaction in the merchant currency.
              type: integer
              example: -1000
            currency:
              $ref: '#/components/schemas/currency'
          type: object
          required:
            - amount
            - currency
        settlement:
          properties:
            amount:
              description: The settled amount of the transaction in the settlement currency.
              type: integer
              example: -1000
            currency:
              $ref: '#/components/schemas/currency'
          type: object
          required:
            - amount
            - currency
      required:
        - cardholder
        - hold
        - merchant
        - settlement
    avs:
      title: Address Verification Service
      type: object
      properties:
        address:
          description: Cardholder address
          type: string
        zipcode:
          description: Cardholder ZIP code
          type: string
      required:
        - address
        - zipcode
    cardholder_authentication:
      title: Cardholder Authentication
      type: object
      properties:
        authentication_result:
          description: Indicates the outcome of the 3DS authentication process.
          enum:
            - ATTEMPTS
            - DECLINE
            - NONE
            - SUCCESS
          example: SUCCESS
          type: string
        authentication_method:
          description: Indicates the method used to authenticate the cardholder.
          enum:
            - FRICTIONLESS
            - CHALLENGE
            - NONE
          example: FRICTIONLESS
          type: string
        decision_made_by:
          description: Indicates which party made the 3DS authentication decision.
          enum:
            - CUSTOMER_RULES
            - CUSTOMER_ENDPOINT
            - LITHIC_DEFAULT
            - LITHIC_RULES
            - NETWORK
            - UNKNOWN
          example: LITHIC_RULES
          type: string
        liability_shift:
          description: |
            Indicates whether chargeback liability shift applies to the transaction. Possible enum values:
              * `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D Secure flow, chargeback liability shift applies.
              * `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the merchant is liable.
              * `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated cryptography, possibly recurring. Chargeback liability shift to the issuer applies.
          example: 3DS_AUTHENTICATED
          enum:
            - 3DS_AUTHENTICATED
            - TOKEN_AUTHENTICATED
            - NONE
          type: string
        three_ds_authentication_token:
          oneOf:
            - type: 'null'
              description: 3DS authentication token not available.
            - type: string
              example: a6e372d0-b40a-43eb-b0d1-4e1aebef5875
              format: uuid
              description: >-
                Unique identifier you can use to match a given 3DS authentication (available via the
                three_ds_authentication.created event webhook) and the transaction. Note that in cases where
                liability shift does not occur, this token is matched to the transaction on a best-effort
                basis.
      required:
        - authentication_result
        - authentication_method
        - decision_made_by
        - liability_shift
        - three_ds_authentication_token
    account_type:
      type: string
      enum:
        - CHECKING
        - SAVINGS
      title: Searchable Account Type
      x-stainless-naming:
        java:
          type_name: AccountType
    transaction_event_amounts:
      title: Transaction Event Amounts
      type: object
      properties:
        cardholder:
          type: object
          properties:
            amount:
              description: Amount of the event in the cardholder billing currency.
              type: integer
              example: 1000
            conversion_rate:
              description: Exchange rate used to convert the merchant amount to the cardholder billing amount.
              type: string
              example: '1.000000'
            currency:
              $ref: '#/components/schemas/currency'
          required:
            - amount
            - conversion_rate
            - currency
        merchant:
          type: object
          properties:
            amount:
              description: Amount of the event in the merchant currency.
              type: integer
              example: 1000
            currency:
              $ref: '#/components/schemas/currency'
          required:
            - amount
            - currency
        settlement:
          type:
            - object
            - 'null'
          properties:
            amount:
              description: >-
                Amount of the event, if it is financial, in the settlement currency. Non-financial events do
                not contain this amount because they do not move funds.
              type: integer
              example: 1000
            conversion_rate:
              description: Exchange rate used to convert the merchant amount to the settlement amount.
              type: string
              example: '1.000000'
            currency:
              $ref: '#/components/schemas/currency'
          required:
            - amount
            - conversion_rate
            - currency
      required:
        - cardholder
        - merchant
        - settlement
    network_info:
      title: Network Information
      oneOf:
        - type: 'null'
        - type: object
      description: >-
        Information provided by the card network in each event. This includes common identifiers shared
        between you, Lithic, the card network and in some cases the acquirer. These identifiers often link
        together events within the same transaction lifecycle and can be used to locate a particular
        transaction, such as during processing of disputes. Not all fields are available in all events, and
        the presence of these fields is dependent on the card network and the event type. If the field is
        populated by the network, we will pass it through as is unless otherwise specified. Please consult the
        official network documentation for more details about these fields and how to use them.
      properties:
        acquirer:
          properties:
            acquirer_reference_number:
              description: >-
                Identifier assigned by the acquirer, applicable to dual-message transactions only. The
                acquirer reference number (ARN) is only populated once a transaction has been cleared, and it
                is not available in all transactions (such as automated fuel dispenser transactions). A single
                transaction can contain multiple ARNs if the merchant sends multiple clearings.
              oneOf:
                - type: 'null'
                - type: string
            retrieval_reference_number:
              description: Identifier assigned by the acquirer.
              oneOf:
                - type: 'null'
                - type: string
          oneOf:
            - type: 'null'
            - type: object
          required:
            - acquirer_reference_number
            - retrieval_reference_number
        amex:
          properties:
            transaction_id:
              description: >-
                Identifier assigned by American Express to link original messages to subsequent messages.
                Guaranteed by American Express to be unique for each original authorization and financial
                authorization.
              oneOf:
                - type: 'null'
                - type: string
            original_transaction_id:
              description: >-
                Identifier assigned by American Express. Matches the `transaction_id` of a prior related
                event. May be populated in incremental authorizations (authorization requests that augment a
                previously authorized amount), authorization advices, financial authorizations, and clearings.
              oneOf:
                - type: 'null'
                - type: string
          oneOf:
            - type: 'null'
            - type: object
          required:
            - transaction_id
            - original_transaction_id
        mastercard:
          properties:
            banknet_reference_number:
              description: >-
                Identifier assigned by Mastercard. Guaranteed by Mastercard to be unique for any transaction
                within a specific financial network on any processing day.
              oneOf:
                - type: 'null'
                - type: string
            switch_serial_number:
              description: Identifier assigned by Mastercard, applicable to single-message transactions only.
              oneOf:
                - type: 'null'
                - type: string
            original_banknet_reference_number:
              description: >-
                Identifier assigned by Mastercard. Matches the `banknet_reference_number` of a prior related
                event. May be populated in authorization reversals, incremental authorizations (authorization
                requests that augment a previously authorized amount), automated fuel dispenser authorization
                advices and clearings, and financial authorizations. If the original banknet reference number
                contains all zeroes, then no actual reference number could be found by the network or
                acquirer. If Mastercard converts a transaction from dual-message to single-message, such as
                for certain ATM transactions, it will populate the original banknet reference number in the
                resulting financial authorization with the banknet reference number of the initial
                authorization, which Lithic does not receive.
              oneOf:
                - type: 'null'
                - type: string
            original_switch_serial_number:
              description: >-
                Identifier assigned by Mastercard. Matches the `switch_serial_number` of a prior related
                event. May be populated in returns and return reversals. Applicable to single-message
                transactions only.
              oneOf:
                - type: 'null'
                - type: string
          oneOf:
            - type: 'null'
            - type: object
          required:
            - banknet_reference_number
            - switch_serial_number
            - original_banknet_reference_number
            - original_switch_serial_number
        visa:
          properties:
            transaction_id:
              description: >-
                Identifier assigned by Visa to link original messages to subsequent messages. Guaranteed by
                Visa to be unique for each original authorization and financial authorization.
              oneOf:
                - type: 'null'
                - type: string
            original_transaction_id:
              description: >-
                Identifier assigned by Visa. Matches the `transaction_id` of a prior related event. May be
                populated in incremental authorizations (authorization requests that augment a previously
                authorized amount), authorization advices, financial authorizations, and clearings.
              oneOf:
                - type: 'null'
                - type: string
          oneOf:
            - type: 'null'
            - type: object
          required:
            - transaction_id
            - original_transaction_id
      required:
        - acquirer
        - amex
        - mastercard
        - visa
    mastercard_network_specific_data:
      title: Mastercard Network Specific Data
      type: object
      properties:
        transaction_type_identifier:
          oneOf:
            - type: 'null'
              description: Transaction type identifier not available.
            - type: string
              description: Indicates the type of additional transaction purpose.
              minLength: 3
              maxLength: 3
        ecommerce_security_level_indicator:
          oneOf:
            - type: 'null'
              description: Electronic commerce security level indicator not available.
            - type: string
              description: Indicates the electronic commerce security level and UCAF collection.
              minLength: 3
              maxLength: 3
        on_behalf_service_result:
          oneOf:
            - type: 'null'
              description: On-behalf service result not available.
            - type: array
              items:
                type: object
                properties:
                  service:
                    type: string
                    description: Indicates the service performed on the transaction.
                    minLength: 2
                    maxLength: 2
                  result_1:
                    type: string
                    description: Indicates the results of the service processing.
                    minLength: 1
                    maxLength: 1
                  result_2:
                    type: string
                    description: Identifies the results of the service processing.
                    minLength: 1
                    maxLength: 1
                required:
                  - service
                  - result_1
                  - result_2
              description: >-
                The On-behalf Service performed on the transaction and the results. Contains all applicable,
                on-behalf service results that were performed on a given transaction.
              maxItems: 10
      required:
        - transaction_type_identifier
        - ecommerce_security_level_indicator
        - on_behalf_service_result
    visa_network_specific_data:
      title: Visa Network Specific Data
      type: object
      properties:
        business_application_identifier:
          oneOf:
            - type: 'null'
              description: Business application identifier not available.
            - type: string
              description: >-
                Identifies the purpose or category of a transaction, used to classify and process transactions
                according to Visa’s rules.
              minLength: 2
              maxLength: 2
      required:
        - business_application_identifier
    network_specific_data:
      title: Network Specific Data
      type: object
      properties:
        mastercard:
          $ref: '#/components/schemas/mastercard_network_specific_data'
        visa:
          $ref: '#/components/schemas/visa_network_specific_data'
      required:
        - mastercard
        - visa
    rule_result:
      title: Detailed Rule Result
      type: object
      properties:
        auth_rule_token:
          description: >-
            The Auth Rule Token associated with the rule from which the decline originated. If this is set to
            null, then the decline was not associated with a customer-configured Auth Rule. This may happen in
            cases where a transaction is declined due to a Lithic-configured security or compliance rule, for
            example.
          oneOf:
            - type: 'null'
            - type: string
              format: uuid
        result:
          description: The detailed_result associated with this rule's decline.
          $ref: '#/components/schemas/detailed_result'
        name:
          description: The name for the rule, if any was configured.
          oneOf:
            - type: 'null'
            - type: string
        explanation:
          description: A human-readable explanation outlining the motivation for the rule's decline.
          oneOf:
            - type: 'null'
            - type: string
      required:
        - auth_rule_token
        - explanation
        - name
        - result
    decline_result:
      example: APPROVED
      title: Result of the transaction
      type: string
      enum:
        - ACCOUNT_PAUSED
        - ACCOUNT_STATE_TRANSACTION_FAIL
        - APPROVED
        - BANK_CONNECTION_ERROR
        - BANK_NOT_VERIFIED
        - CARD_CLOSED
        - CARD_PAUSED
        - DECLINED
        - FRAUD_ADVICE
        - IGNORED_TTL_EXPIRY
        - SUSPECTED_FRAUD
        - INACTIVE_ACCOUNT
        - INCORRECT_PIN
        - INVALID_CARD_DETAILS
        - INSUFFICIENT_FUNDS
        - INSUFFICIENT_FUNDS_PRELOAD
        - INVALID_TRANSACTION
        - MERCHANT_BLACKLIST
        - ORIGINAL_NOT_FOUND
        - PREVIOUSLY_COMPLETED
        - SINGLE_USE_RECHARGED
        - SWITCH_INOPERATIVE_ADVICE
        - UNAUTHORIZED_MERCHANT
        - UNKNOWN_HOST_TIMEOUT
        - USER_TRANSACTION_LIMIT
    transaction_event:
      title: Transaction Event
      type: object
      properties:
        account_type:
          $ref: '#/components/schemas/account_type'
        amount:
          description: Amount of the event in the settlement currency.
          example: 1000
          type: integer
          deprecated: true
        amounts:
          $ref: '#/components/schemas/transaction_event_amounts'
        created:
          description: RFC 3339 date and time this event entered the system. UTC time zone.
          example: '2023-09-26T21:14:28.637Z'
          format: date-time
          type: string
        network_info:
          $ref: '#/components/schemas/network_info'
        network_specific_data:
          $ref: '#/components/schemas/network_specific_data'
        detailed_results:
          items:
            $ref: '#/components/schemas/detailed_result'
          type: array
        rule_results:
          items:
            $ref: '#/components/schemas/rule_result'
          type: array
        effective_polarity:
          description: Indicates whether the transaction event is a credit or debit to the account.
          example: DEBIT
          enum:
            - CREDIT
            - DEBIT
          type: string
        result:
          $ref: '#/components/schemas/decline_result'
        token:
          description: Transaction event identifier.
          example: 0c2adae9-f535-4505-8c35-421dad9bd0b6
          format: uuid
          type: string
        type:
          description: Type of transaction event
          example: CLEARING
          enum:
            - AUTHORIZATION
            - AUTHORIZATION_ADVICE
            - AUTHORIZATION_EXPIRY
            - AUTHORIZATION_REVERSAL
            - BALANCE_INQUIRY
            - CLEARING
            - CORRECTION_CREDIT
            - CORRECTION_DEBIT
            - CREDIT_AUTHORIZATION
            - CREDIT_AUTHORIZATION_ADVICE
            - FINANCIAL_AUTHORIZATION
            - FINANCIAL_CREDIT_AUTHORIZATION
            - RETURN
            - RETURN_REVERSAL
          type: string
      required:
        - amount
        - amounts
        - created
        - detailed_results
        - effective_polarity
        - result
        - token
        - type
        - rule_results
        - network_info
    merchant:
      title: Merchant
      type: object
      properties:
        acceptor_id:
          description: Unique alphanumeric identifier for the payment card acceptor (merchant).
          example: '333301802529120'
          type: string
        acquiring_institution_id:
          description: Unique numeric identifier of the acquiring institution.
          example: '191231'
          type: string
        city:
          description: >-
            City of card acceptor. Note that in many cases, particularly in card-not-present transactions,
            merchants may send through a phone number or URL in this field.
          example: NEW YORK
          type: string
        country:
          description: >-
            Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1 alpha-3 country codes,
            (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.
          example: USA
          type: string
        descriptor:
          description: Short description of card acceptor.
          example: COFFEE SHOP
          type: string
        mcc:
          description: >-
            Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is used to classify
            a business by the types of goods or services it provides.
          example: '5812'
          type: string
        state:
          description: Geographic state of card acceptor.
          example: NY
          type: string
      required:
        - acceptor_id
        - acquiring_institution_id
        - city
        - country
        - descriptor
        - mcc
        - state
    transaction_merchant:
      title: Transaction Merchant
      description: Merchant information including full location details.
      allOf:
        - $ref: '#/components/schemas/merchant'
        - type: object
          properties:
            postal_code:
              description: Postal code of card acceptor.
              example: '10001'
              type:
                - string
                - 'null'
            street_address:
              description: Street address of card acceptor.
              example: 123 MAIN ST
              type:
                - string
                - 'null'
            phone_number:
              description: Phone number of card acceptor.
              example: '5551234567'
              type:
                - string
                - 'null'
          required:
            - postal_code
            - street_address
            - phone_number
    service_location:
      title: Service Location
      description: >-
        Where the cardholder received the service, when different from the card acceptor location. This is
        populated from network data elements such as Mastercard DE-122 SE1 SF9-14 and Visa F34 DS02.
      type: object
      properties:
        street_address:
          description: Street address of service location.
          type:
            - string
            - 'null'
        city:
          description: City of service location.
          type:
            - string
            - 'null'
        state:
          description: State/province code of service location, ISO 3166-2.
          type:
            - string
            - 'null'
        country:
          description: Country code of service location, ISO 3166-1 alpha-3.
          type:
            - string
            - 'null'
        postal_code:
          description: Postal code of service location.
          type:
            - string
            - 'null'
      required:
        - street_address
        - city
        - state
        - country
        - postal_code
    merchant_currency:
      title: Merchant Currency
      description: 3-character alphabetic ISO 4217 code for the local currency of the transaction.
      example: USD
      type: string
    network_risk_score:
      title: Network Risk Score
      type:
        - integer
        - 'null'
      description: >-
        Network-provided score assessing risk level associated with a given authorization. Scores are on a
        range of 0-999, with 0 representing the lowest risk and 999 representing the highest risk. For Visa
        transactions, where the raw score has a range of 0-99, Lithic will normalize the score by multiplying
        the raw score by 10x.
    pos_entry_mode:
      title: Point of Sale Entry Mode
      type: object
      properties:
        card:
          type: string
          enum:
            - NOT_PRESENT
            - PREAUTHORIZED
            - PRESENT
            - UNKNOWN
          description: Card presence indicator
        cardholder:
          type: string
          enum:
            - DEFERRED_BILLING
            - ELECTRONIC_ORDER
            - INSTALLMENT
            - MAIL_ORDER
            - NOT_PRESENT
            - PREAUTHORIZED
            - PRESENT
            - REOCCURRING
            - TELEPHONE_ORDER
            - UNKNOWN
          description: Cardholder presence indicator
        pan:
          type: string
          enum:
            - AUTO_ENTRY
            - BAR_CODE
            - CONTACTLESS
            - CREDENTIAL_ON_FILE
            - ECOMMERCE
            - ERROR_KEYED
            - ERROR_MAGNETIC_STRIPE
            - ICC
            - KEY_ENTERED
            - MAGNETIC_STRIPE
            - MANUAL
            - OCR
            - SECURE_CARDLESS
            - UNKNOWN
            - UNSPECIFIED
          description: Method of entry for the PAN
        pin_entered:
          type: boolean
          description: Indicates whether the cardholder entered the PIN. True if the PIN was entered.
      required:
        - card
        - cardholder
        - pan
        - pin_entered
    pos_terminal:
      title: Point of Sale Terminal
      type: object
      properties:
        attended:
          description: True if a clerk is present at the sale.
          type: boolean
        card_retention_capable:
          description: True if the terminal is capable of retaining the card.
          type: boolean
        on_premise:
          description: True if the sale was made at the place of business (vs. mobile).
          type: boolean
        operator:
          description: The person that is designated to swipe the card
          enum:
            - ADMINISTRATIVE
            - CARDHOLDER
            - CARD_ACCEPTOR
            - UNKNOWN
          type: string
        partial_approval_capable:
          type: boolean
          description: >-
            True if the terminal is capable of partial approval. Partial approval is when part of a
            transaction is approved and another payment must be used for the remainder. Example scenario: A
            $40 transaction is attempted on a prepaid card with a $25 balance. If partial approval is enabled,
            $25 can be authorized, at which point the POS will prompt the user for an additional payment of
            $15.
        pin_capability:
          description: Status of whether the POS is able to accept PINs
          enum:
            - CAPABLE
            - INOPERATIVE
            - NOT_CAPABLE
            - UNSPECIFIED
          type: string
        acceptor_terminal_id:
          description: >-
            Uniquely identifies a terminal at the card acceptor location of acquiring institutions or merchant
            POS Systems
          type:
            - string
            - 'null'
        type:
          description: POS Type
          enum:
            - ADMINISTRATIVE
            - ATM
            - AUTHORIZATION
            - COUPON_MACHINE
            - DIAL_TERMINAL
            - ECOMMERCE
            - ECR
            - FUEL_MACHINE
            - HOME_TERMINAL
            - MICR
            - OFF_PREMISE
            - PAYMENT
            - PDA
            - PHONE
            - POINT
            - POS_TERMINAL
            - PUBLIC_UTILITY
            - SELF_SERVICE
            - TELEVISION
            - TELLER
            - TRAVELERS_CHECK_MACHINE
            - VENDING
            - VOICE
            - UNKNOWN
          type: string
      required:
        - attended
        - card_retention_capable
        - on_premise
        - operator
        - partial_approval_capable
        - pin_capability
        - type
    pos:
      title: Point of Sale
      type: object
      properties:
        entry_mode:
          $ref: '#/components/schemas/pos_entry_mode'
        terminal:
          $ref: '#/components/schemas/pos_terminal'
      required:
        - entry_mode
        - terminal
    token_info:
      title: Token Info
      type:
        - object
        - 'null'
      properties:
        wallet_type:
          description: >-
            The wallet_type field will indicate the source of the token. Possible token sources include
            digital wallets (Apple, Google, or Samsung Pay), merchant tokenization, and “other” sources like
            in-flight commerce. Masterpass is not currently supported and is included for future use.
          enum:
            - APPLE_PAY
            - GOOGLE_PAY
            - MASTERPASS
            - MERCHANT
            - OTHER
            - SAMSUNG_PAY
          type: string
      required:
        - wallet_type
    tags:
      title: Tags
      description: >-
        Key-value pairs for tagging resources. Tags allow you to associate arbitrary metadata with a resource
        for your own purposes.
      type: object
      additionalProperties:
        type: string
      example:
        risk-level: high
    card_transaction:
      title: Card Transaction
      type: object
      properties:
        acquirer_fee:
          description: >-
            Fee assessed by the merchant and paid for by the cardholder in the smallest unit of the currency.
            Will be zero if no fee is assessed. Rebates may be transmitted as a negative value to indicate
            credited fees.
          example: 0
          type:
            - integer
            - 'null'
        acquirer_reference_number:
          description: >-
            Unique identifier assigned to a transaction by the acquirer that can be used in dispute and
            chargeback filing. This field has been deprecated in favor of the `acquirer_reference_number` that
            resides in the event-level `network_info`.
          example: '12345678987654321234567'
          maxLength: 23
          minLength: 23
          type:
            - string
            - 'null'
          deprecated: true
        account_token:
          description: The token for the account associated with this transaction.
          example: bd5e5649-1be8-4117-9bc5-3268258d1417
          format: uuid
          type: string
        amount:
          description: >-
            When the transaction is pending, this represents the authorization amount of the transaction in
            the anticipated settlement currency. Once the transaction has settled, this field represents the
            settled amount in the settlement currency.
          example: 1000
          type: integer
          deprecated: true
        amounts:
          $ref: '#/components/schemas/transaction_amounts'
        authorization_amount:
          description: The authorization amount of the transaction in the anticipated settlement currency.
          example: 1000
          type:
            - integer
            - 'null'
          deprecated: true
        authorization_code:
          description: A fixed-width 6-digit numeric identifier that can be used to identify a transaction with networks.
          example: '123456'
          maxLength: 6
          minLength: 6
          type:
            - string
            - 'null'
        avs:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/avs'
        card_token:
          description: Token for the card used in this transaction.
          example: 19c22c47-7a75-43ee-9891-595419830f7e
          format: uuid
          type: string
        cardholder_authentication:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/cardholder_authentication'
        created:
          description: Date and time when the transaction first occurred. UTC time zone.
          example: '2023-09-26T21:14:28.637Z'
          format: date-time
          type: string
        events:
          items:
            $ref: '#/components/schemas/transaction_event'
          type: array
        financial_account_token:
          oneOf:
            - type: 'null'
            - format: uuid
              type: string
        merchant:
          $ref: '#/components/schemas/transaction_merchant'
        service_location:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/service_location'
        merchant_amount:
          description: Analogous to the 'amount', but in the merchant currency.
          example: 1000
          type:
            - integer
            - 'null'
          deprecated: true
        merchant_authorization_amount:
          description: Analogous to the 'authorization_amount', but in the merchant currency.
          example: 1000
          type:
            - integer
            - 'null'
          deprecated: true
        merchant_currency:
          deprecated: true
          $ref: '#/components/schemas/merchant_currency'
        network:
          description: >-
            Card network of the authorization. Value is `UNKNOWN` when Lithic cannot determine the network
            code from the upstream provider.
          enum:
            - AMEX
            - INTERLINK
            - MAESTRO
            - MASTERCARD
            - UNKNOWN
            - VISA
          example: MASTERCARD
          type:
            - string
            - 'null'
        network_risk_score:
          $ref: '#/components/schemas/network_risk_score'
        result:
          $ref: '#/components/schemas/decline_result'
        pos:
          $ref: '#/components/schemas/pos'
        settled_amount:
          title: Settled Amount
          description: The settled amount of the transaction in the settlement currency.
          type: integer
          example: 1000
          deprecated: true
        status:
          description: Status of the transaction.
          enum:
            - DECLINED
            - EXPIRED
            - PENDING
            - SETTLED
            - VOIDED
          example: SETTLED
          type: string
        token:
          description: Globally unique identifier.
          format: uuid
          type: string
        token_info:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/token_info'
        tags:
          $ref: '#/components/schemas/tags'
        updated:
          description: Date and time when the transaction last updated. UTC time zone.
          example: '2023-09-26T21:14:28.637Z'
          format: date-time
          type: string
      required:
        - acquirer_fee
        - acquirer_reference_number
        - account_token
        - amount
        - amounts
        - authorization_amount
        - authorization_code
        - avs
        - card_token
        - cardholder_authentication
        - created
        - financial_account_token
        - merchant_amount
        - merchant_authorization_amount
        - merchant_currency
        - merchant
        - service_location
        - network
        - network_risk_score
        - result
        - pos
        - settled_amount
        - status
        - tags
        - token
        - token_info
        - updated
      examples:
        - account_token: db3942f0-0627-4887-a190-1ea83b46d091
          acquirer_fee: 0
          acquirer_reference_number: null
          amount: 1800
          amounts:
            cardholder:
              amount: 0
              conversion_rate: '1.000000'
              currency: USD
            hold:
              amount: -1800
              currency: USD
            merchant:
              amount: 0
              currency: USD
            settlement:
              amount: 0
              currency: USD
          authorization_amount: 1800
          authorization_code: '071471'
          avs:
            zipcode: '95006'
            address: 123 Evergreen Terrace
          card_token: aac502f9-aecc-458a-954e-4bcf6edb6123
          cardholder_authentication:
            liability_shift: 3DS_AUTHENTICATED
            authentication_result: SUCCESS
            authentication_method: FRICTIONLESS
            three_ds_authentication_token: fc60d37d-95f7-419c-b628-dd9fbf9d80d0
            decision_made_by: NETWORK
          created: '2023-08-03T18:42:30Z'
          events:
            - amount: 1800
              amounts:
                cardholder:
                  amount: 1800
                  conversion_rate: '1.000000'
                  currency: USD
                merchant:
                  amount: 1800
                  currency: USD
                settlement: null
              created: '2023-08-03T18:42:30Z'
              detailed_results:
                - APPROVED
              effective_polarity: DEBIT
              network_info:
                acquirer:
                  acquirer_reference_number: null
                  retrieval_reference_number: '064386558597'
                amex: null
                mastercard:
                  banknet_reference_number: U1HSCJ
                  switch_serial_number: null
                  original_banknet_reference_number: null
                  original_switch_serial_number: null
                visa: null
              result: APPROVED
              rule_results: []
              token: bbbf1e86-322d-11ee-9779-00505685a123
              type: AUTHORIZATION
          financial_account_token: a3b113e8-01fe-42d3-b900-b9adf3f15496
          merchant:
            acceptor_id: '452322000053360'
            acquiring_institution_id: '333301802529120'
            city: gosq.com
            country: USA
            descriptor: SQ *SOMA EATS
            mcc: '5812'
            state: CA
            postal_code: '94107'
            street_address: null
            phone_number: null
          service_location: null
          merchant_amount: 1800
          merchant_authorization_amount: 1800
          merchant_currency: USD
          network: MASTERCARD
          network_risk_score: 5
          pos:
            entry_mode:
              card: NOT_PRESENT
              cardholder: NOT_PRESENT
              pan: ECOMMERCE
              pin_entered: false
            terminal:
              attended: false
              card_retention_capable: false
              on_premise: false
              operator: UNKNOWN
              partial_approval_capable: false
              pin_capability: NOT_CAPABLE
              type: UNKNOWN
          result: APPROVED
          settled_amount: 0
          status: PENDING
          tags:
            risk-level: high
          token: c30c2182-1e69-4e0d-b40f-eec0d2a19123
          token_info:
            wallet_type: APPLE_PAY
          updated: '2023-08-03T18:42:30Z'
    card-transaction:
      title: Card Transaction
      description: Card transaction with ledger base properties
      allOf:
        - $ref: '#/components/schemas/base_transaction'
        - $ref: '#/components/schemas/card_transaction'
        - type: object
          properties:
            family:
              type: string
              const: CARD
              description: CARD - Card Transaction
          required:
            - family
    wire_party_details:
      title: Wire Party Details
      type: object
      properties:
        name:
          type:
            - string
            - 'null'
          description: Name of the person or company
        account_number:
          type:
            - string
            - 'null'
          description: Account number
        agent_name:
          type:
            - string
            - 'null'
          description: Name of the financial institution
        agent_id:
          type:
            - string
            - 'null'
          description: Routing number or BIC of the financial institution
      required: []
    AchMethodAttributes:
      type: object
      properties:
        sec_code:
          type: string
          enum:
            - CCD
            - PPD
            - WEB
            - TEL
            - CIE
            - CTX
          description: SEC code for ACH transaction
        return_reason_code:
          type:
            - string
            - 'null'
          description: Return reason code if the transaction was returned
        ach_hold_period:
          type:
            - integer
            - 'null'
          minimum: 0
          description: Number of days the ACH transaction is on hold
        retries:
          type:
            - integer
            - 'null'
          minimum: 0
          description: Number of retries attempted
        company_id:
          type:
            - string
            - 'null'
          description: Company ID for the ACH transaction
        receipt_routing_number:
          type:
            - string
            - 'null'
          description: Receipt routing number
        trace_numbers:
          type: array
          items:
            type: string
          default: []
          description: Trace numbers for the ACH transaction
        addenda:
          type:
            - string
            - 'null'
          description: Addenda information
        override_company_name:
          type:
            - string
            - 'null'
          maxLength: 512
          description: Value to override the configured company name with. Can only be used if allowed to override
      required:
        - sec_code
    WireMethodAttributes:
      type: object
      properties:
        wire_network:
          type: string
          enum:
            - FEDWIRE
            - SWIFT
          description: Type of wire transfer
        wire_message_type:
          type:
            - string
            - 'null'
          description: Type of wire message
        debtor:
          $ref: '#/components/schemas/wire_party_details'
        creditor:
          $ref: '#/components/schemas/wire_party_details'
        message_id:
          type:
            - string
            - 'null'
          description: >-
            Point to point reference identifier, as assigned by the instructing party, used for tracking the
            message through the Fedwire system
        remittance_information:
          type:
            - string
            - 'null'
          description: Payment details or invoice reference
      required:
        - wire_network
        - wire_message_type
    payment_event_type:
      title: Payment Event Type
      description: >-
        Note: Inbound wire transfers are coming soon (availability varies by partner bank). Wire-related event
        types below are a preview. To learn more, contact your customer success manager.


        Event types:


        ACH events:

        * `ACH_ORIGINATION_INITIATED` - ACH origination received and pending approval/release from an ACH
        hold.

        * `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.

        * `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled.

        * `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to the Federal Reserve.

        * `ACH_ORIGINATION_SETTLED` - ACH origination has settled.

        * `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to available balance.

        * `ACH_ORIGINATION_REJECTED` - ACH origination was rejected and not sent to the Federal Reserve.

        * `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder.

        * `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.

        * `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available balance.

        * `ACH_RECEIPT_RELEASED_EARLY` - ACH receipt released early from pending to available balance.

        * `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.

        * `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository Financial Institution.

        * `ACH_RETURN_SETTLED` - ACH return settled by the Receiving Depository Financial Institution.

        * `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository Financial Institution.


        Wire transfer events:

        * `WIRE_TRANSFER_INBOUND_RECEIVED` - Inbound wire transfer received from the Federal Reserve and
        pending release to available balance.

        * `WIRE_TRANSFER_INBOUND_SETTLED` - Inbound wire transfer funds released from pending to available
        balance.

        * `WIRE_TRANSFER_INBOUND_BLOCKED` - Inbound wire transfer blocked and funds frozen for regulatory
        review.


        Wire return events:

        * `WIRE_RETURN_OUTBOUND_INITIATED` - Outbound wire return initiated to return funds from an inbound
        wire transfer.

        * `WIRE_RETURN_OUTBOUND_SENT` - Outbound wire return sent to the Federal Reserve and pending
        acceptance.

        * `WIRE_RETURN_OUTBOUND_SETTLED` - Outbound wire return accepted by the Federal Reserve and funds
        returned to sender.

        * `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal Reserve.
      type: string
      enum:
        - ACH_ORIGINATION_CANCELLED
        - ACH_ORIGINATION_INITIATED
        - ACH_ORIGINATION_PROCESSED
        - ACH_ORIGINATION_REJECTED
        - ACH_ORIGINATION_RELEASED
        - ACH_ORIGINATION_REVIEWED
        - ACH_ORIGINATION_SETTLED
        - ACH_RECEIPT_PROCESSED
        - ACH_RECEIPT_RELEASED
        - ACH_RECEIPT_RELEASED_EARLY
        - ACH_RECEIPT_SETTLED
        - ACH_RETURN_INITIATED
        - ACH_RETURN_PROCESSED
        - ACH_RETURN_REJECTED
        - ACH_RETURN_SETTLED
        - WIRE_TRANSFER_INBOUND_RECEIVED
        - WIRE_TRANSFER_INBOUND_SETTLED
        - WIRE_TRANSFER_INBOUND_BLOCKED
        - WIRE_RETURN_OUTBOUND_INITIATED
        - WIRE_RETURN_OUTBOUND_SENT
        - WIRE_RETURN_OUTBOUND_SETTLED
        - WIRE_RETURN_OUTBOUND_REJECTED
    payment_event:
      title: Payment Event
      description: >-
        Note: Inbound wire transfers are coming soon (availability varies by partner bank). Wire-related
        fields below are a preview. To learn more, contact your customer success manager.


        Payment Event
      type: object
      properties:
        amount:
          description: Amount of the financial event that has been settled in the currency's smallest unit (e.g., cents).
          type: integer
        created:
          description: Date and time when the financial event occurred. UTC time zone.
          type: string
          format: date-time
        detailed_results:
          description: More detailed reasons for the event
          type: array
          items:
            type: string
            enum:
              - APPROVED
              - DECLINED
              - FUNDS_INSUFFICIENT
              - ACCOUNT_INVALID
              - PROGRAM_TRANSACTION_LIMIT_EXCEEDED
              - PROGRAM_DAILY_LIMIT_EXCEEDED
              - PROGRAM_MONTHLY_LIMIT_EXCEEDED
        result:
          description: >-
            APPROVED financial events were successful while DECLINED financial events were declined by user,
            Lithic, or the network.
          type: string
          enum:
            - APPROVED
            - DECLINED
        token:
          description: Globally unique identifier.
          type: string
          format: uuid
        type:
          $ref: '#/components/schemas/payment_event_type'
        external_id:
          description: |
            Payment event external ID. For ACH transactions, this is the ACH trace number.
            For inbound wire transfers, this is the IMAD (Input Message Accountability Data).
          type:
            - string
            - 'null'
      required:
        - amount
        - created
        - result
        - token
        - type
    related_account_tokens:
      title: Related Account Tokens
      description: Account tokens related to a payment transaction
      type: object
      properties:
        business_account_token:
          type:
            - string
            - 'null'
          format: uuid
          title: Business Account Token
          description: Globally unique identifier for the business account
        account_token:
          type:
            - string
            - 'null'
          format: uuid
          title: Account Token
          description: Globally unique identifier for the account
      required:
        - business_account_token
        - account_token
    transfer_type:
      type: string
      enum:
        - ORIGINATION_CREDIT
        - ORIGINATION_DEBIT
        - RECEIPT_CREDIT
        - RECEIPT_DEBIT
        - WIRE_INBOUND_PAYMENT
        - WIRE_INBOUND_ADMIN
        - WIRE_OUTBOUND_PAYMENT
        - WIRE_OUTBOUND_ADMIN
        - WIRE_INBOUND_DRAWDOWN_REQUEST
      title: Transfer Type
    payment-transaction:
      title: Payment Transaction
      description: Payment transaction
      definitions:
        AchMethodAttributes:
          type: object
          properties:
            sec_code:
              type: string
              enum:
                - CCD
                - PPD
                - WEB
                - TEL
                - CIE
                - CTX
              description: SEC code for ACH transaction
            return_reason_code:
              type:
                - string
                - 'null'
              description: Return reason code if the transaction was returned
            ach_hold_period:
              type:
                - integer
                - 'null'
              minimum: 0
              description: Number of days the ACH transaction is on hold
            retries:
              type:
                - integer
                - 'null'
              minimum: 0
              description: Number of retries attempted
            company_id:
              type:
                - string
                - 'null'
              description: Company ID for the ACH transaction
            receipt_routing_number:
              type:
                - string
                - 'null'
              description: Receipt routing number
            trace_numbers:
              type: array
              items:
                type: string
              default: []
              description: Trace numbers for the ACH transaction
            addenda:
              type:
                - string
                - 'null'
              description: Addenda information
            override_company_name:
              type:
                - string
                - 'null'
              maxLength: 512
              description: Value to override the configured company name with. Can only be used if allowed to override
          required:
            - sec_code
        WireMethodAttributes:
          type: object
          properties:
            wire_network:
              type: string
              enum:
                - FEDWIRE
                - SWIFT
              description: Type of wire transfer
            wire_message_type:
              type:
                - string
                - 'null'
              description: Type of wire message
            debtor:
              $ref: '#/components/schemas/wire_party_details'
            creditor:
              $ref: '#/components/schemas/wire_party_details'
            message_id:
              type:
                - string
                - 'null'
              description: >-
                Point to point reference identifier, as assigned by the instructing party, used for tracking
                the message through the Fedwire system
            remittance_information:
              type:
                - string
                - 'null'
              description: Payment details or invoice reference
          required:
            - wire_network
            - wire_message_type
      allOf:
        - $ref: '#/components/schemas/base_transaction'
        - type: object
          properties:
            family:
              type: string
              const: PAYMENT
              description: PAYMENT - Payment Transaction
            category:
              $ref: '#/components/schemas/transaction_category'
              description: Transaction category
            currency:
              type: string
              description: Currency of the transaction in ISO 4217 format
              example: USD
            result:
              $ref: '#/components/schemas/transaction_result'
              description: Transaction result
            method_attributes:
              oneOf:
                - $ref: '#/components/schemas/AchMethodAttributes'
                - $ref: '#/components/schemas/WireMethodAttributes'
              description: Method-specific attributes
            financial_account_token:
              type: string
              format: uuid
              description: Financial account token
            external_bank_account_token:
              type:
                - string
                - 'null'
              format: uuid
              description: External bank account token
            direction:
              type: string
              enum:
                - CREDIT
                - DEBIT
              description: Transfer direction
            source:
              type: string
              enum:
                - LITHIC
                - EXTERNAL
                - CUSTOMER
              description: Transaction source
            method:
              type: string
              enum:
                - ACH_NEXT_DAY
                - ACH_SAME_DAY
                - WIRE
              description: Transfer method
            settled_amount:
              type: integer
              description: Settled amount in cents
              example: 500
            pending_amount:
              type: integer
              description: Pending amount in cents
              example: 200
            events:
              type: array
              items:
                $ref: '#/components/schemas/payment_event'
              description: List of transaction events
            descriptor:
              type: string
              description: Transaction descriptor
            user_defined_id:
              type:
                - string
                - 'null'
              description: User-defined identifier
            expected_release_date:
              type:
                - string
                - 'null'
              format: date
              description: Expected release date for the transaction
            related_account_tokens:
              oneOf:
                - $ref: '#/components/schemas/related_account_tokens'
                - type: 'null'
              description: Related account tokens for the transaction
            type:
              $ref: '#/components/schemas/transfer_type'
          required:
            - category
            - result
            - method_attributes
            - family
            - financial_account_token
            - direction
            - source
            - method
            - settled_amount
            - pending_amount
            - events
            - descriptor
            - related_account_tokens
      examples:
        - family: PAYMENT
          status: PENDING
          token: bd4efddb-771b-49e3-9af9-49b077ab5eb8
          created: '2025-10-27T20:12:22Z'
          updated: '2025-10-27T20:12:25Z'
          category: ACH
          result: APPROVED
          method_attributes:
            sec_code: CCD
            return_reason_code: null
            ach_hold_period: 1
            retries: 0
            company_id: '1111111111'
            receipt_routing_number: null
            trace_numbers: []
            addenda: null
          financial_account_token: 35b0c466-a3e3-519a-9549-ead6a6a2277d
          external_bank_account_token: feb4fee1-2414-4c38-a5f6-9deac293c8f4
          direction: CREDIT
          source: LITHIC
          method: ACH_NEXT_DAY
          settled_amount: 0
          pending_amount: -1588
          currency: USD
          events:
            - amount: -1588
              type: ACH_ORIGINATION_INITIATED
              result: APPROVED
              created: '2025-10-27T20:12:22Z'
              token: 327dccc3-fe42-54d2-962c-7f8135805464
              detailed_results:
                - APPROVED
            - amount: -1588
              type: ACH_ORIGINATION_REVIEWED
              result: APPROVED
              created: '2025-10-27T20:12:25Z'
              token: f9165477-7cfc-53c6-98f1-84e9ec856a60
              detailed_results:
                - APPROVED
          descriptor: ach_origination_credit
          user_defined_id: null
          expected_release_date: null
          related_account_tokens: null
          type: ORIGINATION_CREDIT
        - family: PAYMENT
          status: PENDING
          token: cb35759d-8c18-4b7f-bb91-7c37936662c2
          created: '2025-10-27T20:12:15Z'
          updated: '2025-10-27T20:12:18Z'
          category: ACH
          result: APPROVED
          method_attributes:
            sec_code: CCD
            return_reason_code: null
            ach_hold_period: 2
            retries: 0
            company_id: '1111111111'
            receipt_routing_number: null
            trace_numbers: []
            addenda: null
          financial_account_token: f012262b-d18f-5c26-ad63-a09a11e633a6
          external_bank_account_token: feb4fee1-2414-4c38-a5f6-9deac293c8f4
          direction: DEBIT
          source: LITHIC
          method: ACH_NEXT_DAY
          settled_amount: 0
          pending_amount: 1588
          currency: USD
          events:
            - amount: 1588
              type: ACH_ORIGINATION_INITIATED
              result: APPROVED
              created: '2025-10-27T20:12:15Z'
              token: 38dc6bc5-d18f-594e-9ab9-ef1cfdcfbf82
              detailed_results:
                - APPROVED
            - amount: 1588
              type: ACH_ORIGINATION_REVIEWED
              result: APPROVED
              created: '2025-10-27T20:12:18Z'
              token: e466f34a-d648-5a8f-8bc7-1d4d1e703db3
              detailed_results:
                - APPROVED
          descriptor: ach_origination_debit
          user_defined_id: null
          expected_release_date: null
          related_account_tokens:
            business_account_token: null
            account_token: d11bca22-39e2-475c-bbb3-6ba21e38b0d3
          type: ORIGINATION_DEBIT
        - family: PAYMENT
          status: SETTLED
          token: dd72f435-9633-46f3-b871-47d4af684654
          created: '2024-10-08T21:39:27Z'
          updated: '2024-10-08T21:39:28Z'
          category: ACH
          result: APPROVED
          method_attributes:
            sec_code: CCD
            return_reason_code: null
            ach_hold_period: 2
            retries: 0
            company_id: '1111111111'
            receipt_routing_number: '1234567890'
            trace_numbers:
              - '316779406684861'
            addenda: null
          financial_account_token: 0d6b1b9f-b90f-5f03-9c45-8930d5a6aac0
          external_bank_account_token: null
          direction: DEBIT
          source: LITHIC
          method: ACH_SAME_DAY
          settled_amount: 1000
          pending_amount: 0
          currency: USD
          events:
            - amount: 1000
              type: ACH_RECEIPT_PROCESSED
              result: APPROVED
              created: '2024-10-08T21:39:27Z'
              token: 99ff8ea0-2355-57fc-aa9d-0e953f64ba4f
              detailed_results:
                - APPROVED
            - amount: 1000
              type: ACH_RECEIPT_SETTLED
              result: APPROVED
              created: '2024-10-08T21:39:28Z'
              token: 33d0ae98-310c-5b50-a012-1bcd8edb9254
              detailed_results:
                - APPROVED
          descriptor: ach_receipt_credit
          user_defined_id: null
          expected_release_date: null
          related_account_tokens: null
          type: RECEIPT_CREDIT
    external_payment_category:
      title: External Payment Category
      type: string
      enum:
        - EXTERNAL_WIRE
        - EXTERNAL_ACH
        - EXTERNAL_CHECK
        - EXTERNAL_FEDNOW
        - EXTERNAL_RTP
        - EXTERNAL_TRANSFER
    external_payment_event_type:
      title: External Payment Event Type
      type: string
      enum:
        - EXTERNAL_WIRE_INITIATED
        - EXTERNAL_WIRE_CANCELED
        - EXTERNAL_WIRE_SETTLED
        - EXTERNAL_WIRE_REVERSED
        - EXTERNAL_WIRE_RELEASED
        - EXTERNAL_ACH_INITIATED
        - EXTERNAL_ACH_CANCELED
        - EXTERNAL_ACH_SETTLED
        - EXTERNAL_ACH_REVERSED
        - EXTERNAL_ACH_RELEASED
        - EXTERNAL_TRANSFER_INITIATED
        - EXTERNAL_TRANSFER_CANCELED
        - EXTERNAL_TRANSFER_SETTLED
        - EXTERNAL_TRANSFER_REVERSED
        - EXTERNAL_TRANSFER_RELEASED
        - EXTERNAL_CHECK_INITIATED
        - EXTERNAL_CHECK_CANCELED
        - EXTERNAL_CHECK_SETTLED
        - EXTERNAL_CHECK_REVERSED
        - EXTERNAL_CHECK_RELEASED
        - EXTERNAL_FEDNOW_INITIATED
        - EXTERNAL_FEDNOW_CANCELED
        - EXTERNAL_FEDNOW_SETTLED
        - EXTERNAL_FEDNOW_REVERSED
        - EXTERNAL_FEDNOW_RELEASED
        - EXTERNAL_RTP_INITIATED
        - EXTERNAL_RTP_CANCELED
        - EXTERNAL_RTP_SETTLED
        - EXTERNAL_RTP_REVERSED
        - EXTERNAL_RTP_RELEASED
    external_payment_event:
      title: External Payment Event
      type: object
      properties:
        amount:
          type: integer
        type:
          $ref: '#/components/schemas/external_payment_event_type'
        result:
          $ref: '#/components/schemas/transaction_result'
        detailed_results:
          type: array
          items:
            $ref: '#/components/schemas/detailed_results'
        created:
          type: string
          format: date-time
        token:
          type: string
          format: uuid
        memo:
          type: string
        effective_date:
          type: string
          format: date
      required:
        - amount
        - type
        - result
        - detailed_results
        - created
        - token
        - memo
        - effective_date
    external_payment_direction:
      title: External Payment Direction
      type: string
      enum:
        - DEPOSIT
        - WITHDRAWAL
    external_payment_response:
      title: External Payment Response
      allOf:
        - $ref: '#/components/schemas/base_transaction'
        - type: object
          properties:
            family:
              type: string
              const: EXTERNAL_PAYMENT
              description: EXTERNAL_PAYMENT - External Payment Response
            result:
              $ref: '#/components/schemas/transaction_result'
            category:
              $ref: '#/components/schemas/external_payment_category'
            settled_amount:
              type: integer
            pending_amount:
              type: integer
            currency:
              type: string
            events:
              type: array
              items:
                $ref: '#/components/schemas/external_payment_event'
            user_defined_id:
              type:
                - string
                - 'null'
            financial_account_token:
              type: string
              format: uuid
            payment_type:
              $ref: '#/components/schemas/external_payment_direction'
      required:
        - result
        - category
        - family
        - settled_amount
        - pending_amount
        - currency
        - events
        - financial_account_token
        - payment_type
    management_operation_category:
      title: Management Operation Category
      type: string
      enum:
        - MANAGEMENT_FEE
        - MANAGEMENT_DISPUTE
        - MANAGEMENT_REWARD
        - MANAGEMENT_ADJUSTMENT
        - MANAGEMENT_DISBURSEMENT
    management_operation_event_type:
      title: Management Operation Event Type
      type: string
      enum:
        - LOSS_WRITE_OFF
        - CASH_BACK
        - CASH_BACK_REVERSAL
        - CURRENCY_CONVERSION
        - CURRENCY_CONVERSION_REVERSAL
        - INTEREST
        - INTEREST_REVERSAL
        - LATE_PAYMENT
        - LATE_PAYMENT_REVERSAL
        - BILLING_ERROR
        - BILLING_ERROR_REVERSAL
        - PROVISIONAL_CREDIT
        - PROVISIONAL_CREDIT_REVERSAL
        - RETURNED_PAYMENT
        - RETURNED_PAYMENT_REVERSAL
        - DISPUTE_WON
        - DISPUTE_WON_REVERSAL
        - DISBURSE
        - DISBURSE_REVERSAL
        - ANNUAL
        - ANNUAL_REVERSAL
        - QUARTERLY
        - QUARTERLY_REVERSAL
        - MONTHLY
        - MONTHLY_REVERSAL
    management_operation_event:
      title: Management Operation Event
      type: object
      properties:
        amount:
          type: integer
        type:
          $ref: '#/components/schemas/management_operation_event_type'
        subtype:
          type:
            - string
            - 'null'
        result:
          $ref: '#/components/schemas/transaction_result'
        detailed_results:
          type: array
          items:
            $ref: '#/components/schemas/detailed_results'
        created:
          type: string
          format: date-time
        token:
          type: string
          format: uuid
        memo:
          type: string
        effective_date:
          type: string
          format: date
      required:
        - amount
        - type
        - result
        - detailed_results
        - created
        - token
        - memo
        - effective_date
    management_operation_direction:
      title: Management Operation Direction
      type: string
      enum:
        - CREDIT
        - DEBIT
    management_operation_transaction:
      title: Management Operation Transaction
      allOf:
        - $ref: '#/components/schemas/base_transaction'
        - type: object
          properties:
            family:
              type: string
              const: MANAGEMENT_OPERATION
              description: MANAGEMENT_OPERATION - Management Operation Transaction
            result:
              $ref: '#/components/schemas/transaction_result'
            category:
              $ref: '#/components/schemas/management_operation_category'
            settled_amount:
              type: integer
            pending_amount:
              type: integer
            currency:
              type: string
            events:
              type: array
              items:
                $ref: '#/components/schemas/management_operation_event'
            user_defined_id:
              type:
                - string
                - 'null'
            financial_account_token:
              type: string
              format: uuid
            direction:
              $ref: '#/components/schemas/management_operation_direction'
            transaction_series:
              oneOf:
                - $ref: '#/components/schemas/transaction_series'
                - type: 'null'
            external_resource:
              oneOf:
                - $ref: '#/components/schemas/external_resource'
                - type: 'null'
      required:
        - result
        - category
        - family
        - settled_amount
        - pending_amount
        - currency
        - events
        - financial_account_token
        - direction
        - transaction_series
    base-transaction-response:
      title: Transaction Response
      description: >-
        Response containing multiple transaction types. The `family` field determines which transaction type
        is returned: INTERNAL returns FinancialTransaction, TRANSFER returns BookTransferTransaction, CARD
        returns CardTransaction, PAYMENT returns PaymentTransaction, EXTERNAL_PAYMENT returns
        ExternalPaymentResponse, MANAGEMENT_OPERATION returns ManagementOperationTransaction, and HOLD returns
        HoldTransaction
      discriminator:
        propertyName: family
        mapping:
          INTERNAL: '#/components/schemas/financial-transaction'
          TRANSFER: '#/components/schemas/book-transfer-transaction'
          CARD: '#/components/schemas/card-transaction'
          PAYMENT: '#/components/schemas/payment-transaction'
          EXTERNAL_PAYMENT: '#/components/schemas/external_payment_response'
          MANAGEMENT_OPERATION: '#/components/schemas/management_operation_transaction'
          HOLD: '#/components/schemas/hold_transaction'
      oneOf:
        - $ref: '#/components/schemas/financial-transaction'
        - $ref: '#/components/schemas/book-transfer-transaction'
        - $ref: '#/components/schemas/card-transaction'
        - $ref: '#/components/schemas/payment-transaction'
        - $ref: '#/components/schemas/external_payment_response'
        - $ref: '#/components/schemas/management_operation_transaction'
        - $ref: '#/components/schemas/hold_transaction'
    base-transactions-response:
      title: Activity Response
      description: A response containing a list of transactions
      type: object
      properties:
        has_more:
          type: boolean
          description: Indicates if there are more transactions available for pagination
        data:
          type: array
          items:
            $ref: '#/components/schemas/base-transaction-response'
    PaymentMethodRequestAttributes:
      properties:
        sec_code:
          enum:
            - CCD
            - PPD
            - WEB
          title: SEC Code
          type: string
        ach_hold_period:
          description: Number of days to hold the ACH payment
          example: 0
          minimum: 0
          title: ACH Hold Period
          type: integer
        addenda:
          title: Addenda
          type:
            - string
            - 'null'
      required:
        - sec_code
      title: PaymentMethodRequestAttributes
      type: object
    CreatePaymentRequest:
      properties:
        amount:
          minimum: 1
          title: Amount
          type: integer
        external_bank_account_token:
          format: uuid
          title: External Bank Account Token
          type: string
        financial_account_token:
          format: uuid
          title: Financial Account Token
          type: string
        memo:
          maxLength: 512
          pattern: ^[0-9A-Za-z \x20-\x7e\x40-\xff]*$
          title: Memo
          type: string
        method:
          enum:
            - ACH_NEXT_DAY
            - ACH_SAME_DAY
          title: Payment Method
          type: string
        method_attributes:
          $ref: '#/components/schemas/PaymentMethodRequestAttributes'
        token:
          description: >-
            Customer-provided token that will serve as an idempotency token. This token will become the
            transaction token.
          format: uuid
          title: Token
          type: string
        type:
          enum:
            - COLLECTION
            - PAYMENT
          title: Payment Type
          type: string
        user_defined_id:
          maxLength: 512
          title: User Defined Id
          type: string
        hold:
          description: Optional hold to settle when this payment is initiated.
          type: object
          properties:
            token:
              description: Token of the hold to settle when this payment is initiated.
              format: uuid
              type: string
          required:
            - token
      required:
        - amount
        - external_bank_account_token
        - financial_account_token
        - method
        - method_attributes
        - type
      title: CreatePaymentRequest
      type: object
    PostPaymentResponse:
      allOf:
        - $ref: '#/components/schemas/payment-transaction'
        - properties:
            balance:
              $ref: '#/components/schemas/balance'
          type: object
      title: PostPaymentResponse
    payment_return_request:
      title: Payment Return Request
      description: Request to return an ACH payment
      type: object
      properties:
        financial_account_token:
          type: string
          format: uuid
          description: Globally unique identifier for the financial account
        return_reason_code:
          type: string
          pattern: ^R(0[1-9]|[1-4][0-9]|5[0-3]|8[0-5])$
          description: >-
            ACH return reason code indicating the reason for returning the payment. Supported codes include
            R01-R53 and R80-R85. For a complete list of return codes and their meanings, see [ACH Return
            Reasons](https://docs.lithic.com/docs/ach-overview#ach-return-reasons)
          example: R01
        memo:
          type:
            - string
            - 'null'
          maxLength: 10
          description: Optional memo for the return. Limited to 10 characters
        addenda:
          type:
            - string
            - 'null'
          maxLength: 44
          description: Optional additional information about the return. Limited to 44 characters
        date_of_death:
          type:
            - string
            - 'null'
          format: date
          description: >-
            Date of death in YYYY-MM-DD format. Required when using return codes **R14** (representative payee
            deceased) or **R15** (beneficiary or account holder deceased)
          example: '2025-01-15'
      required:
        - financial_account_token
        - return_reason_code
    SettlementDetail:
      properties:
        account_token:
          description: Globally unique identifier denoting the account that the associated transaction occurred on.
          example: e34a817f-119d-4976-9fb3-8b020b8bbec3
          format: uuid
          type: string
        card_program_token:
          description: Globally unique identifier denoting the card program that the associated transaction occurred on.
          example: e34a817f-119d-4976-9fb3-8b020b8bbec3
          format: uuid
          type: string
        card_token:
          description: Globally unique identifier denoting the card that the associated transaction occurred on.
          example: e34a817f-119d-4976-9fb3-8b020b8bbec3
          format: uuid
          type: string
        created:
          description: Date and time when the transaction first occurred. UTC time zone.
          example: '2023-06-01T00:00:00'
          format: date-time
          type: string
        currency:
          description: Three-character alphabetic ISO 4217 code.
          example: USD
          maxLength: 3
          minLength: 3
          type: string
        disputes_gross_amount:
          description: The total gross amount of disputes settlements.
          example: 0
          type: integer
        event_tokens:
          description: Globally unique identifiers denoting the Events associated with this settlement.
          example:
            - e34a817f-119d-4976-9fb3-8b020b8bbec3
          items:
            type: string
          type: array
        fee_description:
          description: Network's description of a fee, only present on records with type `FEE`.
          example: 'INTERCHANGE COMPLIANCE ADJUSTMENT FOR : 11/12/24'
          type: string
        institution:
          description: The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE for Visa).
          example: '00001'
          type: string
        interchange_fee_extended_precision:
          description: The total amount of interchange in six-digit extended precision.
          example: -70000
          type: integer
        interchange_gross_amount:
          description: The total amount of interchange.
          example: -7
          type: integer
        network:
          description: Card network where the transaction took place.
          enum:
            - INTERLINK
            - MAESTRO
            - MASTERCARD
            - UNKNOWN
            - VISA
          example: MASTERCARD
          type: string
        other_fees_details:
          description: The total gross amount of other fees by type.
          properties:
            ISA:
              title: ISA
              type: integer
          type: object
        other_fees_gross_amount:
          description: Total amount of gross other fees outside of interchange.
          example: 0
          type: integer
        report_date:
          description: Date of when the report was first generated.
          example: '2023-06-01'
          type: string
        settlement_date:
          description: >-
            Date of when money movement is triggered for the transaction. One exception applies - for
            Mastercard dual message settlement, this is the settlement advisement date, which is distinct from
            the date of money movement.
          example: '2023-06-01'
          type: string
        token:
          description: Globally unique identifier denoting the Settlement Detail.
          example: e34a817f-119d-4976-9fb3-8b020b8bbec3
          format: uuid
          type: string
        transaction_token:
          description: Globally unique identifier denoting the associated Transaction object.
          example: e34a817f-119d-4976-9fb3-8b020b8bbec3
          format: uuid
          type: string
        transactions_gross_amount:
          description: The total amount of settlement impacting transactions (excluding interchange, fees, and disputes).
          example: 1900
          type: integer
        type:
          description: The type of settlement record.
          enum:
            - ADJUSTMENT
            - ARBITRATION
            - CHARGEBACK
            - CLEARING
            - COLLABORATION
            - FEE
            - FINANCIAL
            - NON-FINANCIAL
            - PREARBITRATION
            - REPRESENTMENT
          example: CLEARING
          type: string
        updated:
          description: Date and time when the transaction first occurred. UTC time zone.
          example: '2023-06-01T00:00:00'
          format: date-time
          type: string
      required:
        - account_token
        - card_program_token
        - card_token
        - created
        - currency
        - disputes_gross_amount
        - event_tokens
        - institution
        - interchange_fee_extended_precision
        - interchange_gross_amount
        - network
        - other_fees_details
        - other_fees_gross_amount
        - report_date
        - settlement_date
        - token
        - transaction_token
        - transactions_gross_amount
        - type
        - updated
      type: object
    settlement-summary-details:
      title: settlement Summary Details
      properties:
        currency:
          description: 3-character alphabetic ISO 4217 code.
          example: USD
          maxLength: 3
          minLength: 3
          type: string
        disputes_gross_amount:
          description: The total gross amount of disputes settlements.
          example: 0
          type: integer
        institution:
          description: The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE for Visa).
          example: '00001'
          type: string
        interchange_gross_amount:
          description: The total amount of interchange.
          example: -7
          type: integer
        network:
          description: Card network where the transaction took place
          enum:
            - INTERLINK
            - MAESTRO
            - MASTERCARD
            - UNKNOWN
            - VISA
          example: MASTERCARD
          type: string
        other_fees_gross_amount:
          description: Total amount of gross other fees outside of interchange.
          example: 0
          type: integer
        settled_net_amount:
          description: The total net amount of cash moved. (net value of settled_gross_amount, interchange, fees).
          example: 1893
          type: integer
        transactions_gross_amount:
          description: The total amount of settlement impacting transactions (excluding interchange, fees, and disputes).
          example: 1900
          type: integer
      type: object
    settlement-report:
      title: Settlement Report
      properties:
        created:
          description: Date and time when the transaction first occurred. UTC time zone.
          example: '2023-06-01T00:00:00'
          format: date-time
          type: string
        currency:
          description: >-
            3-character alphabetic ISO 4217 code. (This field is deprecated and will be removed in a future
            version of the API.)
          example: USD
          maxLength: 3
          minLength: 3
          type: string
          deprecated: true
        details:
          items:
            $ref: '#/components/schemas/settlement-summary-details'
          type: array
        disputes_gross_amount:
          description: >-
            The total gross amount of disputes settlements. (This field is deprecated and will be removed in a
            future version of the API. To compute total amounts, Lithic recommends that customers sum the
            relevant settlement amounts found within `details`.)
          example: 0
          type: integer
          deprecated: true
        interchange_gross_amount:
          description: >-
            The total amount of interchange. (This field is deprecated and will be removed in a future version
            of the API. To compute total amounts, Lithic recommends that customers sum the relevant settlement
            amounts found within `details`.)
          example: -7
          type: integer
          deprecated: true
        is_complete:
          description: Indicates that all data expected on the given report date is available.
          type: boolean
        other_fees_gross_amount:
          description: >-
            Total amount of gross other fees outside of interchange. (This field is deprecated and will be
            removed in a future version of the API. To compute total amounts, Lithic recommends that customers
            sum the relevant settlement amounts found within `details`.)
          example: 0
          type: integer
          deprecated: true
        report_date:
          description: Date of when the report was first generated.
          example: '2023-06-01'
          type: string
        settled_net_amount:
          description: >-
            The total net amount of cash moved. (net value of settled_gross_amount, interchange, fees). (This
            field is deprecated and will be removed in a future version of the API. To compute total amounts,
            Lithic recommends that customers sum the relevant settlement amounts found within `details`.)
          example: 1893
          type: integer
          deprecated: true
        transactions_gross_amount:
          description: >-
            The total amount of settlement impacting transactions (excluding interchange, fees, and disputes).
            (This field is deprecated and will be removed in a future version of the API. To compute total
            amounts, Lithic recommends that customers sum the relevant settlement amounts found within
            `details`.)
          example: 1900
          type: integer
          deprecated: true
        updated:
          description: Date and time when the transaction first occurred. UTC time zone.
          example: '2023-06-01T00:00:00'
          format: date-time
          type: string
      required:
        - created
        - currency
        - details
        - disputes_gross_amount
        - interchange_gross_amount
        - is_complete
        - other_fees_gross_amount
        - report_date
        - settled_net_amount
        - transactions_gross_amount
        - updated
      type: object
    network_total:
      title: Network Total
      type: object
      required:
        - token
        - network
        - institution_id
        - settlement_institution_id
        - settlement_service
        - report_date
        - currency
        - is_complete
        - amounts
        - created
        - updated
      properties:
        token:
          type: string
          format: uuid
          description: Globally unique identifier.
        network:
          type: string
          enum:
            - AMEX
            - VISA
            - MASTERCARD
            - MAESTRO
            - INTERLINK
          description: Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO, or INTERLINK.
        institution_id:
          type: string
          description: >-
            The institution that activity occurred on. For Mastercard: ICA (Interbank Card Association). For
            Maestro: institution ID. For Visa: lowest level SRE (Settlement Reporting Entity).
        settlement_institution_id:
          type: string
          description: >-
            The institution responsible for settlement. For Mastercard: same as `institution_id`. For Maestro:
            billing ICA. For Visa: Funds Transfer SRE (FTSRE).
        settlement_service:
          type: string
          description: Settlement service.
        report_date:
          type: string
          format: date
          description: Date that the network total record applies to. YYYY-MM-DD format.
        cycle:
          type: integer
          description: The clearing cycle that the network total record applies to. Mastercard only.
        currency:
          type: string
          description: 3-character alphabetic ISO 4217 code.
        is_complete:
          type: boolean
          description: >-
            Indicates that all settlement records related to this Network Total are available in the details
            endpoint.
        amounts:
          type: object
          required:
            - gross_settlement
            - interchange_fees
            - net_settlement
          properties:
            gross_settlement:
              type: integer
              description: Total settlement amount excluding interchange, in currency's smallest unit.
            interchange_fees:
              type: integer
              description: Interchange amount, in currency's smallest unit.
            visa_charges:
              type: integer
              description: Charges specific to Visa/Interlink, in currency's smallest unit.
            net_settlement:
              type: integer
              description: >-
                `gross_settlement` net of `interchange_fees` and `visa_charges` (if applicable), in currency's
                smallest unit.
        created:
          type: string
          format: date-time
          description: RFC 3339 timestamp for when the record was created. UTC time zone.
        updated:
          type: string
          format: date-time
          description: RFC 3339 timestamp for when the record was last updated. UTC time zone.
      examples:
        - token: 12cf7505-06a8-435e-b1c7-4c430d02f6c3
          network: VISA
          institution_id: '1000000000'
          settlement_institution_id: '1000000001'
          settlement_service: '015'
          report_date: '2025-02-25'
          currency: CAD
          is_complete: true
          amounts:
            gross_settlement: 100
            interchange_fees: -25
            visa_charges: 10
            net_settlement: 85
          created: '2025-02-25T13:07:31.419631Z'
          updated: '2025-02-25T13:07:31.419631Z'
    network_totals_list:
      title: Network Totals Response
      type: object
      required:
        - data
        - has_more
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/network_total'
        has_more:
          description: Indicates whether there are more network total records to be retrieved.
          type: boolean
      examples:
        - data:
            - token: 12cf7505-06a8-435e-b1c7-4c430d02f6c3
              network: VISA
              institution_id: '1000000000'
              settlement_institution_id: '1000000001'
              settlement_service: '015'
              report_date: '2025-02-25'
              currency: CAD
              is_complete: true
              amounts:
                gross_settlement: 100
                interchange_fees: -25
                visa_charges: 10
                net_settlement: 85
              created: '2025-02-25T13:07:31.419631Z'
              updated: '2025-02-25T13:07:31.419631Z'
            - token: 0604c316-17f0-456d-9ac7-7d94252acb1a
              network: INTERLINK
              institution_id: '1000000000'
              settlement_institution_id: '1000000001'
              settlement_service: '001'
              report_date: '2025-02-25'
              currency: USD
              is_complete: true
              amounts:
                gross_settlement: 200
                interchange_fees: -50
                visa_charges: 10
                net_settlement: 160
              created: '2025-02-25T13:07:31.419631Z'
              updated: '2025-02-25T13:07:31.419631Z'
            - token: 700a1c78-04ed-47e2-8160-b1e18914ec7b
              network: MASTERCARD
              institution_id: '031511'
              settlement_institution_id: '031511'
              settlement_service: US00000001
              report_date: '2025-02-25'
              currency: USD
              cycle: 1
              is_complete: false
              amounts:
                gross_settlement: 100
                interchange_fees: -25
                net_settlement: 75
              created: '2025-02-25T13:07:31.419631Z'
              updated: '2025-02-25T13:07:31.419631Z'
            - token: e05d5448-210e-4cc3-bd0d-d54d3c6c9a9f
              network: MASTERCARD
              institution_id: '031511'
              settlement_institution_id: '031511'
              settlement_service: US00000001
              report_date: '2025-02-25'
              currency: USD
              cycle: 2
              is_complete: true
              amounts:
                gross_settlement: 100
                interchange_fees: -25
                net_settlement: 75
              created: '2025-02-25T13:07:31.419631Z'
              updated: '2025-02-25T13:07:31.419631Z'
          has_more: false
    simulate_receipt_request:
      title: Simulate Receipt Request
      type: object
      properties:
        financial_account_token:
          description: Financial Account Token
          type: string
          format: uuid
        token:
          description: Customer-generated payment token used to uniquely identify the simulated payment
          type: string
          format: uuid
        receipt_type:
          description: Receipt Type
          type: string
          enum:
            - RECEIPT_CREDIT
            - RECEIPT_DEBIT
        amount:
          description: Amount
          type: integer
          minimum: 0
        memo:
          description: Memo
          type: string
      required:
        - financial_account_token
        - token
        - receipt_type
        - amount
    result:
      type: string
      enum:
        - APPROVED
        - DECLINED
      title: Result
    simulate_payment_response:
      title: Simulate Payment Response
      type: object
      properties:
        result:
          description: Request Result
          $ref: '#/components/schemas/result'
        transaction_event_token:
          description: Transaction Event Token
          type: string
          format: uuid
        debugging_request_id:
          description: Debugging Request Id
          type: string
          format: uuid
      required:
        - result
        - transaction_event_token
        - debugging_request_id
    simulate_origination_release_request:
      title: Simulate Origination Release Request
      type: object
      properties:
        payment_token:
          description: Payment Token
          type: string
          format: uuid
      required:
        - payment_token
    simulate_origination_return_request:
      title: Simulate Origination Return Request
      type: object
      properties:
        payment_token:
          description: Payment Token
          type: string
          format: uuid
        return_reason_code:
          description: Return Reason Code
          type: string
          default: R01
          pattern: ^R[0-9][0-9]$
          example: R12
      required:
        - payment_token
    supported_simulation_types:
      type: string
      enum:
        - ACH_ORIGINATION_REVIEWED
        - ACH_ORIGINATION_RELEASED
        - ACH_ORIGINATION_PROCESSED
        - ACH_ORIGINATION_SETTLED
        - ACH_RECEIPT_SETTLED
        - ACH_RECEIPT_RELEASED
        - ACH_RECEIPT_RELEASED_EARLY
        - ACH_RETURN_INITIATED
        - ACH_RETURN_PROCESSED
        - ACH_RETURN_SETTLED
      title: Supported Simulation Types
    supported_simulation_decline_reasons:
      type: string
      enum:
        - PROGRAM_TRANSACTION_LIMIT_EXCEEDED
        - PROGRAM_DAILY_LIMIT_EXCEEDED
        - PROGRAM_MONTHLY_LIMIT_EXCEEDED
      title: Supported Simulation Decline Reasons
    simulate_action_request:
      title: Simulate Action Request
      type: object
      properties:
        event_type:
          description: Event Type
          $ref: '#/components/schemas/supported_simulation_types'
        return_reason_code:
          description: Return Reason Code
          type: string
        decline_reason:
          description: Decline reason
          $ref: '#/components/schemas/supported_simulation_decline_reasons'
        return_addenda:
          description: Return Addenda
          type: string
        date_of_death:
          description: Date of Death for ACH Return
          type: string
          format: date
      required:
        - event_type
    tokenization-event-outcome:
      title: Tokenization Event Outcome
      description: Enum representing the result of the tokenization event
      type: string
      enum:
        - APPROVED
        - DECLINED
        - NOTIFICATION_DELIVERED
        - REQUIRE_ADDITIONAL_AUTHENTICATION
        - TOKEN_ACTIVATED
        - TOKEN_CREATED
        - TOKEN_DEACTIVATED
        - TOKEN_DELETED_FROM_CONSUMER_APP
        - TOKEN_INACTIVE
        - TOKEN_STATE_UNKNOWN
        - TOKEN_SUSPENDED
        - TOKEN_UPDATED
    tokenization-decline-reason:
      title: Tokenization Decline Reason
      description: Reason code for why a tokenization was declined
      type: string
      enum:
        - ACCOUNT_SCORE_1
        - DEVICE_SCORE_1
        - ALL_WALLET_DECLINE_REASONS_PRESENT
        - WALLET_RECOMMENDED_DECISION_RED
        - CVC_MISMATCH
        - CARD_EXPIRY_MONTH_MISMATCH
        - CARD_EXPIRY_YEAR_MISMATCH
        - CARD_INVALID_STATE
        - CUSTOMER_RED_PATH
        - INVALID_CUSTOMER_RESPONSE
        - NETWORK_FAILURE
        - GENERIC_DECLINE
        - DIGITAL_CARD_ART_REQUIRED
    tokenization-tfa-reason:
      title: Tokenization TFA Reason
      description: Reason code for why a tokenization required two-factor authentication
      type: string
      enum:
        - WALLET_RECOMMENDED_TFA
        - SUSPICIOUS_ACTIVITY
        - DEVICE_RECENTLY_LOST
        - TOO_MANY_RECENT_ATTEMPTS
        - TOO_MANY_RECENT_TOKENS
        - TOO_MANY_DIFFERENT_CARDHOLDERS
        - OUTSIDE_HOME_TERRITORY
        - HAS_SUSPENDED_TOKENS
        - HIGH_RISK
        - ACCOUNT_SCORE_LOW
        - DEVICE_SCORE_LOW
        - CARD_STATE_TFA
        - HARDCODED_TFA
        - CUSTOMER_RULE_TFA
        - DEVICE_HOST_CARD_EMULATION
    tokenization-rule-result:
      title: Tokenization Rule Result
      type: object
      properties:
        auth_rule_token:
          description: >-
            The Auth Rule Token associated with the rule. If this is set to null, then the result was not
            associated with a customer-configured rule. This may happen in cases where a tokenization is
            declined or requires TFA due to a Lithic-configured security or compliance rule, for example.
          oneOf:
            - type: 'null'
            - type: string
              format: uuid
        result:
          description: The result associated with this rule
          type: string
          enum:
            - APPROVED
            - DECLINED
            - REQUIRE_TFA
            - ERROR
        name:
          description: The name for the rule, if any was configured
          oneOf:
            - type: 'null'
            - type: string
        explanation:
          description: A human-readable explanation outlining the motivation for the rule's result
          oneOf:
            - type: 'null'
            - type: string
      required:
        - auth_rule_token
        - result
        - name
        - explanation
    tokenization-event:
      title: Tokenization Event
      properties:
        created_at:
          description: Date and time when the tokenization event first occurred. UTC time zone.
          format: date-time
          type: string
        result:
          $ref: '#/components/schemas/tokenization-event-outcome'
        token:
          description: Globally unique identifier for a Tokenization Event
          format: uuid
          type: string
        type:
          description: Enum representing the type of tokenization event that occurred
          enum:
            - TOKENIZATION_2FA
            - TOKENIZATION_AUTHORIZATION
            - TOKENIZATION_DECISIONING
            - TOKENIZATION_ELIGIBILITY_CHECK
            - TOKENIZATION_UPDATED
          type: string
        tokenization_decline_reasons:
          description: List of reasons why the tokenization was declined
          type: array
          items:
            $ref: '#/components/schemas/tokenization-decline-reason'
        tokenization_tfa_reasons:
          description: List of reasons why two-factor authentication was required
          type: array
          items:
            $ref: '#/components/schemas/tokenization-tfa-reason'
        rule_results:
          description: Results from rules that were evaluated for this tokenization
          type: array
          items:
            $ref: '#/components/schemas/tokenization-rule-result'
    tokenization:
      title: Tokenization
      properties:
        account_token:
          description: The account token associated with the card being tokenized.
          format: uuid
          type: string
        card_token:
          description: The card token associated with the card being tokenized.
          format: uuid
          type: string
        created_at:
          description: Date and time when the tokenization first occurred. UTC time zone.
          format: date-time
          type: string
        device_id:
          description: The device identifier associated with the tokenization.
          type:
            - string
            - 'null'
        digital_card_art_token:
          description: >-
            Specifies the digital card art displayed in the user's digital wallet after tokenization. This
            will be null if the tokenization was created without an associated digital card art. See [Flexible
            Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
          format: uuid
          type:
            - string
            - 'null'
        events:
          description: A list of events related to the tokenization.
          items:
            $ref: '#/components/schemas/tokenization-event'
          type: array
        status:
          description: The status of the tokenization request
          enum:
            - ACTIVE
            - DEACTIVATED
            - INACTIVE
            - PAUSED
            - PENDING_2FA
            - PENDING_ACTIVATION
            - UNKNOWN
          type: string
        token:
          description: Globally unique identifier for a Tokenization
          format: uuid
          type: string
        token_requestor_name:
          description: >-
            The entity that requested the tokenization. For digital wallets, this will be one of the defined
            wallet types. For merchant tokenizations, this will be a free-form merchant name string.
          anyOf:
            - title: Digital wallet type
              description: Digital wallet type
              enum:
                - AMAZON_ONE
                - ANDROID_PAY
                - APPLE_PAY
                - FACEBOOK
                - FITBIT_PAY
                - GARMIN_PAY
                - GOOGLE_PAY
                - MICROSOFT_PAY
                - NETFLIX
                - SAMSUNG_PAY
                - UNKNOWN
                - VISA_CHECKOUT
              type: string
            - title: Merchant name
              description: Merchant name for merchant tokenizations
              type: string
        token_unique_reference:
          description: The network's unique reference for the tokenization.
          type: string
        dpan:
          description: The dynamic pan assigned to the token by the network.
          type:
            - string
            - 'null'
        payment_account_reference_id:
          description: The network's unique reference for the card that is tokenized.
          type:
            - string
            - 'null'
        tokenization_channel:
          description: The channel through which the tokenization was made.
          enum:
            - DIGITAL_WALLET
            - MERCHANT
          type: string
        updated_at:
          description: Latest date and time when the tokenization was updated. UTC time zone.
          format: date-time
          type: string
      required:
        - account_token
        - card_token
        - created_at
        - status
        - token
        - token_requestor_name
        - token_unique_reference
        - dpan
        - tokenization_channel
        - updated_at
      type: object
    simulate-enrollment-review-request:
      title: Simulate account holder enrollment review request body
      type: object
      properties:
        account_holder_token:
          description: The account holder which to perform the simulation upon.
          type: string
        status:
          description: An account holder's status for use within the simulation.
          type: string
          enum:
            - ACCEPTED
            - REJECTED
            - PENDING_REVIEW
        status_reasons:
          description: >-
            Status reason that will be associated with the simulated account holder status. Only required for
            a `REJECTED` status.
          type: array
          items:
            type: string
            enum:
              - PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE
              - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
              - PRIMARY_BUSINESS_ENTITY_NAME_VERIFICATION_FAILURE
              - PRIMARY_BUSINESS_ENTITY_BUSINESS_OFFICERS_NOT_MATCHED
              - PRIMARY_BUSINESS_ENTITY_SOS_FILING_INACTIVE
              - PRIMARY_BUSINESS_ENTITY_SOS_NOT_MATCHED
              - PRIMARY_BUSINESS_ENTITY_CMRA_FAILURE
              - PRIMARY_BUSINESS_ENTITY_WATCHLIST_FAILURE
              - PRIMARY_BUSINESS_ENTITY_REGISTERED_AGENT_FAILURE
              - CONTROL_PERSON_BLOCKLIST_ALERT_FAILURE
              - CONTROL_PERSON_ID_VERIFICATION_FAILURE
              - CONTROL_PERSON_DOB_VERIFICATION_FAILURE
              - CONTROL_PERSON_NAME_VERIFICATION_FAILURE
              - BENEFICIAL_OWNER_INDIVIDUAL_DOB_VERIFICATION_FAILURE
              - BENEFICIAL_OWNER_INDIVIDUAL_BLOCKLIST_ALERT_FAILURE
              - BENEFICIAL_OWNER_INDIVIDUAL_ID_VERIFICATION_FAILURE
              - BENEFICIAL_OWNER_INDIVIDUAL_NAME_VERIFICATION_FAILURE
    account-holder-response:
      title: Account Holder
      type: object
      properties:
        token:
          description: Globally unique identifier for the account holder.
          type: string
          format: uuid
        account_token:
          description: Globally unique identifier for the account.
          type: string
          format: uuid
        business_account_token:
          description: >-
            Only applicable for customers using the KYC-Exempt workflow to enroll authorized users of
            businesses. Pass the account_token of the enrolled business associated with the AUTHORIZED_USER in
            this field.
          type:
            - string
            - 'null'
          format: uuid
        created:
          description: Timestamp of when the account holder was created.
          type: string
          format: date-time
        exemption_type:
          description: >-
            The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account holder is not
            KYC-Exempt.
          type: string
          enum:
            - AUTHORIZED_USER
            - PREPAID_CARD_USER
        external_id:
          description: >-
            Customer-provided token that indicates a relationship with an object outside of the Lithic
            ecosystem.
          type: string
        user_type:
          description: >-
            The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
            present.


            If the type is "BUSINESS" then the "business_entity", "control_person",
            "beneficial_owner_individuals",

            "naics_code", "nature_of_business", and "website_url" attributes will be present.
          type: string
          enum:
            - BUSINESS
            - INDIVIDUAL
        verification_application:
          $ref: '#/components/schemas/verification-application'
          description: Information about the most recent identity verification attempt
        individual:
          $ref: '#/components/schemas/individual'
          description: >-
            Only present when user_type == "INDIVIDUAL". Information about the individual for which the
            account is being opened and KYC is being run.
        business_entity:
          $ref: '#/components/schemas/kyb-business-entity'
          description: >-
            Only present when user_type == "BUSINESS". Information about the business for which the account is
            being opened and KYB is being run.
        beneficial_owner_individuals:
          description: >-
            Only present when user_type == "BUSINESS". You must submit a list of all direct and indirect
            individuals with 25% or more ownership in the company. A maximum of 4 beneficial owners can be
            submitted. If no individual owns 25% of the company you do not need to send beneficial owner
            information. See [FinCEN
            requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
            (Section I) for more background on individuals that should be included.
          type: array
          items:
            $ref: '#/components/schemas/individual'
          minItems: 0
        control_person:
          $ref: '#/components/schemas/individual'
          description: >-
            Only present when user_type == "BUSINESS".


            An individual with significant responsibility for managing the legal entity (e.g., a Chief
            Executive Officer, Chief Financial Officer, Chief Operating Officer,


            Managing Member, General Partner, President, Vice President, or Treasurer). This can be an
            executive, or someone who will have program-wide access


            to the cards that Lithic will provide. In some cases, this individual could also be a beneficial
            owner listed above.
        naics_code:
          description: >-
            Only present when user_type == "BUSINESS". 6-digit North American Industry Classification System
            (NAICS) code for the business.
          type: string
        nature_of_business:
          description: Only present when user_type == "BUSINESS". User-submitted description of the business.
          type: string
        website_url:
          description: Only present when user_type == "BUSINESS". Business's primary website.
          type: string
        email:
          description: |
            (Deprecated. Use control_person.email when user_type == "BUSINESS".
            Use individual.phone_number when user_type == "INDIVIDUAL".)
            Primary email of Account Holder.
          type: string
        phone_number:
          description: |
            (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
            Use individual.phone_number when user_type == "INDIVIDUAL".)
            Primary phone of Account Holder, entered in E.164 format.
          type: string
        status:
          description: |+
            (Deprecated. Use verification_application.status instead)
            KYC and KYB evaluation states.

            Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `ADVANCED` workflow.

          $ref: '#/components/schemas/status'
        status_reasons:
          description: |-
            (Deprecated. Use verification_application.status_reasons)
            Reason for the evaluation status.
          type: array
          items:
            $ref: '#/components/schemas/status-reasons'
        required_documents:
          description: >-
            Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required for the
            account holder to be approved.
          type: array
          items:
            $ref: '#/components/schemas/required-document'
    simulate-enrollment-document-review-request:
      title: Simulate account holder enrollment document review request body
      type: object
      properties:
        document_upload_token:
          description: The account holder document upload which to perform the simulation upon.
          type: string
        status:
          description: An account holder document's upload status for use within the simulation.
          type: string
          enum:
            - UPLOADED
            - ACCEPTED
            - REJECTED
            - PARTIAL_APPROVAL
        status_reason:
          $ref: '#/components/schemas/document-upload-status-reasons'
          description: >-
            Status reason that will be associated with the simulated account holder status. Only required for
            a `REJECTED` status or `PARTIAL_APPROVAL` status.
        accepted_entity_status_reasons:
          description: A list of status reasons associated with a KYB account holder in PENDING_REVIEW
          type: array
          items:
            type: string
      required:
        - document_upload_token
        - status
    simulate-authentication-request:
      title: 3DS Simulation Request object
      type: object
      description: Request object for simulating a 3DS authentication
      properties:
        merchant:
          type: object
          description: Merchant information for the simulated transaction
          properties:
            country:
              type: string
              description: Country of the address provided by the cardholder in ISO 3166-1 alpha-3 format (e.g. USA)
              example: USA
            id:
              type: string
              description: >-
                Unique identifier to identify the payment card acceptor. Corresponds to `merchant_acceptor_id`
                in authorization.
              example: OODKZAPJVN4YS7O
              maxLength: 15
              minLength: 1
            mcc:
              type: string
              description: >-
                Merchant category code for the transaction to be simulated. A four-digit number listed in ISO
                18245. Supported merchant category codes can be found
                [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
              example: '5812'
            name:
              type: string
              description: >-
                Merchant descriptor, corresponds to `descriptor` in authorization. If CHALLENGE keyword is
                included, Lithic will trigger a challenge.
              example: COFFEE SHOP
              maxLength: 25
              minLength: 1
          required:
            - country
            - id
            - mcc
            - name
        pan:
          type: string
          description: Sixteen digit card number.
          example: '4111111289144142'
          maxLength: 16
          minLength: 16
        transaction:
          type: object
          description: Transaction details for the simulation
          properties:
            amount:
              type: integer
              description: Amount (in cents) to authenticate.
              minimum: 0
            currency:
              type: string
              description: 3-character alphabetic ISO 4217 currency code.
              example: GBP
          required:
            - amount
            - currency
        card_expiry_check:
          type: string
          description: >-
            When set will use the following values as part of the Simulated Authentication. When not set
            defaults to MATCH
          enum:
            - MATCH
            - MISMATCH
            - NOT_PRESENT
      required:
        - merchant
        - pan
        - transaction
    address_match_result:
      title: Address Match Result
      description: >-
        Lithic's evaluation result comparing the transaction's address data with the cardholder KYC data if it
        exists. In the event Lithic does not have any Cardholder KYC data, or the transaction does not contain
        any address data, NOT_PRESENT will be returned
      type: string
      enum:
        - MATCH
        - MATCH_ADDRESS_ONLY
        - MATCH_ZIP_ONLY
        - MISMATCH
        - NOT_PRESENT
    authentication:
      title: 3DS Authentication object
      type: object
      description: Represents a 3DS authentication
      properties:
        account_type:
          type:
            - string
            - 'null'
          description: Type of account/card that is being used for the transaction. Maps to EMV 3DS field `acctType`.
          enum:
            - CREDIT
            - DEBIT
            - NOT_APPLICABLE
            - null
        additional_data:
          type:
            - object
            - 'null'
          description: >-
            Object containing additional data about the 3DS request that is beyond the EMV 3DS standard spec
            (e.g., specific fields that only certain card networks send but are not required across all 3DS
            requests).
          properties:
            network_decision:
              type:
                - string
                - 'null'
              description: >-
                Mastercard only: Indicates whether the network would have considered the authentication
                request to be low risk or not.
              enum:
                - LOW_RISK
                - NOT_LOW_RISK
                - null
            network_risk_score:
              type:
                - integer
                - 'null'
              description: >-
                Mastercard only: Assessment by the network of the authentication risk level, with a higher
                value indicating a higher amount of risk. Permitted values: Integer between 0-950, in
                increments of 50.
          required: []
        app:
          type:
            - object
            - 'null'
          description: >-
            Object containing data about the app used in the e-commerce transaction. Present if the channel is
            'APP_BASED'.
          properties:
            device_info:
              type:
                - string
                - 'null'
              description: Raw device information - base64-encoded JSON object. Maps to EMV 3DS field `deviceInfo`.
            ip:
              type: string
              description: IP address of the device.
              x-stainless-naming:
                go:
                  property_name: Ip
            platform:
              type:
                - string
                - 'null'
              description: 'Device platform: Android, iOS, Windows, etc.'
            device:
              type:
                - string
                - 'null'
              description: 'Device model: e.g. "Apple iPhone 16".'
            os:
              type:
                - string
                - 'null'
              description: 'Operating System: e.g. "Android 12", "iOS 17.1".'
            locale:
              type:
                - string
                - 'null'
              description: 'Device locale: e.g. "en-US".'
            time_zone:
              type:
                - string
                - 'null'
              description: Time zone offset in minutes between UTC and device local time.
            screen_width:
              type:
                - integer
                - 'null'
              description: Screen width in pixels.
            screen_height:
              type:
                - integer
                - 'null'
              description: Screen height in pixels.
            latitude:
              type:
                - number
                - 'null'
              description: Latitude coordinate of current device location.
              minimum: -90
              maximum: 90
            longitude:
              type:
                - number
                - 'null'
              description: Longitude coordinate of current device location.
              minimum: -180
              maximum: 180
          required: []
        authentication_request_type:
          type:
            - string
            - 'null'
          description: >-
            Type of authentication request - i.e., the type of transaction or interaction is causing the
            merchant to request an authentication. Maps to EMV 3DS field `threeDSRequestorAuthenticationInd`.
          enum:
            - ADD_CARD
            - BILLING_AGREEMENT
            - DELAYED_SHIPMENT
            - EMV_TOKEN_CARDHOLDER_VERIFICATION
            - INSTALLMENT_TRANSACTION
            - MAINTAIN_CARD
            - PAYMENT_TRANSACTION
            - RECURRING_TRANSACTION
            - SPLIT_PAYMENT
            - SPLIT_SHIPMENT
            - null
        authentication_result:
          type:
            - string
          description: Indicates the outcome of the 3DS authentication process.
          enum:
            - DECLINE
            - SUCCESS
            - PENDING_CHALLENGE
            - PENDING_DECISION
        browser:
          type:
            - object
            - 'null'
          description: >-
            Object containing data about the browser used in the e-commerce transaction. Present if the
            channel is 'BROWSER'.
          properties:
            accept_header:
              type:
                - string
                - 'null'
              description: >-
                Content of the HTTP accept headers as sent from the cardholder's browser to the 3DS requestor
                (e.g., merchant or digital wallet).
            ip:
              description: >-
                IP address of the browser as returned by the HTTP headers to the 3DS requestor (e.g., merchant
                or digital wallet). Maps to EMV 3DS field `browserIP`.
              type: string
              nullable: true
              x-stainless-naming:
                go:
                  property_name: Ip
            java_enabled:
              type:
                - boolean
                - 'null'
              description: >-
                Indicates whether the cardholder's browser has the ability to execute Java. Maps to EMV 3DS
                field `browserJavaEnabled`.
            javascript_enabled:
              type:
                - boolean
                - 'null'
              description: >-
                Indicates whether the cardholder's browser has the ability to execute JavaScript. Maps to EMV
                3DS field `browserJavascriptEnabled`.
            language:
              type:
                - string
                - 'null'
              description: >-
                Language of the cardholder's browser as defined in IETF BCP47. Maps to EMV 3DS field
                `browserLanguage`.
            time_zone:
              type:
                - string
                - 'null'
              description: >-
                Time zone offset in minutes between UTC and browser local time. Maps to EMV 3DS field
                `browserTz`.
            user_agent:
              type:
                - string
                - 'null'
              description: Content of the HTTP user-agent header. Maps to EMV 3DS field `browserUserAgent`.
          required: []
        card_expiry_check:
          type: string
          description: >-
            Indicates whether the expiration date provided by the cardholder during checkout matches Lithic's
            record of the card's expiration date.
          enum:
            - MATCH
            - MISMATCH
            - NOT_PRESENT
        card_token:
          type: string
          description: >-
            Globally unique identifier for the card on which the 3DS authentication has occurred. Permitted
            values: 36-digit version 4 UUID (including hyphens).
          format: uuid
        cardholder:
          type: object
          description: Object containing data about the cardholder provided during the transaction.
          properties:
            address_match:
              type:
                - boolean
                - 'null'
              description: >-
                Indicates whether the shipping address and billing address provided by the cardholder are the
                same. This value - and assessment of whether the addresses match - is provided directly in the
                3DS request and is not determined by Lithic. Maps to EMV 3DS field `addrMatch`.
            address_on_file_match:
              $ref: '#/components/schemas/address_match_result'
            billing_address:
              type: object
              description: Object containing data on the billing address provided during the transaction.
              properties:
                address1:
                  type:
                    - string
                    - 'null'
                  description: First line of the street address provided by the cardholder.
                address2:
                  type:
                    - string
                    - 'null'
                  description: Second line of the street address provided by the cardholder.
                address3:
                  type:
                    - string
                    - 'null'
                  description: Third line of the street address provided by the cardholder.
                city:
                  type:
                    - string
                    - 'null'
                  description: City of the address provided by the cardholder.
                country:
                  type:
                    - string
                    - 'null'
                  description: Country of the address provided by the cardholder in ISO 3166-1 alpha-3 format (e.g. USA)
                  minLength: 3
                  maxLength: 3
                postal_code:
                  type:
                    - string
                    - 'null'
                  description: Postal code (e.g., ZIP code) of the address provided by the cardholder
            email:
              type:
                - string
                - 'null'
              description: >-
                Email address that is either provided by the cardholder or is on file with the merchant in a
                3RI request. Maps to EMV 3DS field `email`.
              maxLength: 254
              minLength: 1
            name:
              type:
                - string
                - 'null'
              description: Name of the cardholder. Maps to EMV 3DS field `cardholderName`.
              maxLength: 45
              minLength: 1
            phone_number_home:
              type:
                - string
                - 'null'
              description: >-
                Home phone number in E.164 format provided by the cardholder. Maps to EMV 3DS fields
                `homePhone.cc` and `homePhone.subscriber`.
              maxLength: 16
              minLength: 1
            phone_number_mobile:
              type:
                - string
                - 'null'
              description: >-
                Mobile/cell phone number in E.164 format provided by the cardholder. Maps to EMV 3DS fields
                `mobilePhone.cc` and `mobilePhone.subscriber`.
              maxLength: 16
              minLength: 1
            phone_number_work:
              type:
                - string
                - 'null'
              description: >-
                Work phone number in E.164 format provided by the cardholder. Maps to EMV 3DS fields
                `workPhone.cc` and `workPhone.subscriber`.
              maxLength: 16
              minLength: 1
            shipping_address:
              type: object
              description: Object containing data on the shipping address provided during the transaction.
              properties:
                address1:
                  type:
                    - string
                    - 'null'
                  description: First line of the street address provided by the cardholder.
                address2:
                  type:
                    - string
                    - 'null'
                  description: Second line of the street address provided by the cardholder.
                address3:
                  type:
                    - string
                    - 'null'
                  description: Third line of the street address provided by the cardholder.
                city:
                  type:
                    - string
                    - 'null'
                  description: City of the address provided by the cardholder.
                country:
                  type:
                    - string
                    - 'null'
                  description: Country of the address provided by the cardholder in ISO 3166-1 alpha-3 format (e.g. USA)
                  minLength: 3
                  maxLength: 3
                postal_code:
                  type:
                    - string
                    - 'null'
                  description: Postal code (e.g., ZIP code) of the address provided by the cardholder
          required: []
        challenge_metadata:
          type:
            - object
            - 'null'
          description: Metadata about the challenge method and delivery. Only present when a challenge is triggered.
          properties:
            method_type:
              type: string
              enum:
                - SMS_OTP
                - OUT_OF_BAND
              description: The type of challenge method used for authentication.
            phone_number:
              type:
                - string
                - 'null'
              description: The phone number used for delivering the OTP. Relevant only for SMS_OTP method.
            status:
              type: string
              enum:
                - SUCCESS
                - PENDING
                - SMS_DELIVERY_FAILED
                - CARDHOLDER_TIMEOUT
                - CANCELED_VIA_CHALLENGE_UI
                - CANCELED_OOB
                - ATTEMPTS_EXCEEDED
                - ABORTED
                - ERROR
              description: >-
                Indicates the status of the challenge


                * SUCCESS - Cardholder completed the challenge successfully

                * PENDING - Challenge was issued to the cardholder and was not completed yet

                * SMS_DELIVERY_FAILED - Lithic confirmed undeliverability of the SMS to the provided phone
                number. Relevant only for SMS_OTP method

                * CARDHOLDER_TIMEOUT - Cardholder failed to complete the challenge within the given challenge
                TTL

                * CANCELED_VIA_CHALLENGE_UI - Cardholder canceled the challenge by selecting "cancel" on the
                challenge UI

                * CANCELED_OOB - Cardholder canceled the challenge out of band

                * ATTEMPTS_EXCEEDED - Cardholder failed the challenge by either entering an incorrect OTP more
                than the allowed number of times or requesting a new OTP more than the allowed number of times

                * ABORTED - Merchant aborted authentication after a challenge was requested

                * ERROR - The challenge failed for a reason different than those documented
          required:
            - method_type
            - status
        challenge_orchestrated_by:
          type:
            - string
            - 'null'
          description: >-
            Entity that orchestrates the challenge. This won't be set for authentications for which a decision
            has not yet been made (e.g. in-flight customer decisioning request).
          enum:
            - LITHIC
            - CUSTOMER
            - NO_CHALLENGE
            - null
        channel:
          type: string
          description: Channel in which the authentication occurs. Maps to EMV 3DS field `deviceChannel`.
          enum:
            - APP_BASED
            - BROWSER
            - THREE_DS_REQUESTOR_INITIATED
        created:
          type: string
          description: >-
            Date and time when the authentication was created in Lithic's system. Permitted values: Date
            string in the ISO 8601 format yyyy-MM-dd'T'hh:mm:ssZ.
          format: date-time
        decision_made_by:
          type:
            - string
            - 'null'
          description: >-
            Entity that made the authentication decision. This won't be set for authentications for which a
            decision has not yet been made (e.g. in-flight customer decisioning request).
          enum:
            - LITHIC_RULES
            - LITHIC_DEFAULT
            - CUSTOMER_RULES
            - CUSTOMER_ENDPOINT
            - NETWORK
            - UNKNOWN
            - null
        merchant:
          type: object
          description: Object containing data about the merchant involved in the e-commerce transaction.
          properties:
            country:
              type:
                - string
                - 'null'
              description: >-
                Country code of the merchant requesting 3DS authentication. Maps to EMV 3DS field
                `merchantCountryCode`. Permitted values: ISO 3166-1 alpha-3 country code (e.g., USA). May not
                be present for non-payment authentications.
              minLength: 3
              maxLength: 3
            id:
              type:
                - string
                - 'null'
              description: >-
                Merchant identifier as assigned by the acquirer. Maps to EMV 3DS field `acquirerMerchantId`.
                May not be present for non-payment authentications.
            mcc:
              type:
                - string
                - 'null'
              description: >-
                Merchant category code assigned to the merchant that describes its business activity type.
                Maps to EMV 3DS field `mcc`. May not be present for non-payment authentications.
              minLength: 4
              maxLength: 4
            name:
              type:
                - string
                - 'null'
              description: >-
                Name of the merchant. Maps to EMV 3DS field `merchantName`. May not be present for non-payment
                authentications.
            risk_indicator:
              type: object
              description: >-
                Object containing additional data indicating additional risk factors related to the e-commerce
                transaction.
              properties:
                delivery_email_address:
                  type:
                    - string
                    - 'null'
                  description: >-
                    In transactions with electronic delivery, email address to which merchandise is delivered.
                    Maps to EMV 3DS field `deliveryEmailAddress`.
                delivery_time_frame:
                  type:
                    - string
                    - 'null'
                  description: The delivery time frame for the merchandise. Maps to EMV 3DS field `deliveryTimeframe`.
                  enum:
                    - ELECTRONIC_DELIVERY
                    - OVERNIGHT_SHIPPING
                    - SAME_DAY_SHIPPING
                    - TWO_DAY_OR_MORE_SHIPPING
                    - null
                gift_card_amount:
                  type:
                    - integer
                    - 'null'
                  description: >-
                    In prepaid or gift card purchase transactions, purchase amount total in major units (e.g.,
                    a purchase of USD $205.10 would be 205). Maps to EMV 3DS field `giftCardAmount`.
                gift_card_count:
                  type:
                    - integer
                    - 'null'
                  description: >-
                    In prepaid or gift card purchase transactions, count of individual prepaid or gift
                    cards/codes purchased. Maps to EMV 3DS field `giftCardCount`.
                gift_card_currency:
                  type:
                    - string
                    - 'null'
                  description: >-
                    In prepaid or gift card purchase transactions, currency code of the gift card. Maps to EMV
                    3DS field `giftCardCurr`. Permitted values: ISO 4217 three-character currency code (e.g.,
                    USD).
                  minLength: 3
                  maxLength: 3
                order_availability:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Indicates whether the purchase is for merchandise that is available now or at a future
                    date. Maps to EMV 3DS field `preOrderPurchaseInd`.
                  enum:
                    - FUTURE_AVAILABILITY
                    - MERCHANDISE_AVAILABLE
                    - null
                pre_order_available_date:
                  type:
                    - string
                    - 'null'
                  description: >-
                    In pre-order purchase transactions, the expected date that the merchandise will be
                    available. Maps to EMV 3DS field `preOrderDate`. Permitted values: Date string in the ISO
                    8601 format yyyy-MM-dd'T'hh:mm:ssZ
                  format: date-time
                reorder_items:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Indicates whether the cardholder is reordering previously purchased merchandise. Maps to
                    EMV 3DS field `reorderItemsInd`.
                  enum:
                    - FIRST_TIME_ORDERED
                    - REORDERED
                    - null
                shipping_method:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Shipping method that the cardholder chose for the transaction. If purchase includes one or
                    more item, this indicator is used for the physical goods; if the purchase only includes
                    digital goods, this indicator is used to describe the most expensive item purchased. Maps
                    to EMV 3DS field `shipIndicator`.
                  enum:
                    - DIGITAL_GOODS
                    - LOCKER_DELIVERY
                    - OTHER
                    - PICK_UP_AND_GO_DELIVERY
                    - SHIP_TO_BILLING_ADDRESS
                    - SHIP_TO_NON_BILLING_ADDRESS
                    - SHIP_TO_OTHER_VERIFIED_ADDRESS
                    - SHIP_TO_STORE
                    - TRAVEL_AND_EVENT_TICKETS
                    - null
              required: []
          required:
            - risk_indicator
        message_category:
          type: string
          description: >-
            Either PAYMENT_AUTHENTICATION or NON_PAYMENT_AUTHENTICATION. For NON_PAYMENT_AUTHENTICATION,
            additional_data and transaction fields are not populated.
          enum:
            - NON_PAYMENT_AUTHENTICATION
            - PAYMENT_AUTHENTICATION
        three_ds_requestor_challenge_indicator:
          type: string
          description: >-
            Indicates whether a challenge is requested for this transaction


            * `NO_PREFERENCE` - No Preference

            * `NO_CHALLENGE_REQUESTED` - No Challenge Requested

            * `CHALLENGE_PREFERENCE` - Challenge requested (3DS Requestor preference)

            * `CHALLENGE_MANDATE` - Challenge requested (Mandate)

            * `NO_CHALLENGE_RISK_ALREADY_ASSESSED` - No Challenge requested (Transactional risk analysis is
            already performed)

            * `DATA_SHARE_ONLY` - No Challenge requested (Data Share Only)

            * `OTHER` - Other indicators not captured by above. These are rarely used
          enum:
            - NO_PREFERENCE
            - NO_CHALLENGE_REQUESTED
            - CHALLENGE_PREFERENCE
            - CHALLENGE_MANDATE
            - NO_CHALLENGE_RISK_ALREADY_ASSESSED
            - DATA_SHARE_ONLY
            - OTHER
        three_ri_request_type:
          type:
            - string
            - 'null'
          description: >-
            Type of 3DS Requestor Initiated (3RI) request — i.e., a 3DS authentication that takes place at the
            initiation of the merchant rather than the cardholder. The most common example of this is where a
            merchant is authenticating before billing for a recurring transaction such as a pay TV
            subscription or a utility bill. Maps to EMV 3DS field `threeRIInd`.
          enum:
            - ACCOUNT_VERIFICATION
            - ADD_CARD
            - BILLING_AGREEMENT
            - CARD_SECURITY_CODE_STATUS_CHECK
            - DELAYED_SHIPMENT
            - DEVICE_BINDING_STATUS_CHECK
            - INSTALLMENT_TRANSACTION
            - MAIL_ORDER
            - MAINTAIN_CARD_INFO
            - OTHER_PAYMENT
            - RECURRING_TRANSACTION
            - SPLIT_PAYMENT
            - SPLIT_SHIPMENT
            - TELEPHONE_ORDER
            - TOP_UP
            - TRUST_LIST_STATUS_CHECK
            - null
        token:
          type: string
          description: >-
            Globally unique identifier for the 3DS authentication. Permitted values: 36-digit version 4 UUID
            (including hyphens).
          format: uuid
        transaction:
          type:
            - object
            - 'null'
          description: >-
            Object containing data about the e-commerce transaction for which the merchant is requesting
            authentication.
          properties:
            amount:
              type: number
              description: >-
                Amount of the purchase in minor units of currency with all punctuation removed. Maps to EMV
                3DS field `purchaseAmount`.
            cardholder_amount:
              type:
                - number
                - 'null'
              description: >-
                Approximate amount of the purchase in minor units of cardholder currency. Derived from
                `amount` using a daily conversion rate.
            currency:
              type: string
              description: >-
                Currency of the purchase. Maps to EMV 3DS field `purchaseCurrency`. Permitted values: ISO 4217
                three-character currency code (e.g., USD).
              minLength: 3
              maxLength: 3
            currency_exponent:
              type: number
              description: >-
                Minor units of currency, as specified in ISO 4217 currency exponent. Maps to EMV 3DS field
                `purchaseExponent`.
            date_time:
              type: string
              description: >-
                Date and time when the authentication was generated by the merchant/acquirer's 3DS server.
                Maps to EMV 3DS field `purchaseDate`. Permitted values: Date string in the ISO 8601 format
                yyyy-MM-dd'T'hh:mm:ssZ.
              format: date-time
            type:
              type:
                - string
                - 'null'
              description: >-
                Type of the transaction for which a 3DS authentication request is occurring. Maps to EMV 3DS
                field `transType`.
              enum:
                - ACCOUNT_FUNDING
                - CHECK_ACCEPTANCE
                - GOODS_SERVICE_PURCHASE
                - PREPAID_ACTIVATION_AND_LOAD
                - QUASI_CASH_TRANSACTION
                - null
          required:
            - amount
            - cardholder_amount
            - currency
            - currency_exponent
            - date_time
            - type
      required:
        - account_type
        - authentication_result
        - card_expiry_check
        - card_token
        - cardholder
        - channel
        - created
        - merchant
        - message_category
        - three_ds_requestor_challenge_indicator
        - token
    challenge-response:
      title: Challenge Response object
      type: object
      description: Response from Card Program to a 3DS Authentication challenge
      properties:
        token:
          type: string
          description: >-
            Globally unique identifier for 3DS Authentication that resulted in PENDING_CHALLENGE
            authentication result.
          format: uuid
        challenge_response:
          type: string
          description: Whether the Cardholder has approved or declined the issued Challenge
          enum:
            - APPROVE
            - DECLINE_BY_CUSTOMER
      required:
        - token
        - challenge_response
    challenge-response-unprocessable:
      title: Challenge Response Unprocessable
      type: object
      description: >-
        Error response when a challenge cannot be completed because it has already been marked complete.
        Common causes include challenge timeout, too many attempts, or cancellation. Refer to the message
        parameter for the specific reason
      properties:
        message:
          type: string
          description: Error message explaining why the challenge could not be completed
      required:
        - message
    card_transaction_status_filter:
      title: Card Transaction Status Filter
      type: string
      enum:
        - PENDING
        - VOIDED
        - SETTLED
        - DECLINED
        - EXPIRED
    list_transactions_response:
      title: List Transactions Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/card_transaction'
        has_more:
          description: Indicates whether there are more transactions to be retrieved.
          type: boolean
      examples:
        - data:
            - account_token: db3942f0-0627-4887-a190-1ea83b46d091
              acquirer_fee: 0
              acquirer_reference_number: null
              amount: 1800
              amounts:
                cardholder:
                  amount: 0
                  conversion_rate: '1.000000'
                  currency: USD
                hold:
                  amount: -1800
                  currency: USD
                merchant:
                  amount: 0
                  currency: USD
                settlement:
                  amount: 0
                  currency: USD
              authorization_amount: 1800
              authorization_code: '071471'
              avs:
                zipcode: '95006'
                address: 123 Evergreen Terrace
              card_token: aac502f9-aecc-458a-954e-4bcf6edb6123
              cardholder_authentication:
                liability_shift: 3DS_AUTHENTICATED
                authentication_result: SUCCESS
                authentication_method: FRICTIONLESS
                three_ds_authentication_token: fc60d37d-95f7-419c-b628-dd9fbf9d80d0
                decision_made_by: NETWORK
              created: '2023-08-03T18:42:30Z'
              events:
                - amount: 1800
                  amounts:
                    cardholder:
                      amount: 1800
                      conversion_rate: '1.000000'
                      currency: USD
                    merchant:
                      amount: 1800
                      currency: USD
                    settlement: null
                  created: '2023-08-03T18:42:30Z'
                  detailed_results:
                    - APPROVED
                  effective_polarity: DEBIT
                  network_info:
                    acquirer:
                      acquirer_reference_number: null
                      retrieval_reference_number: '064386558597'
                    amex: null
                    mastercard:
                      banknet_reference_number: U1HSCJ
                      switch_serial_number: null
                      original_banknet_reference_number: null
                      original_switch_serial_number: null
                    visa: null
                  result: APPROVED
                  rule_results: []
                  token: bbbf1e86-322d-11ee-9779-00505685a123
                  type: AUTHORIZATION
              financial_account_token: a3b113e8-01fe-42d3-b900-b9adf3f15496
              merchant:
                acceptor_id: '452322000053360'
                acquiring_institution_id: '333301802529120'
                city: gosq.com
                country: USA
                descriptor: SQ *SOMA EATS
                mcc: '5812'
                state: CA
                postal_code: '94107'
                street_address: null
                phone_number: null
              service_location: null
              merchant_amount: 1800
              merchant_authorization_amount: 1800
              merchant_currency: USD
              network: MASTERCARD
              network_risk_score: 5
              pos:
                entry_mode:
                  card: NOT_PRESENT
                  cardholder: NOT_PRESENT
                  pan: ECOMMERCE
                  pin_entered: false
                terminal:
                  attended: false
                  card_retention_capable: false
                  on_premise: false
                  operator: UNKNOWN
                  partial_approval_capable: false
                  pin_capability: NOT_CAPABLE
                  type: UNKNOWN
              result: APPROVED
              settled_amount: 0
              status: PENDING
              tags:
                risk-level: high
              token: c30c2182-1e69-4e0d-b40f-eec0d2a19123
              token_info:
                wallet_type: APPLE_PAY
              updated: '2023-08-03T18:42:30Z'
          has_more: false
    Transfer:
      properties:
        category:
          description: |
            Status types:
            * `TRANSFER` - Internal transfer of funds between financial accounts in your program.
          enum:
            - TRANSFER
          type: string
        created:
          description: Date and time when the transfer occurred. UTC time zone.
          format: date-time
          type: string
        currency:
          description: 3-character alphabetic ISO 4217 code for the settling currency of the transaction.
          type: string
        descriptor:
          description: A string that provides a description of the transfer; may be useful to display to users.
          type: string
        events:
          description: A list of all financial events that have modified this trasnfer.
          items:
            $ref: '#/components/schemas/financial_event'
          type: array
        from_balance:
          description: The updated balance of the sending financial account.
          items:
            $ref: '#/components/schemas/balance'
          type: array
        pending_amount:
          description: >
            Pending amount of the transaction in the currency's smallest unit (e.g., cents), including any
            acquirer fees.

            The value of this field will go to zero over time once the financial transaction is settled.
          type: integer
        result:
          description: >-
            APPROVED transactions were successful while DECLINED transactions were declined by user, Lithic,
            or the network.
          enum:
            - APPROVED
            - DECLINED
          type: string
        settled_amount:
          description: Amount of the transaction that has been settled in the currency's smallest unit (e.g., cents).
          type: integer
        status:
          description: |
            Status types:
            * `DECLINED` - The transfer was declined.
            * `EXPIRED` - The transfer was held in pending for too long and expired.
            * `PENDING` - The transfer is pending release from a hold.
            * `SETTLED` - The transfer is completed.
            * `VOIDED` - The transfer was reversed before it settled.
          enum:
            - DECLINED
            - EXPIRED
            - PENDING
            - SETTLED
            - VOIDED
          type: string
        to_balance:
          description: The updated balance of the receiving financial account.
          items:
            $ref: '#/components/schemas/balance'
          type: array
        token:
          description: Globally unique identifier for the transfer event.
          format: uuid
          type: string
        updated:
          description: Date and time when the financial transaction was last updated. UTC time zone.
          format: date-time
          type: string
      type: object
    limit_with_progress:
      title: Limit With Progress
      type: object
      properties:
        limit:
          description: The limit amount
          type: integer
          minimum: 0
        amount_originated:
          description: Amount originated towards limit
          type: integer
          minimum: 0
      required:
        - limit
    directional_limits:
      title: Directional Limits
      type: object
      properties:
        credit:
          description: Credit limits
          $ref: '#/components/schemas/limit_with_progress'
        debit:
          description: Debit limits
          $ref: '#/components/schemas/limit_with_progress'
      required:
        - credit
        - debit
    transfer_limit_item:
      title: Transfer Limit Item
      type: object
      properties:
        company_id:
          description: Company ID
          type: string
        is_fbo:
          description: Whether the company is a FBO; based on the company ID prefix
          type: boolean
        date:
          description: The date for the limit view (ISO format)
          type: string
          format: date
        program_limit_per_transaction:
          description: Program transaction limits
          $ref: '#/components/schemas/directional_limits'
        daily_limit:
          description: Daily limits with progress
          $ref: '#/components/schemas/directional_limits'
        monthly_limit:
          description: Monthly limits with progress
          $ref: '#/components/schemas/directional_limits'
      required:
        - company_id
        - is_fbo
        - date
        - program_limit_per_transaction
        - daily_limit
        - monthly_limit
    transfer_limits_response:
      title: Transfer Limits Response
      type: object
      properties:
        data:
          description: List of transfer limits
          type: array
          items:
            $ref: '#/components/schemas/transfer_limit_item'
        has_more:
          description: Whether there are more transfer limits
          type: boolean
      required:
        - data
        - has_more
    on_closed_account:
      title: On Closed Account
      description: What to do if the financial account is closed when posting an operation
      type: string
      enum:
        - FAIL
        - USE_SUSPENSE
      default: FAIL
    create_book_transfer_request:
      title: Create Book Transfer Request
      type: object
      properties:
        amount:
          description: >-
            Amount to be transferred in the currency's smallest unit (e.g., cents for USD). This should always
            be a positive value.
          type: integer
          minimum: 1
        category:
          $ref: '#/components/schemas/book_transfer_category'
        from_financial_account_token:
          description: >-
            Globally unique identifier for the financial account or card that will send the funds. Accepted
            type dependent on the program's use case.
          format: uuid
          type: string
        memo:
          description: Optional descriptor for the transfer.
          type: string
          maxLength: 512
        subtype:
          description: The program specific subtype code for the specified category/type.
          type: string
        to_financial_account_token:
          description: >-
            Globally unique identifier for the financial account or card that will receive the funds. Accepted
            type dependent on the program's use case.
          format: uuid
          type: string
        token:
          description: >-
            Customer-provided token that will serve as an idempotency token. This token will become the
            transaction token.
          format: uuid
          type: string
        type:
          $ref: '#/components/schemas/book_transfer_type'
        external_id:
          description: External ID defined by the customer
          type: string
        on_closed_account:
          $ref: '#/components/schemas/on_closed_account'
        hold_token:
          description: Token of an existing hold to settle when this transfer is initiated
          format: uuid
          type: string
      required:
        - amount
        - category
        - from_financial_account_token
        - subtype
        - to_financial_account_token
        - type
    retry_book_transfer_request:
      title: Retry Book Transfer Request
      type: object
      properties:
        retry_token:
          description: >-
            Customer-provided token that will serve as an idempotency token. This token will become the
            transaction token.
          format: uuid
          type: string
      required:
        - retry_token
    external_payments_response:
      title: External Payments Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/external_payment_response'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    external_payment_progress_to:
      title: External Payment Progress To
      type: string
      enum:
        - SETTLED
        - RELEASED
    create_external_payment_request:
      title: Create External Payment Request
      type: object
      properties:
        category:
          $ref: '#/components/schemas/external_payment_category'
        financial_account_token:
          type: string
          format: uuid
        amount:
          type: integer
        memo:
          type: string
        user_defined_id:
          type: string
        effective_date:
          type: string
          format: date
        token:
          description: >-
            Customer-provided token that will serve as an idempotency token. This token will become the
            transaction token.
          type: string
          format: uuid
        payment_type:
          $ref: '#/components/schemas/external_payment_direction'
        progress_to:
          $ref: '#/components/schemas/external_payment_progress_to'
      required:
        - category
        - financial_account_token
        - amount
        - effective_date
        - payment_type
    external_payment_action_with_progress_to_request:
      title: External Payment Action with Progress to Request
      type: object
      properties:
        memo:
          type: string
        effective_date:
          type: string
          format: date
        progress_to:
          $ref: '#/components/schemas/external_payment_progress_to'
      required:
        - effective_date
    external_payment_action_request:
      title: External Payment Action Request
      type: object
      properties:
        memo:
          type: string
        effective_date:
          type: string
          format: date
      required:
        - effective_date
    management_operation_transactions_response:
      title: Management Operation Transactions Response
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/management_operation_transaction'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    create_management_operation_request:
      title: Create Management Operation Request
      type: object
      properties:
        category:
          $ref: '#/components/schemas/management_operation_category'
        event_type:
          $ref: '#/components/schemas/management_operation_event_type'
        subtype:
          type: string
        financial_account_token:
          type: string
          format: uuid
        amount:
          type: integer
          minimum: 1
        memo:
          type: string
        user_defined_id:
          type: string
        effective_date:
          type: string
          format: date
        token:
          description: >-
            Customer-provided token that will serve as an idempotency token. This token will become the
            transaction token.
          type: string
          format: uuid
        direction:
          $ref: '#/components/schemas/management_operation_direction'
        on_closed_account:
          $ref: '#/components/schemas/on_closed_account'
      required:
        - category
        - event_type
        - financial_account_token
        - amount
        - effective_date
        - direction
    management_operation_action_request:
      title: Management Operation Action Request
      type: object
      properties:
        memo:
          type: string
        effective_date:
          type: string
          format: date
      required:
        - effective_date
    NetworkProgram:
      properties:
        token:
          description: Lithic-generated unique identifier for the program
          format: uuid
          type: string
        registered_program_identification_number:
          description: RPIN value assigned by the network.
          type: string
        name:
          description: The name of the network program.
          type: string
        default_product_code:
          description: Network product ID associated with this program.
          type: string
      required:
        - token
        - registered_program_identification_number
        - name
        - default_product_code
      type: object
    funding_event_settlement:
      title: Funding Event Settlement
      type: object
      properties:
        settled_gross_amount:
          type: integer
          format: int64
        network_settlement_date:
          type: string
          example: '2024-01-01'
          format: date
      required:
        - settled_gross_amount
        - network_settlement_date
    funding_event_response:
      title: Funding Event Response
      type: object
      properties:
        token:
          description: Unique token ID
          type: string
          example: b68b7424-aa69-4cbc-a946-30d90181b621
          format: uuid
        collection_tokens:
          description: >-
            IDs of collections, further information can be gathered from the appropriate collection API based
            on collection_resource_type
          type: array
          items:
            type: string
            example: b68b7424-aa69-4cbc-a946-30d90181b621
            format: uuid
        previous_high_watermark:
          description: Time of the previous high watermark
          type: string
          example: '2024-01-01T00:00:00Z'
          format: date-time
        high_watermark:
          description: Time of the high watermark
          type: string
          example: '2024-01-01T00:00:00Z'
          format: date-time
        collection_resource_type:
          description: Collection resource type
          type: string
          example: PAYMENT
          enum:
            - BOOK_TRANSFER
            - PAYMENT
        network_settlement_summary:
          description: Network settlement summary breakdown by network settlement date
          type: array
          items:
            $ref: '#/components/schemas/funding_event_settlement'
        created:
          description: Time of the creation
          type: string
          example: '2024-01-01T00:00:00Z'
          format: date-time
        updated:
          description: Time of the update
          type: string
          example: '2024-01-01T00:00:00Z'
          format: date-time
      required:
        - token
        - previous_high_watermark
        - high_watermark
        - collection_resource_type
        - created
        - updated
        - network_settlement_summary
        - collection_tokens
    funding_event_responses:
      title: Funding Event Responses
      type: object
      properties:
        data:
          type: array
          description: Funding Event Response
          items:
            $ref: '#/components/schemas/funding_event_response'
        has_more:
          type: boolean
      required:
        - data
        - has_more
    funding_event_details_response:
      title: Funding Event Details Response
      type: object
      properties:
        token:
          description: Unique token ID
          type: string
          example: b68b7424-aa69-4cbc-a946-30d90181b621
          format: uuid
        settlement_summary_url:
          description: URL of the settlement summary
          type: string
          format: uri
        settlement_details_url:
          description: URL of the settlement details
          type: string
          format: uri
      required:
        - token
        - settlement_details_url
        - settlement_summary_url
    transaction-series:
      title: Transaction Series
      description: >-
        Contains identifiers for the transaction and specific event within being disputed; null if no
        transaction can be identified
      type: object
      properties:
        type:
          description: >-
            The type of transaction series associating the dispute and the original transaction. Always set to
            DISPUTE
          type: string
          enum:
            - DISPUTE
        related_transaction_token:
          description: Token of the original transaction being disputed, in UUID format
          type: string
          format: uuid
        related_transaction_event_token:
          description: >-
            Token of the specific event in the original transaction being disputed, in UUID format; null if no
            event can be identified
          oneOf:
            - type: string
              format: uuid
            - type: 'null'
      required:
        - type
        - related_transaction_token
        - related_transaction_event_token
    liability-allocation:
      title: Liability Allocation
      description: Current breakdown of how liability is allocated for the disputed amount
      type: object
      properties:
        original_amount:
          description: The initial amount disputed
          type: integer
        recovered_amount:
          description: The amount that has been recovered from the merchant through the dispute process
          type: integer
        written_off_amount:
          description: The amount the issuer has chosen to write off
          type: integer
        denied_amount:
          description: The amount that has been denied to the cardholder
          type: integer
        remaining_amount:
          description: Any disputed amount that is still outstanding, i.e. has not been recovered, written off, or denied
          type: integer
      required:
        - original_amount
        - recovered_amount
        - written_off_amount
        - denied_amount
        - remaining_amount
    workflow-event-data:
      title: Workflow Event Data
      description: Details specific to workflow events
      type: object
      properties:
        type:
          description: Event type discriminator
          type: string
          const: WORKFLOW
        stage:
          description: Current stage of the dispute workflow
          type: string
          enum:
            - CLAIM
        action:
          description: Action taken in this stage
          type: string
          enum:
            - OPENED
            - CLOSED
            - REOPENED
        reason:
          description: Reason for the action
          type:
            - string
            - 'null'
        amount:
          description: Amount in minor units
          type:
            - integer
            - 'null'
        disposition:
          description: Dispute resolution outcome
          type:
            - string
            - 'null'
          enum:
            - WON
            - LOST
            - PARTIALLY_WON
            - WITHDRAWN
            - DENIED
            - null
      required:
        - type
        - stage
        - action
        - reason
        - amount
        - disposition
    financial-event-data:
      title: Financial Event Data
      description: Details specific to financial events
      type: object
      properties:
        type:
          description: Event type discriminator
          type: string
          const: FINANCIAL
        stage:
          description: Stage at which the financial event occurred
          type: string
          enum:
            - CHARGEBACK
            - REPRESENTMENT
            - PREARBITRATION
            - ARBITRATION
            - COLLABORATION
        amount:
          description: Amount in minor units
          type: integer
        polarity:
          description: Direction of funds flow
          type: string
          enum:
            - CREDIT
            - DEBIT
      required:
        - type
        - stage
        - amount
        - polarity
    cardholder-liability-event-data:
      title: Cardholder Liability Event Data
      description: Details specific to cardholder liability events
      type: object
      properties:
        type:
          description: Event type discriminator
          type: string
          const: CARDHOLDER_LIABILITY
        action:
          description: Action taken regarding cardholder liability
          type: string
          enum:
            - PROVISIONAL_CREDIT_GRANTED
            - PROVISIONAL_CREDIT_REVERSED
            - WRITTEN_OFF
        amount:
          description: Amount in minor units
          type: integer
        reason:
          description: Reason for the action
          type: string
      required:
        - type
        - action
        - amount
        - reason
    event:
      title: Event
      description: Event that occurred in the dispute lifecycle
      type: object
      properties:
        token:
          description: Unique identifier for the event, in UUID format
          type: string
          format: uuid
        type:
          description: Type of event
          type: string
          enum:
            - WORKFLOW
            - FINANCIAL
            - CARDHOLDER_LIABILITY
        created:
          description: When the event occurred
          type: string
          format: date-time
        data:
          description: Details specific to the event type
          oneOf:
            - $ref: '#/components/schemas/workflow-event-data'
            - $ref: '#/components/schemas/financial-event-data'
            - $ref: '#/components/schemas/cardholder-liability-event-data'
          discriminator:
            propertyName: type
      required:
        - token
        - type
        - created
        - data
    dispute:
      title: Dispute
      description: The Dispute object tracks the progression of a dispute throughout its lifecycle.
      type: object
      properties:
        case_id:
          description: Identifier assigned by the network for this dispute.
          type:
            - string
            - 'null'
        token:
          description: Token assigned by Lithic for the dispute, in UUID format.
          type: string
          format: uuid
        card_token:
          description: Token for the card used in the dispute, in UUID format.
          type: string
          format: uuid
        account_token:
          description: Token for the account associated with the dispute, in UUID format.
          type: string
          format: uuid
        network:
          description: Card network handling the dispute.
          type: string
          enum:
            - VISA
            - MASTERCARD
        currency:
          description: Three-letter ISO 4217 currency code.
          type: string
          pattern: ^[A-Z]{3}$
          example: USD
        created:
          description: When the dispute was created.
          type: string
          format: date-time
        updated:
          description: When the dispute was last updated.
          type: string
          format: date-time
        merchant:
          $ref: '#/components/schemas/merchant'
        transaction_series:
          oneOf:
            - $ref: '#/components/schemas/transaction-series'
            - type: 'null'
        liability_allocation:
          $ref: '#/components/schemas/liability-allocation'
        status:
          description: Current status of the dispute.
          type:
            - string
            - 'null'
          enum:
            - OPEN
            - CLOSED
            - null
        disposition:
          description: Dispute resolution outcome
          type:
            - string
            - 'null'
          enum:
            - WON
            - LOST
            - PARTIALLY_WON
            - WITHDRAWN
            - DENIED
            - null
        events:
          description: Chronological list of events that have occurred in the dispute lifecycle
          type: array
          items:
            $ref: '#/components/schemas/event'
      required:
        - case_id
        - token
        - card_token
        - account_token
        - network
        - currency
        - created
        - updated
        - merchant
        - transaction_series
        - liability_allocation
        - status
        - disposition
        - events
    disputes-response:
      title: Disputes Response
      description: Response for listing disputes
      type: object
      properties:
        data:
          description: Array of dispute objects
          type: array
          items:
            $ref: '#/components/schemas/dispute'
        has_more:
          description: Whether there are more results available
          type: boolean
      required:
        - data
        - has_more
    account-holder-created:
      title: Account Holder Created
      examples:
        - account_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-26 16:41:40.530987'
          status: ACCEPTED
          status_reason: []
          token: 00000000-0000-0000-0000-000000000001
          required_documents: []
        - account_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-26 16:41:40.530987'
          status: PENDING_REVIEW
          status_reason:
            - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
          token: 00000000-0000-0000-0000-000000000001
          required_documents:
            - entity_token: 83cf25ae-c14f-4d10-9fa2-0119f36c7286
              status_reasons:
                - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
              valid_documents:
                - EIN_LETTER
                - TAX_RETURN
                - CERTIFICATE_OF_GOOD_STANDING
                - ARTICLES_OF_INCORPORATION
                - ARTICLES_OF_ORGANIZATION
                - CERTIFICATE_OF_FORMATION
                - BYLAWS
                - GOVERNMENT_BUSINESS_LICENSE
                - PARTNERSHIP_AGREEMENT
                - BANK_STATEMENT
                - UTILITY_BILL_STATEMENT
      properties:
        account_token:
          description: The token of the account that was created.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
        created:
          description: When the account_holder was created
          format: date-time
          type: string
        status:
          description: The status of the account_holder that was created.
          enum:
            - ACCEPTED
            - PENDING_REVIEW
          example: ACCEPTED
          type: string
        status_reason:
          items:
            description: >-
              If status is not ACCEPTED, status_reason provides the reasons an account_holder is REJECTED or
              PENDING_REVIEW.
            type: string
          type: array
        token:
          description: The token of the account_holder that was created.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
        required_documents:
          type: array
          items:
            $ref: '#/components/schemas/required-document'
      type: object
    account-holder-updated:
      title: Account Holder Updated
      oneOf:
        - title: KYB Payload
          description: KYB payload for an updated account holder.
          type: object
          properties:
            token:
              description: The token of the account_holder that was created.
              example: 00000000-0000-0000-0000-000000000001
              format: uuid
              type: string
            update_request:
              type: object
              description: Original request to update the account holder.
              properties:
                beneficial_owner_individuals:
                  description: >-
                    You must submit a list of all direct and indirect individuals with 25% or more ownership
                    in the company. A maximum of 4 beneficial owners can be submitted. If no individual owns
                    25% of the company you do not need to send beneficial owner information.

                    See [FinCEN
                    requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
                    (Section I) for more background on individuals that should be included.
                  items:
                    $ref: '#/components/schemas/individual'
                  minItems: 0
                  type: array
                business_entity:
                  description: Information for business for which the account is being opened and KYB is being run.
                  $ref: '#/components/schemas/kyb-business-entity'
                control_person:
                  description: >-
                    An individual with significant responsibility for managing the legal entity (e.g., a Chief
                    Executive Officer, Chief Financial Officer, Chief Operating Officer, Managing Member,
                    General Partner, President, Vice President, or Treasurer). This can be an executive, or
                    someone who will have program-wide access to the cards that Lithic will provide. In some
                    cases, this individual could also be a beneficial owner listed above. See [FinCEN
                    requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
                    (Section II) for more background.
                  $ref: '#/components/schemas/individual'
            external_id:
              description: A user provided id that can be used to link an account holder with an external system
              type: string
            naics_code:
              description: >-
                6-digit North American Industry Classification System (NAICS) code for the business. Only
                present if naics_code was included in the update request.
              example: '541512'
              type: string
            nature_of_business:
              description: >-
                Short description of the company's line of business (i.e., what does the company do?). Values
                longer than 255 characters will be truncated before KYB verification
              example: Software company selling solutions to the restaurant industry
              type: string
            website_url:
              description: Company website URL.
              example: www.mybusiness.com
              type: string
          required:
            - token
            - update_request
          additionalProperties: false
        - title: KYC Payload
          description: KYC payload for an updated account holder.
          type: object
          properties:
            token:
              description: The token of the account_holder that was created.
              example: 00000000-0000-0000-0000-000000000001
              format: uuid
              type: string
            update_request:
              type: object
              description: Original request to update the account holder.
              properties:
                individual:
                  $ref: '#/components/schemas/individual'
                  description: Information on the individual for whom the account is being opened and KYC is being run.
            external_id:
              description: A user provided id that can be used to link an account holder with an external system
              type: string
          required:
            - token
            - update_request
          additionalProperties: false
        - title: Legacy Payload
          description: Legacy payload for an updated account holder.
          type: object
          properties:
            business_account_token:
              description: If applicable, represents the business account token associated with the account_holder.
              example: 00000000-0000-0000-0000-000000000001
              format: uuid
              type:
                - string
                - 'null'
            created:
              description: When the account_holder updated event was created
              format: date-time
              type: string
            email:
              description: >-
                If updated, the newly updated email associated with the account_holder otherwise the existing
                email is provided.
              example: johnny@lithic.com
              type: string
            external_id:
              description: If applicable, represents the external_id associated with the account_holder.
              example: 00000000-0000-0000-0000-000000000001
              type:
                - string
                - 'null'
            first_name:
              description: If applicable, represents the account_holder's first name.
              example: Johnny
              type: string
            last_name:
              description: If applicable, represents the account_holder's last name.
              example: Appleseed
              type: string
            legal_business_name:
              description: If applicable, represents the account_holder's business name.
              example: Lithic
              type: string
            phone_number:
              description: >-
                If updated, the newly updated phone_number associated with the account_holder otherwise the
                existing phone_number is provided.
              example: '+15555555555'
              type: string
            token:
              description: The token of the account_holder that was created.
              example: 00000000-0000-0000-0000-000000000001
              format: uuid
              type: string
          required:
            - token
    account-holder-verification:
      title: Account Holder Verification
      examples:
        - account_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-26 16:41:40.530938'
          status: ACCEPTED
          status_reasons: []
          token: 00000000-0000-0000-0000-000000000001
      properties:
        account_token:
          description: The token of the account being verified.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
        created:
          description: When the account_holder verification status was updated
          format: date-time
          type: string
        status:
          description: The status of the account_holder that was created
          enum:
            - ACCEPTED
            - PENDING_REVIEW
            - REJECTED
          example: ACCEPTED
          type: string
        status_reasons:
          items:
            description: >-
              If status is not ACCEPTED, status_reasons provides the reasons an account_holder was REJECTED or
              is PENDING_REVIEW.
            type: string
          type: array
        token:
          description: The token of the account_holder being verified.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
      type: object
    account-holder-document-updated:
      title: Account Holder Document Updated
      examples:
        - account_holder_token: 2b52494a-ae73-4ab1-97e8-2dd1d51d18b0
          created: '2023-09-26 16:41:40.530987'
          document_type: EIN_LETTER
          entity_token: c5f2d594-d957-4781-8877-fbea31f5944a
          required_document_uploads:
            - accepted_entity_status_reasons: []
              created: '2024-08-05 20:48:51.746833'
              image_type: FRONT
              rejected_entity_status_reasons: []
              status: UPLOADED
              status_reasons: []
              token: 9e1d69a1-377b-463a-b991-01b3c81519b6
              updated: '2024-08-05 21:08:23.635573'
            - accepted_entity_status_reasons: []
              created: '2024-08-04 01:32:44.113765'
              image_type: FRONT
              rejected_entity_status_reasons:
                - PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
              status: REJECTED
              status_reasons:
                - DOCUMENT_MISSING_REQUIRED_DATA
              token: 9e1d69a1-377b-463a-b991-01b3c81519b6
              updated: '2024-08-04 02:18:47.113773'
          token: 9175a05c-a9da-4082-8e14-9296427ebba7
      properties:
        account_holder_token:
          description: The token of the account_holder that the document belongs to
          example: 2b52494a-ae73-4ab1-97e8-2dd1d51d18b0
          format: uuid
          type: string
        created:
          description: When the account_holder was created
          format: date-time
          type: string
        document_type:
          $ref: '#/components/schemas/document-type'
        entity_token:
          description: The token of the entity that the document belongs to
          example: c5f2d594-d957-4781-8877-fbea31f5944a
          format: uuid
          type: string
        required_document_uploads:
          items:
            description: A document upload that belongs to the overall account holder document
            properties:
              created:
                description: When the document upload was created
                format: date-time
                type: string
              image_type:
                description: The type of image that was uploaded
                enum:
                  - FRONT
                  - BACK
                type: string
              status:
                description: The status of the document upload
                $ref: '#/components/schemas/document-upload-status'
              status_reasons:
                items:
                  description: If status is REJECTED, status_reasons provides the reasons the document was rejected.
                  type: string
                type: array
              accepted_entity_status_reasons:
                items:
                  description: >-
                    A list of status reasons associated with a KYB account holder that have been satisfied by
                    the document upload
                  type: string
                type: array
              rejected_entity_status_reasons:
                items:
                  description: >-
                    A list of status reasons associated with a KYB account holder that have not been satisfied
                    by the document upload
                  type: string
                type: array
              token:
                description: The token of the document upload
                format: uuid
                type: string
              updated:
                description: When the document upload was last updated
                format: date-time
                type: string
          type: array
        token:
          description: The token of the account holder document
          example: 9175a05c-a9da-4082-8e14-9296427ebba7
          format: uuid
          type: string
      type: object
    asa_network_specific_data_mastercard:
      type: object
      properties:
        transaction_type_identifier:
          oneOf:
            - type: 'null'
              description: Transaction type identifier not available.
            - type: string
              description: Indicates the type of additional transaction purpose.
              minLength: 3
              maxLength: 3
        ecommerce_security_level_indicator:
          oneOf:
            - type: 'null'
              description: Electronic commerce security level indicator not available.
            - type: string
              description: Indicates the electronic commerce security level and UCAF collection.
              minLength: 3
              maxLength: 3
        on_behalf_service_result:
          oneOf:
            - type: 'null'
              description: On-behalf service result not available.
            - type: array
              items:
                type: object
                properties:
                  service:
                    type: string
                    description: Indicates the service performed on the transaction.
                    minLength: 2
                    maxLength: 2
                  result_1:
                    type: string
                    description: Indicates the results of the service processing.
                    minLength: 1
                    maxLength: 1
                  result_2:
                    type: string
                    description: Identifies the results of the service processing.
                    minLength: 1
                    maxLength: 1
                required:
                  - service
                  - result_1
                  - result_2
              description: >-
                The On-behalf Service performed on the transaction and the results. Contains all applicable,
                on-behalf service results that were performed on a given transaction.
              maxItems: 10
    asa_network_specific_data_visa:
      type: object
      properties:
        business_application_identifier:
          oneOf:
            - type: 'null'
              description: Business application identifier not available.
            - type: string
              description: >-
                Identifies the purpose or category of a transaction, used to classify and process transactions
                according to Visa’s rules.
              minLength: 2
              maxLength: 2
    card-type:
      type: string
      enum:
        - SINGLE_USE
        - MERCHANT_LOCKED
        - UNLOCKED
        - PHYSICAL
        - DIGITAL_WALLET
        - VIRTUAL
    asa_request_card:
      description: Card object in ASA
      type: object
      properties:
        hostname:
          description: Hostname of card’s locked merchant (will be empty if not applicable)
          type: string
        last_four:
          description: Last four digits of the card number
          type: string
        memo:
          description: >-
            Customizable name to identify the card. We recommend against using this field to store JSON data
            as it can cause unexpected behavior.
          type: string
        spend_limit:
          description: >-
            Amount (in cents) to limit approved authorizations. Purchase requests above the spend limit will
            be declined (refunds and credits will be approved).


            Note that while spend limits are enforced based on authorized and settled volume on a card, they
            are not recommended to be used for balance or reconciliation-level accuracy. Spend limits also
            cannot block force posted charges (i.e., when a merchant sends a clearing message without a prior
            authorization).
          type: integer
          format: int64
        spend_limit_duration:
          description: >-
            Note that to support recurring monthly payments, which can occur on different day every month, the
            time window we consider for MONTHLY velocity starts 6 days after the current calendar date one
            month prior.
          type: string
          enum:
            - ANNUALLY
            - FOREVER
            - MONTHLY
            - TRANSACTION
        state:
          type: string
          enum:
            - CLOSED
            - OPEN
            - PAUSED
            - PENDING_ACTIVATION
            - PENDING_FULFILLMENT
        type:
          $ref: '#/components/schemas/card-type'
        token:
          description: Globally unique identifier for the card.
          type: string
          format: uuid
    asa_request_pos_entry_mode:
      description: POS > Entry Mode object in ASA
      type: object
      properties:
        card:
          description: Card Presence Indicator
          type: string
          enum:
            - PRESENT
            - NOT_PRESENT
            - UNKNOWN
        cardholder:
          description: Cardholder Presence Indicator
          type: string
          enum:
            - DEFERRED_BILLING
            - ELECTRONIC_ORDER
            - INSTALLMENT
            - MAIL_ORDER
            - NOT_PRESENT
            - PRESENT
            - REOCCURRING
            - TELEPHONE_ORDER
            - UNKNOWN
        pan:
          description: Method of entry for the PAN
          type: string
          enum:
            - AUTO_ENTRY
            - BAR_CODE
            - CONTACTLESS
            - ECOMMERCE
            - ERROR_KEYED
            - ERROR_MAGNETIC_STRIPE
            - ICC
            - KEY_ENTERED
            - MAGNETIC_STRIPE
            - MANUAL
            - OCR
            - SECURE_CARDLESS
            - UNSPECIFIED
            - UNKNOWN
            - CREDENTIAL_ON_FILE
            - ECOMMERCE
        pin_entered:
          type: boolean
          description: Indicates whether the cardholder entered the PIN. True if the PIN was entered.
    asa_pos_terminal:
      title: Point of Sale Terminal
      type: object
      properties:
        acceptor_terminal_id:
          description: >-
            Uniquely identifies a terminal at the card acceptor location of acquiring institutions or merchant
            POS Systems. Left justified with trailing spaces.
          type:
            - string
            - 'null'
          minLength: 8
          maxLength: 8
          pattern: ^[a-zA-Z0-9 ]*$
        attended:
          description: True if a clerk is present at the sale.
          type: boolean
        card_retention_capable:
          description: True if the terminal is capable of retaining the card.
          type: boolean
        on_premise:
          description: True if the sale was made at the place of business (vs. mobile).
          type: boolean
        operator:
          description: The person that is designated to swipe the card
          enum:
            - ADMINISTRATIVE
            - CARDHOLDER
            - CARD_ACCEPTOR
            - UNKNOWN
          type: string
        partial_approval_capable:
          type: boolean
          description: >-
            True if the terminal is capable of partial approval. Partial approval is when part of a
            transaction is approved and another payment must be used for the remainder. Example scenario: A
            $40 transaction is attempted on a prepaid card with a $25 balance. If partial approval is enabled,
            $25 can be authorized, at which point the POS will prompt the user for an additional payment of
            $15.
        pin_capability:
          description: Status of whether the POS is able to accept PINs
          enum:
            - CAPABLE
            - INOPERATIVE
            - NOT_CAPABLE
            - UNSPECIFIED
          type: string
        type:
          description: POS Type
          enum:
            - ADMINISTRATIVE
            - ATM
            - AUTHORIZATION
            - COUPON_MACHINE
            - DIAL_TERMINAL
            - ECOMMERCE
            - ECR
            - FUEL_MACHINE
            - HOME_TERMINAL
            - MICR
            - OFF_PREMISE
            - PAYMENT
            - PDA
            - PHONE
            - POINT
            - POS_TERMINAL
            - PUBLIC_UTILITY
            - SELF_SERVICE
            - TELEVISION
            - TELLER
            - TRAVELERS_CHECK_MACHINE
            - VENDING
            - VOICE
            - UNKNOWN
          type: string
      required:
        - attended
        - card_retention_capable
        - on_premise
        - operator
        - partial_approval_capable
        - pin_capability
        - type
      $id: https://lithic.com/schemas/common/2024-01-15/card_transaction/asa_pos_terminal.json
    converted_amount:
      title: Converted Amount
      type: object
      properties:
        amount:
          description: Amount in the smallest unit of the applicable currency (e.g., cents)
          type: integer
        conversion_rate:
          description: Exchange rate used for currency conversion
          type: string
          example: '1.000000'
        currency:
          $ref: '#/components/schemas/currency'
      required:
        - amount
        - conversion_rate
        - currency
    amount:
      title: Amount
      type: object
      properties:
        amount:
          description: Amount in the smallest unit of the applicable currency (e.g., cents)
          type: integer
        currency:
          $ref: '#/components/schemas/currency'
      required:
        - amount
        - currency
    asa_request_status:
      type: string
      description: >-
        The type of authorization request that this request is for. Note that `CREDIT_AUTHORIZATION` and
        `FINANCIAL_CREDIT_AUTHORIZATION` is only available to users with credit decisioning via ASA enabled.
      enum:
        - AUTHORIZATION
        - CREDIT_AUTHORIZATION
        - FINANCIAL_AUTHORIZATION
        - FINANCIAL_CREDIT_AUTHORIZATION
        - BALANCE_INQUIRY
    asa_request_fleet_info:
      title: Fleet Info
      description: Optional Object containing information if the Card is a part of a Fleet managed program
      type:
        - object
        - 'null'
      properties:
        driver_number:
          oneOf:
            - type: 'null'
              description: 'Driver Number was not provided as part of the transaction '
            - type: string
              description: Number representing the driver
        vehicle_number:
          oneOf:
            - type: 'null'
              description: Vehicle Number was not provided as part of the transaction
            - type: string
              description: Number associated with the vehicle
        fleet_restriction_code:
          type: string
          description: >-
            Code indicating which restrictions, if any, there are on purchase. This is configured at a program
            level and is a static configuration, and does not change on a request to request basis
          enum:
            - NO_RESTRICTIONS
            - FUEL_ONLY
        fleet_prompt_code:
          type: string
          description: >-
            Code indicating what the driver was prompted to enter at time of purchase. This is configured at a
            program level and is a static configuration, and does not change on a request to request basis
          enum:
            - NO_PROMPT
            - VEHICLE_NUMBER
            - DRIVER_NUMBER
      required:
        - fleet_restriction_code
        - fleet_prompt_code
    asa_network_specific_data:
      title: Network Specific Data
      description: >-
        Contains raw data provided by the card network, including attributes that provide further context
        about the authorization. If populated by the network, data is organized by Lithic and passed through
        without further modification. Please consult the official network documentation for more details about
        these values and how to use them. This object is only available to certain programs- contact your
        Customer Success Manager to discuss enabling access.
      type:
        - object
        - 'null'
      properties:
        mastercard:
          oneOf:
            - type: 'null'
              description: There was no Mastercard-specific data available for this transaction.
            - $ref: '#/components/schemas/asa_network_specific_data_mastercard'
        visa:
          oneOf:
            - type: 'null'
              description: There was no Visa-specific data available for this transaction.
            - $ref: '#/components/schemas/asa_network_specific_data_visa'
    asa-request:
      description: The Auth Stream Access request payload that was sent to the ASA responder.
      type: object
      properties:
        merchant:
          $ref: '#/components/schemas/transaction_merchant'
        service_location:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/service_location'
        avs:
          type: object
          properties:
            address:
              description: Cardholder address
              type: string
            zipcode:
              description: Cardholder ZIP code
              type: string
            address_on_file_match:
              $ref: '#/components/schemas/address_match_result'
          required:
            - address_on_file_match
            - address
            - zipcode
        card:
          $ref: '#/components/schemas/asa_request_card'
        cardholder_authentication:
          $ref: '#/components/schemas/cardholder_authentication'
        pos:
          type: object
          properties:
            entry_mode:
              $ref: '#/components/schemas/asa_request_pos_entry_mode'
            terminal:
              $ref: '#/components/schemas/asa_pos_terminal'
        amount:
          type: integer
          format: int64
          deprecated: true
          description: >-
            Deprecated, use `amounts`. Authorization amount of the transaction (in cents), including any
            acquirer fees. The contents of this field are identical to `authorization_amount`.
        acquirer_fee:
          type: integer
          format: int64
          description: >-
            Fee (in cents) assessed by the merchant and paid for by the cardholder. Will be zero if no fee is
            assessed. Rebates may be transmitted as a negative value to indicate credited fees.
        authorization_amount:
          type: integer
          format: int64
          deprecated: true
          description: >-
            Deprecated, use `amounts`. The base transaction amount (in cents) plus the acquirer fee field.
            This is the amount the issuer should authorize against unless the issuer is paying the acquirer
            fee on behalf of the cardholder.
        cardholder_currency:
          type: string
          deprecated: true
          description: Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's billing currency.
        cash_amount:
          type: integer
          format: int64
          description: >-
            The portion of the transaction requested as cash back by the cardholder, and does not include any
            acquirer fees. The amount field includes the purchase amount, the requested cash back amount, and
            any acquirer fees.


            If no cash back was requested, the value of this field will be 0, and the field will always be
            present.
        cashback:
          type: integer
          format: int64
          description: Deprecated, use `cash_amount`.
        token_info:
          $ref: '#/components/schemas/token_info'
        ttl:
          description: 'Deprecated: approximate time-to-live for the authorization.'
          type: string
          format: date-time
        conversion_rate:
          deprecated: true
          description: >-
            Deprecated, use `amounts`. If the transaction was requested in a currency other than the
            settlement currency, this field will be populated to indicate the rate used to translate the
            merchant_amount to the amount (i.e., `merchant_amount` x `conversion_rate` = `amount`). Note that
            the `merchant_amount` is in the local currency and the amount is in the settlement currency.
          type: number
        created:
          type: string
          format: date-time
          description: Date and time when the transaction first occurred in UTC.
        merchant_amount:
          type: integer
          format: int64
          deprecated: true
          description: >-
            Deprecated, use `amounts`. The amount that the merchant will receive, denominated in
            `merchant_currency` and in the smallest currency unit. Note the amount includes `acquirer_fee`,
            similar to `authorization_amount`. It will be different from `authorization_amount` if the
            merchant is taking payment in a different currency.
        merchant_currency:
          deprecated: true
          allOf:
            - $ref: '#/components/schemas/merchant_currency'
          description: Deprecated, use `amounts`.
        network:
          type: string
          description: Card network of the authorization.
          enum:
            - AMEX
            - INTERLINK
            - MAESTRO
            - MASTERCARD
            - UNKNOWN
            - VISA
        network_risk_score:
          $ref: '#/components/schemas/network_risk_score'
        settled_amount:
          type: integer
          format: int64
          deprecated: true
          description: >-
            Deprecated, use `amounts`. Amount (in cents) of the transaction that has been settled, including
            any acquirer fees.
        amounts:
          description: >-
            Structured amounts for this authorization. The `cardholder` and `merchant` amounts reflect the
            original network authorization values. For programs with hold adjustments enabled (e.g., automated
            fuel dispensers or tipping MCCs), the `hold` amount may exceed the `cardholder` and `merchant`
            amounts to account for anticipated final transaction amounts such as tips or fuel fill-ups
          type: object
          properties:
            cardholder:
              $ref: '#/components/schemas/converted_amount'
            merchant:
              $ref: '#/components/schemas/amount'
            settlement:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/amount'
            hold:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/amount'
          required:
            - cardholder
            - merchant
            - settlement
            - hold
        status:
          $ref: '#/components/schemas/asa_request_status'
        token:
          description: The provisional transaction group uuid associated with the authorization
          type: string
          format: uuid
        event_token:
          description: >-
            The event token associated with the authorization. This field is only set for programs enrolled
            into the beta.
          type: string
          format: uuid
        fleet_info:
          $ref: '#/components/schemas/asa_request_fleet_info'
        network_specific_data:
          $ref: '#/components/schemas/asa_network_specific_data'
        account_type:
          $ref: '#/components/schemas/account_type'
        transaction_initiator:
          type: string
          description: The entity that initiated the transaction.
          enum:
            - CARDHOLDER
            - MERCHANT
            - UNKNOWN
        latest_challenge:
          description: The latest Authorization Challenge that was issued to the cardholder for this merchant.
          type: object
          properties:
            status:
              type: string
              enum:
                - COMPLETED
                - PENDING
                - EXPIRED
                - ERROR
              description: |-
                The status of the Authorization Challenge

                * `COMPLETED` - Challenge was successfully completed by the cardholder
                * `PENDING` - Challenge is still open
                * `EXPIRED` - Challenge has expired without being completed
                * `ERROR` - There was an error processing the challenge
            phone_number:
              type: string
              description: The phone number used for sending Authorization Challenge SMS.
            completed_at:
              type: string
              format: date-time
              description: >-
                The date and time when the Authorization Challenge was completed in UTC. Present only if the
                status is `COMPLETED`.
          required:
            - status
            - phone_number
      required:
        - acquirer_fee
        - amount
        - amounts
        - authorization_amount
        - avs
        - card
        - cardholder_currency
        - cash_amount
        - created
        - merchant
        - service_location
        - merchant_amount
        - merchant_currency
        - settled_amount
        - status
        - token
        - transaction_initiator
      $defs:
        asa_request_status:
          type: string
          description: >-
            The type of authorization request that this request is for. Note that `CREDIT_AUTHORIZATION` and
            `FINANCIAL_CREDIT_AUTHORIZATION` is only available to users with credit decisioning via ASA
            enabled.
          enum:
            - AUTHORIZATION
            - CREDIT_AUTHORIZATION
            - FINANCIAL_AUTHORIZATION
            - FINANCIAL_CREDIT_AUTHORIZATION
            - BALANCE_INQUIRY
        asa_request_pos_entry_mode:
          description: POS > Entry Mode object in ASA
          type: object
          properties:
            card:
              description: Card Presence Indicator
              type: string
              enum:
                - PRESENT
                - NOT_PRESENT
                - UNKNOWN
            cardholder:
              description: Cardholder Presence Indicator
              type: string
              enum:
                - DEFERRED_BILLING
                - ELECTRONIC_ORDER
                - INSTALLMENT
                - MAIL_ORDER
                - NOT_PRESENT
                - PRESENT
                - REOCCURRING
                - TELEPHONE_ORDER
                - UNKNOWN
            pan:
              description: Method of entry for the PAN
              type: string
              enum:
                - AUTO_ENTRY
                - BAR_CODE
                - CONTACTLESS
                - ECOMMERCE
                - ERROR_KEYED
                - ERROR_MAGNETIC_STRIPE
                - ICC
                - KEY_ENTERED
                - MAGNETIC_STRIPE
                - MANUAL
                - OCR
                - SECURE_CARDLESS
                - UNSPECIFIED
                - UNKNOWN
                - CREDENTIAL_ON_FILE
                - ECOMMERCE
            pin_entered:
              type: boolean
              description: Indicates whether the cardholder entered the PIN. True if the PIN was entered.
        asa_request_fleet_info:
          title: Fleet Info
          description: Optional Object containing information if the Card is a part of a Fleet managed program
          type:
            - object
            - 'null'
          properties:
            driver_number:
              oneOf:
                - type: 'null'
                  description: 'Driver Number was not provided as part of the transaction '
                - type: string
                  description: Number representing the driver
            vehicle_number:
              oneOf:
                - type: 'null'
                  description: Vehicle Number was not provided as part of the transaction
                - type: string
                  description: Number associated with the vehicle
            fleet_restriction_code:
              type: string
              description: >-
                Code indicating which restrictions, if any, there are on purchase. This is configured at a
                program level and is a static configuration, and does not change on a request to request basis
              enum:
                - NO_RESTRICTIONS
                - FUEL_ONLY
            fleet_prompt_code:
              type: string
              description: >-
                Code indicating what the driver was prompted to enter at time of purchase. This is configured
                at a program level and is a static configuration, and does not change on a request to request
                basis
              enum:
                - NO_PROMPT
                - VEHICLE_NUMBER
                - DRIVER_NUMBER
          required:
            - fleet_restriction_code
            - fleet_prompt_code
        asa_network_specific_data:
          title: Network Specific Data
          description: >-
            Contains raw data provided by the card network, including attributes that provide further context
            about the authorization. If populated by the network, data is organized by Lithic and passed
            through without further modification. Please consult the official network documentation for more
            details about these values and how to use them. This object is only available to certain programs-
            contact your Customer Success Manager to discuss enabling access.
          type:
            - object
            - 'null'
          properties:
            mastercard:
              oneOf:
                - type: 'null'
                  description: There was no Mastercard-specific data available for this transaction.
                - $ref: '#/components/schemas/asa_network_specific_data_mastercard'
            visa:
              oneOf:
                - type: 'null'
                  description: There was no Visa-specific data available for this transaction.
                - $ref: '#/components/schemas/asa_network_specific_data_visa'
        asa_network_specific_data_mastercard:
          type: object
          properties:
            transaction_type_identifier:
              oneOf:
                - type: 'null'
                  description: Transaction type identifier not available.
                - type: string
                  description: Indicates the type of additional transaction purpose.
                  minLength: 3
                  maxLength: 3
            ecommerce_security_level_indicator:
              oneOf:
                - type: 'null'
                  description: Electronic commerce security level indicator not available.
                - type: string
                  description: Indicates the electronic commerce security level and UCAF collection.
                  minLength: 3
                  maxLength: 3
            on_behalf_service_result:
              oneOf:
                - type: 'null'
                  description: On-behalf service result not available.
                - type: array
                  items:
                    type: object
                    properties:
                      service:
                        type: string
                        description: Indicates the service performed on the transaction.
                        minLength: 2
                        maxLength: 2
                      result_1:
                        type: string
                        description: Indicates the results of the service processing.
                        minLength: 1
                        maxLength: 1
                      result_2:
                        type: string
                        description: Identifies the results of the service processing.
                        minLength: 1
                        maxLength: 1
                    required:
                      - service
                      - result_1
                      - result_2
                  description: >-
                    The On-behalf Service performed on the transaction and the results. Contains all
                    applicable, on-behalf service results that were performed on a given transaction.
                  maxItems: 10
        asa_network_specific_data_visa:
          type: object
          properties:
            business_application_identifier:
              oneOf:
                - type: 'null'
                  description: Business application identifier not available.
                - type: string
                  description: >-
                    Identifies the purpose or category of a transaction, used to classify and process
                    transactions according to Visa’s rules.
                  minLength: 2
                  maxLength: 2
        asa_request_card:
          description: Card object in ASA
          type: object
          properties:
            hostname:
              description: Hostname of card’s locked merchant (will be empty if not applicable)
              type: string
            last_four:
              description: Last four digits of the card number
              type: string
            memo:
              description: >-
                Customizable name to identify the card. We recommend against using this field to store JSON
                data as it can cause unexpected behavior.
              type: string
            spend_limit:
              description: >-
                Amount (in cents) to limit approved authorizations. Purchase requests above the spend limit
                will be declined (refunds and credits will be approved).


                Note that while spend limits are enforced based on authorized and settled volume on a card,
                they are not recommended to be used for balance or reconciliation-level accuracy. Spend limits
                also cannot block force posted charges (i.e., when a merchant sends a clearing message without
                a prior authorization).
              type: integer
              format: int64
            spend_limit_duration:
              description: >-
                Note that to support recurring monthly payments, which can occur on different day every month,
                the time window we consider for MONTHLY velocity starts 6 days after the current calendar date
                one month prior.
              type: string
              enum:
                - ANNUALLY
                - FOREVER
                - MONTHLY
                - TRANSACTION
            state:
              type: string
              enum:
                - CLOSED
                - OPEN
                - PAUSED
                - PENDING_ACTIVATION
                - PENDING_FULFILLMENT
            type:
              $ref: '#/components/schemas/card-type'
            token:
              description: Globally unique identifier for the card.
              type: string
              format: uuid
    asa-response:
      description: >-
        The Auth Stream Access response payload that an ASA responder may respond with in response to a
        request.
      type: object
      properties:
        result:
          description: >-
            Result of the Authorization decision. Provide `APPROVED` to accept the authorization. Any other
            response will decline the authorization. Result `CHALLENGE` is valid only for cardholder-initiated
            transactions. If a value not present in the enumeration is returned the transaction will be
            declined with the `CUSTOM_ASA_RESULT` detailed result.
          type: string
          enum:
            - APPROVED
            - AVS_INVALID
            - CARD_PAUSED
            - INSUFFICIENT_FUNDS
            - UNAUTHORIZED_MERCHANT
            - VELOCITY_EXCEEDED
            - DRIVER_NUMBER_INVALID
            - VEHICLE_NUMBER_INVALID
            - SUSPECTED_FRAUD
            - CHALLENGE
        token:
          type: string
          description: The transaction token from the ASA request.
          format: uuid
        approved_amount:
          type: integer
          format: int64
          description: >-
            The amount approved for the transaction. Note that setting this implies a partial approval. This
            property should not be present if the intention is to fully approve the transaction. See:
            https://docs.lithic.com/docs/partial-approval#partial-approval
        avs_result:
          description: >-
            The ASA responder may return an address verification (AVS) match indicator for evaluation by the
            acquirer. The merchant can choose whether to proceed with the transaction in the case of an
            approval with AVS failure. When they do not, this typically appears as a subsequent
            AUTHORIZATION_REVERSAL event following the AUTHORIZATION. Note that AVS data submitted by
            merchants can be variable in quality, and we recommend card programs exercise adjust their
            decisioning logic accordingly.
          type: string
          enum:
            - FAIL
            - MATCH
            - MATCH_ADDRESS_ONLY
            - MATCH_ZIP_ONLY
        balance:
          description: >-
            Respective available amount and settled amount values (in cents). These values can be used by
            merchants for authorization decisions as well as balance display at point of sale or ATM.
          type: object
          properties:
            amount:
              oneOf:
                - type: integer
                  format: int64
                  description: The balance held on the card.
                - type: 'null'
            available:
              oneOf:
                - type: integer
                  format: int64
                  description: >-
                    The balance available for the cardholder to spend. This is calculated as the settled
                    amount minus any pending authorizations on the card.
                - type: 'null'
        challenge_phone_number:
          type: string
          description: >-
            The phone number to use for sending an Authorization Challenge SMS. Relevant only when the result
            is `CHALLENGE`. The expected format is E.164 without hyphens. For example, "+15555555555" for a US
            phone number.
      required:
        - result
    backtest-report:
      title: Auth Rules Backtest Report
      description: Webhook payload for the auth_rules.backtest_report.created event.
      allOf:
        - $ref: '#/components/schemas/backtest-results'
    balance-updated:
      title: Balance Updated
      examples:
        - data:
            - available_amount: 10000
              created: '2023-09-14T12:52:44Z'
              currency: USD
              last_transaction_event_token: 10265fe1-7058-451a-bfdf-db6f0ece177c
              last_transaction_token: 1e338050-295e-477b-884a-4f87d7d4b648
              pending_amount: 0
              token: 1e338050-295e-477b-884a-4f87d7d4b648
              total_amount: 10000
              type: ISSUING
              updated: '2023-09-14T12:52:44Z'
      properties:
        data:
          items:
            $ref: '#/components/schemas/financial-account-balance'
          type: array
      required:
        - data
      type: object
    book-transfer-transaction-created:
      title: Book Transfer Transaction Created
      allOf:
        - $ref: '#/components/schemas/book-transfer-transaction'
      examples:
        - family: TRANSFER
          category: BALANCE_OR_FUNDING
          created: '2023-09-14T12:52:44Z'
          currency: USD
          events:
            - amount: 4103
              created: '2023-09-14T12:52:44Z'
              result: APPROVED
              token: f274f723-b156-5b15-a96d-5ba8d5241b09
              type: ACCOUNT_TO_ACCOUNT
              subtype: CUSTOM
              detailed_results:
                - APPROVED
              memo: Fund account
          from_financial_account_token: b05c313e-35db-4b47-a33b-7b268d72b1f5
          to_financial_account_token: 39ec6bf0-c101-520e-965a-a4fffce1d755
          pending_amount: 0
          result: APPROVED
          settled_amount: 4103
          status: SETTLED
          token: 147595d7-45f4-4c91-a950-3436d16847e5
          updated: '2023-09-14T12:52:44Z'
    book-transfer-transaction-updated:
      title: Book Transfer Transaction Updated
      allOf:
        - $ref: '#/components/schemas/book-transfer-transaction'
      examples:
        - family: TRANSFER
          category: BALANCE_OR_FUNDING
          created: '2023-09-14T12:52:44Z'
          currency: USD
          events:
            - amount: 4103
              created: '2023-09-14T12:52:44Z'
              result: APPROVED
              token: f274f723-b156-5b15-a96d-5ba8d5241b09
              type: ACCOUNT_TO_ACCOUNT
              subtype: CUSTOM
              detailed_results:
                - APPROVED
              memo: Fund account
            - amount: -4103
              created: '2023-09-14T12:52:44Z'
              result: APPROVED
              token: f274f723-b156-5b15-a96d-5ba8d5241b09
              type: ACCOUNT_TO_ACCOUNT
              subtype: CUSTOM
              detailed_results:
                - APPROVED
              memo: Fund account
          from_financial_account_token: b05c313e-35db-4b47-a33b-7b268d72b1f5
          to_financial_account_token: 39ec6bf0-c101-520e-965a-a4fffce1d755
          pending_amount: 0
          result: APPROVED
          settled_amount: 0
          status: REVERSED
          token: 147595d7-45f4-4c91-a950-3436d16847e5
          updated: '2023-09-14T12:52:44Z'
    card-created:
      title: Card Created
      examples:
        - card_token: 00000000-0000-0000-0000-000000000001
          replacement_for: 00000000-0000-0000-0000-000000000000
      properties:
        card_token:
          description: The token of the card that was created.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
        replacement_for:
          description: The token of the card that was replaced, if the new card is a replacement card.
          example: 00000000-0000-0000-0000-000000000000
          format: uuid
          type:
            - string
            - 'null'
      required:
        - card_token
      type: object
    card-converted:
      title: Card Converted
      examples:
        - card_token: 00000000-0000-0000-0000-000000000001
      properties:
        card_token:
          description: The token of the card that was created.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
      required:
        - card_token
      type: object
    card-renewed:
      title: Card Renewed
      examples:
        - card_token: 00000000-0000-0000-0000-000000000001
          exp_month: '01'
          exp_year: '2030'
          previous_exp_month: '01'
          previous_exp_year: '2024'
      properties:
        card_token:
          description: The token of the card that was renewed.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
        exp_month:
          description: The new expiration month of the card.
          example: '01'
          type: string
        exp_year:
          description: The new expiration year of the card.
          example: '2030'
          type: string
        previous_exp_month:
          description: The previous expiration month of the card.
          example: '01'
          type: string
        previous_exp_year:
          description: The previous expiration year of the card.
          example: '2024'
          type: string
      type: object
    card-reissued:
      title: Card Reissued
      examples:
        - card_token: 00000000-0000-0000-0000-000000000001
      properties:
        card_token:
          description: The token of the card that was reissued.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
      type: object
    card-shipped:
      title: Card Shipped
      examples:
        - card_token: 00000000-0000-0000-0000-000000000001
          shipping_method: USPS without tracking envelope
          tracking_number: 1Z9999999999999999
          bulk_order_token: null
      properties:
        card_token:
          description: The token of the card that was shipped.
          example: 00000000-0000-0000-0000-000000000001
          format: uuid
          type: string
        bulk_order_token:
          description: The token of the bulk order associated with this card shipment, if applicable.
          example: 00000000-0000-0000-0000-000000000002
          format: uuid
          type:
            - string
            - 'null'
        shipping_method:
          description: The specific shipping method used to ship the card.
          enum:
            - Ex-US expedited with tracking
            - Ex-US standard with tracking
            - Ex-US standard without tracking
            - FedEx 2 days
            - FedEx express
            - FedEx overnight
            - USPS priority
            - USPS with tracking
            - USPS without tracking envelope
            - USPS without tracking envelope non-machine
            - USPS without tracking flat
          example: USPS without tracking envelope
          type: string
        tracking_number:
          description: The tracking number of the shipment.
          example: 1Z9999999999999999
          type:
            - string
            - 'null'
      required:
        - card_token
        - bulk_order_token
        - shipping_method
        - tracking_number
      type: object
    card-updated:
      title: Card Updated
      examples:
        - previous_fields:
            state: PAUSED
          state: OPEN
          card_token: 00000000-0000-0000-0000-000000000000
      properties:
        previous_fields:
          description: The previous values of the fields that were updated.
          example:
            state: PAUSED
          type: object
        state:
          description: The current state of the card.
          example: OPEN
          type: string
        card_token:
          description: The token of the card that was updated.
          example: 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
      required:
        - previous_fields
        - state
        - card_token
      type: object
    card-transaction-enhanced-data-created:
      title: Card Transaction Enhanced Data Created
      allOf:
        - $ref: '#/components/schemas/enhanced-data'
      examples:
        - token: fda41769-2a3f-5532-898f-0d2034f2da85
          transaction_token: 6b79924e-0f01-4bdf-9485-9f6da44b6be2
          event_token: 49bbd49c-dfe1-56db-86ad-98c7c2bd75e4
          common:
            customer_reference_number: null
            merchant_reference_number: null
            order_date: null
            line_items: []
            tax:
              merchant_tax_id: '521236050'
              amount: null
              exempt: null
          fleet:
            - service_type: SELF_SERVICE
              driver_number: null
              vehicle_number: '012345'
              odometer: 12345
              amount_totals:
                gross_sale: 104
                discount: null
                net_sale: 104
              fuel:
                quantity: '0.24300'
                type: PREMIUM_SUPER
                unit_of_measure: GALLONS
                unit_price: 4300
    card-transaction-enhanced-data-updated:
      title: Card Transaction Enhanced Data Updated
      allOf:
        - $ref: '#/components/schemas/enhanced-data'
      examples:
        - token: fda41769-2a3f-5532-898f-0d2034f2da85
          transaction_token: 6b79924e-0f01-4bdf-9485-9f6da44b6be2
          event_token: 49bbd49c-dfe1-56db-86ad-98c7c2bd75e4
          common:
            customer_reference_number: null
            merchant_reference_number: null
            order_date: null
            line_items: []
            tax:
              merchant_tax_id: '521236050'
              amount: null
              exempt: null
          fleet:
            - service_type: SELF_SERVICE
              driver_number: null
              vehicle_number: '012345'
              odometer: 12345
              amount_totals:
                gross_sale: 104
                discount: null
                net_sale: 104
              fuel:
                quantity: '0.24300'
                type: PREMIUM_SUPER
                unit_of_measure: GALLONS
                unit_price: 4300
    device:
      type: object
      properties:
        imei:
          description: >-
            The IMEI number of the device being provisioned. For Amex, this field contains device ID instead
            as IMEI is not provided
          example: '123456789012345'
          maxLength: 64
          type:
            - string
            - 'null'
        ip_address:
          description: The IP address of the device initiating the request
          example: 1.1.1.1
          maxLength: 64
          type:
            - string
            - 'null'
        location:
          description: Latitude and longitude where the device is located during the authorization attempt
          example: 37.3860517/-122.0838511
          maxLength: 64
          type:
            - string
            - 'null'
      required:
        - imei
        - ip_address
        - location
    wallet-decisioning-info:
      type: object
      properties:
        account_score:
          description: Score given to the account by the Wallet Provider
          example: '100'
          maxLength: 64
          type:
            - string
            - 'null'
        device_score:
          description: Score given to the device by the Wallet Provider
          example: '100'
          maxLength: 64
          type:
            - string
            - 'null'
        recommendation_reasons:
          description: Reasons provided to the Wallet Provider on how the recommended decision was reached
          type:
            - array
            - 'null'
          items:
            type: string
        recommended_decision:
          description: The decision recommended by the Wallet Provider
          example: Decision1
          maxLength: 64
          type:
            - string
            - 'null'
      required:
        - account_score
        - device_score
        - recommended_decision
    tokenization-request-base:
      description: Base properties shared by both tokenization decisioning requests (with response) and without
      type: object
      properties:
        account_token:
          description: Unique identifier for the user tokenizing a card
          example: 00000000-0000-0000-0000-000000000002
          type: string
        card_token:
          description: Unique identifier for the card being tokenized
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Indicate when the request was received from Mastercard or Visa
          format: date-time
          type: string
        device:
          $ref: '#/components/schemas/device'
        issuer_decision:
          description: >-
            Whether Lithic decisioned on the token, and if so, what the decision was.
            APPROVED/VERIFICATION_REQUIRED/DENIED.
          enum:
            - APPROVED
            - DENIED
            - VERIFICATION_REQUIRED
          example: APPROVED
          type: string
        tokenization_channel:
          description: The channel through which the tokenization was made.
          enum:
            - DIGITAL_WALLET
            - MERCHANT
          example: DIGITAL_WALLET
          type: string
        tokenization_source:
          description: The source of the tokenization.
          enum:
            - ACCOUNT_ON_FILE
            - CONTACTLESS_TAP
            - MANUAL_PROVISION
            - PUSH_PROVISION
            - TOKEN
            - UNKNOWN
          example: PUSH_PROVISION
          type: string
        tokenization_token:
          description: Unique identifier for the digital wallet token attempt
          type: string
        wallet_decisioning_info:
          $ref: '#/components/schemas/wallet-decisioning-info'
      required:
        - account_token
        - card_token
        - created
        - issuer_decision
        - tokenization_channel
        - tokenization_token
        - wallet_decisioning_info
    digital-wallet-token-metadata:
      description: Contains the metadata for the digital wallet being tokenized.
      type: object
      properties:
        payment_account_info:
          description: Contains the information of the account responsible for the payment.
          type: object
          properties:
            account_holder_data:
              description: >-
                Additional information that can be used to identify the account holder, such as name, address,
                etc
              type: object
              properties:
                phone_number:
                  description: >-
                    The phone number, may contain country code along with phone number when countryDialInCode
                    is not present
                  type:
                    - string
                    - 'null'
                  maxLength: 20
            pan_unique_reference:
              description: Reference to the PAN that is unique per Wallet Provider
              type:
                - string
                - 'null'
              maxLength: 64
            payment_account_reference:
              description: The unique account reference assigned to the PAN
              type:
                - string
                - 'null'
              maxLength: 29
            token_unique_reference:
              description: >-
                A unique reference assigned following the allocation of a token used to identify the token for
                the duration of its lifetime.
              type:
                - string
                - 'null'
              maxLength: 64
          required:
            - account_holder_data
        payment_app_instance_id:
          description: The identifier of the Payment App instance within a device that will be provisioned with a token
          type:
            - string
            - 'null'
          maxLength: 48
        status:
          description: The current status of the digital wallet token. Pending or declined.
          type: string
        token_requestor_id:
          description: The party that requested the digitization
          type: string
          minLength: 11
          maxLength: 11
        token_requestor_name:
          description: Human-readable name of the wallet that the token_requestor_id maps to.
          type: string
          enum:
            - AMAZON_ONE
            - ANDROID_PAY
            - APPLE_PAY
            - FACEBOOK
            - FITBIT_PAY
            - GARMIN_PAY
            - GOOGLE_PAY
            - MICROSOFT_PAY
            - NETFLIX
            - SAMSUNG_PAY
            - UNKNOWN
            - VISA_CHECKOUT
          example: APPLE_PAY
      required:
        - payment_account_info
        - status
    customer-tokenization-decision:
      description: Contains the metadata for the customer tokenization decision.
      type: object
      properties:
        latency:
          description: Time in ms it took for the customer's URL to respond
          example: '100'
          type: string
        outcome:
          description: The outcome of the customer's decision
          enum:
            - APPROVED
            - DECLINED
            - ERROR
            - INVALID_RESPONSE
            - REQUIRE_ADDITIONAL_AUTHENTICATION
            - TIMEOUT
          example: APPROVED
          type: string
        responder_url:
          description: The customer's subscribed URL
          example: https://example.com
          type: string
        response_code:
          description: The response code that the customer provided
          example: '123456'
          type: string
      required:
        - outcome
        - responder_url
    digital-wallet-tokenization-approval-request:
      description: >-
        Payload for digital wallet tokenization approval requests. Used for both the decisioning responder
        request (sent to the customer's endpoint for a real-time decision) and the subsequent webhook event
        (sent after the decision is made). Fields like customer_tokenization_decision,
        tokenization_decline_reasons, tokenization_tfa_reasons, and rule_results are only populated in the
        webhook event, not in the initial decisioning request.
      allOf:
        - $ref: '#/components/schemas/tokenization-request-base'
        - type: object
          properties:
            digital_wallet_token_metadata:
              $ref: '#/components/schemas/digital-wallet-token-metadata'
            customer_tokenization_decision:
              description: >-
                The customer's tokenization decision outcome. Only populated in webhook events (after
                decisioning), not in the initial decisioning request
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/customer-tokenization-decision'
            event_type:
              description: The name of this event
              enum:
                - digital_wallet.tokenization_approval_request
              example: digital_wallet.tokenization_approval_request
              type: string
            tokenization_decline_reasons:
              description: >-
                List of reasons why the tokenization was declined. Only populated in webhook events, not in
                the initial decisioning request
              type: array
              items:
                $ref: '#/components/schemas/tokenization-decline-reason'
            tokenization_tfa_reasons:
              description: >-
                List of reasons why two-factor authentication was required. Only populated in webhook events,
                not in the initial decisioning request
              type: array
              items:
                $ref: '#/components/schemas/tokenization-tfa-reason'
            rule_results:
              description: >-
                Results from rules that were evaluated for this tokenization. Only populated in webhook
                events, not in the initial decisioning request
              type: array
              items:
                $ref: '#/components/schemas/tokenization-rule-result'
          required:
            - digital_wallet_token_metadata
            - event_type
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-18T12:34:56Z'
          device:
            imei: '123456789012345'
            ip_address: 1.1.1.1
            location: 37.3860517/-122.0838511
          digital_wallet_token_metadata:
            payment_account_info:
              account_holder_data:
                phone_number: '+15555555555'
              pan_unique_reference: pan_unique_ref_1234567890123456789012345678
              payment_account_reference: ref_1234567890123456789012
              token_unique_reference: token_unique_ref_1234567890123456789012345678
            payment_app_instance_id: app_instance_123456789012345678901234567890
            status: Pending
            token_requestor_id: '12345678901'
            token_requestor_name: APPLE_PAY
          event_type: digital_wallet.tokenization_approval_request
          issuer_decision: APPROVED
          tokenization_channel: DIGITAL_WALLET
          tokenization_source: PUSH_PROVISION
          tokenization_token: tok_1234567890abcdef
          wallet_decisioning_info:
            account_score: '100'
            device_score: '100'
            recommendation_reasons:
              - Reason1
            recommended_decision: Decision1
        - account_token: 00000000-0000-0000-0000-000000000002
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-18T12:34:56Z'
          customer_tokenization_decision:
            latency: '100'
            outcome: APPROVED
            responder_url: https://example.com
            response_code: '123456'
          device:
            imei: '123456789012345'
            ip_address: 1.1.1.1
            location: 37.3860517/-122.0838511
          digital_wallet_token_metadata:
            payment_account_info:
              account_holder_data:
                phone_number: '+15555555555'
              pan_unique_reference: pan_unique_ref_1234567890123456789012345678
              payment_account_reference: ref_1234567890123456789012
              token_unique_reference: token_unique_ref_1234567890123456789012345678
            payment_app_instance_id: app_instance_123456789012345678901234567890
            status: Pending
            token_requestor_id: '12345678901'
            token_requestor_name: APPLE_PAY
          event_type: digital_wallet.tokenization_approval_request
          issuer_decision: APPROVED
          tokenization_channel: DIGITAL_WALLET
          tokenization_source: PUSH_PROVISION
          tokenization_token: tok_1234567890abcdef
          wallet_decisioning_info:
            account_score: '100'
            device_score: '100'
            recommendation_reasons:
              - Reason1
            recommended_decision: Decision1
          tokenization_decline_reasons:
            - ACCOUNT_SCORE_1
          tokenization_tfa_reasons: []
          rule_results:
            - auth_rule_token: 550e8400-e29b-41d4-a716-446655440003
              result: DECLINED
              name: CustomerAccountRule
              explanation: Account risk too high
    tokenization-decisioning-response:
      description: >-
        The response payload that a Tokenization Decisioning responder may respond with in response to a
        request.
      type: object
      properties:
        tokenization_decision:
          description: The decision for tokenization
          type: string
          enum:
            - APPROVE
            - AUTHENTICATE
            - DECLINE
          example: APPROVE
        phone_number:
          description: >-
            Phone number of the end user attempting a tokenization. Lithic must pass this to the card networks
            to pass to the wallets to display for the user as they select an authentication option in their
            digital wallet. Lithic will always default to using this value for authentication over the account
            holder information on file. E.164 format without hyphens. For example, "+15555555555" for a US
            phone number.
          type: string
          example: '15555555555'
        email:
          description: >-
            Email address of the end user attempting a tokenization to be used for authentication. Lithic must
            pass this to the card networks to pass to the wallets to display for the user as they select an
            authentication option in their digital wallet. Lithic will always default to using this value for
            authentication over the account holder information on file. Permitted values: Valid email address.
            For example, "johnny@appleseed.com".
          type: string
          format: email
          example: test@example.com
        mobile_application_name:
          description: >-
            Name of the mobile application that the digital wallet will open for the end user to complete
            authentication. For example, "Wells Fargo".
          type: string
          example: Wells Fargo
      required:
        - tokenization_decision
        - phone_number
        - email
        - mobile_application_name
      examples:
        - tokenization_decision: AUTHENTICATE
          phone_number: '+15555555555'
          email: test@example.com
          mobile_application_name: Wells Fargo
    digital-wallet-tokenization-result:
      title: Digital Wallet Tokenization Result
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2020-01-01T00:00:00Z'
          tokenization_result_details:
            issuer_decision: APPROVED
            tokenization_decline_reasons:
              - ACCOUNT_SCORE_1
              - DEVICE_SCORE_1
            wallet_decision: APPROVED
          tokenization_token: 00000000-0000-0000-0000-000000000003
      properties:
        account_token:
          description: Account token
          example: 00000000-0000-0000-0000-000000000002
          type: string
        card_token:
          description: Card token
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Created date
          example: '2020-01-01T00:00:00Z'
          format: date-time
          type: string
        tokenization_result_details:
          additionalProperties: false
          description: The result of the tokenization request.
          properties:
            customer_decision:
              description: The customer's tokenization decision if applicable.
              type:
                - string
                - 'null'
            issuer_decision:
              description: Lithic's tokenization decision.
              type: string
            token_activated_date_time:
              description: An RFC 3339 timestamp indicating when the tokenization succeeded.
              example: '2020-01-01T00:00:00Z'
              format: date-time
              type:
                - string
                - 'null'
            tokenization_decline_reasons:
              description: List of reasons why the tokenization was declined
              example:
                - ACCOUNT_SCORE_1
                - DEVICE_SCORE_1
              items:
                enum:
                  - ACCOUNT_SCORE_1
                  - ALL_WALLET_DECLINE_REASONS_PRESENT
                  - CARD_EXPIRY_MONTH_MISMATCH
                  - CARD_EXPIRY_YEAR_MISMATCH
                  - CARD_INVALID_STATE
                  - CUSTOMER_RED_PATH
                  - CVC_MISMATCH
                  - DEVICE_SCORE_1
                  - GENERIC_DECLINE
                  - INVALID_CUSTOMER_RESPONSE
                  - NETWORK_FAILURE
                  - WALLET_RECOMMENDED_DECISION_RED
                type: string
              type: array
            tokenization_tfa_reasons:
              description: List of reasons why two-factor authentication was required
              type: array
              items:
                $ref: '#/components/schemas/tokenization-tfa-reason'
            rule_results:
              description: Results from rules that were evaluated for this tokenization
              type: array
              items:
                $ref: '#/components/schemas/tokenization-rule-result'
            wallet_decision:
              description: The wallet's recommended decision.
              example: APPROVED
              type:
                - string
                - 'null'
          required:
            - issuer_decision
            - tokenization_decline_reasons
          type: object
        tokenization_token:
          description: Tokenization token
          example: 00000000-0000-0000-0000-000000000003
          type: string
      required:
        - account_token
        - card_token
        - created
        - tokenization_result_details
        - tokenization_token
      type: object
    digital-wallet-tokenization-two-factor-authentication-code:
      title: Digital Wallet Tokenization Two Factor Authentication Code
      description: Self Serve 2FA Code Schema
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          activation_method:
            type: TEXT_TO_CARDHOLDER_NUMBER
            value: '+15555555555'
          authentication_code: '123456'
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2020-01-01T00:00:00Z'
          tokenization_token: 00000000-0000-0000-0000-000000000003
      properties:
        account_token:
          description: Unique identifier for the user tokenizing a card
          example: 00000000-0000-0000-0000-000000000002
          type: string
        activation_method:
          description: ''
          properties:
            type:
              description: |-
                The communication method that the user has selected to use to receive the authentication code.
                Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email = "EMAIL_TO_CARDHOLDER_ADDRESS"
              enum:
                - EMAIL_TO_CARDHOLDER_ADDRESS
                - TEXT_TO_CARDHOLDER_NUMBER
              example: TEXT_TO_CARDHOLDER_NUMBER
              type: string
            value:
              description: >-
                The location where the user wants to receive the authentication code.

                The format depends on the ActivationMethod.Type field. If Type is Email, the Value will be the
                email address. If the Type is Sms, the Value will be the phone number.
              example: '+15555555555'
              type: string
          required:
            - type
            - value
          type: object
        authentication_code:
          description: Authentication code to provide to the user tokenizing a card.
          example: '123456'
          type: string
        card_token:
          description: Unique identifier for the card being tokenized
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Indicate when the request was received from Mastercard or Visa
          example: '2020-01-01T00:00:00Z'
          format: date-time
          title: Created
          type: string
        tokenization_token:
          description: Unique identifier for the tokenization
          example: 00000000-0000-0000-0000-000000000003
          type: string
      required:
        - account_token
        - activation_method
        - authentication_code
        - card_token
        - created
        - tokenization_token
      type: object
    digital-wallet-tokenization-two-factor-authentication-code-sent:
      title: Digital Wallet Tokenization Two Factor Authentication Code Sent
      description: 2FA Code Sent Schema
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          activation_method:
            type: TEXT_TO_CARDHOLDER_NUMBER
            value: '+15555555555'
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2020-01-01T00:00:00Z'
          tokenization_token: 00000000-0000-0000-0000-000000000003
      properties:
        account_token:
          description: Unique identifier for the user tokenizing a card
          example: 00000000-0000-0000-0000-000000000002
          type: string
        activation_method:
          description: ''
          properties:
            type:
              description: |-
                The communication method that the user has selected to use to receive the authentication code.
                Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email = "EMAIL_TO_CARDHOLDER_ADDRESS"
              enum:
                - EMAIL_TO_CARDHOLDER_ADDRESS
                - TEXT_TO_CARDHOLDER_NUMBER
              example: TEXT_TO_CARDHOLDER_NUMBER
              type: string
            value:
              description: >-
                The location to which the authentication code was sent.

                The format depends on the ActivationMethod.Type field. If Type is Email, the Value will be the
                email address. If the Type is Sms, the Value will be the phone number.
              example: '+15555555555'
              type: string
          required:
            - type
            - value
          type: object
        card_token:
          description: Unique identifier for the card being tokenized
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Indicate when the request was received from Mastercard or Visa
          example: '2020-01-01T00:00:00Z'
          format: date-time
          title: Created
          type: string
        tokenization_token:
          description: Unique identifier for the tokenization
          example: 00000000-0000-0000-0000-000000000003
          type: string
      required:
        - account_token
        - activation_method
        - card_token
        - created
        - tokenization_token
      type: object
    digital-wallet-tokenization-updated:
      title: Digital Wallet Tokenization Updated
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-13T16:05:09.893241'
          tokenization:
            account_token: 61c3acef-3c2c-4d61-9352-941397b92ca3
            card_token: 16a410c9-7f5c-43e9-8108-bb8a72c063f7
            tokenization_channel: DIGITAL_WALLET
            created_at: '2023-09-13T15:30:11.948371'
            events:
              - created_at: '2023-09-13T16:05:09.893241'
                result: TOKEN_ACTIVATED
                token: a690b617-d3d4-4976-82f6-901f817ad98a
                type: TOKENIZATION_UPDATED
              - created_at: '2023-09-13T16:01:13.643241'
                result: APPROVED
                token: 2b2a1038-45f3-42e4-98bb-e745be3f1de1
                type: TOKENIZATION_AUTHORIZATION
            status: ACTIVE
            token: 3e9a10da-11be-4a62-a510-d43548bfcec1
            token_requestor_name: APPLE_PAY
            token_unique_reference: DM4MMC0000332872ef1029f38fa0184b5c9260383da192b22
            dpan: '5489123487251234'
            device_id: ba6f05c312d4a5789b2e04f05c1f9d3b81GJ4AG1
            payment_account_reference_id: 50019T0AL7DEFGJ4AGGT8BQDOABCD
            updated_at: '2023-09-13T16:05:09.893241'
      properties:
        account_token:
          description: Account token
          example: 00000000-0000-0000-0000-000000000002
          type: string
        card_token:
          description: Card token
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Created date
          example: '2020-01-01T00:00:00Z'
          format: date-time
          type: string
        tokenization:
          $ref: '#/components/schemas/tokenization'
      required:
        - account_token
        - card_token
        - created
        - tokenization
      type: object
    dispute-updated:
      title: Dispute Updated
      allOf:
        - $ref: '#/components/schemas/dispute-v1'
      examples:
        - amount: 200
          arbitration_date: null
          created: '2023-07-19T18:39:34.768Z'
          customer_filed_date: '2023-07-20T09:00:00Z'
          customer_note: I didn't receive the goods.
          network_claim_ids:
            - CLAIM-001
          network_filed_date: '2023-07-21T11:00:00Z'
          network_reason_code: '4808'
          prearbitration_date: null
          primary_claim_id: CLAIM-001
          reason: GOODS_SERVICES_NOT_RECEIVED
          representment_date: null
          resolution_date: null
          resolution_note: null
          resolution_reason: null
          status: SUBMITTED
          token: b24230fa-181e-4b31-9a5c-276747e619a0
          transaction_token: 12345624-aa69-4cbc-a946-30d90181b621
    dispute-evidence-upload-failed:
      title: Dispute Evidence Upload Failed
      allOf:
        - $ref: '#/components/schemas/dispute-evidence'
      examples:
        - created: '2023-07-19T18:39:34.768Z'
          dispute_token: f7a74167-d6d5-4f7d-8501-36df11ba371b
          token: 48b8e42c-a645-44f6-8604-20c3127e9008
          upload_status: REJECTED
    funding_events_created_webhook:
      title: Funding Event Webhook
      type: object
      allOf:
        - $ref: '#/components/schemas/funding_event_response'
      properties:
        event_type:
          type: string
          enum:
            - funding_event.created
      required:
        - event_type
    internal_adjustment_event:
      title: Internal Adjustment Event
      type: object
      properties:
        amount:
          type: integer
        type:
          type: string
          enum:
            - INTERNAL_ADJUSTMENT
        result:
          $ref: '#/components/schemas/transaction_result'
        created:
          type: string
          format: date-time
        token:
          type: string
          format: uuid
      required:
        - amount
        - type
        - result
        - created
        - token
    internal_adjustment_transaction:
      title: Internal Adjustment Transaction
      type: object
      properties:
        token:
          type: string
          format: uuid
        result:
          $ref: '#/components/schemas/transaction_result'
        category:
          type: string
          enum:
            - INTERNAL
        status:
          $ref: '#/components/schemas/transaction_status'
        settled_amount:
          type: integer
        pending_amount:
          type: integer
        currency:
          type: string
        events:
          type: array
          items:
            $ref: '#/components/schemas/internal_adjustment_event'
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
        descriptor:
          type: string
      required:
        - token
        - result
        - category
        - status
        - settled_amount
        - pending_amount
        - currency
        - events
        - created
        - updated
        - descriptor
    payment-transaction-created:
      title: Payment Transaction Created
      allOf:
        - $ref: '#/components/schemas/payment-transaction'
      examples:
        - category: ACH
          family: PAYMENT
          created: '2023-09-14T12:52:44Z'
          currency: USD
          descriptor: custom description
          direction: DEBIT
          events:
            - amount: 4103
              created: '2023-09-14T12:52:44Z'
              result: APPROVED
              token: f274f723-b156-5b15-a96d-5ba8d5241b09
              type: ACH_ORIGINATION_INITIATED
          external_bank_account_token: b05c313e-35db-4b47-a33b-7b268d72b1f5
          financial_account_token: 39ec6bf0-c101-520e-965a-a4fffce1d755
          related_account_tokens: null
          method: ACH_NEXT_DAY
          method_attributes:
            retries: 0
            return_reason_code: null
            sec_code: CCD
          pending_amount: 4103
          result: APPROVED
          settled_amount: 0
          source: CUSTOMER
          status: PENDING
          token: 147595d7-45f4-4c91-a950-3436d16847e5
          type: ORIGINATION_DEBIT
          updated: '2023-09-14T12:52:44Z'
          user_defined_id: null
    payment-transaction-updated:
      title: Payment Transaction Updated
      allOf:
        - $ref: '#/components/schemas/payment-transaction'
      examples:
        - category: ACH
          family: PAYMENT
          created: '2023-09-14T12:52:44Z'
          currency: USD
          descriptor: custom description
          direction: DEBIT
          events:
            - amount: 4103
              created: '2023-09-14T12:52:44Z'
              result: APPROVED
              token: f274f723-b156-5b15-a96d-5ba8d5241b09
              type: ACH_ORIGINATION_INITIATED
            - amount: 4103
              created: '2023-09-14T12:52:46Z'
              result: APPROVED
              token: 95719c03-7eb8-560b-9843-39da92df5231
              type: ACH_ORIGINATION_PROCESSED
            - amount: 4103
              created: '2023-09-14T12:52:47Z'
              result: APPROVED
              token: 87fea0af-931f-5e80-a9cf-a243aa71b89d
              type: ACH_ORIGINATION_RELEASED
          external_bank_account_token: b05c313e-35db-4b47-a33b-7b268d72b1f5
          financial_account_token: 39ec6bf0-c101-520e-965a-a4fffce1d755
          related_account_tokens: null
          method: ACH_NEXT_DAY
          method_attributes:
            retries: 0
            return_reason_code: null
            sec_code: CCD
            addenda: null
          pending_amount: 0
          result: APPROVED
          settled_amount: 4103
          source: CUSTOMER
          status: SETTLED
          token: 147595d7-45f4-4c91-a950-3436d16847e5
          updated: '2023-09-14T12:52:47Z'
          user_defined_id: null
    statements_created_webhook:
      title: Statement Webhook
      type: object
      allOf:
        - $ref: '#/components/schemas/statement_response'
      properties:
        event_type:
          type: string
          enum:
            - statements.created
      required:
        - event_type
    challenge:
      title: 3DS Challenge object
      type: object
      description: Represents a challenge object for 3DS authentication
      properties:
        challenge_method_type:
          type: string
          description: The type of challenge method issued to the cardholder
          enum:
            - OUT_OF_BAND
        start_time:
          type: string
          description: ISO-8601 time at which the challenge has started
          format: date-time
        expiry_time:
          type: string
          description: ISO-8601 time at which the challenge expires
          format: date-time
        app_requestor_url:
          type:
            - string
            - 'null'
          description: >-
            Fully qualified app URL of the merchant app. This should be used to redirect the cardholder back
            to the merchant app after completing an app-based challenge. This URL will only be populated if
            the 3DS Requestor App is provided to the 3DS SDK.
          format: uri
      required:
        - challenge_method_type
        - start_time
        - expiry_time
    challenge-event:
      title: 3DS Challenge webhook event
      type: object
      description: Represents a challenge event that is emitted after issuing a 3DS challenge
      properties:
        authentication_object:
          $ref: '#/components/schemas/authentication'
        challenge:
          $ref: '#/components/schemas/challenge'
        event_type:
          const: three_ds_authentication.challenge
      required:
        - authentication_object
        - challenge
        - event_type
    tokenization-approval-request:
      description: An event webhook (no responder) to inform that a Tokenization Request was decisioned on.
      allOf:
        - $ref: '#/components/schemas/tokenization-request-base'
        - type: object
          properties:
            token_metadata:
              $ref: '#/components/schemas/digital-wallet-token-metadata'
            customer_tokenization_decision:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/customer-tokenization-decision'
            event_type:
              description: The name of this event
              enum:
                - tokenization.approval_request
              example: tokenization.approval_request
              type: string
            tokenization_decline_reasons:
              description: List of reasons why the tokenization was declined
              type: array
              items:
                $ref: '#/components/schemas/tokenization-decline-reason'
            tokenization_tfa_reasons:
              description: List of reasons why two-factor authentication was required
              type: array
              items:
                $ref: '#/components/schemas/tokenization-tfa-reason'
            rule_results:
              description: Results from rules that were evaluated for this tokenization
              type: array
              items:
                $ref: '#/components/schemas/tokenization-rule-result'
          required:
            - customer_tokenization_decision
            - event_type
            - token_metadata
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-18T12:34:56Z'
          customer_tokenization_decision:
            latency: '100'
            outcome: APPROVED
            responder_url: https://example.com
            response_code: '123456'
          device:
            imei: '123456789012345'
            ip_address: 1.1.1.1
            location: 37.3860517/-122.0838511
          token_metadata:
            payment_account_info:
              account_holder_data:
                phone_number: '+15555555555'
              pan_unique_reference: pan_unique_ref_1234567890123456789012345678
              payment_account_reference: ref_1234567890123456789012
              token_unique_reference: token_unique_ref_1234567890123456789012345678
            payment_app_instance_id: app_instance_123456789012345678901234567890
            status: Pending
            token_requestor_id: '12345678901'
            token_requestor_name: APPLE_PAY
          event_type: tokenization.approval_request
          issuer_decision: APPROVED
          tokenization_channel: DIGITAL_WALLET
          tokenization_source: PUSH_PROVISION
          tokenization_token: tok_1234567890abcdef
          wallet_decisioning_info:
            account_score: '100'
            device_score: '100'
            recommendation_reasons:
              - Reason1
            recommended_decision: Decision1
          tokenization_decline_reasons: []
          tokenization_tfa_reasons:
            - WALLET_RECOMMENDED_TFA
          rule_results:
            - auth_rule_token: 550e8400-e29b-41d4-a716-446655440001
              result: REQUIRE_TFA
              name: CustomerRiskRule
              explanation: High risk transaction detected
    tokenization-result:
      title: Tokenization Result
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2020-01-01T00:00:00Z'
          tokenization_result_details:
            issuer_decision: APPROVED
            tokenization_decline_reasons:
              - ACCOUNT_SCORE_1
              - DEVICE_SCORE_1
            wallet_decision: APPROVED
          tokenization_token: 00000000-0000-0000-0000-000000000003
      properties:
        account_token:
          description: Account token
          example: 00000000-0000-0000-0000-000000000002
          type: string
        card_token:
          description: Card token
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Created date
          example: '2020-01-01T00:00:00Z'
          format: date-time
          type: string
        tokenization_result_details:
          additionalProperties: false
          description: The result of the tokenization request.
          properties:
            customer_decision:
              description: The customer's tokenization decision if applicable.
              type:
                - string
                - 'null'
            issuer_decision:
              description: Lithic's tokenization decision.
              type: string
            token_activated_date_time:
              description: An RFC 3339 timestamp indicating when the tokenization succeeded.
              example: '2020-01-01T00:00:00Z'
              format: date-time
              type:
                - string
                - 'null'
            tokenization_decline_reasons:
              description: List of reasons why the tokenization was declined
              example:
                - ACCOUNT_SCORE_1
                - DEVICE_SCORE_1
              items:
                enum:
                  - ACCOUNT_SCORE_1
                  - ALL_WALLET_DECLINE_REASONS_PRESENT
                  - CARD_EXPIRY_MONTH_MISMATCH
                  - CARD_EXPIRY_YEAR_MISMATCH
                  - CARD_INVALID_STATE
                  - CUSTOMER_RED_PATH
                  - CVC_MISMATCH
                  - DEVICE_SCORE_1
                  - GENERIC_DECLINE
                  - INVALID_CUSTOMER_RESPONSE
                  - NETWORK_FAILURE
                  - WALLET_RECOMMENDED_DECISION_RED
                type: string
              type: array
            tokenization_tfa_reasons:
              description: List of reasons why two-factor authentication was required
              type: array
              items:
                $ref: '#/components/schemas/tokenization-tfa-reason'
            rule_results:
              description: Results from rules that were evaluated for this tokenization
              type: array
              items:
                $ref: '#/components/schemas/tokenization-rule-result'
            wallet_decision:
              description: The wallet's recommended decision.
              example: APPROVED
              type:
                - string
                - 'null'
          required:
            - issuer_decision
            - tokenization_decline_reasons
          type: object
        tokenization_token:
          description: Tokenization token
          example: 00000000-0000-0000-0000-000000000003
          type: string
      required:
        - account_token
        - card_token
        - created
        - tokenization_result_details
        - tokenization_token
      type: object
    tokenization-two-factor-authentication-code:
      title: Tokenization Two Factor Authentication Code
      description: Self Serve 2FA Code Schema
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          activation_method:
            type: TEXT_TO_CARDHOLDER_NUMBER
            value: '+15555555555'
          authentication_code: '123456'
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2020-01-01T00:00:00Z'
          tokenization_token: 00000000-0000-0000-0000-000000000003
      properties:
        account_token:
          description: Unique identifier for the user tokenizing a card
          example: 00000000-0000-0000-0000-000000000002
          type: string
        activation_method:
          description: ''
          properties:
            type:
              description: |-
                The communication method that the user has selected to use to receive the authentication code.
                Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email = "EMAIL_TO_CARDHOLDER_ADDRESS"
              enum:
                - EMAIL_TO_CARDHOLDER_ADDRESS
                - TEXT_TO_CARDHOLDER_NUMBER
              example: TEXT_TO_CARDHOLDER_NUMBER
              type: string
            value:
              description: >-
                The location where the user wants to receive the authentication code.

                The format depends on the ActivationMethod.Type field. If Type is Email, the Value will be the
                email address. If the Type is Sms, the Value will be the phone number.
              example: '+15555555555'
              type: string
          required:
            - type
            - value
          type: object
        authentication_code:
          description: Authentication code to provide to the user tokenizing a card.
          example: '123456'
          type: string
        card_token:
          description: Unique identifier for the card being tokenized
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Indicate when the request was received from Mastercard or Visa
          example: '2020-01-01T00:00:00Z'
          format: date-time
          title: Created
          type: string
        tokenization_token:
          description: Unique identifier for the tokenization
          example: 00000000-0000-0000-0000-000000000003
          type: string
      required:
        - account_token
        - activation_method
        - authentication_code
        - card_token
        - created
        - tokenization_token
      type: object
    tokenization-two-factor-authentication-code-sent:
      title: Tokenization Two Factor Authentication Code Sent
      description: 2FA Code Sent Schema
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          activation_method:
            type: TEXT_TO_CARDHOLDER_NUMBER
            value: '+15555555555'
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2020-01-01T00:00:00Z'
          tokenization_token: 00000000-0000-0000-0000-000000000003
      properties:
        account_token:
          description: Unique identifier for the user tokenizing a card
          example: 00000000-0000-0000-0000-000000000002
          type: string
        activation_method:
          description: ''
          properties:
            type:
              description: |-
                The communication method that the user has selected to use to receive the authentication code.
                Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email = "EMAIL_TO_CARDHOLDER_ADDRESS"
              enum:
                - EMAIL_TO_CARDHOLDER_ADDRESS
                - TEXT_TO_CARDHOLDER_NUMBER
              example: TEXT_TO_CARDHOLDER_NUMBER
              type: string
            value:
              description: >-
                The location to which the authentication code was sent.

                The format depends on the ActivationMethod.Type field. If Type is Email, the Value will be the
                email address. If the Type is Sms, the Value will be the phone number.
              example: '+15555555555'
              type: string
          required:
            - type
            - value
          type: object
        card_token:
          description: Unique identifier for the card being tokenized
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Indicate when the request was received from Mastercard or Visa
          example: '2020-01-01T00:00:00Z'
          format: date-time
          title: Created
          type: string
        tokenization_token:
          description: Unique identifier for the tokenization
          example: 00000000-0000-0000-0000-000000000003
          type: string
      required:
        - account_token
        - activation_method
        - card_token
        - created
        - tokenization_token
      type: object
    tokenization-updated:
      title: Tokenization Updated
      examples:
        - account_token: 00000000-0000-0000-0000-000000000002
          card_token: 00000000-0000-0000-0000-000000000001
          created: '2023-09-13T16:05:09.893241'
          tokenization:
            account_token: 61c3acef-3c2c-4d61-9352-941397b92ca3
            card_token: 16a410c9-7f5c-43e9-8108-bb8a72c063f7
            tokenization_channel: DIGITAL_WALLET
            created_at: '2023-09-13T15:30:11.948371'
            events:
              - created_at: '2023-09-13T16:05:09.893241'
                result: TOKEN_ACTIVATED
                token: a690b617-d3d4-4976-82f6-901f817ad98a
                type: TOKENIZATION_UPDATED
              - created_at: '2023-09-13T16:01:13.643241'
                result: APPROVED
                token: 2b2a1038-45f3-42e4-98bb-e745be3f1de1
                type: TOKENIZATION_AUTHORIZATION
            status: ACTIVE
            token: 3e9a10da-11be-4a62-a510-d43548bfcec1
            token_requestor_name: APPLE_PAY
            token_unique_reference: DM4MMC0000332872ef1029f38fa0184b5c9260383da192b22
            dpan: '5489123487251234'
            device_id: ba6f05c312d4a5789b2e04f05c1f9d3b81GJ4AG1
            payment_account_reference_id: 50019T0AL7DEFGJ4AGGT8BQDOABCD
            updated_at: '2023-09-13T16:05:09.893241'
      properties:
        account_token:
          description: Account token
          example: 00000000-0000-0000-0000-000000000002
          type: string
        card_token:
          description: Card token
          example: 00000000-0000-0000-0000-000000000001
          type: string
        created:
          description: Created date
          example: '2020-01-01T00:00:00Z'
          format: date-time
          type: string
        tokenization:
          $ref: '#/components/schemas/tokenization'
      required:
        - account_token
        - card_token
        - created
        - tokenization
      type: object
    three-ds-decisioning:
      title: 3DS Decision Response object
      type: object
      description: Information on whether the Authentication should be approved, declined or challenged.
      properties:
        three_ds_authentication_decision:
          type: string
          description: >-
            * `APPROVE` - Approve the 3DS Transaction and proceed to Authorization

            * `DECLINE` - Decline the 3DS Transaction ending the transaction

            * `CHALLENGE_REQUESTED` - Conditional Approval for the 3DS Transaction where a follow-up Challenge
            will be triggered to further authenticate the Cardholder
          enum:
            - APPROVE
            - DECLINE
            - CHALLENGE_REQUESTED
        oob_url:
          type: string
          description: >-
            URL which may be used in the presentation of a 3DS Challenge UI to the cardholder. This value will
            be used by the ACS as the OOB App URL. When applicable, this URL may be used for automatic app
            switching or rendered directly as an element in the Challenge UI.

            This field is only used with CHALLENGE_REQUESTED decision and when customer orchestrates the 3DS
            challenge on their own.
      required:
        - three_ds_authentication_decision
    bank_account_api_response_unlinked:
      title: Bank Account Api Response
      type: object
      properties:
        token:
          description: >-
            A globally unique identifier for this record of an external bank account association. If a program
            links an external bank account to more than one end-user or to both the program and the end-user,
            then Lithic will return each record of the association
          type: string
          format: uuid
        owner:
          description: >-
            Legal Name of the business or individual who owns the external account. This will appear in
            statements
          type: string
        routing_number:
          description: Routing Number
          type: string
        last_four:
          description: The last 4 digits of the bank account. Derived by Lithic from the account number passed
          type: string
        name:
          description: The nickname for this External Bank Account
          type:
            - string
            - 'null'
        currency:
          description: currency of the external account 3-character alphabetic ISO 4217 code
          type: string
        country:
          description: >-
            The country that the bank account is located in using ISO 3166-1. We will only accept USA bank
            accounts e.g., USA
          type: string
        account_token:
          description: >-
            Indicates which Lithic account the external account is associated with. For external accounts that
            are associated with the program, account_token field returned will be null
          type:
            - string
            - 'null'
          format: uuid
        created:
          description: An ISO 8601 string representing when this funding source was added to the Lithic account.
          type: string
          format: date-time
        company_id:
          description: Optional field that helps identify bank accounts in receipts
          type:
            - string
            - 'null'
        dob:
          description: Date of Birth of the Individual that owns the external bank account
          title: Date of Birth
          type:
            - string
            - 'null'
          format: date
        doing_business_as:
          description: Doing Business As
          type:
            - string
            - 'null'
        user_defined_id:
          description: User Defined ID
          title: User Defined ID
          type:
            - string
            - 'null'
        verification_failed_reason:
          description: >-
            Optional free text description of the reason for the failed verification. For ACH micro-deposits
            returned, this field will display the reason return code sent by the ACH network
          type:
            - string
            - 'null'
        verification_attempts:
          description: The number of attempts at verification
          type: integer
        financial_account_token:
          description: The financial account token of the operating account to fund the micro deposits
          type:
            - string
            - 'null'
          format: uuid
        type:
          description: Account Type
          $ref: '#/components/schemas/account_type'
        verification_method:
          title: Verification Method
          description: Verification Method
          type: string
          enum:
            - MANUAL
            - MICRO_DEPOSIT
            - PLAID
            - PRENOTE
        owner_type:
          title: Owner Type
          description: Owner Type
          type: string
          enum:
            - BUSINESS
            - INDIVIDUAL
        state:
          description: Account State
          $ref: '#/components/schemas/account_state'
          x-stainless-naming:
            java:
              type_name: State
        verification_state:
          description: Verification State
          $ref: '#/components/schemas/verification_state'
        address:
          description: Address
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/external_bank_account_address'
      required:
        - token
        - type
        - verification_method
        - owner_type
        - owner
        - state
        - verification_state
        - routing_number
        - last_four
        - currency
        - country
        - created
        - verification_attempts
  responses:
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
      description: >
        |   |   |

        |---|---|

        | User has not been authenticated | Invalid or missing API key |

        | API key is not active | The API key used is no longer active |

        | Could not find API key | The API key provided is not associated with any user |

        | Please provide API key in Authorization header | The Authorization header is not in the request |

        | Please provide API key in the form Authorization: [api-key] | The Authorization header is not
        formatted properly |

        | Insufficient privileges. Issuing API key required | Write access requires an Issuing API key. Reach
        out at [lithic.com/contact](https://lithic.com/contact) |

        | Insufficient privileges to create virtual cards. | Creating virtual cards requires an additional
        privilege | Reach out at [lithic.com/contact](https://lithic.com/contact) |
    TooManyRequests:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
      description: |
        Client has exceeded the number of allowed requests in a given time period.

        |   |   |
        |---|---|
        | Rate limited, too many requests per second | User has exceeded their per second rate limit |
        | Rate limited, reached daily limit | User has exceeded their daily rate limit |
        | Rate limited, too many keys tried | One IP has queried too many different API keys |
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
      description: A parameter in the query given in the request does not match the valid queries for the endpoint.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
      description: The specified resource was not found.
    UnprocessableEntity:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
      description: Unprocessable entity.
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
      description: The request could not be completed due to a conflict with the current state of the target resource.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
      description: |
        Client is not authorized to call the endpoint
    responses-BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    responses-NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    AuthRule:
      description: Auth Rule
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/auth-rule'
    SimulateAuthorizationFailure:
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/error'
              - properties:
                  token:
                    description: A unique token to reference this transaction.
                    example: b68ba424-ab69-4cbc-a946-30d90181b621
                    format: uuid
                    type: string
                type: object
      description: Unprocessable Entity.
webhooks:
  account_holder.created:
    post:
      description: Occurs when a new account_holder is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: account_holder.created
                      example: account_holder.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/account-holder-created'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: account_holder.created
      tags:
        - Event Types
  account_holder.updated:
    post:
      description: Occurs when an account_holder is updated.
      requestBody:
        content:
          application/json:
            examples:
              kybExample:
                summary: KYB Payload Example
                value:
                  event_type: account_holder.updated
                  token: 00000000-0000-0000-0000-000000000001
                  update_request:
                    business_entity:
                      government_id: 111-23-1413
                      legal_business_name: Acme, Inc.
                      phone_numbers:
                        - '+15555555555'
                      address:
                        address1: 123 Main St
                        city: Anytown
                        country: USA
                        state: CA
                        postal_code: '61023'
                    control_person:
                      address:
                        address1: 451 New Forest Way
                        city: Springfield
                        country: USA
                        state: IL
                        postal_code: '68022'
                  website_url: https://www.mynewbusiness.com
              kycExample:
                summary: KYC Payload Example
                value:
                  event_type: account_holder.updated
                  token: 00000000-0000-0000-0000-000000000001
                  update_request:
                    individual:
                      address:
                        address1: 451 New Forest Way
                        city: Springfield
                        country: USA
                        state: IL
                        postal_code: '68022'
                      phone_number: '+15555555555'
                      first_name: John
                      last_name: Appleseed
              legacyExample:
                summary: Legacy Payload Example
                value:
                  event_type: account_holder.updated
                  business_account_token: null
                  created: '2023-09-26 16:41:40.530938'
                  email: john@lithic.com
                  external_id: null
                  first_name: John
                  last_name: Appleseed
                  phone_number: '+15555555555'
                  token: 00000000-0000-0000-0000-000000000001
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: account_holder.updated
                      example: account_holder.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/account-holder-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: account_holder.updated
      tags:
        - Event Types
  account_holder.verification:
    post:
      description: Occurs when an asynchronous account_holder's verification is completed.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: account_holder.verification
                      example: account_holder.verification
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/account-holder-verification'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: account_holder.verification
      tags:
        - Event Types
  account_holder_document.updated:
    post:
      description: Occurs when an account holder's document upload status has been updated
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: account_holder_document.updated
                      example: account_holder_document.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/account-holder-document-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: account_holder_document.updated
      tags:
        - Event Types
  card_authorization.approval_request:
    post:
      description: Auth Stream Access Request
      parameters:
        - $ref: '#/components/parameters/webhookId'
        - $ref: '#/components/parameters/webhookTimestamp'
        - $ref: '#/components/parameters/webhookSignature'
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - type: object
                  properties:
                    event_type:
                      type: string
                      const: card_authorization.approval_request
                      example: card_authorization.approval_request
                  required:
                    - event_type
                - $ref: '#/components/schemas/asa-request'
      responses:
        '200':
          description: Return a HTTP 200 status to indicate that the ASA responder was able to handle the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asa-response'
        5XX:
          description: >-
            Return a HTTP 5XX response to indicate processing failure. This will cause Lithic to immediately
            retry the request once.
      summary: Auth Stream Access Request
      tags:
        - Auth Stream Access (ASA)
  auth_rules.backtest_report.created:
    post:
      description: Auth Rules backtest report created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: auth_rules.backtest_report.created
                      example: auth_rules.backtest_report.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/backtest-report'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: auth_rules.backtest_report.created
      tags:
        - Event Types
  balance.updated:
    post:
      description: Financial Account Balance Update
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: balance.updated
                      example: balance.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/balance-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: balance.updated
      tags:
        - Event Types
  book_transfer_transaction.created:
    post:
      description: Occurs when a book transfer transaction is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: book_transfer_transaction.created
                      example: book_transfer_transaction.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/book-transfer-transaction-created'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: book_transfer_transaction.created
      tags:
        - Event Types
  book_transfer_transaction.updated:
    post:
      description: Occurs when a book transfer transaction is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: book_transfer_transaction.updated
                      example: book_transfer_transaction.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/book-transfer-transaction-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: book_transfer_transaction.updated
      tags:
        - Event Types
  card.created:
    post:
      description: Occurs when a new card is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card.created
                      example: card.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-created'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card.created
      tags:
        - Event Types
  card.converted:
    post:
      description: Occurs when a card is converted from virtual to physical cards.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card.converted
                      example: card.converted
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-converted'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card.converted
      tags:
        - Event Types
  card.renewed:
    post:
      description: Occurs when a card is renewed.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card.renewed
                      example: card.renewed
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-renewed'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card.renewed
      tags:
        - Event Types
  card.reissued:
    post:
      description: Occurs when a card is reissued.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card.reissued
                      example: card.reissued
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-reissued'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card.reissued
      tags:
        - Event Types
  card.shipped:
    post:
      description: Occurs when a card is shipped.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card.shipped
                      example: card.shipped
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-shipped'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card.shipped
      tags:
        - Event Types
  card.updated:
    post:
      description: Occurs when a card is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card.updated
                      example: card.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card.updated
      tags:
        - Event Types
  card_transaction.updated:
    post:
      description: Occurs when a card transaction happens.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card_transaction.updated
                      example: card_transaction.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card_transaction'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card_transaction.updated
      tags:
        - Event Types
  card_transaction.enhanced_data.created:
    post:
      description: Occurs when L2/L3 enhanced commercial data is processed for a transaction event.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card_transaction.enhanced_data.created
                      example: card_transaction.enhanced_data.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-transaction-enhanced-data-created'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card_transaction.enhanced_data.created
      tags:
        - Event Types
  card_transaction.enhanced_data.updated:
    post:
      description: Occurs when L2/L3 enhanced commercial data is reprocessed for a transaction event.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: card_transaction.enhanced_data.updated
                      example: card_transaction.enhanced_data.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/card-transaction-enhanced-data-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: card_transaction.enhanced_data.updated
      tags:
        - Event Types
  digital_wallet.tokenization_approval_request:
    post:
      description: >-
        Tokenization Customer Decisioning Request. Use `tokenization.approval_request` for notification
        webhooks.
      parameters:
        - $ref: '#/components/parameters/webhookId'
        - $ref: '#/components/parameters/webhookTimestamp'
        - $ref: '#/components/parameters/webhookSignature'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/digital-wallet-tokenization-approval-request'
      responses:
        '200':
          description: >-
            Return a HTTP 200 status to indicate that the Tokenization Responder was able to handle the
            request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tokenization-decisioning-response'
      summary: Tokenization Decisioning Request
      tags:
        - Tokenization
  digital_wallet.tokenization_result:
    post:
      description: |-
        Occurs when a tokenization request succeeded or failed.

        This event will be deprecated in the future. We recommend using `tokenization.result` instead.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: digital_wallet.tokenization_result
                      example: digital_wallet.tokenization_result
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/digital-wallet-tokenization-result'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: digital_wallet.tokenization_result
      tags:
        - Event Types
  digital_wallet.tokenization_two_factor_authentication_code:
    post:
      description: >-
        Occurs when a tokenization request 2FA code is sent to the Lithic customer for self serve delivery.


        This event will be deprecated in the future. We recommend using
        `tokenization.two_factor_authentication_code` instead.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: digital_wallet.tokenization_two_factor_authentication_code
                      example: digital_wallet.tokenization_two_factor_authentication_code
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/digital-wallet-tokenization-two-factor-authentication-code'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: digital_wallet.tokenization_two_factor_authentication_code
      tags:
        - Event Types
  digital_wallet.tokenization_two_factor_authentication_code_sent:
    post:
      description: >-
        Occurs when a tokenization request 2FA code is sent to our downstream messaging providers for
        delivery.


        This event will be deprecated in the future. We recommend using
        `tokenization.two_factor_authentication_code_sent` instead.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: digital_wallet.tokenization_two_factor_authentication_code_sent
                      example: digital_wallet.tokenization_two_factor_authentication_code_sent
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/digital-wallet-tokenization-two-factor-authentication-code-sent'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: digital_wallet.tokenization_two_factor_authentication_code_sent
      tags:
        - Event Types
  digital_wallet.tokenization_updated:
    post:
      description: |-
        Occurs when a tokenization's status has changed.

        This event will be deprecated in the future. We recommend using `tokenization.updated` instead.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: digital_wallet.tokenization_updated
                      example: digital_wallet.tokenization_updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/digital-wallet-tokenization-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: digital_wallet.tokenization_updated
      tags:
        - Event Types
  dispute.updated:
    post:
      description: Occurs when a dispute is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: dispute.updated
                      example: dispute.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/dispute-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: dispute.updated
      tags:
        - Event Types
  dispute_evidence.upload_failed:
    post:
      description: Occurs when a dispute evidence upload fails.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: dispute_evidence.upload_failed
                      example: dispute_evidence.upload_failed
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/dispute-evidence-upload-failed'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: dispute_evidence.upload_failed
      tags:
        - Event Types
  external_bank_account.created:
    post:
      description: Occurs when an external bank account is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: external_bank_account.created
                      example: external_bank_account.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/bank_account_api_response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: external_bank_account.created
      tags:
        - Event Types
  external_bank_account.updated:
    post:
      description: Occurs when an external bank account is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: external_bank_account.updated
                      example: external_bank_account.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/bank_account_api_response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: external_bank_account.updated
      tags:
        - Event Types
  external_payment.created:
    post:
      description: Occurs when an external payment is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: external_payment.created
                      example: external_payment.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/external_payment_response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: external_payment.created
      tags:
        - Event Types
  external_payment.updated:
    post:
      description: Occurs when an external payment is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: external_payment.updated
                      example: external_payment.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/external_payment_response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: external_payment.updated
      tags:
        - Event Types
  financial_account.created:
    post:
      description: Occurs when a financial account is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: financial_account.created
                      example: financial_account.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/financial-account-response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: financial_account.created
      tags:
        - Event Types
  financial_account.updated:
    post:
      description: Occurs when a financial account is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: financial_account.updated
                      example: financial_account.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/financial-account-response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: financial_account.updated
      tags:
        - Event Types
  funding_event.created:
    post:
      description: Occurs when a funding event is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: funding_event.created
                      example: funding_event.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/funding_events_created_webhook'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: funding_event.created
      tags:
        - Event Types
  loan_tape.created:
    post:
      description: Occurs when a loan tape is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: loan_tape.created
                      example: loan_tape.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/loan_tape_response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: loan_tape.created
      tags:
        - Event Types
  loan_tape.updated:
    post:
      description: Occurs when a loan tape is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: loan_tape.updated
                      example: loan_tape.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/loan_tape_response'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: loan_tape.updated
      tags:
        - Event Types
  management_operation.created:
    post:
      description: Occurs when an management operation is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: management_operation.created
                      example: management_operation.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/management_operation_transaction'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: management_operation.created
      tags:
        - Event Types
  management_operation.updated:
    post:
      description: Occurs when an management operation is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: management_operation.updated
                      example: management_operation.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/management_operation_transaction'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: management_operation.updated
      tags:
        - Event Types
  internal_transaction.created:
    post:
      description: Occurs when an internal adjustment is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: internal_transaction.created
                      example: internal_transaction.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/internal_adjustment_transaction'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: internal_transaction.created
      tags:
        - Event Types
  internal_transaction.updated:
    post:
      description: Occurs when an internal adjustment is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: internal_transaction.updated
                      example: internal_transaction.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/internal_adjustment_transaction'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: internal_transaction.updated
      tags:
        - Event Types
  network_total.created:
    post:
      description: Occurs when a network total is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: network_total.created
                      example: network_total.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/network_total'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: network_total.created
      tags:
        - Event Types
  network_total.updated:
    post:
      description: Occurs when a network total is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: network_total.updated
                      example: network_total.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/network_total'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: network_total.updated
      tags:
        - Event Types
  payment_transaction.created:
    post:
      description: Occurs when a payment transaction is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: payment_transaction.created
                      example: payment_transaction.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/payment-transaction-created'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: payment_transaction.created
      tags:
        - Event Types
  payment_transaction.updated:
    post:
      description: Occurs when a payment transaction is updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: payment_transaction.updated
                      example: payment_transaction.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/payment-transaction-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: payment_transaction.updated
      tags:
        - Event Types
  settlement_report.updated:
    post:
      description: Occurs when a settlement report is created or updated.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: settlement_report.updated
                      example: settlement_report.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/settlement-report'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: settlement_report.updated
      tags:
        - Event Types
  statements.created:
    post:
      description: Occurs when a statement has been created
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: statements.created
                      example: statements.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/statements_created_webhook'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: statements.created
      tags:
        - Event Types
  three_ds_authentication.created:
    post:
      description: Occurs when a 3DS authentication is created.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: three_ds_authentication.created
                      example: three_ds_authentication.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/authentication'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: three_ds_authentication.created
      tags:
        - Event Types
  three_ds_authentication.updated:
    post:
      description: Occurs when a 3DS authentication is updated (eg. challenge is completed).
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: three_ds_authentication.updated
                      example: three_ds_authentication.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/authentication'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: three_ds_authentication.updated
      tags:
        - Event Types
  three_ds_authentication.challenge:
    post:
      description: >-
        The `three_ds_authentication.challenge` event. Upon receiving this request, the Card Program should
        issue its own challenge to the cardholder. After a cardholder challenge is successfully completed, the
        Card Program needs to respond back to Lithic by call to
        [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
        Then the cardholder must navigate back to the merchant checkout flow to complete the transaction. Some
        merchants will include an `app_requestor_url` for app-based purchases; Lithic recommends triggering a
        redirect to that URL after the cardholder completes an app-based challenge.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: three_ds_authentication.challenge
                      example: three_ds_authentication.challenge
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/challenge-event'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: three_ds_authentication.challenge
      tags:
        - Event Types
  tokenization.approval_request:
    post:
      description: Occurs when a tokenization approval request is made.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: tokenization.approval_request
                      example: tokenization.approval_request
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/tokenization-approval-request'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: tokenization.approval_request
      tags:
        - Event Types
  tokenization.result:
    post:
      description: Occurs when a tokenization request succeeded or failed.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: tokenization.result
                      example: tokenization.result
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/tokenization-result'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: tokenization.result
      tags:
        - Event Types
  tokenization.two_factor_authentication_code:
    post:
      description: Occurs when a tokenization request 2FA code is sent to the Lithic customer for self serve delivery.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: tokenization.two_factor_authentication_code
                      example: tokenization.two_factor_authentication_code
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/tokenization-two-factor-authentication-code'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: tokenization.two_factor_authentication_code
      tags:
        - Event Types
  tokenization.two_factor_authentication_code_sent:
    post:
      description: >-
        Occurs when a tokenization request 2FA code is sent to our downstream messaging providers for
        delivery.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: tokenization.two_factor_authentication_code_sent
                      example: tokenization.two_factor_authentication_code_sent
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/tokenization-two-factor-authentication-code-sent'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: tokenization.two_factor_authentication_code_sent
      tags:
        - Event Types
  tokenization.updated:
    post:
      description: Occurs when a tokenization's status has changed.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: tokenization.updated
                      example: tokenization.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/tokenization-updated'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: tokenization.updated
      tags:
        - Event Types
  three_ds_authentication.approval_request:
    post:
      description: >-
        Webhook for Card Programs to decision on 3DS Authentication Request. See
        https://docs.lithic.com/docs/3ds-decisioning for more details.
      summary: 3DS Decisioning Request
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - type: object
                  properties:
                    event_type:
                      type: string
                      const: three_ds_authentication.approval_request
                      example: three_ds_authentication.approval_request
                  required:
                    - event_type
                - $ref: '#/components/schemas/authentication'
      responses:
        '200':
          description: Information on whether the Request was Approved/Declined and if a Challenge should be created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/three-ds-decisioning'
      tags:
        - 3DS
  dispute_transaction.created:
    post:
      description: Occurs when a new dispute transaction is created
      requestBody:
        content:
          application/json:
            examples:
              disputeCreated:
                summary: Dispute Transaction Created Example
                value:
                  event_type: dispute_transaction.created
                  case_id: ROL12345
                  token: 123e4567-e89b-12d3-a456-426614174000
                  card_token: 78ddee49-4558-4a79-80ce-339e12cc141c
                  account_token: 82d7c408-2bbb-4f63-889a-8a2a2b1601af
                  network: VISA
                  currency: USD
                  created: '2024-02-07T10:00:00Z'
                  updated: '2024-02-07T10:00:00Z'
                  merchant:
                    acceptor_id: '174030075991'
                    acquiring_institution_id: '191231'
                    descriptor: COFFEE SHOP
                    mcc: '5812'
                    city: NEW YORK
                    state: NY
                    country: USA
                  transaction_series:
                    type: DISPUTE
                    related_transaction_token: 98765432-e89b-12d3-a456-426614174000
                    related_transaction_event_token: 7063f2ae-e806-44dd-9b1f-07e5df61e9e2
                  liability_allocation:
                    original_amount: 100000
                    recovered_amount: 0
                    written_off_amount: 0
                    denied_amount: 0
                    remaining_amount: 100000
                  disposition: null
                  status: OPEN
                  events:
                    - token: 7063f2ae-e806-44dd-9b1f-07e5df61e9e2
                      type: WORKFLOW
                      created: '2024-02-07T10:00:00Z'
                      data:
                        stage: CLAIM
                        type: WORKFLOW
                        action: OPENED
                        reason: Not Sent
                        amount: 100000
                        disposition: null
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: dispute_transaction.created
                      example: dispute_transaction.created
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/dispute'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: dispute_transaction.created
      tags:
        - Event Types
  dispute_transaction.updated:
    post:
      description: Occurs when a dispute transaction is updated
      requestBody:
        content:
          application/json:
            examples:
              disputeUpdated:
                summary: Dispute Transaction Updated Example
                value:
                  event_type: dispute_transaction.updated
                  case_id: ROL12345
                  token: 123e4567-e89b-12d3-a456-426614174000
                  card_token: 78ddee49-4558-4a79-80ce-339e12cc141c
                  account_token: 82d7c408-2bbb-4f63-889a-8a2a2b1601af
                  network: VISA
                  currency: USD
                  created: '2024-02-07T10:00:00Z'
                  updated: '2024-02-09T10:00:00Z'
                  merchant:
                    acceptor_id: '174030075991'
                    acquiring_institution_id: '191231'
                    descriptor: COFFEE SHOP
                    mcc: '5812'
                    city: NEW YORK
                    state: NY
                    country: USA
                  transaction_series:
                    type: DISPUTE
                    related_transaction_token: 98765432-e89b-12d3-a456-426614174000
                    related_transaction_event_token: 7063f2ae-e806-44dd-9b1f-07e5df61e9e2
                  liability_allocation:
                    original_amount: 100000
                    recovered_amount: 100000
                    written_off_amount: 0
                    denied_amount: 0
                    remaining_amount: 0
                  disposition: null
                  status: OPEN
                  events:
                    - token: 7063f2ae-e806-44dd-9b1f-07e5df61e9e2
                      type: WORKFLOW
                      created: '2024-02-07T10:00:00Z'
                      data:
                        stage: CLAIM
                        type: WORKFLOW
                        action: OPENED
                        reason: Not Sent
                        amount: 100000
                        disposition: null
                    - token: 5b4c53dd-f21d-40f6-bd16-37579b07d3d3
                      type: CARDHOLDER_LIABILITY
                      created: '2024-02-07T10:30:00Z'
                      data:
                        type: CARDHOLDER_LIABILITY
                        action: PROVISIONAL_CREDIT_GRANTED
                        amount: 100000
                        reason: Provisional Credit
                    - token: 23189e39-f3d3-4d14-bcdf-9c1c71135c17
                      type: FINANCIAL
                      created: '2024-02-09T10:00:00Z'
                      data:
                        stage: CHARGEBACK
                        type: FINANCIAL
                        amount: 100000
                        polarity: CREDIT
            schema:
              allOf:
                - properties:
                    event_type:
                      description: The type of event that occurred.
                      const: dispute_transaction.updated
                      example: dispute_transaction.updated
                      type: string
                  type: object
                  required:
                    - event_type
                - $ref: '#/components/schemas/dispute'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
      summary: dispute_transaction.updated
      tags:
        - Event Types
security:
  - ApiKeyAuth: []