-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.yaml
2602 lines (2598 loc) · 75.7 KB
/
openapi.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.3
info:
title: SBM - CMS
description: >-
Vegapay is creating the credit card stack for regulated entities across
globe
version: 1.0.0
contact: {}
x-api-status-urls: false
x-konfig-ignore:
potential-incorrect-type: true
servers:
- url: '{{program_service}}'
- url: '{{program_policy_client_customer}}'
- url: '{{api-gateway-prod}}'
- url: '{{audit_service}}'
- url: '{{los}}'
- url: '{{account_management_service}}'
- url: '{{forex_account}}'
- url: '{{card_processor}}'
- url: '{{transaction_service}}'
- url: '{{dispute_service}}'
- url: '{{installment_service}}'
- url: '{{rewards_service}}'
- url: '{{collection_service}}'
- url: '{{policy_impl_service}}'
- url: '{{credential_manager}}'
- url: '{{webhook_service}}'
tags:
- description: Convert a Txn or Bill to EMI and fetch necessary details.
name: Installment
- description: Allows creation of serverl users with defined access on the resources
name: User Access Management
- description: The users represents a person who accesses credit products
name: User
- description: Create a card for an existing credit account.
name: Card Issuance
- description: >-
A credit account that centers around a single credit line with one or more
cards and cardholders. A credit account derives some of its
characteristics from an associated credit product.
name: Account Managment
- description: >-
It represents the electronic messages that carry information used for
payment processing. A transaction usually originates when a cardholder
attempts to make a payment, either online or at a physical point of sale.
name: Transactions
- description: >-
Program is a concept that bundles financial products. It is a way in which
different financial products are packaged together. In simple terms,
Program is just a collection of financial products.
name: Program Management
- description: >-
Application invloves several steps that are essential to onboard a
customer
name: Application Managment
- description: Provides delinquency information at program and account level
name: Collections
- description: Provides different controls over existing issued cards
name: Card Controls
- description: A payment to apply toward a credit account's balance.
name: Payments
- description: View or User rewards earned by a user for transactions
name: Rewards
- description: Support apis
name: Support
- description: Subscribe to an event, to get webhook callbacks on event occurance
name: Webhook
- description: >-
The account holder group is a concept that allows you to configure
multiple account holders (user and/or business resources) as a group. It
allows certain settings to be selectively applied.
name: Accounts Holder Group
- description: >-
A business is a type of account holder that cannot directly hold cards,
but can have parent/child relationships with card-holding users. A
business can monitor and control card use by a specified group of users.
name: Business
- description: >-
The statement summary, which is a summary of account activity on a
statement, provides account holders with a synopsis of activity that
occurred on the account during a specified billing cycle.
name: Statement
- description: >-
Authorize a payment request going out to a merchant based on risk,
compliance, and policies.
name: Authorization
paths:
/program:
post:
tags:
- Program Management
summary: Create Program
operationId: ProgramManagement_createProgram
description: Create Program
parameters:
- name: jwt_token
in: header
schema:
type: string
example: allow
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/ProgramManagementCreateProgramRequest'
responses:
'200':
description: Create
headers:
Connection:
schema:
type: string
example: keep-alive
Date:
schema:
type: string
example: Wed, 14 Sep 2022 14:32:24 GMT
Keep-Alive:
schema:
type: string
example: timeout=60
Transfer-Encoding:
schema:
type: string
example: chunked
Vary:
schema:
type: string
example: Access-Control-Request-Headers
content:
application/json:
schema:
$ref: '#/components/schemas/ProgramManagementCreateProgramResponse'
examples:
Create:
value:
agreement: >-
https://s3.ap-south-1.amazonaws.com/api-uploaded-files/program/agreement/b11f9424-7d12-4592-bf77-7b64a163e64e
clientId: b11f9424-7d12-4592-bf77-7b64a163e64e
createdAt: '2022-09-14T14:32:24.172+00:00'
email: contact@gmail.com
mobile: '7282696272'
name: CreditCardProgram
programId: ede9081e-eecb-4de7-9b11-6e8b41ea9f16
programPolicyUrl: null
status: INACTIVE
tnc: >-
https://s3.ap-south-1.amazonaws.com/api-uploaded-files/program/tnc/b11f9424-7d12-4592-bf77-7b64a163e64e
updatedAt: '2022-09-14T14:32:24.172+00:00'
/program/{programId}:
parameters:
- name: programId
in: path
required: true
schema:
type: string
example: a8f9a67e-cddb-4b68-a84a-e266bf0b7574
get:
tags:
- Program Management
summary: Get Program
operationId: ProgramManagement_getProgram
description: Get Program
parameters:
- name: jwt_token
in: header
schema:
type: string
example: allow
requestBody:
content:
application/json:
examples:
Get Program:
value: ''
schema:
description: >-
WARNING: Missing schema in media type object. Missing schema has
been filled with this AnyType schema.
responses:
'200':
description: ''
/program/list:
get:
tags:
- Program Management
summary: List Programs
operationId: ProgramManagement_getPrograms
description: List Programs
parameters:
- name: page
in: query
schema:
type: string
example: '0'
- name: pageSize
in: query
schema:
type: string
example: '10'
- name: clientId
in: query
schema:
type: string
example: 6c26d34b-fe1a-446f-9668-6b7cb5515ef1
requestBody:
content:
application/json:
examples:
List Programs:
value: ''
schema:
description: >-
WARNING: Missing schema in media type object. Missing schema has
been filled with this AnyType schema.
responses:
'200':
description: ''
/customer:
post:
tags:
- User
summary: Create Customer
operationId: User_createCustomerPost
description: Create Customer
parameters:
- name: jwt_token
in: header
schema:
type: string
example: allow
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserCreateCustomerPostRequest'
examples:
Create Customer:
value:
title: Mr
branchId: 9e346848-888e-4d24-8a8a-1c70abeb3f2f
clientId: 6c26d34b-fe1a-446f-9668-6b7cb5515ef1
countryCode: '+91'
currentAddress:
city: '{{$randomCity}}'
country: India
line1: '{{$randomBs}}'
line2: '{{$randomStreetAddress}}'
pincode: '123456'
state: Karnataka
customerType: INDIVIDUAL
dob: '1997-05-01'
emailId: '{{$randomExampleEmail}}'
firstName: '{{$randomFirstName}}'
gender: M
identity:
- idNumber: AAPPU{{random4DigitNumber}}L
idType: PAN
idVerified: 'true'
- idNumber: SWFUF2463{{random4DigitNumber}}L
idType: PASSPORT
idVerified: 'true'
isCurrentAddressPermanent: true
kycStatus: VERIFIED
lastName: '{{$randomLastName}}'
middleName: ''
mobileNumber: '9111994598'
nationality: Indian
status: ACTIVE
responses:
'200':
description: ''
/customer/status:
patch:
tags:
- User
summary: Update Status
operationId: User_updateCustomerStatus
description: Update Status
parameters:
- name: jwt_token
in: header
schema:
type: string
example: allow
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserUpdateCustomerStatusRequest'
examples:
Update Status:
value:
customerId: 90fcc52f-8167-4887-9f4a-22e27e57c4f0
status: INACTIVE
responses:
'200':
description: ''
/customer/list/{programId}:
parameters:
- name: programId
in: path
required: true
schema:
type: string
example: 8dece149-ff6a-48b7-8e62-c00623ac5673
get:
tags:
- User
summary: List by clientId
operationId: User_listByClientId
description: List by clientId
parameters:
- name: page
in: query
schema:
type: string
example: '0'
- description: optional
name: pageSize
in: query
schema:
type: string
example: '10'
responses:
'200':
description: ''
/customer/list/withAccount:
get:
tags:
- User
summary: List with accountInfo for programId
operationId: User_listWithAccountInfoForProgramId
description: List with accountInfo for programId
parameters:
- name: programId
in: query
schema:
type: string
example: a4187c32-2774-4b38-b616-2221c9cb7641
- name: clientId
in: query
schema:
type: string
example: 3fbca97f-a4c3-4a0a-8d4f-a29ade5fd01c
- name: page
in: query
schema:
type: string
example: '1'
- name: pageSize
in: query
schema:
type: string
example: '10'
- name: allAccounts
in: query
schema:
type: string
example: 'false'
responses:
'200':
description: ''
/audit:
get:
tags:
- User
summary: Get Customer Audit
operationId: User_getCustomerAudit
description: Get Customer Audit
parameters:
- name: programId
in: query
schema:
type: string
example: ''
- name: customerId
in: query
schema:
type: string
example: 003a1dbd-562d-4de6-8e6f-d875c042edd5
- name: accountId
in: query
schema:
type: string
example: eaa4fd2e-d036-452e-8904-a710c3e1f107
- name: eventName
in: query
schema:
type: string
example: PER_TRANSACTION_LIMIT_CHANGE
responses:
'200':
description: ''
/customer/{customerId}:
parameters:
- name: customerId
in: path
required: true
schema:
type: string
example: 4206e707-ea80-4f8f-8507-fcc75ba992b8
get:
tags:
- User
summary: Get Customer
operationId: User_getCustomer
description: Get Customer
responses:
'200':
description: Get
headers:
Connection:
schema:
type: string
example: keep-alive
Date:
schema:
type: string
example: Tue, 10 Jan 2023 12:44:27 GMT
Keep-Alive:
schema:
type: string
example: timeout=60
Transfer-Encoding:
schema:
type: string
example: chunked
Vary:
schema:
type: string
example: Access-Control-Request-Headers
content:
application/json:
schema:
$ref: '#/components/schemas/UserGetCustomerResponse'
examples:
Get:
value:
title: Mr
countryCode: '+91'
createdAt: '2023-01-10T12:43:57.267+00:00'
creationVector: null
currentAddress:
city: Indio
country: India
id: 3462
line1: reintermediate interactive schemas
line2: 8284 Frami Wall
pincode: '123456'
state: Karnataka
customerId: 90fcc52f-8167-4887-9f4a-22e27e57c4f0
dob: '1997-05-01'
emailId: Rachel_Bradtke@example.net
firstName: Constance
gender: M
identity:
- customerId: 90fcc52f-8167-4887-9f4a-22e27e57c4f0
id: 3464
idNumber: AAPPH9007L
idType: PAN
idVerified: 'true'
programId: 25b11f98-e795-49f5-b0d2-5c04c2479ee6
isCurrentAddressPermanent: 'true'
kycStatus: VERIFIED
lastName: Senger
middleName: ''
mobileNumber: '9007999007'
nationality: Indian
permanentAddress:
city: Indio
country: India
id: 3463
line1: reintermediate interactive schemas
line2: 8284 Frami Wall
pincode: '123456'
state: Karnataka
programId: 25b11f98-e795-49f5-b0d2-5c04c2479ee6
selfieUrl: null
status: ACTIVE
updatedAt: '2023-01-10T12:43:57.470+00:00'
/los/v2/application/create:
post:
tags:
- Application Managment
summary: Create Application
operationId: ApplicationManagment_createApplicationPost
description: Create Application
requestBody:
content:
application/json:
examples:
Create Application:
value: |-
{
"programId" : "3121b045-2f0b-46f4-ba26-9a4a6cf97d61",
"customerId" : "50ce4773-d7e8-45d9-9bf6-085be0d669b8"
// "leadId" : "cfa80413-8733-48a4-8a19-573043e6fa34"
}
schema:
description: >-
WARNING: Missing schema in media type object. Missing schema has
been filled with this AnyType schema.
responses:
'200':
description: ''
/los/v2/flow/nextStep/get:
get:
tags:
- Application Managment
summary: Get Next Step
operationId: ApplicationManagment_getNextStep
description: Get Next Step
parameters:
- name: applicationId
in: query
schema:
type: string
example: a4e65cae-bdd4-4d54-9e6b-0905bff5bc10
- name: status
in: query
schema:
type: string
example: FAIL
requestBody:
content:
application/json:
examples:
Get Next Step:
value: ''
schema:
description: >-
WARNING: Missing schema in media type object. Missing schema has
been filled with this AnyType schema.
responses:
'200':
description: ''
/los/v2/application/18848a09-74d3-4326-8ce0-84452887f656:
get:
tags:
- Application Managment
summary: Get Application
operationId: ApplicationManagment_getApplication
description: Get Application
responses:
'200':
description: ''
/account/limitoffer:
post:
tags:
- Account Managment
summary: Create Limit Offer
operationId: AccountManagment_offerCreation
description: Create Limit Offer
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AccountManagmentOfferCreationRequest'
examples:
Create Limit Offer:
value:
accountId: 6c923cc1-a948-4602-b266-a4e4d3bf7288
limitType: ACCOUNT_LIMIT
newLimit: 15000
offerActivationTime: '2022-11-04'
offerExpiryTime: '2026-10-01'
responses:
'200':
description: ''
/account/limitoffer/updateStatus:
patch:
tags:
- Account Managment
summary: Update Limit Offer Status
operationId: AccountManagment_updateLimitOfferStatus
description: Update Limit Offer Status
parameters:
- name: limitOfferId
in: query
schema:
type: string
example: 6c923cc1-a948-4602-b266-a4e4d3bf7288
- description: ACCEPTED, REJECTED
name: status
in: query
schema:
type: string
example: ACCEPTED
responses:
'200':
description: ''
/account:
post:
tags:
- Account Managment
summary: Create Credit Account
operationId: AccountManagment_createCreditAccount
description: Create Credit Account
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AccountManagmentCreateCreditAccountRequest'
examples:
Create Credit Account:
value:
accountLimit: 10000
activationDate: '2022-07-21'
agreement: xyz
availableLimit: 10000
currency: INR
customerId: 7df5b5df-bfe3-4ac1-9976-fb0ae25329fc
kycStatus: VERIFIED
lenderId: 6a087119-bad0-417b-8511-9658bd4d8945
perTransactionLimit: 1000
programId: 6bbe5970-0b78-4072-b1f1-854a13a0a0df
status: INACTIVE
responses:
'200':
description: create
headers:
Connection:
schema:
type: string
example: keep-alive
Date:
schema:
type: string
example: Wed, 14 Sep 2022 15:50:04 GMT
Keep-Alive:
schema:
type: string
example: timeout=60
Transfer-Encoding:
schema:
type: string
example: chunked
Vary:
schema:
type: string
example: Access-Control-Request-Headers
content:
application/json:
schema:
$ref: >-
#/components/schemas/AccountManagmentCreateCreditAccountResponse
examples:
create:
value:
accountId: bd44dda3-1d5e-4c12-99a8-c01c0f47d67f
accountLimit: 10000
activationDate: '2022-07-21T00:00:00.000+00:00'
agreement: xyz
availableLimit: 10000
charge: 0
createdAt: '2022-09-14T15:50:04.795+00:00'
currency: INR
customerId: 7df5b5df-bfe3-4ac1-9976-fb0ae25329fc
interest: 0
lenderId: 6a087119-bad0-417b-8511-9658bd4d8945
perTransactionLimit: 1000
principal: 0
programId: 6bbe5970-0b78-4072-b1f1-854a13a0a0df
status: INACTIVE
surplus: 0
updatedAt: '2022-09-14T15:50:04.795+00:00'
/forex/account:
post:
tags:
- Account Managment
summary: Create Forex Account
operationId: AccountManagment_createForexAccount
description: Create Forex Account
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AccountManagmentCreateForexAccountRequest'
examples:
Create Forex Account:
value:
accountLimit: 10000
branchId: 4c8dd74e-7277-4fe5-b08b-901a26902be4
corporateCustomerId: 3ed803a4-0177-46b2-a082-96d57afc5ece
customerId: 06fe4e8f-4817-40bf-92b0-90ba5b720546
programId: 55b642d9-c44a-4b9f-ac8e-9e3bb7f17bdd
responses:
'200':
description: Create Account for a corporate customer
headers:
Connection:
schema:
type: string
example: keep-alive
Date:
schema:
type: string
example: Wed, 12 Apr 2023 07:41:56 GMT
Keep-Alive:
schema:
type: string
example: timeout=60
Transfer-Encoding:
schema:
type: string
example: chunked
Vary:
schema:
type: string
example: Access-Control-Request-Headers
content:
application/json:
schema:
$ref: >-
#/components/schemas/AccountManagmentCreateForexAccountResponse
examples:
Create Account for a corporate customer:
value:
accountLimit: null
branchId: 4c8dd74e-7277-4fe5-b08b-901a26902be4
customerId: 06fe4e8f-4817-40bf-92b0-90ba5b720546
id: 1ee59bae-7904-4ccc-93b2-fef0e8a06b8f
primaryCardId: c8622f4a-fc85-49f9-973f-eb4fa7f478fc
programId: 55b642d9-c44a-4b9f-ac8e-9e3bb7f17bdd
status: ACTIVE
walletId: 2514a447-a094-4967-b2d5-f6d8a7b045f8
/account/closure:
post:
tags:
- Support
summary: Account Closure request
operationId: Support_requestClosure
description: Account Closure request
parameters:
- name: Cookie
in: header
schema:
type: string
example: token=
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SupportRequestClosureRequest'
examples:
Account Closure Request:
value:
accountId: 013bc1f1-0e31-4def-a29a-4dec177cd729
reason: InActive
remarks: InActive
type: MANUAL
Account Closure request:
value:
accountId: 013bc1f1-0e31-4def-a29a-4dec177cd729
reason: InActive
remarks: InActive
type: MANUAL
responses:
'200':
description: ''
/card/updateCardStatus:
patch:
tags:
- Card Issuance
- Card Controls
summary: Update Card Status
operationId: CardIssuance_updateStatus
description: Update Card Status
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CardIssuanceUpdateStatusRequest'
examples:
Update Card Status:
value:
cardId: f5be4bd7-997e-454e-875c-d2f87950eae5
cardStatus: PERM_BLOCKED
responses:
'200':
description: ''
/card/updateCustomerPreference:
post:
tags:
- Card Issuance
- Card Controls
summary: Update Customer Preference
operationId: CardIssuance_updateCustomerPreference
description: Update Customer Preference
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CardIssuanceUpdateCustomerPreferenceRequest'
examples:
Update Customer Preference:
value:
cardId: 0e99ca41-b172-4241-adfc-f69bc86fb25e
customerPreferenceStatus: ENABLED
limit: 100
locationType: INTERNATIONAL
type: ECOM
responses:
'200':
description: ''
/card/addCard:
post:
tags:
- Card Issuance
summary: Add Card
operationId: CardIssuance_createCard
description: Add Card
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CardIssuanceCreateCardRequest'
examples:
Add Card:
value:
title: Mr
accountId: a66794d7-6dc5-4593-8257-a120501af1j3
address:
city: Bangalore
country: India
line1: Manpur
line2: Vilaspur
pincode: '123456'
state: Karnataka
binId: 1000000084
cardName: My Vacation Card
cardType: PHYSICAL_PERSONALISED
countryCode: '+91'
dob: '1997-05-01'
domesticCurrency: USD
emailId: shivansh.dubey@vegapay.tech
entityId: 3fbca97f-a4c3-4a0a-8d4f-a29ade5fd01c
entityLevel: CLIENT
firstName: Shivansh
gender: M
identity:
idNumber: AAYOU9696L
idType: PAN
lastName: Singh
middleName: Kumar
mobileNumber: '9110964483'
nameOnCard: Shivansh Dubey
otp: ''
programId: 2eb8c5b1-b7f5-4802-8551-336cad5a6abf
responses:
'200':
description: ''
/card/replaceCard:
post:
tags:
- Card Issuance
summary: Replace Card
operationId: CardIssuance_replaceCard
description: Replace Card
requestBody:
content:
application/json:
examples:
Replace Card:
value: >
{
"cardId": "f5be4bd7-997e-454e-875c-d2f87950eae5",
"replacementReason": "BROKEN",
"entityLevel": "CLIENT",
"entityId": "3fbca97f-a4c3-4a0a-8d4f-a29ade5fd01c"
}
// Pismo Reasons: BROKEN, RENAME, CLIENT_ORDER, SHAVED,
RELIEF_LOSS
// LOST, ROBBED, THEFT, UNRECEIVED, DAMAGED, DEFECT,
INCORRECT_NAME
schema:
description: >-
WARNING: Missing schema in media type object. Missing schema has
been filled with this AnyType schema.
responses:
'200':
description: ''
/card/addSupplementCard:
post:
tags:
- Card Issuance
summary: Add Supplement Card
operationId: CardIssuance_addSupplementCard
description: Add Supplement Card
requestBody:
content:
application/json:
examples:
Add Supplement Card:
value: |-
{
"binId": 1000000084,
"accountId": "a66794d7-6dc5-4593-8257-a120501af1j2",
"entityLevel": "CLIENT",
"entityId": "3fbca97f-a4c3-4a0a-8d4f-a29ade5fd01c",
"cardType": "VIRTUAL",
"nameOnCard": "S Dubey",
"mobileNumber": "9110964483",
"countryCode": "+91"
}
// only VIRTUAL for Pismo
schema:
description: >-
WARNING: Missing schema in media type object. Missing schema has
been filled with this AnyType schema.
responses:
'200':
description: ''
/card/getCard:
get:
tags:
- Card Issuance
summary: Get Card by Id
operationId: CardIssuance_getById
description: Get Card by Id
parameters:
- name: cardId
in: query
schema:
type: string
example: e6d8e876-7261-4fe3-b173-378efbff761b
responses:
'200':
description: ''
/transaction/payment/rewards:
post:
tags:
- Transactions
- Payments
summary: Payment By Rewards
operationId: Transactions_submitPaymentRewards
description: Payment By Rewards
parameters:
- name: authorizationToken
in: header
schema:
type: string
example: '{{authToken}}'
- name: x-api-key
in: header
schema:
type: string
example: '{{salil-api-key}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionsSubmitPaymentRewardsRequest'
examples:
Payment By Rewards:
value:
description: REWARDS PAYMENT
accountId: 07885e38-c809-4a34-b17d-b37f8155bceb
rewardPoints: 100
responses:
'200':
description: ''
/transaction/payment:
post:
tags:
- Transactions
- Payments
summary: Create Payment
operationId: Transactions_createPayment
description: Create Payment
parameters:
- name: authorizationToken
in: header
schema:
type: string
example: '{{authToken}}'
- name: x-api-key
in: header
schema:
type: string
example: '{{salil-api-key}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionsCreatePaymentRequest'
examples:
Create Payment:
value:
description: PAYMENT
accountId: '{{latestAccountId}}'
amount: 100
currency: INR
paymentMode: ONLINE
transactionCode: REPAYMENT