-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathavishai-swagger.yaml
2617 lines (2595 loc) · 90.6 KB
/
avishai-swagger.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.0'
info:
title: "Installments API"
description: |
Splitit's Installments API is the primary Splitit tool for establishing and maintaining installment plans. Use it to verify shopper eligibility, create plans with or without immediate authorization, get plan
information, update plan status, and process refunds and cancellations.
<details>
<summary><b><u><font size="+1">API Basics</font></u></b></summary>
* Each Splitit API request requires HTTPS as well as the header parameter `Content-Type = application/json`
* Each API request must include a token attached as a bearer header, which you must fetch from Splitit's ID server (see <em>Authentication</em> below)
* Make sure to address the API URL appropriate for your intended environment, sandbox (testing) calls should be directed to `https://web-api-v3.sandbox.splitit.com/api/installmentplans` while
production calls go to `https://web-api-v3.production.splitit.com/api/installmentplans` (calls in this API spec default to sandbox)
* It is recommended, but not required, to attach an idempotency key to your API calls to ensure that operations aren't duplicated
* Note that the API V3 endpoints you call to establish a plan will differ depending on whether you are using your own checkout form ("Direct API") or are using a premade Splitit product such as a
Payment Form or a Flex Form ("Splitit Forms")
</details>
<details>
<summary><b><u><font size="+1">Authentication</font></u></b></summary>
Begin by fetching a bearer token by POSTing to Splitit's ID server with the parameters below, making sure to add the `client_id` and `client_secret` that you received from onboarding (or from your
[Merchant Portal](https://merchant.splitit.com)), along with a `Content-Type` header using `application/x-www-form-urlencoded`, and the API scope (version). The token you receive must be added as a bearer header to all of your subsequent calls to the API.
```bash
curl --request POST \
--url https://id.sandbox.splitit.com/connect/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data scope=api.v3 \
--data client_id=xxxxxxxxx \
--data client_secret=xxxxxxxx
```
<span class="badge badge--danger">Important</span>
In the API reference, add your bearer token using the <b>Authorize</b> button. This will make it available in all of the code samples. FYI, in the fields below the <b>Authorize</b> button, including <em>Body</em>, you can also enter other parameters that will become part of the copyable sample.
</details>
<details>
<summary><b><u><font size="+1">Plan Statuses</font></u></b></summary>
`Initialized` - plan was initialized but wasn't authorized (an authorization attempt failed or authorization is pending 3DS)
`PendingCapture` - plan was authorized and is pending capture
`Active` - plan is in the progress of running installments (still has outstanding amounts to capture)
`Cleared` - plan was cleared (outstanding amount is $0)
`Canceled` - plan was canceled before becoming active, or canceled before the outstanding amount was reduced to $0
</details>
version: '3.0'
servers:
- url: https://web-api-v3.sandbox.splitit.com/api/installmentplans
description: "Substitute <em>production</em> for sandbox if applicable"
- url: https://id.sandbox.splitit.com/connect
description: "Used to fetch authorization token that must be added to bearer header"
components:
schemas:
FailedResponse:
type: object
properties:
TraceId:
type: string
Error:
$ref: '#/components/schemas/ErrorExtended'
ErrorExtended:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
ExtraData:
type: object
additionalProperties:
type: string
Error:
type: object
properties:
Code:
type: string
Message:
type: string
AdditionalInfo:
type: string
InstallmentPlanGetResponse:
type: object
required:
- DateCreated
- Status
properties:
InstallmentPlanNumber:
type: string
DateCreated:
type: string
format: date-time
RefOrderNumber:
type: string
PurchaseMethod:
$ref: '#/components/schemas/PurchaseMethod'
Status:
$ref: '#/components/schemas/PlanStatus'
Currency:
type: string
OriginalAmount:
type: number
format: decimal
Amount:
type: number
format: decimal
Authorization:
$ref: '#/components/schemas/AuthorizationModel'
Shopper:
$ref: '#/components/schemas/ShopperData'
BillingAddress:
$ref: '#/components/schemas/AddressData'
PaymentMethod:
$ref: '#/components/schemas/PaymentMethodModel'
ExtendedParams:
type: object
additionalProperties:
type: string
description: Additional data that can be added as key/value pair parameters by merchant (and later can be retrieved by GET)
Installments:
type: array
items:
$ref: '#/components/schemas/Installment'
Refunds:
type: array
items:
$ref: '#/components/schemas/RefundModel'
Links:
$ref: '#/components/schemas/LinksData'
PurchaseMethod:
type: string
description: How purchase was made (default is `ECommerce`)
x-enumNames:
- InStore
- PhoneOrder
- ECommerce
enum:
- InStore
- PhoneOrder
- ECommerce
PlanStatus:
type: string
description: ''
x-enumNames:
- Initialized
- PendingCapture
- Active
- Cleared
- Canceled
enum:
- Initialized
- PendingCapture
- Active
- Cleared
- Canceled
AuthorizationModel:
type: object
required:
- Status
properties:
Status:
$ref: '#/components/schemas/GwAuthorizationStatus'
Date:
type: string
format: date-time
SplititErrorResultCode:
type: string
GatewayTransactionID:
type: string
GatewayResultCode:
type: string
GatewayResultMessage:
type: string
ThreeDSRedirect:
$ref: '#/components/schemas/ThreeDsRedirectDataV3'
CAVV:
type: string
ECI:
type: string
GwAuthorizationStatus:
type: string
description: ''
x-enumNames:
- NA
- Succeeded
- Pending3DS
- Failed
enum:
- NA
- Succeeded
- Pending3DS
- Failed
ThreeDsRedirectDataV3:
type: object
properties:
Url:
type: string
Verb:
type: string
Params:
type: object
additionalProperties:
type: string
ShopperData:
required:
- Email
type: object
properties:
FullName:
type: string
Email:
type: string
PhoneNumber:
type: string
Culture:
type: string
ShopperDataInitiate:
type: object
properties:
FullName:
type: string
Email:
type: string
PhoneNumber:
type: string
Culture:
type: string
AddressData:
type: object
properties:
AddressLine:
type: string
AddressLine2:
type: string
City:
type: string
Country:
type: string
description: ISO 3166 Country name OR 2-character code OR 3-character code
State:
type: string
description: ISO 3166-2 State
Zip:
type: string
PaymentMethodModel:
type: object
required:
- Card
properties:
Type:
$ref: '#/components/schemas/PaymentMethodType'
Card:
$ref: '#/components/schemas/CardData'
Token:
type: string
PaymentMethodType:
schema:
type: string
description: ''
x-enumNames:
- Card
- SplititToken
enum:
- Card
- SplititToken
CardData:
type: object
required:
- CardNumber
- CardExpYear
- CardExpMonth
properties:
CardHolderFullName:
type: string
CardNumber:
type: string
CardExpYear:
type: string
CardExpMonth:
type: string
CardCvv:
type: string
CardBrand:
$ref: '#/components/schemas/CardBrand'
CardType:
$ref: '#/components/schemas/CardType'
CardDataForCheckEligibility:
type: object
properties:
CardHolderFullName:
type: string
CardNumber:
type: string
CardExpYear:
type: string
CardExpMonth:
type: string
CardCvv:
type: string
CardBrand:
$ref: '#/components/schemas/CardBrand'
CardType:
$ref: '#/components/schemas/CardType'
CardBrand:
type: string
description: ''
x-enumNames:
- Mastercard
- Visa
- AmericanExpress
- Maestro
- JCB
- CUP
- UPI
- Discover
- Other
enum:
- Mastercard
- Visa
- AmericanExpress
- Maestro
- JCB
- CUP
- UPI
- Discover
- Other
CardType:
type: string
description: ''
x-enumNames:
- Credit
- Debit
- Charge
- Other
- Prepaid
- VisaDeferredDebit
- NetworkOnly
enum:
- Credit
- Debit
- Charge
- Other
- Prepaid
- VisaDeferredDebit
- NetworkOnly
Installment:
type: object
required:
- InstallmentNumber
- Amount
- Status
properties:
InstallmentNumber:
type: integer
format: int32
Amount:
type: number
format: decimal
ProcessDateTime:
type: string
format: date-time
Status:
$ref: '#/components/schemas/InstallmentStatus'
InstallmentStatus:
type: string
description: ''
x-enumNames:
- Pending
- Processed
- Canceled
enum:
- Pending
- Processed
- Canceled
RefundModel:
type: object
required:
- SubmitDate
- TotalAmount
- Status
- NonCreditRefundAmount
- CreditRefundAmount
properties:
RefundId:
type: string
SubmitDate:
type: string
format: date-time
TotalAmount:
type: number
format: decimal
Status:
$ref: '#/components/schemas/RefundStatus'
NonCreditRefundAmount:
type: number
format: decimal
CreditRefundAmount:
type: number
format: decimal
RefundStatus:
type: string
description: ''
x-enumNames:
- Pending
- Succeeded
- Failed
enum:
- Pending
- Succeeded
- Failed
LinksData:
type: object
properties:
Checkout:
type: string
LearnMore:
type: string
TermsConditions:
type: string
PrivacyPolicy:
type: string
InstallmentPlanSearchResponse:
type: object
properties:
PlanList:
type: array
items:
$ref: '#/components/schemas/SearchInstallmentPlanResponseItem'
SearchInstallmentPlanResponseItem:
type: object
required:
- DateCreated
- Status
properties:
InstallmentPlanNumber:
type: string
DateCreated:
type: string
format: date-time
RefOrderNumber:
type: string
PurchaseMethod:
$ref: '#/components/schemas/PurchaseMethod'
Status:
$ref: '#/components/schemas/PlanStatus'
Currency:
type: string
OriginalAmount:
type: number
format: decimal
Amount:
type: number
format: decimal
Authorization:
$ref: '#/components/schemas/AuthorizationModel'
Shopper:
$ref: '#/components/schemas/ShopperData'
BillingAddress:
$ref: '#/components/schemas/AddressData'
PaymentMethod:
$ref: '#/components/schemas/PaymentMethodModel'
ExtendedParams:
type: object
additionalProperties:
type: string
Installments:
type: array
items:
$ref: '#/components/schemas/Installment'
Refunds:
type: array
items:
$ref: '#/components/schemas/RefundModel'
Links:
$ref: '#/components/schemas/LinksData'
InitiatePlanResponse:
type: object
required:
- Status
properties:
InstallmentPlanNumber:
type: string
RefOrderNumber:
type: string
PurchaseMethod:
$ref: '#/components/schemas/PurchaseMethod'
Status:
$ref: '#/components/schemas/PlanStatus'
Currency:
type: string
Amount:
type: number
format: decimal
ExtendedParams:
type: object
additionalProperties:
type: string
Shopper:
$ref: '#/components/schemas/ShopperData'
BillingAddress:
$ref: '#/components/schemas/AddressData'
CheckoutUrl:
type: string
PlanErrorResponse:
allOf:
- $ref: '#/components/schemas/FailedResponse'
- type: object
properties:
InstallmentPlanNumber:
type: string
InstallmentPlanInitiateRequest:
type: object
required:
- AutoCapture
- PlanData
properties:
AutoCapture:
type: boolean
description: Indicates whether to capture the first installment automatically when creating the plan, or to wait for explicit indication to do the first capture (the default is true)
Attempt3dSecure:
type: boolean
description: Indicates whether to run a 3D secure verification (default is false)
Shopper:
$ref: '#/components/schemas/ShopperDataInitiate'
PlanData:
$ref: '#/components/schemas/PlanDataModelInitiate'
BillingAddress:
$ref: '#/components/schemas/AddressDataModel'
RedirectUrls:
$ref: '#/components/schemas/InitiateRedirectionEndpointsModel'
UxSettings:
$ref: '#/components/schemas/UxSettingsModel'
EventsEndpoints:
$ref: '#/components/schemas/EventsEndpointsModel'
PlanDataModel:
type: object
required:
- Currency
- TerminalId
- NumberOfInstallments
- TotalAmount
properties:
TotalAmount:
type: number
format: decimal
description: The total order amount
Currency:
type: string
NumberOfInstallments:
type: integer
format: int32
description: When populated will be used to display as default in Payment Form
TerminalId:
type: string
description: The merchant terminal identifier
PurchaseMethod:
$ref: '#/components/schemas/PurchaseMethod'
RefOrderNumber:
type: string
description: Reference order number for merchant's use
ExtendedParams:
type: object
additionalProperties:
type: string
description: Additional data that can be added as key/value pair parameters by merchant (and later can be retrieved by GET)
FirstInstallmentAmount:
type: number
format: decimal
FirstInstallmentDate:
type: string
format: date-time
PlanDataModelInitiate:
type: object
required:
- Currency
- TerminalId
properties:
TotalAmount:
type: number
format: decimal
description: The total order amount
Currency:
type: string
NumberOfInstallments:
type: integer
format: int32
description: When populated will be used to display as default in Payment Form
TerminalId:
type: string
description: The merchant terminal identifier
PurchaseMethod:
$ref: '#/components/schemas/PurchaseMethod'
RefOrderNumber:
type: string
description: Reference order number for merchant's use
ExtendedParams:
type: object
additionalProperties:
type: string
description: Additional data that can be added as key/value pair parameters by merchant (and later can be retrieved by GET)
FirstInstallmentAmount:
type: number
format: decimal
FirstInstallmentDate:
type: string
format: date-time
AddressDataModel:
type: object
properties:
AddressLine1:
type: string
AddressLine2:
type: string
City:
type: string
Country:
type: string
description: ISO 3166-3 code
State:
type: string
description: ISO 3166-2 code
Zip:
type: string
InitiateRedirectionEndpointsModel:
type: object
description: Used for 3DS redirection back to success or failure page
properties:
Succeeded:
type: string
Failed:
type: string
Cancel:
type: string
UxSettingsModel:
type: object
properties:
DisplayedInstallmentOptions:
type: array
items:
type: integer
format: int32
EventsEndpointsModel:
type: object
properties:
CreateSucceeded:
type: string
TestModes:
type: string
description: ''
x-enumNames:
- None
- Regular
- Fast
- Automation
enum:
- None
- Regular
- Fast
- Automation
InstallmentPlanCreateResponse:
type: object
required:
- DateCreated
- Status
properties:
InstallmentPlanNumber:
type: string
DateCreated:
type: string
format: date-time
RefOrderNumber:
type: string
PurchaseMethod:
$ref: '#/components/schemas/PurchaseMethod'
Status:
$ref: '#/components/schemas/PlanStatus'
Currency:
type: string
OriginalAmount:
type: number
format: decimal
Amount:
type: number
format: decimal
ExtendedParams:
type: object
additionalProperties:
type: string
Authorization:
$ref: '#/components/schemas/AuthorizationModel'
Shopper:
$ref: '#/components/schemas/ShopperData'
BillingAddress:
$ref: '#/components/schemas/AddressData'
PaymentMethod:
$ref: '#/components/schemas/PaymentMethodModel'
Installments:
type: array
items:
$ref: '#/components/schemas/Installment'
Links:
$ref: '#/components/schemas/LinksData'
InstallmentPlanCreateRequest:
type: object
required:
- TermsAndConditionsAccepted
- Shopper
- PlanData
- PaymentMethod
properties:
AutoCapture:
type: boolean
description: Indicates whether to capture the first installment automatically when creating the plan, or to wait for explicit indication to do the first capture (the default is true)
Attempt3dSecure:
type: boolean
description: Indicates whether to run a 3D secure verification (default is `false`)
TermsAndConditionsAccepted:
type: boolean
description: Indicates that the shopper accepted your Terms and Conditions
Shopper:
$ref: '#/components/schemas/ShopperData'
PlanData:
$ref: '#/components/schemas/PlanDataModel'
BillingAddress:
$ref: '#/components/schemas/AddressDataModel'
PaymentMethod:
$ref: '#/components/schemas/PaymentMethodModel'
RedirectUrls:
$ref: '#/components/schemas/RedirectionEndpointsModel'
EventsEndpoints:
$ref: '#/components/schemas/EventsEndpointsModel'
RedirectionEndpointsModel:
type: object
properties:
AuthorizeSucceeded:
type: string
x-deprecated: true
x-deprecatedMessage: Please use Succeeded property
Succeeded:
type: string
AuthorizeFailed:
type: string
x-deprecated: true
x-deprecatedMessage: Please use Failed property
Failed:
type: string
VerifyAuthorizationResponse:
type: object
required:
- IsAuthorized
properties:
IsAuthorized:
type: boolean
AuthorizationAmount:
type: number
format: decimal
Authorization:
$ref: '#/components/schemas/AuthorizationModel'
InstallmentPlanUpdateResponse:
type: object
required:
- Status
- ShippingStatus
properties:
RefOrderNumber:
type: string
InstallmentPlanNumber:
type: string
Status:
$ref: '#/components/schemas/PlanStatus'
ShippingStatus:
$ref: '#/components/schemas/ShippingStatus'
ShippingStatus:
type: string
description: ''
x-enumNames:
- Pending
- Shipped
- Delivered
enum:
- Pending
- Shipped
- Delivered
UpdateOrderRequest:
type: object
properties:
TrackingNumber:
type: string
RefOrderNumber:
type: string
description: A merchant-specific identifier value provided at creation of the plan by the merchant
ShippingStatus:
$ref: '#/components/schemas/ShippingStatus'
Capture:
type: boolean
description: Set this as `true` to capture the first payment for a plan that has been authorized but not captured.
InstallmentPlanUpdateRequestByIdentifier:
allOf:
- $ref: '#/components/schemas/InstallmentPlanUpdateRequest'
- type: object
properties:
Identifier:
$ref: '#/components/schemas/IdentifierContract'
IdentifierContract:
type: object
description: Use the fields in this object to locate your plan
properties:
RefOrderNumber:
type: string
InstallmentPlanNumber:
type: string
ExtendedParams:
type: object
additionalProperties:
type: string
InstallmentPlanUpdateRequest:
type: object
properties:
RefOrderNumber:
type: string
TrackingNumber:
type: string
Capture:
type: boolean
ShippingStatus:
$ref: '#/components/schemas/ShippingStatus2'
ShippingStatus2:
type: string
description: ''
x-enumNames:
- Shipped
- Delivered
enum:
- Shipped
- Delivered
InstallmentPlanRefundResponse:
type: object
properties:
RefundId:
type: string
InstallmentPlanNumber:
type: string
Currency:
type: string
NonCreditRefundAmount:
type: number
format: decimal
CreditRefundAmount:
type: number
format: decimal
Summary:
$ref: '#/components/schemas/RefundSummary'
RefundSummary:
type: object
properties:
TotalAmount:
type: number
format: decimal
FailedAmount:
type: number
format: decimal
SucceededAmount:
type: number
format: decimal
PendingAmount:
type: number
format: decimal
InstallmentPlanRefundRequest:
type: object
required:
- Amount
properties:
Amount:
type: number
format: decimal
RefundStrategy:
$ref: '#/components/schemas/RefundStrategy'
RefundStrategy:
type: string
description: ''
x-enumNames:
- FutureInstallmentsFirst
- FutureInstallmentsLast
- FutureInstallmentsNotAllowed
- ReduceFromLastInstallment
enum:
- FutureInstallmentsFirst
- FutureInstallmentsLast
- FutureInstallmentsNotAllowed
- ReduceFromLastInstallment
InstallmentPlanCancelResponse:
type: object
properties:
InstallmentPlanNumber:
type: string
InstallmentsEligibilityResponse:
type: object
properties:
PaymentPlanOptions:
type: array
items:
$ref: '#/components/schemas/PaymentPlanOptionModel'
PaymentPlanOptionModel:
type: object
required:
- NumberOfInstallments
- FirstInstallmentAmount
- InstallmentAmount
- LastInstallmentAmount
properties:
NumberOfInstallments:
type: integer
format: int32
FirstInstallmentAmount:
type: number
format: decimal
InstallmentAmount:
type: number
format: decimal
LastInstallmentAmount:
type: number
format: decimal
Links:
$ref: '#/components/schemas/LinksModel'
LinksModel:
type: object
properties:
PrivacyPolicyUrl:
type: string
TermsAndConditionsUrl:
type: string
LearnMoreUrl:
type: string
CheckInstallmentsEligibilityRequest:
required:
- PlanData
type: object
properties:
PlanData:
$ref: '#/components/schemas/PlanData'
CardDetails:
$ref: '#/components/schemas/CardDataForCheckEligibility'
BillingAddress:
$ref: '#/components/schemas/AddressData'
PlanData:
type: object
required:
- TerminalId
- TotalAmount
- Currency
- NumberOfInstallments
properties:
TerminalId:
type: string
description: The merchant terminal identifier
TotalAmount:
type: number
format: decimal
description: The order total amount
FirstInstallmentAmount:
type: number
format: decimal
Currency:
type: string
NumberOfInstallments:
type: integer
format: int32
PurchaseMethod:
$ref: '#/components/schemas/PurchaseMethod'
RefOrderNumber:
type: string
description: Reference order number for merchant's use
AllowedInstallmentOptions:
type: array
items:
type: integer
format: int32
Tags:
type: object
additionalProperties:
type: string
FirstInstallmentDate:
type: string
format: date-time
TokenRequest:
required:
- grant_type
- scope
- client_id
- client_secret
type: object