-
Notifications
You must be signed in to change notification settings - Fork 17
/
connector_spec.yaml
5840 lines (5840 loc) · 184 KB
/
connector_spec.yaml
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.1
info:
title: Connector API
version: 1.0.0
paths:
/healthcheck:
get:
operationId: healthCheck
responses:
"200":
content:
application/json:
schema:
type: string
example:
database:
healthy: true
message: Healthy
cardExecutorService:
healthy: true
message: Healthy
ping:
healthy: true
message: Healthy
sqsQueue:
healthy: true
message: Healthy
deadlocks:
healthy: true
message: Healthy
description: OK
"503":
description: Service Unavailable
summary: "Healthcheck endpoint for connector (checks postgresql, cardExecutorService,\
\ ping, sqsQueue, deadlocks)"
tags:
- Other
/v1/api/accounts:
get:
operationId: searchGatewayAccounts
parameters:
- in: query
name: accountIds
schema:
type: string
description: Comma separate list of gateway account IDs
example: "1,2"
pattern: "^[\\d,]+$"
- in: query
name: serviceIds
schema:
type: string
description: Comma separated list of service external IDs
example: "46eb1b601348499196c99de90482ee68,service-external-id-2"
pattern: "^(?:[A-z0-9]+,?)+$"
- in: query
name: moto_enabled
schema:
type: string
description: The accounts will be filtered by whether or not MOTO payment
are enabled for the account if this parameter is provided. "true" or "false"
example: "true"
pattern: true|false
- in: query
name: apple_pay_enabled
schema:
type: string
description: The accounts will be filtered by whether or not Apple pay is
enabled for the account if this parameter is provided. "true" or "false".
example: "true"
pattern: true|false
- in: query
name: google_pay_enabled
schema:
type: string
description: The accounts will be filtered by whether or not Google pay
is enabled for the account if this parameter is provided. "true" or "false".
example: "true"
pattern: true|false
- in: query
name: requires_3ds
schema:
type: string
description: The accounts will be filtered by whether or not 3DS is required
for the account if this parameter is provided. "true" or "false".
example: "true"
pattern: true|false
- in: query
name: type
schema:
type: string
description: The accounts will be filtered by type if this parameter is
provided. "test" or "live".
example: live
pattern: live|test
- in: query
name: payment_provider
schema:
type: string
description: "The accounts will be filtered by payment provider if this\
\ parameter is provided. One of \"sandbox\" or \"worldpay\", \"smartpay\"\
, \"epdq\" or \"stripe\""
example: live
pattern: sandbox|worldpay|smartpay|epdq|stripe
- in: query
name: payment_provider_account_id
schema:
type: string
description: Accounts will be filtered by payment provider account ID
example: payment-provider-account-id
- in: query
name: provider_switch_enabled
schema:
type: string
description: The accounts will be filtered by whether or not payment provider
switch is enabled for the account if this parameter is provided. "true"
or "false".
example: "true"
pattern: true|false
- in: query
name: recurring_enabled
schema:
type: string
description: The accounts will be filtered by whether or not recurring payments
are enabled for the account when this parameter is provided.
example: "true"
pattern: true|false
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayAccountsListDTO'
description: OK
summary: Search gateway accounts
tags:
- Gateway accounts
post:
operationId: createNewGatewayAccount
parameters:
- in: query
name: degatewayification
schema:
type: boolean
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayAccountRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/CreateGatewayAccountResponse'
description: Created
"422":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Missing required fields or invalid values
summary: 'Create a new gateway account '
tags:
- Gateway accounts
/v1/api/accounts/{accountId}:
get:
description: "Get gateway account by internal ID. Returns notifications credentials,\
\ gateway account credentials (without password). Doesn't include card_types\
\ or gateway_merchant_id"
operationId: getGatewayAccount
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayAccountWithCredentialsWithInternalIdResponse'
description: OK
"404":
description: Not found
summary: Find gateway account by ID
tags:
- Gateway accounts
patch:
description: "A generic endpoint that allows the patching of allow_apple_pay,\
\ allow_google_pay, block_prepaid_cards, notify_settings, email_collection_mode,\
\ corporate_credit_card_surcharge_amount, corporate_debit_card_surcharge_amount,\
\ corporate_prepaid_debit_card_surcharge_amount, allow_zero_amount, allow_moto,\
\ moto_mask_card_number_input, moto_mask_card_security_code_input, allow_telephone_payment_notifications,\
\ send_payer_ip_address_to_gateway, send_payer_email_to_gateway, integration_version_3ds,\
\ send_reference_to_gateway, allow_authorisation_api or worldpay_exemption_engine_enabled\
\ using a JSON Patch-esque message body."
operationId: patchGatewayAccountByGatewayAccountId
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
type: string
example:
op: replace
path: allow_apple_pay
value: true
responses:
"200":
description: OK
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request
"404":
description: Not found
summary: 'Patch a gateway account '
tags:
- Gateway accounts
/v1/api/accounts/{accountId}/3ds-flex-credentials:
post:
operationId: createOrUpdateWorldpay3dsCredentials
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Worldpay3dsFlexCredentialsRequest'
responses:
"200":
description: OK
"404":
description: Not found - account not found or not a Worldpay gateway account
"422":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Unprocessable Entity - Invalid or missing mandatory fields
summary: Create or update 3DS flex credentials (worldpay accounts)
tags:
- Gateway account credentials
/v1/api/accounts/{accountId}/agreements:
post:
operationId: createAgreement
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AgreementCreateRequest'
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/AgreementResponse'
description: OK
"404":
description: Not found
"422":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Missing required fields
summary: Create an agreement
tags:
- Agreements
/v1/api/accounts/{accountId}/agreements/{agreementId}/cancel:
post:
operationId: cancelAgreement
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- in: path
name: agreementId
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AgreementCancelRequest'
responses:
default:
content:
'*/*': {}
description: default response
tags:
- Agreements
/v1/api/accounts/{accountId}/charges:
post:
operationId: createNewCharge
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- in: header
name: Idempotency-Key
schema:
type: string
requestBody:
content:
'*/*':
schema:
$ref: '#/components/schemas/ChargeCreateRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeResponse'
description: Created
"400":
description: Bad Request
"403":
description: Gateway account is disabled
"404":
description: Not found
"422":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Missing required fields or invalid values
summary: Create new charge for gateway account
tags:
- Charges
/v1/api/accounts/{accountId}/charges/{chargeId}:
get:
operationId: getChargeByGatewayAccountId
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- description: Charge external ID
example: b02b63b370fd35418ad66b0101
in: path
name: chargeId
required: true
schema:
type: string
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeResponse'
description: OK
"404":
description: Not found
summary: Get charge by account ID and charge external ID
tags:
- Charges
/v1/api/accounts/{accountId}/charges/{chargeId}/cancel:
post:
operationId: cancelCharge
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- description: Charge external ID
example: b02b63b370fd35418ad66b0101
in: path
name: chargeId
required: true
schema:
type: string
responses:
"202":
description: Accepted - operation already in progress
"204":
description: No content
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request - charge is not in correct state
"404":
description: Not found - charge not found
summary: Cancel charge
tags:
- Charge operations
/v1/api/accounts/{accountId}/charges/{chargeId}/capture:
post:
description: "This endpoint should be called to capture a delayed capture charge.\
\ The charge needs to have been previously marked as AWAITING CAPTURE REQUEST\
\ for this call to succeed. When a charge is in any of the states CAPTURED,\
\ CAPTURE APPROVED, CAPTURE APPROVED RETRY, CAPTURE READY, CAPTURE SUBMITTED\
\ then nothing happens and the response will be a 204. When a charge is in\
\ a status that cannot transition (eg. none of the above) then 409 response\
\ is returned. "
operationId: markChargeAsCaptureApproved
parameters:
- in: path
name: accountId
required: true
schema:
type: integer
format: int64
- in: path
name: chargeId
required: true
schema:
type: string
responses:
"204":
description: No content
"404":
description: Not found - charge not found
"409":
description: Conflict - if charge is not in correct state
"500":
description: Internal server error
summary: Mark delayed capture charge as eligible for capture and adds charge
to capture queue
tags:
- Charge operations
/v1/api/accounts/{accountId}/charges/{chargeId}/events:
get:
operationId: getEvents
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- description: Charge external ID
example: 2c6vtn9pth38ppbmnt20d57t49
in: path
name: chargeId
required: true
schema:
type: string
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeEventsResponse'
description: OK
summary: Get transaction history for a charge
tags:
- Charge events
/v1/api/accounts/{accountId}/charges/{chargeId}/refunds:
get:
deprecated: true
operationId: getRefunds
parameters:
- in: path
name: accountId
required: true
schema:
type: integer
format: int64
- in: path
name: chargeId
required: true
schema:
type: string
responses:
"200":
description: OK
"404":
description: Not found - charge or refund not found
summary: Get all refund for a charge
tags:
- Refunds
post:
operationId: submitRefund
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- description: Charge external ID
example: 2c6vtn9pth38ppbmnt20d57t49
in: path
name: chargeId
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RefundRequest'
responses:
"200":
content:
application/json:
schema:
type: string
example:
amount: 3444
created_date: 2016-10-05T14:15:34.096Z
refund_id: vijjk08adovg10gfqc46joem2l
user_external_id: AA213FD51B3801043FBC
status: success
_links:
self:
href: https://connector.example.com/v1/api/accounts/1/charges/2c6vtn9pth38ppbmnt20d57t49/refunds/vijjk08adovg10gfqc46joem2l
payment:
href: https://connector.example.com/v1/api/accounts/1/charges/2c6vtn9pth38ppbmnt20d57t49
description: OK
"400":
description: Bad request - Invalid fields or not sufficient amount available
for refund
"404":
description: Not found - gateway account or charge not found
"412":
description: Precondition failed - Refund amount available does not match
"500":
description: Internal server error
summary: Refund a charge
tags:
- Refunds
/v1/api/accounts/{accountId}/charges/{chargeId}/refunds/{refundId}:
get:
operationId: getRefund
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- description: Charge external ID
example: uqu4s24383qkod35rsb06gv3cn
in: path
name: chargeId
required: true
schema:
type: string
- description: Refund external ID
example: vijjk08adovg10gfqc46joem2l
in: path
name: refundId
required: true
schema:
type: string
responses:
"200":
content:
application/json:
schema:
type: string
example:
_links:
payment:
href: https://connector.example.com/v1/api/accounts/2/charges/uqu4s24383qkod35rsb06gv3cn
self:
href: https://connector.example.com/v1/api/accounts/2/charges/uqu4s24383qkod35rsb06gv3cn/refunds/vijjk08adovg10gfqc46joem2l
amount: 3444
created_date: 2016-10-05T14:15:34.096Z
refund_id: vijjk08adovg10gfqc46joem2l
user_external_id: AA213FD51B3801043FBC
status: success
description: OK
"404":
description: Not found - charge or refund not found
summary: Get a refund
tags:
- Refunds
/v1/api/accounts/{accountId}/charges/{chargeId}/resend-confirmation-email:
post:
operationId: resendConfirmationEmail
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- description: Charge external ID
example: spmh0fb7rbi1lebv1j3f7hc3m9
in: path
name: chargeId
required: true
schema:
type: string
responses:
"204":
description: No content
"402":
description: Could not send email
"404":
description: Not found - charge not found
"500":
description: Internal server error
summary: Resend confirmation email for a charge
/v1/api/accounts/{accountId}/credentials:
post:
operationId: createGatewayAccountCredentials
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayAccountCredentialsRequest'
required: true
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayAccountCredentialsWithInternalId'
description: OK
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request - Invalid or missing mandatory fields
"404":
description: Not found - account not found
summary: Create credentials for a gateway account
tags:
- Gateway account credentials
/v1/api/accounts/{accountId}/credentials/{credentialsId}:
patch:
operationId: updateGatewayAccountCredentials
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
- description: Credential ID
example: 1
in: path
name: credentialsId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
type: string
example:
- op: replace
path: state
value: VERIFIED_WITH_LIVE_PAYMENT
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayAccountCredentialsWithInternalId'
description: OK
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request - Invalid or missing mandatory fields
"404":
description: Not found - account or credential not found
summary: Update a gateway account credential
tags:
- Gateway account credentials
/v1/api/accounts/{accountId}/email-notification:
patch:
description: Allowed paths <br> - /payment_confirmed/enabled (values true/false)
<br> - /refund_issued/enabled (values true/false) <br> - /payment_confirmed/template_body<br>
- /refund_issued/template_body
operationId: enableEmailNotification
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
type: string
example:
op: replace
path: /payment_confirmed/enabled
value: false
responses:
"200":
description: OK
"404":
description: Not found
"422":
description: Unprocessable Content - invalid or missing mandatory fields
summary: Enables/disables email notifications for gateway account
tags:
- Gateway accounts
/v1/api/accounts/{accountId}/stripe-account:
get:
operationId: getStripeAccount
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/StripeAccountResponse'
description: OK
"404":
description: "Not found - Account does not exist or not a stripe gateway\
\ account or account does not have Stripe credentials, "
summary: Retrieves Stripe Connect account information for a given gateway account
ID
tags:
- Gateway accounts
/v1/api/accounts/{accountId}/stripe-setup:
get:
operationId: getStripeAccountSetup
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/StripeAccountSetup'
description: OK
"404":
description: Not found
summary: Retrieve Stripe connect account setup tasks for a given gateway account
ID
tags:
- Gateway accounts
patch:
description: "Support patching following paths: <br>bank_account, responsible_person,\
\ vat_number, company_number, director, government_entity_document, organisation_details"
operationId: patchStripeAccountSetup
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
type: string
example:
- op: replace
path: bank_account
value: true
- op: replace
path: responsible_person
value: false
responses:
"200":
description: OK
"404":
description: Not found
"422":
description: Unprocessable Content - operation not allowed
summary: Update Stripe Connect account setup tasks have been completed for a
given accountId
tags:
- Gateway accounts
/v1/api/accounts/{accountId}/switch-psp:
post:
operationId: switchPaymentProviderByGatewayAccountId
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayAccountSwitchPaymentProviderRequest'
required: true
responses:
"200":
description: OK
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request
"404":
description: Not found
summary: Switch payment provider of a gateway account
tags:
- Gateway accounts
/v1/api/accounts/{accountId}/telephone-charges:
post:
description: "Create a new telephone charge for gateway account. These are externally\
\ taken payments and the outcome is reported to this endpoint. provider_id\
\ is used as an idempotency key for API calls. If a payment already exists\
\ with the provider_id provided, the API will not store a record about a new\
\ payment, or update or change the record about a payment previously stored."
operationId: createNewTelephoneChargeByAccountId
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
'*/*':
schema:
$ref: '#/components/schemas/TelephoneChargeCreateRequest'
required: true
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeResponse'
description: OK - returns existing charge for provider_id
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeResponse'
description: Created
"403":
content:
application/json:
schema:
type: string
example:
error_identifier: TELEPHONE_PAYMENT_NOTIFICATIONS_NOT_ALLOWED
message:
- Telephone payment notifications are not enabled for this gateway
account
description: Forbidden
"404":
description: Not found
"422":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Missing required fields or invalid values
summary: Create a new telephone charge for gateway account.
tags:
- Charges
/v1/api/accounts/{accountId}/worldpay/check-3ds-flex-config:
post:
operationId: validateWorldpay3dsCredentials
parameters:
- description: Gateway account ID
example: 1
in: path
name: accountId
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Worldpay3dsFlexCredentialsRequest'
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationResult'
description: OK
"404":
description: Not found - account not found or not a Worldpay gateway account
"422":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Unprocessable Entity - Invalid or missing mandatory fields
"503":
description: Service unavailable
summary: Validate Worldpay 3DS flex credentials
tags:
- Gateway account credentials
/v1/api/accounts/{accountId}/worldpay/check-credentials:
post:
operationId: validateWorldpayCredentials
parameters:
- in: path
name: accountId
required: true
schema:
type: integer
format: int64