-
Notifications
You must be signed in to change notification settings - Fork 52
/
openapi.json
3214 lines (3214 loc) · 147 KB
/
openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
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
{
"swagger": "2.0",
"info": {
"contact": {
"email": "[email protected]",
"name": "Adyen Support",
"url": "https://support.adyen.com/"
},
"description": "A set of API endpoints that allow you to store payout details, confirm, or decline a payout.\n\nFor more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts).",
"termsOfService": "https://www.adyen.com/legal/terms-and-conditions",
"title": "Adyen Payout API",
"version": "64",
"x-origin": [
{
"format": "openapi",
"url": "https://raw.githubusercontent.com/Adyen/adyen-openapi/master/json/PayoutService-v64.json",
"version": "3.0"
}
],
"x-preferred": true,
"x-providerName": "adyen.com",
"x-serviceName": "PayoutService",
"x-datafire": {
"name": "adyen_payoutservice",
"type": "openapi"
}
},
"host": "pal-test.adyen.com",
"basePath": "/pal/servlet/Payout/v64",
"schemes": [
"https"
],
"paths": {
"/confirmThirdParty": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/ModifyRequest"
}
}
],
"responses": {
"200": {
"description": "OK - the request has succeeded.",
"schema": {
"$ref": "#/definitions/ModifyResponse"
}
},
"400": {
"description": "Bad Request - a problem reading or understanding the request."
},
"401": {
"description": "Unauthorized - authentication required."
},
"403": {
"description": "Forbidden - insufficient permissions to process the request."
},
"422": {
"description": "Unprocessable Entity - a request validation error."
},
"500": {
"description": "Internal Server Error - the server could not process the request."
}
},
"description": "Confirms a previously submitted payout.\n\nTo cancel a payout, use the `/declineThirdParty` endpoint.",
"operationId": "post-confirmThirdParty",
"summary": "Confirms a payout.",
"x-groupName": "Reviewing",
"x-sortIndex": 1
}
},
"/declineThirdParty": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/ModifyRequest"
}
}
],
"responses": {
"200": {
"description": "OK - the request has succeeded.",
"schema": {
"$ref": "#/definitions/ModifyResponse"
}
},
"400": {
"description": "Bad Request - a problem reading or understanding the request."
},
"401": {
"description": "Unauthorized - authentication required."
},
"403": {
"description": "Forbidden - insufficient permissions to process the request."
},
"422": {
"description": "Unprocessable Entity - a request validation error."
},
"500": {
"description": "Internal Server Error - the server could not process the request."
}
},
"description": "Cancels a previously submitted payout.\n\nTo confirm and send a payout, use the `/confirmThirdParty` endpoint.",
"operationId": "post-declineThirdParty",
"summary": "Cancels a payout.",
"x-groupName": "Reviewing",
"x-sortIndex": 2
}
},
"/payout": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/PayoutRequest"
}
}
],
"responses": {
"200": {
"description": "OK - the request has succeeded.",
"schema": {
"$ref": "#/definitions/PayoutResponse"
}
},
"400": {
"description": "Bad Request - a problem reading or understanding the request."
},
"401": {
"description": "Unauthorized - authentication required."
},
"403": {
"description": "Forbidden - insufficient permissions to process the request."
},
"422": {
"description": "Unprocessable Entity - a request validation error."
},
"500": {
"description": "Internal Server Error - the server could not process the request."
}
},
"description": "With this call, you can pay out to your customers, and funds will be made available within 30 minutes on the cardholder's bank account (this is dependent on whether the issuer supports this functionality). Instant card payouts are only supported for Visa and Mastercard cards.",
"operationId": "post-payout",
"summary": "Pay out directly.",
"x-groupName": "Instant payouts",
"x-sortIndex": 1
}
},
"/storeDetail": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/StoreDetailRequest"
}
}
],
"responses": {
"200": {
"description": "OK - the request has succeeded.",
"schema": {
"$ref": "#/definitions/StoreDetailResponse"
}
},
"400": {
"description": "Bad Request - a problem reading or understanding the request."
},
"401": {
"description": "Unauthorized - authentication required."
},
"403": {
"description": "Forbidden - insufficient permissions to process the request."
},
"422": {
"description": "Unprocessable Entity - a request validation error."
},
"500": {
"description": "Internal Server Error - the server could not process the request."
}
},
"description": "Stores payment details under the `PAYOUT` recurring contract. These payment details can be used later to submit a payout via the `/submitThirdParty` call.",
"operationId": "post-storeDetail",
"summary": "Stores payout details.",
"x-groupName": "Initialization",
"x-sortIndex": 2
}
},
"/storeDetailAndSubmitThirdParty": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/StoreDetailAndSubmitRequest"
}
}
],
"responses": {
"200": {
"description": "OK - the request has succeeded.",
"schema": {
"$ref": "#/definitions/StoreDetailAndSubmitResponse"
}
},
"400": {
"description": "Bad Request - a problem reading or understanding the request."
},
"401": {
"description": "Unauthorized - authentication required."
},
"403": {
"description": "Forbidden - insufficient permissions to process the request."
},
"422": {
"description": "Unprocessable Entity - a request validation error."
},
"500": {
"description": "Internal Server Error - the server could not process the request."
}
},
"description": "Submits a payout and stores its details for subsequent payouts.\n\nThe submitted payout must be confirmed or declined either by a reviewer or via `/confirmThirdParty` or `/declineThirdParty` calls.",
"operationId": "post-storeDetailAndSubmitThirdParty",
"summary": "Stores details and submits a payout.",
"x-groupName": "Initialization",
"x-sortIndex": 1
}
},
"/submitThirdParty": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/SubmitRequest"
}
}
],
"responses": {
"200": {
"description": "OK - the request has succeeded.",
"schema": {
"$ref": "#/definitions/SubmitResponse"
}
},
"400": {
"description": "Bad Request - a problem reading or understanding the request."
},
"401": {
"description": "Unauthorized - authentication required."
},
"403": {
"description": "Forbidden - insufficient permissions to process the request."
},
"422": {
"description": "Unprocessable Entity - a request validation error."
},
"500": {
"description": "Internal Server Error - the server could not process the request."
}
},
"description": "Submits a payout using the previously stored payment details. To store payment details, use the `/storeDetail` API call.\n\nThe submitted payout must be confirmed or declined either by a reviewer or via `/confirmThirdParty` or `/declineThirdParty` calls.",
"operationId": "post-submitThirdParty",
"summary": "Submits a payout.",
"x-groupName": "Initialization",
"x-sortIndex": 3
}
}
},
"definitions": {
"AccountInfo": {
"properties": {
"accountAgeIndicator": {
"description": "Indicator for the length of time since this shopper account was created in the merchant's environment.\nAllowed values:\n* notApplicable\n* thisTransaction\n* lessThan30Days\n* from30To60Days\n* moreThan60Days",
"enum": [
"notApplicable",
"thisTransaction",
"lessThan30Days",
"from30To60Days",
"moreThan60Days"
],
"type": "string"
},
"accountChangeDate": {
"description": "Date when the shopper's account was last changed.",
"format": "date-time",
"type": "string"
},
"accountChangeIndicator": {
"description": "Indicator for the length of time since the shopper's account was last updated.\nAllowed values:\n* thisTransaction\n* lessThan30Days\n* from30To60Days\n* moreThan60Days",
"enum": [
"thisTransaction",
"lessThan30Days",
"from30To60Days",
"moreThan60Days"
],
"type": "string"
},
"accountCreationDate": {
"description": "Date when the shopper's account was created.",
"format": "date-time",
"type": "string"
},
"accountType": {
"description": "Indicates the type of account. For example, for a multi-account card product.\nAllowed values:\n* notApplicable\n* credit\n* debit",
"enum": [
"notApplicable",
"credit",
"debit"
],
"type": "string"
},
"addCardAttemptsDay": {
"description": "Number of attempts the shopper tried to add a card to their account in the last day.",
"format": "int32",
"type": "integer"
},
"deliveryAddressUsageDate": {
"description": "Date the selected delivery address was first used.",
"format": "date-time",
"type": "string"
},
"deliveryAddressUsageIndicator": {
"description": "Indicator for the length of time since this delivery address was first used.\nAllowed values:\n* thisTransaction\n* lessThan30Days\n* from30To60Days\n* moreThan60Days",
"enum": [
"thisTransaction",
"lessThan30Days",
"from30To60Days",
"moreThan60Days"
],
"type": "string"
},
"homePhone": {
"description": "Shopper's home phone number (including the country code).",
"type": "string"
},
"mobilePhone": {
"description": "Shopper's mobile phone number (including the country code).",
"type": "string"
},
"passwordChangeDate": {
"description": "Date when the shopper last changed their password.",
"format": "date-time",
"type": "string"
},
"passwordChangeIndicator": {
"description": "Indicator when the shopper has changed their password.\nAllowed values:\n* notApplicable\n* thisTransaction\n* lessThan30Days\n* from30To60Days\n* moreThan60Days",
"enum": [
"notApplicable",
"thisTransaction",
"lessThan30Days",
"from30To60Days",
"moreThan60Days"
],
"type": "string"
},
"pastTransactionsDay": {
"description": "Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.",
"format": "int32",
"type": "integer"
},
"pastTransactionsYear": {
"description": "Number of all transactions (successful and abandoned) from this shopper in the past year.",
"format": "int32",
"type": "integer"
},
"paymentAccountAge": {
"description": "Date this payment method was added to the shopper's account.",
"format": "date-time",
"type": "string"
},
"paymentAccountIndicator": {
"description": "Indicator for the length of time since this payment method was added to this shopper's account.\nAllowed values:\n* notApplicable\n* thisTransaction\n* lessThan30Days\n* from30To60Days\n* moreThan60Days",
"enum": [
"notApplicable",
"thisTransaction",
"lessThan30Days",
"from30To60Days",
"moreThan60Days"
],
"type": "string"
},
"purchasesLast6Months": {
"description": "Number of successful purchases in the last six months.",
"format": "int32",
"type": "integer"
},
"suspiciousActivity": {
"description": "Whether suspicious activity was recorded on this account.",
"type": "boolean"
},
"workPhone": {
"description": "Shopper's work phone number (including the country code).",
"type": "string"
}
}
},
"AdditionalData3DSecure": {
"properties": {
"allow3DS2": {
"description": "This parameter indicates that you are able to process 3D Secure 2 transactions natively on your payment page. Send this field when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/checkout/3d-secure/native-3ds2), such as Components or Drop-in. Possible values:\n* **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience.\n* **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration.\n> This parameter only indicates your readiness to support 3D Secure 2 natively on Drop-in or Components. To specify that you want to perform 3D Secure on a transaction, use Dynamic 3D Secure or send the `executeThreeD` parameter.",
"type": "string"
},
"executeThreeD": {
"description": "This parameter indicates if you want to perform 3D Secure authentication on a transaction or not. Allowed values:\n* **true** – Perform 3D Secure authentication.\n* **false** – Don't perform 3D Secure authentication.\n> Alternatively, you can also use Dynamic 3D Secure to configure rules for applying 3D Secure.",
"type": "string"
},
"mpiImplementationType": {
"description": "In case of Secure+, this field must be set to **CUPSecurePlus**.",
"type": "string"
},
"scaExemption": {
"description": "Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values:\n* **lowValue** \n* **secureCorporate** \n* **trustedBeneficiary** \n* **transactionRiskAnalysis** ",
"type": "string"
}
}
},
"AdditionalDataAirline": {
"properties": {
"airline.agency_invoice_number": {
"description": "Reference number for the invoice, issued by the agency.\n* minLength: 1\n* maxLength: 6",
"type": "string"
},
"airline.agency_plan_name": {
"description": "2-letter agency plan identifier; alphabetical.\n* minLength: 2\n* maxLength: 2",
"type": "string"
},
"airline.airline_code": {
"description": "[IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier.\n* Format: IATA 3-digit accounting code (PAX)\n* Example: KLM = 074\n* minLength: 3\n* maxLength: 3",
"type": "string"
},
"airline.airline_designator_code": {
"description": "[IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier.\n* Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code\n* Example: KLM = KL\n* minLength: 2\n* maxLength: 2",
"type": "string"
},
"airline.boarding_fee": {
"description": "Chargeable amount for boarding the plane.\nThe transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes).\n* minLength: 1\n* maxLength: 18",
"type": "string"
},
"airline.computerized_reservation_system": {
"description": "The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket.\n* Format: alphanumeric.\n* minLength: 4\n* maxLength: 4",
"type": "string"
},
"airline.customer_reference_number": {
"description": "Reference number; alphanumeric.\n* minLength: 0\n* maxLength: 20",
"type": "string"
},
"airline.document_type": {
"description": "Optional 2-digit code; alphanumeric. It identifies the type of product of the transaction. The description of the code may appear on credit card statements.\n* Format: 2-digit code\n* Example: Passenger ticket = 01\n* minLength: 2\n* maxLength: 2",
"type": "string"
},
"airline.flight_date": {
"description": "Flight departure date. Local time `(HH:mm)` is optional.\n* Date format: `yyyy-MM-dd`\n* Date and time format: `yyyy-MM-dd HH:mm`\n* minLength: 10\n* maxLength: 16",
"type": "string"
},
"airline.leg.carrier_code": {
"description": "[IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier.\nThis field is required/mandatory if the airline data includes leg details.\n* Format: IATA 2-letter airline code\n* Example: KLM = KL\n* minLength: 2\n* maxLength: 2",
"type": "string"
},
"airline.leg.class_of_travel": {
"description": "1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently:\n* F: first class\n* J: business class\n* Y: economy class\n* W: premium economy\n\nLimitations:\n* minLength: 1\n* maxLength: 1",
"type": "string"
},
"airline.leg.date_of_travel": {
"description": "\t\nDate and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant.\n* Format: `yyyy-MM-dd HH:mm`\n* minLength: 16\n* maxLength: 16",
"type": "string"
},
"airline.leg.depart_airport": {
"description": "Alphabetical identifier of the departure airport.\nThis field is required if the airline data includes leg details.\n* Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code.\n* Example: Amsterdam = AMS\n* minLength: 3\n* maxLength: 3",
"type": "string"
},
"airline.leg.depart_tax": {
"description": "[Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes).\n* minLength: 1\n* maxLength: 12",
"type": "string"
},
"airline.leg.destination_code": {
"description": "Alphabetical identifier of the destination/arrival airport.\nThis field is required/mandatory if the airline data includes leg details.\n* Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code.\n* Example: Amsterdam = AMS\n* minLength: 3\n* maxLength: 3",
"type": "string"
},
"airline.leg.fare_base_code": {
"description": "[Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric.\n* minLength: 1\n* maxLength: 7",
"type": "string"
},
"airline.leg.flight_number": {
"description": "The flight identifier.\n* minLength: 1\n* maxLength: 5",
"type": "string"
},
"airline.leg.stop_over_code": {
"description": "1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed:\n* O: Stopover allowed\n* X: Stopover not allowed\n\nLimitations:\n* minLength: 1\n* maxLength: 1",
"type": "string"
},
"airline.passenger.date_of_birth": {
"description": "Date of birth of the passenger.\n\nDate format: `yyyy-MM-dd`\n* minLength: 10\n* maxLength: 10",
"type": "string"
},
"airline.passenger.first_name": {
"description": "Passenger first name/given name.\n> This field is required/mandatory if the airline data includes passenger details or leg details.",
"type": "string"
},
"airline.passenger.last_name": {
"description": "Passenger last name/family name.\n> This field is required/mandatory if the airline data includes passenger details or leg details.",
"type": "string"
},
"airline.passenger.telephone_number": {
"description": "Telephone number of the passenger, including country code. This is an alphanumeric field that can include the '+' and '-' signs.\n* minLength: 3\n* maxLength: 30",
"type": "string"
},
"airline.passenger.traveller_type": {
"description": "Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS.\n\nHowever, several carriers use non-standard codes that can be up to 5 alphanumeric characters.\n* minLength: 3\n* maxLength: 6",
"type": "string"
},
"airline.passenger_name": {
"description": "Passenger name, initials, and a title.\n* Format: last name + first name or initials + title.\n* Example: *FLYER / MARY MS*.\n* minLength: 1\n* maxLength: 49",
"type": "string"
},
"airline.ticket_issue_address": {
"description": "Address of the place/agency that issued the ticket.\n* minLength: 0\n* maxLength: 16",
"type": "string"
},
"airline.ticket_number": {
"description": "The ticket's unique identifier.\n* minLength: 1\n* maxLength: 150",
"type": "string"
},
"airline.travel_agency_code": {
"description": "IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies.\n* minLength: 1\n* maxLength: 8",
"type": "string"
},
"airline.travel_agency_name": {
"description": "The name of the travel agency.\n* minLength: 1\n* maxLength: 25",
"type": "string"
}
},
"required": [
"airline.passenger_name"
]
},
"AdditionalDataCarRental": {
"properties": {
"carRental.checkOutDate": {
"description": "Pick-up date.\n* Date format: `yyyyMMdd`",
"type": "string"
},
"carRental.customerServiceTollFreeNumber": {
"description": "The customer service phone number of the car rental company.\n* Format: Alphanumeric\n* maxLength: 17",
"type": "string"
},
"carRental.daysRented": {
"description": "Number of days for which the car is being rented.\n* Format: Numeric\n* maxLength: 19",
"type": "string"
},
"carRental.fuelCharges": {
"description": "Any fuel charges associated with the rental.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"carRental.insuranceCharges": {
"description": "Any insurance charges associated with the rental.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"carRental.locationCity": {
"description": "The city from which the car is rented.\n* Format: Alphanumeric\n* maxLength: 18",
"type": "string"
},
"carRental.locationCountry": {
"description": "The country from which the car is rented.\n* Format: Alphanumeric\n* maxLength: 2",
"type": "string"
},
"carRental.locationStateProvince": {
"description": "The state or province from where the car is rented.\n* Format: Alphanumeric\n* maxLength: 3",
"type": "string"
},
"carRental.noShowIndicator": {
"description": "Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking).\n* Y - Customer was a no show.\n* N - Not applicable.",
"type": "string"
},
"carRental.oneWayDropOffCharges": {
"description": "Charge associated with not returning a vehicle to the original rental location.",
"type": "string"
},
"carRental.rate": {
"description": "Daily rental rate.\n* Format: Alphanumeric\n* maxLength: 12",
"type": "string"
},
"carRental.rateIndicator": {
"description": "Specifies whether the given rate is applied daily or weekly.\n* D - Daily rate.\n* W - Weekly rate.",
"type": "string"
},
"carRental.rentalAgreementNumber": {
"description": "The rental agreement number associated with this car rental.\n* Format: Alphanumeric\n* maxLength: 9",
"type": "string"
},
"carRental.rentalClassId": {
"description": "Daily rental rate.\n* Format: Alphanumeric\n* maxLength: 12",
"type": "string"
},
"carRental.renterName": {
"description": "The name of the person renting the car.\n* Format: Alphanumeric\n* maxLength: 26",
"type": "string"
},
"carRental.returnCity": {
"description": "The city where the car must be returned.\n* Format: Alphanumeric\n* maxLength: 18",
"type": "string"
},
"carRental.returnCountry": {
"description": "The country where the car must be returned.\n* Format: Alphanumeric\n* maxLength: 2",
"type": "string"
},
"carRental.returnDate": {
"description": "The last date to return the car by.\n* Date format: `yyyyMMdd`",
"type": "string"
},
"carRental.returnLocationId": {
"description": "Agency code, phone number, or address abbreviation\n* Format: Alphanumeric\n* maxLength: 10",
"type": "string"
},
"carRental.returnStateProvince": {
"description": "The state or province where the car must be returned.\n* Format: Alphanumeric\n* maxLength: 3",
"type": "string"
},
"carRental.taxExemptIndicator": {
"description": "Indicates whether the goods or services were tax-exempt, or tax was not collected.\n\nValues:\n* Y - Goods or services were tax exempt\n* N - Tax was not collected",
"type": "string"
},
"travelEntertainmentAuthData.duration": {
"description": "Number of nights. This should be included in the auth message.\n* Format: Numeric\n* maxLength: 2",
"type": "string"
},
"travelEntertainmentAuthData.market": {
"description": "Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message.\n* Format: Alphanumeric\n* maxLength: 1",
"type": "string"
}
}
},
"AdditionalDataCommon": {
"properties": {
"RequestedTestErrorResponseCode": {
"description": "Triggers test scenarios that allow to replicate certain communication errors.\n\nAllowed values:\n* **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication.\nThis is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request.\n* **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response.\nThis is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response.",
"type": "string"
},
"authorisationType": {
"description": "Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/checkout/adjust-authorisation#authorisation-types).\n\nAllowed values:\n* **PreAuth** – flags the payment request to be handled as a pre-authorisation.\n* **FinalAuth** – flags the payment request to be handled as a final authorisation.",
"type": "string"
},
"customRoutingFlag": {
"description": "Allows you to determine or override the acquirer account that should be used for the transaction.\n\nIf you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer.\n\nTo enable this functionality, contact [Support](https://support.adyen.com/hc/en-us/requests/new).",
"type": "string"
},
"networkTxReference": {
"description": "Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card.\n\nTransaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID.\n\nSubmit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges.\n\nMake sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT.",
"type": "string"
},
"overwriteBrand": {
"description": "Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction.",
"type": "string"
},
"subMerchantCity": {
"description": "This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address.\n* Format: alpha-numeric.\n* Maximum length: 13 characters.",
"type": "string"
},
"subMerchantCountry": {
"description": "This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address.\n* Format: alpha-numeric.\n* Fixed length: 3 characters.",
"type": "string"
},
"subMerchantID": {
"description": "This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID.\n\nA unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator.\n* Format: alpha-numeric.\n* Fixed length: 15 characters.",
"type": "string"
},
"subMerchantName": {
"description": "This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant.\n* Format: alpha-numeric.\n* Maximum length: 22 characters.",
"type": "string"
},
"subMerchantPostalCode": {
"description": "This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address.\n* Format: alpha-numeric.\n* Maximum length: 10 characters.",
"type": "string"
},
"subMerchantState": {
"description": "This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address.\n* Format: alpha-numeric.\n* Maximum length: 3 characters.",
"type": "string"
},
"subMerchantStreet": {
"description": "This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address.\n* Format: alpha-numeric.\n* Maximum length: 60 characters.",
"type": "string"
},
"subMerchantTaxId": {
"description": "This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant.\n* Format: alpha-numeric.\n* Fixed length: 11 or 14 characters.",
"type": "string"
}
}
},
"AdditionalDataLevel23": {
"properties": {
"enhancedSchemeData.customerReference": {
"description": "Customer code, if supplied by a customer.\n\nEncoding: ASCII.\n\nMax length: 25 characters.\n\n> Required for Level 2 and Level 3 data.",
"type": "string"
},
"enhancedSchemeData.destinationCountryCode": {
"description": "Destination country code.\n\nEncoding: ASCII.\n\nMax length: 3 characters.",
"type": "string"
},
"enhancedSchemeData.destinationPostalCode": {
"description": "The postal code of a destination address.\n\nEncoding: ASCII.\n\nMax length: 10 characters.\n\n> Required for American Express.",
"type": "string"
},
"enhancedSchemeData.destinationStateProvinceCode": {
"description": "Destination state or province code.\n\nEncoding: ASCII.Max length: 3 characters.",
"type": "string"
},
"enhancedSchemeData.dutyAmount": {
"description": "Duty amount, in minor units.\n\nFor example, 2000 means USD 20.00.\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.freightAmount": {
"description": "Shipping amount, in minor units.\n\nFor example, 2000 means USD 20.00.\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].commodityCode": {
"description": "Item commodity code.\n\nEncoding: ASCII.\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].description": {
"description": "Item description.\n\nEncoding: ASCII.\n\nMax length: 26 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].discountAmount": {
"description": "Discount amount, in minor units.\n\nFor example, 2000 means USD 20.00.\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].productCode": {
"description": "Product code.\n\nEncoding: ASCII.\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].quantity": {
"description": "Quantity, specified as an integer value.\n\nValue must be greater than 0.\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].totalAmount": {
"description": "Total amount, in minor units.\n\nFor example, 2000 means USD 20.00.\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure": {
"description": "Item unit of measurement.\n\nEncoding: ASCII.\n\nMax length: 3 characters.",
"type": "string"
},
"enhancedSchemeData.itemDetailLine[itemNr].unitPrice": {
"description": "Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes).\n\nMax length: 12 characters.",
"type": "string"
},
"enhancedSchemeData.orderDate": {
"description": "Order date.\n* Format: `ddMMyy`\n\nEncoding: ASCII.\n\nMax length: 6 characters.",
"type": "string"
},
"enhancedSchemeData.shipFromPostalCode": {
"description": "The postal code of a \"ship-from\" address.\n\nEncoding: ASCII.\n\nMax length: 10 characters.",
"type": "string"
},
"enhancedSchemeData.totalTaxAmount": {
"description": "Total tax amount, in minor units.\n\nFor example, 2000 means USD 20.00.\n\nMax length: 12 characters.\n\n> Required for Level 2 and Level 3 data.",
"type": "string"
}
}
},
"AdditionalDataLodging": {
"properties": {
"lodging.checkInDate": {
"description": "The arrival date.\n* Date format: `yyyyMMdd`",
"type": "string"
},
"lodging.checkOutDate": {
"description": "The departure date.\n* Date format: `yyyyMMdd`",
"type": "string"
},
"lodging.customerServiceTollFreeNumber": {
"description": "The toll free phone number for the hotel/lodgings.\n* Format: Alphanumeric\n* maxLength: 17",
"type": "string"
},
"lodging.fireSafetyActIndicator": {
"description": "Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: 'Y' or 'N'.\n* Format: Alphabetic\n* maxLength: 1",
"type": "string"
},
"lodging.folioCashAdvances": {
"description": "The folio cash advances.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"lodging.folioNumber": {
"description": "Card acceptor’s internal invoice or billing ID reference number.\n* Format: Alphanumeric\n* maxLength: 25",
"type": "string"
},
"lodging.foodBeverageCharges": {
"description": "Any charges for food and beverages associated with the booking.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"lodging.noShowIndicator": {
"description": "Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking).\n\nValue should be Y or N.\n* Format: Numeric\n* maxLength: 1",
"type": "string"
},
"lodging.prepaidExpenses": {
"description": "Prepaid expenses for the booking.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"lodging.propertyPhoneNumber": {
"description": "Identifies specific lodging property location by its local phone number.\n* Format: Alphanumeric\n* maxLength: 17",
"type": "string"
},
"lodging.room1.numberOfNights": {
"description": "Total number of nights the room will be rented.\n* Format: Numeric\n* maxLength: 4",
"type": "string"
},
"lodging.room1.rate": {
"description": "The rate of the room.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"lodging.room1.tax": {
"description": "The total amount of tax to be paid.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"lodging.totalRoomTax": {
"description": "Total room tax amount.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"lodging.totalTax": {
"description": "Total tax amount.\n* Format: Numeric\n* maxLength: 12",
"type": "string"
},
"travelEntertainmentAuthData.duration": {
"description": "Number of nights. This should be included in the auth message.\n* Format: Numeric\n* maxLength: 2",
"type": "string"
},
"travelEntertainmentAuthData.market": {
"description": "Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message.\n\n* Format: Alphanumeric\n* maxLength: 1",
"type": "string"
}
}
},
"AdditionalDataOpenInvoice": {
"properties": {
"openinvoicedata.merchantData": {
"description": "Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string.\n\nThe `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end.\n\nSince the field is optional, if it's not included it does not impact computing the merchant signature.\n\nApplies only to Klarna.\n\nYou can contact Klarna for the format and structure of the string.",
"type": "string"
},
"openinvoicedata.numberOfLines": {
"description": "The number of invoice lines included in `openinvoicedata`.\n\nThere needs to be at least one line, so `numberOfLines` needs to be at least 1.",
"type": "string"
},
"openinvoicedataLine[itemNr].currencyCode": {
"description": "The three-character ISO currency code.",
"type": "string"
},
"openinvoicedataLine[itemNr].description": {
"description": "A text description of the product the invoice line refers to.",
"type": "string"
},
"openinvoicedataLine[itemNr].itemAmount": {
"description": "The price for one item in the invoice line, represented in minor units.\n\nThe due amount for the item, VAT excluded.",
"type": "string"
},
"openinvoicedataLine[itemNr].itemId": {
"description": "A unique id for this item. Required for RatePay if the description of each item is not unique.",
"type": "string"
},
"openinvoicedataLine[itemNr].itemVatAmount": {
"description": "The VAT due for one item in the invoice line, represented in minor units.",
"type": "string"
},
"openinvoicedataLine[itemNr].itemVatPercentage": {
"description": "The VAT percentage for one item in the invoice line, represented in minor units.\n\nFor example, 19% VAT is specified as 1900.",
"type": "string"
},
"openinvoicedataLine[itemNr].numberOfItems": {
"description": "The number of units purchased of a specific product.",
"type": "string"
},
"openinvoicedataLine[itemNr].vatCategory": {
"description": "Required for AfterPay. The country-specific VAT category a product falls under.\n\nAllowed values:\n* High\n* Low\n* None.",
"type": "string"
}
}
},
"AdditionalDataOpi": {
"properties": {
"opi.includeTransToken": {
"description": "Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response.\n\nMake sure that you set `shopperInteraction` to **Ecommerce** and leave the `shopperReference` blank. You can use this token to identify an ecommerce transaction in your Oracle system integrations such as Opera.",
"type": "string"
}
}
},
"AdditionalDataRatepay": {
"properties": {
"ratepay.installmentAmount": {
"description": "Amount the customer has to pay each month.",
"type": "string"
},
"ratepay.interestRate": {
"description": "Interest rate of this installment.",
"type": "string"
},
"ratepay.lastInstallmentAmount": {
"description": "Amount of the last installment.",
"type": "string"
},
"ratepay.paymentFirstday": {
"description": "Calendar day of the first payment.",
"type": "string"
},
"ratepaydata.deliveryDate": {
"description": "Date the merchant delivered the goods to the customer.",
"type": "string"
},
"ratepaydata.dueDate": {
"description": "Date by which the customer must settle the payment.",
"type": "string"
},
"ratepaydata.invoiceDate": {
"description": "Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.",
"type": "string"
},
"ratepaydata.invoiceId": {
"description": "Identification name or number for the invoice, defined by the merchant.",
"type": "string"
}
}
},
"AdditionalDataRetry": {
"properties": {
"retry.chainAttemptNumber": {
"description": "The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen.\n\n> If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.",
"type": "string"
},
"retry.orderAttemptNumber": {
"description": "The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively.\n\n> If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.",
"type": "string"
},
"retry.skipRetry": {
"description": "The Boolean value indicating whether Adyen should skip or retry this transaction, if possible.\n\n> If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.",
"type": "string"
}
}
},
"AdditionalDataRisk": {
"properties": {
"riskdata.[customFieldName]": {
"description": "The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields).",
"type": "string"
},
"riskdata.basket.item[itemNr].amountPerItem": {
"description": "The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes).",
"type": "string"
},
"riskdata.basket.item[itemNr].brand": {
"description": "Brand of the item.",
"type": "string"
},
"riskdata.basket.item[itemNr].category": {
"description": "Category of the item.",
"type": "string"