forked from MONEI/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.json
More file actions
3096 lines (3096 loc) · 123 KB
/
openapi.json
File metadata and controls
3096 lines (3096 loc) · 123 KB
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
{
"openapi": "3.0.0",
"info": {
"version": "1.4.5",
"title": "MONEI API v1",
"description": "<p>The MONEI API is organized around\n<a href=\"https://en.wikipedia.org/wiki/Representational_State_Transfer\">REST</a>. Our\nAPI has predictable resource-oriented URLs, accepts JSON-encoded request\nbodies, returns JSON-encoded responses, and uses standard HTTP response\ncodes, authentication, and verbs.</p>\n<h4 id=\"base-url\">Base URL:</h4>\n<p><a href=\"https://api.monei.com/v1\">https://api.monei.com/v1</a></p>\n<h4 id=\"client-libraries\">Client libraries:</h4>\n<ul>\n<li><a href=\"https://github.com/MONEI/monei-php-sdk\">PHP SDK</a></li>\n<li><a href=\"https://github.com/MONEI/monei-python-sdk\">Python SDK</a></li>\n<li><a href=\"https://github.com/MONEI/monei-node-sdk\">Node.js SDK</a></li>\n<li><a href=\"https://postman.monei.com/\">Postman</a></li>\n</ul>\n<h4 id=\"important\">Important:</h4>\n<p><strong>If you are not using our official SDKs, you need to provide a valid <code>User-Agent</code> header in each request, otherwise your requests will be rejected.</strong></p>\n"
},
"servers": [
{
"url": "https://api.monei.com/v1",
"description": "MONEI API v1"
}
],
"tags": [
{
"name": "Status codes",
"description": "<p>Our API returns a <code>statusCode</code> attribute along with every response. Some API calls return\na successful <code>E000</code> code, along with the message <code>Transaction approved</code>.</p>\n<p>Failed transactions return a specific <code>statusCode</code>, along with it's corresponding message.</p>\n<p>Here is a list of all the possible response/error codes our API can return:</p>\n<table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>E000</td>\n<td>Transaction approved</td>\n</tr>\n<tr>\n<td>E101</td>\n<td>Error with payment processor configuration. Check this in your dashboard or contact MONEI for support</td>\n</tr>\n<tr>\n<td>E102</td>\n<td>Invalid or inactive MID. Please contact the acquiring entity</td>\n</tr>\n<tr>\n<td>E103</td>\n<td>Operation not allowed/configured for this merchant. Please contact the acquiring entity or MONEI for support</td>\n</tr>\n<tr>\n<td>E104</td>\n<td>Partial captures are not enabled in your account, please contact MONEI support</td>\n</tr>\n<tr>\n<td>E105</td>\n<td>MOTO Payment are not enabled in your account, please contact MONEI support</td>\n</tr>\n<tr>\n<td>E150</td>\n<td>Invalid or malformed request. Please check the message format</td>\n</tr>\n<tr>\n<td>E151</td>\n<td>Missing or malformed signature/auth</td>\n</tr>\n<tr>\n<td>E152</td>\n<td>Error while decrypting request</td>\n</tr>\n<tr>\n<td>E153</td>\n<td>Pre-authorization is expired and cannot be canceled or captured</td>\n</tr>\n<tr>\n<td>E154</td>\n<td>The payment date cannot be less than the cancellation or capture date</td>\n</tr>\n<tr>\n<td>E155</td>\n<td>The cancellation date exceeded the date allowed for pre-authorized operations</td>\n</tr>\n<tr>\n<td>E156</td>\n<td>Unauthorized token</td>\n</tr>\n<tr>\n<td>E200</td>\n<td>Transaction failed during payment processing</td>\n</tr>\n<tr>\n<td>E201</td>\n<td>Transaction declined by the card-issuing bank</td>\n</tr>\n<tr>\n<td>E202</td>\n<td>Transaction declined by the issuing bank</td>\n</tr>\n<tr>\n<td>E203</td>\n<td>Payment method not allowed</td>\n</tr>\n<tr>\n<td>E204</td>\n<td>Wrong or not allowed currency</td>\n</tr>\n<tr>\n<td>E205</td>\n<td>Incorrect reference / transaction does not exist</td>\n</tr>\n<tr>\n<td>E206</td>\n<td>Invalid payment method</td>\n</tr>\n<tr>\n<td>E207</td>\n<td>Transaction failed: process time exceeded</td>\n</tr>\n<tr>\n<td>E208</td>\n<td>Transaction is currently being processed</td>\n</tr>\n<tr>\n<td>E209</td>\n<td>Duplicated operation</td>\n</tr>\n<tr>\n<td>E210</td>\n<td>Wrong or not allowed payment amount</td>\n</tr>\n<tr>\n<td>E211</td>\n<td>Refund declined by processor</td>\n</tr>\n<tr>\n<td>E212</td>\n<td>Transaction has already been captured</td>\n</tr>\n<tr>\n<td>E213</td>\n<td>Transaction has already been canceled</td>\n</tr>\n<tr>\n<td>E214</td>\n<td>The amount to be captured cannot exceed the pre-authorized amount</td>\n</tr>\n<tr>\n<td>E215</td>\n<td>The transaction to be captured has not been pre-authorized yet</td>\n</tr>\n<tr>\n<td>E216</td>\n<td>The transaction to be canceled has not been pre-authorized yet</td>\n</tr>\n<tr>\n<td>E217</td>\n<td>Transaction denied by processor to avoid duplicated operations</td>\n</tr>\n<tr>\n<td>E218</td>\n<td>Error during payment request validation</td>\n</tr>\n<tr>\n<td>E219</td>\n<td>Refund declined due to exceeded amount</td>\n</tr>\n<tr>\n<td>E220</td>\n<td>Transaction has already been fully refunded</td>\n</tr>\n<tr>\n<td>E221</td>\n<td>Transaction declined due to insufficient funds</td>\n</tr>\n<tr>\n<td>E222</td>\n<td>The user has canceled the payment</td>\n</tr>\n<tr>\n<td>E223</td>\n<td>Waiting for the transaction to be completed</td>\n</tr>\n<tr>\n<td>E224</td>\n<td>No reason to decline</td>\n</tr>\n<tr>\n<td>E225</td>\n<td>Refund not allowed</td>\n</tr>\n<tr>\n<td>E226</td>\n<td>Transaction cannot be completed, violation of law</td>\n</tr>\n<tr>\n<td>E227</td>\n<td>Stop Payment Order</td>\n</tr>\n<tr>\n<td>E228</td>\n<td>Strong Customer Authentication required</td>\n</tr>\n<tr>\n<td>E229</td>\n<td>Expired payment method</td>\n</tr>\n<tr>\n<td>E300</td>\n<td>Transaction declined due to security restrictions</td>\n</tr>\n<tr>\n<td>E301</td>\n<td>3D Secure authentication failed</td>\n</tr>\n<tr>\n<td>E302</td>\n<td>Authentication process timed out. Please try again</td>\n</tr>\n<tr>\n<td>E303</td>\n<td>An error occurred during the 3D Secure process</td>\n</tr>\n<tr>\n<td>E304</td>\n<td>Invalid or malformed 3D Secure request</td>\n</tr>\n<tr>\n<td>E305</td>\n<td>Exemption not allowed</td>\n</tr>\n<tr>\n<td>E306</td>\n<td>Exemption error</td>\n</tr>\n<tr>\n<td>E307</td>\n<td>Fraud control error</td>\n</tr>\n<tr>\n<td>E308</td>\n<td>External MPI received wrong. Please check the data</td>\n</tr>\n<tr>\n<td>E309</td>\n<td>External MPI not enabled. Please contact support</td>\n</tr>\n<tr>\n<td>E500</td>\n<td>Transaction declined during card payment process</td>\n</tr>\n<tr>\n<td>E501</td>\n<td>Card rejected: invalid card number</td>\n</tr>\n<tr>\n<td>E502</td>\n<td>Card rejected: wrong expiration date</td>\n</tr>\n<tr>\n<td>E503</td>\n<td>Card rejected: wrong CVC/CVV2 number</td>\n</tr>\n<tr>\n<td>E504</td>\n<td>Card number not registered</td>\n</tr>\n<tr>\n<td>E505</td>\n<td>Card is expired</td>\n</tr>\n<tr>\n<td>E506</td>\n<td>Error during payment authorization. Please try again</td>\n</tr>\n<tr>\n<td>E507</td>\n<td>Cardholder has canceled the payment</td>\n</tr>\n<tr>\n<td>E508</td>\n<td>Transaction declined: AMEX cards not accepted by payment processor</td>\n</tr>\n<tr>\n<td>E509</td>\n<td>Card blocked temporarily or under suspicion of fraud</td>\n</tr>\n<tr>\n<td>E510</td>\n<td>Card does not allow pre-authorization operations</td>\n</tr>\n<tr>\n<td>E511</td>\n<td>CVC/CVV2 number is required</td>\n</tr>\n<tr>\n<td>E512</td>\n<td>Unsupported card type</td>\n</tr>\n<tr>\n<td>E513</td>\n<td>Transaction type not allowed for this type of card</td>\n</tr>\n<tr>\n<td>E514</td>\n<td>Transaction declined by card issuer</td>\n</tr>\n<tr>\n<td>E515</td>\n<td>Implausible card data</td>\n</tr>\n<tr>\n<td>E516</td>\n<td>Incorrect PIN</td>\n</tr>\n<tr>\n<td>E517</td>\n<td>Transaction not allowed for cardholder</td>\n</tr>\n<tr>\n<td>E518</td>\n<td>The amount exceeds the card limit</td>\n</tr>\n<tr>\n<td>E600</td>\n<td>Transaction declined during ApplePay/GooglePay payment process</td>\n</tr>\n<tr>\n<td>E601</td>\n<td>Incorrect ApplePay or GooglePay configuration</td>\n</tr>\n<tr>\n<td>E620</td>\n<td>Transaction declined during PayPal payment process</td>\n</tr>\n<tr>\n<td>E621</td>\n<td>Transaction declined during PayPal payment process: invalid currency</td>\n</tr>\n<tr>\n<td>E640</td>\n<td>Bizum transaction declined after three authentication attempts</td>\n</tr>\n<tr>\n<td>E641</td>\n<td>Bizum transaction declined due to failed authorization</td>\n</tr>\n<tr>\n<td>E642</td>\n<td>Bizum transaction declined due to insufficient funds</td>\n</tr>\n<tr>\n<td>E643</td>\n<td>Bizum transaction canceled: the user does not want to continue</td>\n</tr>\n<tr>\n<td>E644</td>\n<td>Bizum transaction rejected by destination bank</td>\n</tr>\n<tr>\n<td>E645</td>\n<td>Bizum transaction rejected by origin bank</td>\n</tr>\n<tr>\n<td>E646</td>\n<td>Bizum transaction rejected by processor</td>\n</tr>\n<tr>\n<td>E647</td>\n<td>Bizum transaction failed while connecting with processor. Please try again</td>\n</tr>\n<tr>\n<td>E648</td>\n<td>Bizum transaction failed, payee is not found</td>\n</tr>\n<tr>\n<td>E649</td>\n<td>Bizum transaction failed, payer is not found</td>\n</tr>\n<tr>\n<td>E650</td>\n<td>Bizum REST not implemented</td>\n</tr>\n<tr>\n<td>E651</td>\n<td>Bizum transaction declined due to failed authentication</td>\n</tr>\n<tr>\n<td>E652</td>\n<td>The customer has disabled Bizum, please use another payment method</td>\n</tr>\n<tr>\n<td>E680</td>\n<td>Transaction declined during ClickToPay payment process</td>\n</tr>\n<tr>\n<td>E681</td>\n<td>Incorrect ClickToPay configuration</td>\n</tr>\n<tr>\n<td>E700</td>\n<td>Transaction declined during Cofidis payment process</td>\n</tr>\n<tr>\n<td>E999</td>\n<td>Service internal error. Please contact support</td>\n</tr>\n</tbody></table>\n"
},
{
"name": "ApplePay Domain",
"description": "Verify your custom domain with Apple to use Apple Pay on your website.\n"
},
{
"name": "Bizum",
"description": "Verify if the phone number is registered in Bizum.\n"
},
{
"name": "Payments",
"description": "To charge a credit or a debit card, you create a Payment object.\nYou can capture, cancel, refund and confirm individual payments.\nPayments are identified by a unique, random ID.\n\nWe recommend that you create exactly one Payment for each\norder or customer session in your system.\n\n## Payment object\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Payment\" />\n"
},
{
"name": "Subscriptions",
"description": "Use our subscriptions API to accept automatic recurring payments. You'll save time on billing and make the payment process easier for customers. Set parameters like subscription names, prices, and billing cycles, and let customers log in to their account to manage subscriptions.\n\n**MONEI Subscriptions are in closed beta, and the API is subject to change. Please contact [support@monei.com](mailto:support@monei.com) to get access**\n\n## Subscription object\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Subscription\" />\n"
}
],
"components": {
"securitySchemes": {
"APIKey": {
"type": "apiKey",
"in": "header",
"name": "Authorization",
"description": "<p>The MONEI API uses API key to authenticate requests. You can view and manage your API key in\nthe <a href=\"https://dashboard.monei.com/settings/api\">MONEI Dashboard</a>.</p>\n<p>Test mode private keys have the prefix <code>pk_test_</code> and live mode private keys have the\nprefix <code>pk_live_</code>.</p>\n<p>Your API key carries many privileges, so be sure to keep them secure! Do not share your secret API\nkey in publicly accessible areas such as GitHub, client-side code, and so forth.</p>\n<p>Include your API Key as an <code>Authorization</code> header in all MONEI API requests.</p>\n<p>All API requests must be made over\n<a href=\"https://en.wikipedia.org/wiki/HTTP_Secure\">HTTPS</a>. Calls made over plain HTTP will fail. API\nrequests without authentication will also fail.</p>\n"
},
"AccountId": {
"type": "apiKey",
"in": "header",
"name": "MONEI-Account-ID",
"description": "<p>If you are integrating with MONEI as a partner, include your Master Account API Key as an <code>Authorization</code> header in all MONEI API requests.</p>\n<p>Include Account ID as a <code>MONEI-Account-ID</code> header in all MONEI API requests to indicate which account you are acting on behalf of.</p>\n"
}
},
"responses": {
"BadRequest": {
"description": "The request is incorrect or could not be processed",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"Unauthorized": {
"description": "Unauthorized error. Please check your auth credentials",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"NotFound": {
"description": "The specified resource was not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"InternalServerError": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"ServiceUnavailable": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"RegisterDomainResponse": {
"description": "A successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": true
}
}
}
}
}
},
"ValidateBizumPhoneResponse": {
"description": "A successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"isValid": {
"type": "boolean",
"example": true
}
}
}
}
}
},
"Payment": {
"description": "A payment object",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Payment"
}
}
}
},
"Subscription": {
"description": "A subscription object",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Subscription"
}
}
}
}
},
"schemas": {
"Error": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
}
}
},
"Country": {
"type": "string",
"example": "ES",
"description": "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."
},
"IP": {
"type": "string",
"example": "100.100.200.100",
"description": "The IP address where the operation originated."
},
"Lang": {
"type": "string",
"example": "es",
"description": "Two-letter language code ([ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1))."
},
"DeviceType": {
"type": "string",
"example": "desktop",
"description": "Device type, could be `desktop`, `mobile`, `smartTV`, `tablet`."
},
"DeviceModel": {
"type": "string",
"example": null,
"description": "Information about the device used for the browser session (e.g., `iPhone`)."
},
"Browser": {
"type": "string",
"example": "Chrome",
"description": "The browser used in this browser session (e.g., `Mobile Safari`)."
},
"BrowserVersion": {
"type": "string",
"example": "83.0.4103.116",
"description": "The version for the browser session (e.g., `13.1.1`)."
},
"Os": {
"type": "string",
"example": "Mac OS",
"description": "Operation system (e.g., `iOS`)."
},
"OsVersion": {
"type": "string",
"example": "10.15.4",
"description": "Operation system version (e.g., `13.5.1`)."
},
"Source": {
"type": "string",
"example": "MONEI/PHP",
"description": "The source component from where the operation was generated (mostly for our SDK's)."
},
"SourceVersion": {
"type": "string",
"example": "0.1.2",
"description": "The source component version from where the operation was generated (mostly for our SDK's)."
},
"UserAgent": {
"type": "string",
"example": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...",
"description": "Full user agent string of the browser session."
},
"BrowserAccept": {
"type": "string",
"example": "text/html,application/xhtml+xml,application/json",
"description": "Browser accept header."
},
"BrowserColorDepth": {
"type": "integer",
"format": "string",
"example": 24,
"description": "The color depth of the browser session (e.g., `24`)."
},
"BrowserScreenHeight": {
"type": "integer",
"format": "string",
"example": 1152,
"description": "The screen height of the browser session (e.g., `1152`)."
},
"BrowserScreenWidth": {
"type": "integer",
"format": "string",
"example": 2048,
"description": "The screen width of the browser session (e.g., `2048`)."
},
"BrowserTimezoneOffset": {
"type": "string",
"example": "string",
"description": "The timezone offset of the browser session (e.g., `-120`)."
},
"CreatedAt": {
"type": "integer",
"format": "int64",
"example": 1636366897,
"description": "Time at which the resource was created. Measured in seconds since the Unix epoch."
},
"UpdatedAt": {
"type": "integer",
"format": "int64",
"example": 1636366897,
"description": "Time at which the resource updated last time. Measured in seconds since the Unix epoch."
},
"Address": {
"title": "Address",
"type": "object",
"properties": {
"country": {
"$ref": "#/components/schemas/Country"
},
"city": {
"type": "string",
"example": "Málaga",
"description": "City, district, suburb, town, or village."
},
"line1": {
"type": "string",
"example": "Fake Street 123",
"description": "Address line 1 (e.g., street, PO Box, or company name)."
},
"line2": {
"type": "string",
"example": null,
"description": "Address line 2 (e.g., apartment, suite, unit, or building)."
},
"zip": {
"type": "string",
"example": "1234",
"description": "ZIP or postal code."
},
"state": {
"type": "string",
"example": "Málaga",
"description": "State, county, province, or region."
}
}
},
"CardholderName": {
"type": "string",
"example": "John Doe",
"description": "The cardholder's name, as stated in the credit card."
},
"CardholderEmail": {
"type": "string",
"example": "john.doe@monei.com",
"description": "The cardholder's email address."
},
"AccountId": {
"type": "string",
"example": "aa9333ba-82de-400c-9ae7-087b9f8d2242",
"description": "MONEI Account identifier."
},
"Livemode": {
"type": "boolean",
"example": false,
"description": "Has the value `true` if the resource exists in live mode or the value `false` if the resource exists in test mode."
},
"Metadata": {
"type": "object",
"example": {
"systemId": "12345"
},
"description": "A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format."
},
"RegisterDomainRequest": {
"type": "object",
"properties": {
"domainName": {
"$ref": "#/components/schemas/DomainName"
}
},
"required": [
"domainName"
]
},
"DomainName": {
"type": "string",
"description": "The domain name to register for Apple Pay.",
"example": "example.com"
},
"ValidateBizumPhoneRequest": {
"type": "object",
"properties": {
"accountId": {
"$ref": "#/components/schemas/AccountId"
},
"paymentId": {
"$ref": "#/components/schemas/Payment-Id"
},
"phoneNumber": {
"type": "string",
"example": "+34500000000",
"description": "Phone number in E.164 format."
}
},
"required": [
"accountId",
"phoneNumber"
]
},
"Payment": {
"title": "Payment",
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/Payment-Id"
},
"amount": {
"$ref": "#/components/schemas/Payment-Amount"
},
"currency": {
"$ref": "#/components/schemas/Payment-Currency"
},
"orderId": {
"$ref": "#/components/schemas/Payment-OrderId"
},
"description": {
"$ref": "#/components/schemas/Payment-Description"
},
"accountId": {
"$ref": "#/components/schemas/AccountId"
},
"authorizationCode": {
"$ref": "#/components/schemas/Payment-AuthorizationCode"
},
"livemode": {
"$ref": "#/components/schemas/Livemode"
},
"status": {
"$ref": "#/components/schemas/Payment-Status"
},
"statusCode": {
"$ref": "#/components/schemas/Payment-StatusCode"
},
"statusMessage": {
"$ref": "#/components/schemas/Payment-StatusMessage"
},
"customer": {
"$ref": "#/components/schemas/Payment-Customer"
},
"shop": {
"$ref": "#/components/schemas/Payment-Shop"
},
"billingDetails": {
"$ref": "#/components/schemas/Payment-BillingDetails"
},
"shippingDetails": {
"$ref": "#/components/schemas/Payment-ShippingDetails"
},
"refundedAmount": {
"$ref": "#/components/schemas/Payment-RefundedAmount"
},
"lastRefundAmount": {
"$ref": "#/components/schemas/Payment-LastRefundAmount"
},
"lastRefundReason": {
"$ref": "#/components/schemas/Payment-LastRefundReason"
},
"cancellationReason": {
"$ref": "#/components/schemas/Payment-CancellationReason"
},
"sessionDetails": {
"$ref": "#/components/schemas/Payment-SessionDetails"
},
"traceDetails": {
"$ref": "#/components/schemas/Payment-TraceDetails"
},
"paymentToken": {
"$ref": "#/components/schemas/Payment-PaymentToken"
},
"paymentMethod": {
"$ref": "#/components/schemas/Payment-PaymentMethod"
},
"sequence": {
"$ref": "#/components/schemas/Payment-Sequence"
},
"sequenceId": {
"$ref": "#/components/schemas/Payment-SequenceId"
},
"storeId": {
"$ref": "#/components/schemas/Payment-StoreId"
},
"pointOfSaleId": {
"$ref": "#/components/schemas/Payment-PointOfSaleId"
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
},
"nextAction": {
"$ref": "#/components/schemas/Payment-NextAction"
},
"createdAt": {
"$ref": "#/components/schemas/CreatedAt"
},
"updatedAt": {
"$ref": "#/components/schemas/UpdatedAt"
}
}
},
"CreatePaymentRequest": {
"title": "CreatePaymentRequest",
"type": "object",
"required": [
"amount",
"currency",
"orderId"
],
"properties": {
"amount": {
"$ref": "#/components/schemas/Payment-Amount"
},
"currency": {
"$ref": "#/components/schemas/Payment-Currency"
},
"orderId": {
"$ref": "#/components/schemas/Payment-OrderId"
},
"callbackUrl": {
"$ref": "#/components/schemas/Payment-CallbackUrl"
},
"completeUrl": {
"$ref": "#/components/schemas/Payment-CompleteUrl"
},
"failUrl": {
"$ref": "#/components/schemas/Payment-FailUrl"
},
"cancelUrl": {
"$ref": "#/components/schemas/Payment-CancelUrl"
},
"paymentToken": {
"allOf": [
{
"$ref": "#/components/schemas/Payment-PaymentToken"
}
],
"description": "A payment token generated by monei.js\n[Components](https://docs.monei.com/docs/monei-js-overview) or a paymentToken\n[saved after a previous successful payment](https://docs.monei.com/docs/save-payment-method).\nIn case of the first one, you will also need to send the `sessionId`\nused to generate the token in the first place.\n"
},
"sessionId": {
"$ref": "#/components/schemas/Payment-SessionId"
},
"generatePaymentToken": {
"$ref": "#/components/schemas/Payment-GeneratePaymentToken"
},
"paymentMethod": {
"$ref": "#/components/schemas/Payment-PaymentMethodInput"
},
"allowedPaymentMethods": {
"$ref": "#/components/schemas/Payment-PaymentMethods"
},
"transactionType": {
"$ref": "#/components/schemas/Payment-TransactionType"
},
"sequence": {
"$ref": "#/components/schemas/Payment-Sequence"
},
"storeId": {
"$ref": "#/components/schemas/Payment-StoreId"
},
"pointOfSaleId": {
"$ref": "#/components/schemas/Payment-PointOfSaleId"
},
"subscriptionId": {
"$ref": "#/components/schemas/Payment-SubscriptionId"
},
"autoRecover": {
"$ref": "#/components/schemas/Payment-AutoRecover"
},
"description": {
"$ref": "#/components/schemas/Payment-Description"
},
"customer": {
"$ref": "#/components/schemas/Payment-Customer"
},
"billingDetails": {
"$ref": "#/components/schemas/Payment-BillingDetails"
},
"shippingDetails": {
"$ref": "#/components/schemas/Payment-ShippingDetails"
},
"sessionDetails": {
"$ref": "#/components/schemas/Payment-SessionDetails"
},
"expireAt": {
"$ref": "#/components/schemas/Payment-ExpireAt"
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
}
}
},
"ConfirmPaymentRequest": {
"title": "ConfirmPaymentRequest",
"type": "object",
"required": [
"paymentToken"
],
"properties": {
"paymentToken": {
"allOf": [
{
"$ref": "#/components/schemas/Payment-PaymentToken"
}
],
"description": "A payment token generated by monei.js\n[Components](https://docs.monei.com/docs/monei-js-overview) or a paymentToken\n[saved after a previous successful payment](https://docs.monei.com/docs/save-payment-method).\n"
},
"paymentMethod": {
"type": "object",
"description": "Additional information about the payment method used for this payment.",
"properties": {
"card": {
"type": "object",
"description": "Additional information about the card used for this payment.",
"properties": {
"cardholderName": {
"$ref": "#/components/schemas/CardholderName"
},
"cardholderEmail": {
"$ref": "#/components/schemas/CardholderEmail"
}
}
}
}
},
"generatePaymentToken": {
"$ref": "#/components/schemas/Payment-GeneratePaymentToken"
},
"customer": {
"$ref": "#/components/schemas/Payment-Customer"
},
"billingDetails": {
"$ref": "#/components/schemas/Payment-BillingDetails"
},
"shippingDetails": {
"$ref": "#/components/schemas/Payment-ShippingDetails"
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
}
}
},
"CapturePaymentRequest": {
"title": "CapturePaymentRequest",
"type": "object",
"properties": {
"amount": {
"allOf": [
{
"$ref": "#/components/schemas/Payment-Amount"
}
],
"description": "The amount to capture, which must be less than or equal to the\noriginal amount. Any additional amount will be automatically refunded.\n"
}
}
},
"CancelPaymentRequest": {
"title": "CancelPaymentRequest",
"type": "object",
"properties": {
"cancellationReason": {
"$ref": "#/components/schemas/Payment-CancellationReason"
}
}
},
"RefundPaymentRequest": {
"title": "RefundPaymentRequest",
"type": "object",
"properties": {
"amount": {
"allOf": [
{
"$ref": "#/components/schemas/Payment-Amount"
}
],
"description": "The amount to refund, which must be less than or\nequal to the original amount.\n"
},
"refundReason": {
"$ref": "#/components/schemas/Payment-RefundReason"
}
}
},
"RecurringPaymentRequest": {
"title": "RecurringPaymentRequest",
"type": "object",
"required": [
"orderId"
],
"properties": {
"orderId": {
"$ref": "#/components/schemas/Payment-OrderId"
},
"amount": {
"allOf": [
{
"$ref": "#/components/schemas/Payment-Amount"
}
],
"description": "The amount to collected by this subsequent payment. A positive integer\nrepresenting how much to charge in the smallest currency unit (e.g.,\n100 cents to charge 1.00 USD).\n"
},
"transactionType": {
"allOf": [
{
"$ref": "#/components/schemas/Payment-TransactionType"
}
],
"default": "(same as initial payment)",
"description": "Same as the `transactionType` parameter from\n[create payment](https://docs.monei.com/api/#operation/payments_create).\nIf not sent, it will default in the same transaction type used in the initial payment.\n"
},
"description": {
"$ref": "#/components/schemas/Payment-Description"
},
"customer": {
"$ref": "#/components/schemas/Payment-Customer"
},
"billingDetails": {
"$ref": "#/components/schemas/Payment-BillingDetails"
},
"shippingDetails": {
"$ref": "#/components/schemas/Payment-ShippingDetails"
},
"callbackUrl": {
"$ref": "#/components/schemas/Payment-CallbackUrl"
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
}
}
},
"SendPaymentRequest": {
"title": "SendPaymentRequest",
"type": "object",
"required": [
"phoneNumber"
],
"properties": {
"phoneNumber": {
"type": "string",
"example": "+34500000000",
"description": "Phone number in E.164 format. The customer will receive payment link on this phone number."
},
"language": {
"$ref": "#/components/schemas/Payment-MessageLanguage"
}
}
},
"SendPaymentLinkRequest": {
"title": "SendPaymentLinkRequest",
"type": "object",
"properties": {
"customerEmail": {
"type": "string",
"example": "john.doe@example.com",
"description": "The customer will receive payment link on this email address."
},
"customerPhone": {
"type": "string",
"example": "+34500000000",
"description": "Phone number in E.164 format. The customer will receive payment link on this phone number."
},
"channel": {
"$ref": "#/components/schemas/Payment-MessageChannel"
},
"language": {
"$ref": "#/components/schemas/Payment-MessageLanguage"
}
}
},
"SendPaymentReceiptRequest": {
"title": "SendPaymentReceiptRequest",
"type": "object",
"properties": {
"customerEmail": {
"type": "string",
"example": "john.doe@example.com",
"description": "The customer will receive payment receipt on this email address."
},
"customerPhone": {
"type": "string",
"example": "+34500000000",
"description": "Phone number in E.164 format. The customer will receive payment receipt link on this phone number."
},
"channel": {
"$ref": "#/components/schemas/Payment-MessageChannel"
},
"language": {
"$ref": "#/components/schemas/Payment-MessageLanguage"
}
}
},
"Payment-Id": {
"type": "string",
"example": "af6029f80f5fc73a8ad2753eea0b1be0",
"description": "Unique identifier for the payment."
},
"Payment-Amount": {
"type": "integer",
"format": "int32",
"example": 110,
"description": "Amount intended to be collected by this payment. A positive integer\nrepresenting how much to charge in the smallest currency unit (e.g.,\n100 cents to charge 1.00 USD).\n"
},
"Payment-Currency": {
"type": "string",
"example": "EUR",
"description": "Three-letter [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217),\nin uppercase. Must be a supported currency.\n"
},
"Payment-OrderId": {
"type": "string",
"example": "14379133960355",
"description": "An order ID from your system. A unique identifier that can be used\nto reconcile the payment with your internal system.\n"
},
"Payment-Description": {
"type": "string",
"example": "Test Shop - #84370745531439",
"description": "An arbitrary string attached to the payment. Often useful for\ndisplaying to users.\n"
},
"Payment-AuthorizationCode": {
"type": "string",
"example": "475816",
"description": "Unique identifier provided by the bank performing transaction.\n"
},
"Payment-Status": {
"type": "string",
"example": "PENDING",
"enum": [
"SUCCEEDED",
"PENDING",
"FAILED",
"CANCELED",
"REFUNDED",
"PARTIALLY_REFUNDED",
"AUTHORIZED",
"EXPIRED"
],
"description": "The status of the payment."
},
"Payment-StatusCode": {
"type": "string",
"example": null,
"description": "Payment status code.\n"
},
"Payment-StatusMessage": {
"type": "string",
"example": null,
"description": "Human readable status message, can be displayed to a user.\n"
},
"Payment-RefundedAmount": {
"type": "integer",
"format": "int32",
"example": null,
"description": "Amount in cents refunded (can be less than the amount\nattribute on the payment if a partial refund was issued).\n"
},
"Payment-LastRefundAmount": {
"type": "integer",
"format": "int32",
"example": null,
"description": "Amount in cents refunded in the last transaction."
},
"Payment-LastRefundReason": {
"type": "string",
"example": null,
"enum": [
"duplicated",
"fraudulent",
"requested_by_customer"
],
"description": "The reason of the last refund transaction."
},
"Payment-CancellationReason": {
"type": "string",
"example": null,
"enum": [
"duplicated",
"fraudulent",
"requested_by_customer"
],
"description": "The reason for canceling the Payment."
},
"Payment-Customer": {
"type": "object",
"properties": {
"email": {
"type": "string",
"example": "john.doe@example.com",
"description": "The customer’s email address."
},
"name": {
"type": "string",
"example": "John Doe",
"description": "The customer’s full name or business name."
},
"phone": {
"type": "string",
"example": null,
"description": "The customer’s phone number."
}
}
},
"Payment-SessionId": {
"type": "string",
"example": "39603551437913",
"description": "A unique identifier within your system that adds security to the\npayment process. You need to pass the same session ID as the one\nused on the frontend to initialize MONEI Component (if you needed to).\nThis is required if a payment token (not permanent) was already\ngenerated in the frontend.\n"
},
"Payment-SequenceId": {
"type": "string",
"example": "62b23b9f3627cc38b08ff471ccd313ad",
"description": "A permanent identifier that refers to the initial payment of\na sequence of payments. This value needs to be sent in the path\nfor `RECURRING` payments.\n"
},
"Payment-Sequence": {
"type": "object",
"description": "This field needs to be sent in order to mark the beginning of a sequence of payments\n(recurring/subscriptions, installments, and so). Specific configurations can be set\nin the inside properties (`recurring`).\n",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"example": "recurring",
"enum": [
"recurring"
]
},
"recurring": {
"$ref": "#/components/schemas/Payment-SequenceRecurring"
}
}
},
"Payment-SequenceRecurring": {
"type": "object",
"description": "Specific configurations for recurring payments.\nWill only be used when `sequence`.`type` is `recurring`.\n",
"properties": {
"expiry": {
"type": "string",
"example": "20210630",
"default": "*(The payment method or card expiration)*",
"description": "Date after which no further recurring payments will be performed.\nMust be formatted as `YYYYMMDD`.\n"
},
"frequency": {
"type": "integer",
"format": "int32",
"example": 30,
"default": 25,
"description": "The minimum number of **days** between the different recurring payments.\n"
}
}
},
"Payment-PaymentToken": {
"type": "string",
"example": "7cc38b08ff471ccd313ad62b23b9f362b107560b",
"description": "A permanent token represents a payment method used in the\npayment. Pass `generatePaymentToken: true` when you creating\na payment to generate it. You can pass it as `paymentToken`\nparameter to create other payments with the same payment\nmethod. This token does not expire, and should only be\nused server-side.\n"
},
"Payment-GeneratePaymentToken": {
"type": "boolean",
"example": false,
"default": false,
"description": "If set to true a permanent token that represents a payment\nmethod used in the payment will be generated.\n"
},
"Payment-PaymentMethod": {
"type": "object",
"description": "Details about the payment method at the time of the transaction.\n",
"properties": {
"method": {
"type": "string",
"example": "card",
"enum": [
"alipay",
"card",
"bizum",
"paypal",
"cofidis",
"cofidisLoan",
"mbway",
"multibanco",
"iDeal",
"bancontact",
"sofort",
"trustly",
"sepa",
"klarna",
"giropay",
"eps",
"blik"
],
"description": "Payment method type."
},
"card": {
"$ref": "#/components/schemas/Payment-PaymentMethodCard"
},
"bizum": {
"$ref": "#/components/schemas/Payment-PaymentMethodBizum"
},
"paypal": {
"$ref": "#/components/schemas/Payment-PaymentMethodPaypal"
},
"cofidis": {
"$ref": "#/components/schemas/Payment-PaymentMethodCofidis"
},
"cofidisLoan": {
"$ref": "#/components/schemas/Payment-PaymentMethodCofidis"
},
"mbway": {
"$ref": "#/components/schemas/Payment-PaymentMethodMbway"
},
"trustly": {
"$ref": "#/components/schemas/Payment-PaymentMethodTrustly"
},
"sepa": {
"$ref": "#/components/schemas/Payment-PaymentMethodSepa"
},
"klarna": {
"$ref": "#/components/schemas/Payment-PaymentMethodKlarna"
}
}
},
"Payment-PaymentMethodCard": {
"type": "object",
"description": "Details about the card used as payment method at the time of the transaction.\n",
"properties": {
"country": {
"$ref": "#/components/schemas/Country"
},
"brand": {
"type": "string",
"example": "visa",
"enum": [
"visa",
"mastercard",
"diners",
"amex",
"jcb",
"unionpay",
"unknown"
],
"description": "Card brand."
},