Repository navigation
Expand file tree
/
Copy pathissuer-api.yaml
More file actions
1271 lines (1231 loc) · 40.8 KB
/
Copy pathissuer-api.yaml
File metadata and controls
1271 lines (1231 loc) · 40.8 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.3
info:
title: Interledger Issuer API
version: 0.1.0
description: |
The Interledger Issuer API enables card issuers to manage the operational lifecycle of payment cards.
This API provides a set of endpoints that allow authorized issuers to perform state-changing operations
on cards issued within the Interledger ecosystem.
tags:
- name: AsymmetricKeys
description: Operations for generating and managing CA and issuer asymmetric key pairs.
- name: CardProgram
description: Operations for managing card programs (scheme-level defaults shared across cards).
- name: CardPersonalization
description: Operations for card batch creation and EMV personalization via the HSM adapter.
- name: CardManagement
description: Operations for managing the lifecycle of a card, such as locking, unlocking, and deleting.
- name: Webhooks
description: Events delivered to the Issuer API by the issuer's Open Payments provider.
paths:
/v1/keypair/generate:
post:
summary: Generate an asymmetric key pair
operationId: generateKeypair
tags:
- AsymmetricKeys
description: |
Generates a CA or issuer asymmetric key pair via the HSM adapter.
- To generate a CA private key, supply only `key_code`.
- To generate an issuer certificate signed by a CA, supply `key_code`, `issuer_signing_key`, and `certificate`.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateKeypairRequest'
examples:
ca_private_key:
summary: CA private key (no certificate)
value:
key_code: ca1
issuer_cert:
summary: Issuer certificate signed by CA
value:
key_code: issuer1
issuer_signing_key: ca1
certificate:
issuer_code: alias
expiry_date: '2028-01-01'
subject:
common_name: MC
organization_unit: MC
organization_name: MC
locality_name: MC
state_name: MC
country: NL
responses:
'201':
description: Key pair generated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/AsymmetricKey'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/cardprogram:
post:
summary: Create a card program
operationId: createCardProgram
tags:
- CardProgram
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CardProgramRequest'
examples:
interledger_wallet_eur:
summary: Interledger Wallet EUR program
value:
program_code: INTERLEDGER_WALLET_EUR
signing_asymmetric_key_id: 550e8400-e29b-41d4-a716-446655440002
scheme: INTERLEDGER
currency_code: EUR
currency_exponent: 2
issuer_country_code: NL
language_preference: en
application_label: INTERLEDGER
application_preferred_name: Interledger
application_priority_ind: 1
application_version_number: 1
iac_default: FC50A08000
iac_denial: '0000000000'
iac_online: FC50A08000
cvm_list: '0000000000000000420200'
pdol: 9F33039F1A02
aip_contact: '5800'
aip_contactless: '5800'
responses:
'201':
description: Card program created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CardProgram'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
description: Conflict - a card program with this program_code already exists
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'500':
$ref: '#/components/responses/InternalServerError'
get:
summary: List all card programs
operationId: listCardPrograms
tags:
- CardProgram
responses:
'200':
description: List of card programs
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CardProgram'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/cardprogram/{programId}:
get:
summary: Get a card program by ID
operationId: getCardProgram
tags:
- CardProgram
parameters:
- name: programId
in: path
required: true
description: The unique identifier of the card program
schema:
type: string
format: uuid
responses:
'200':
description: Card program found
content:
application/json:
schema:
$ref: '#/components/schemas/CardProgram'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
patch:
summary: Update a card program
operationId: updateCardProgram
tags:
- CardProgram
parameters:
- name: programId
in: path
required: true
description: The unique identifier of the card program
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CardProgramRequest'
examples:
interledger_wallet_eur:
summary: Update an existing Interledger EUR program
value:
program_code: INTERLEDGER_WALLET_EUR
signing_asymmetric_key_id: 550e8400-e29b-41d4-a716-446655440002
scheme: INTERLEDGER
currency_code: EUR
currency_exponent: 2
issuer_country_code: NL
language_preference: en
application_label: INTERLEDGER
application_preferred_name: Interledger
application_priority_ind: 1
application_version_number: 1
iac_default: FC50A08000
iac_denial: '0000000000'
iac_online: FC50A08000
cvm_list: '0000000000000000420200'
pdol: 9F33039F1A02
aip_contact: '5800'
aip_contactless: '5800'
responses:
'200':
description: Card program updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CardProgram'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/personalise/cardbatch:
post:
summary: Create a new card batch
operationId: createCardBatch
tags:
- CardPersonalization
description: Creates a batch of staged cards for the given wallet addresses under the specified card program.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CardBatchRequest'
examples:
new_batch:
summary: New card batch for three wallet addresses
value:
request_id: 550e8400-e29b-41d4-a716-446655440000
card_program_id: 550e8400-e29b-41d4-a716-446655440001
card_program_program_code: INTERLEDGER_WALLET_EUR
description: New batch for 2026-03-01
wallet_addresses:
- p1@ilf.org
- p2@ilf.org
- p3@ilf.org
responses:
'201':
description: Card batch created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CardBatch'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
description: Conflict - a batch with this request_id already exists
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/personalise/cardbatch/{request_id}/personalise:
post:
summary: Personalise cards in a batch
operationId: personaliseCardBatch
tags:
- CardPersonalization
description: |
Triggers EMV personalisation for all staged cards in the batch via the HSM adapter.
Performs the following operations per card:
1. `generatePan(StagedCardId, CardProgram)` - generate and assign a PAN
2. `generateICC(StagedCardId, CardProgram, IssuerCertificate)` - generate ICC key pair and certificate
3. `generateEMVCMAC(StagedCardId)` - generate AES-128 AES-CMAC/EMV cryptogram key
parameters:
- name: request_id
in: path
required: true
description: The request ID of the card batch to personalise
schema:
type: string
format: uuid
responses:
'202':
description: Personalisation accepted and in progress
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Conflict - batch is not in AWAITING_PERSONALIZING state
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/card/{cardId}/lock:
post:
summary: Lock a card
operationId: lockCard
tags:
- CardManagement
parameters:
- name: cardId
in: path
required: true
description: The unique identifier of the card to lock
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LockCardRequest'
examples:
user_lock:
summary: Card locked by the user
value:
actor: USER
reason: Card reported lost
responses:
'204':
description: Card locked successfully
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/card/{cardId}/unlock:
post:
summary: Unlock a card
operationId: unlockCard
tags:
- CardManagement
parameters:
- name: cardId
in: path
required: true
description: The unique identifier of the card to unlock
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UnlockCardRequest'
examples:
issuer_unlock:
summary: Card unlocked by the issuer
value:
actor: ISSUER
reason: Fraud review cleared
responses:
'204':
description: Card unlocked successfully
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/card/{cardId}/pin:
post:
summary: Create the initial PIN of a card
description: |
The issuer's HSM generates a random PIN for the card. The Issuer API
stores only the PIN verification reference (IBM 3624 offset or Visa
PVV) and returns the PIN block, encrypted under the issuer's PIN
issuance key, for delivery to the cardholder. The PIN block is not
stored.
The Issuer API holds the PAN only encrypted and hashed, so the request
carries the PAN; it must be the PAN of the card.
operationId: createCardPin
tags:
- CardManagement
parameters:
- name: cardId
in: path
required: true
description: The unique identifier of the card
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCardPinRequest'
examples:
create:
summary: Create the initial PIN
value:
pan: '4323111122221111'
responses:
'201':
description: PIN created
content:
application/json:
schema:
$ref: '#/components/schemas/CardPinCreated'
examples:
created:
summary: PIN created with an IBM 3624 offset reference
value:
pinBlock: 4C1A2B3C4D5E6F708192A3B4C5D6E7F8
pinBlockFormat: ISO_4
pinMethod: IBM_OFFSET
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'500':
$ref: '#/components/responses/InternalServerError'
patch:
summary: Change the PIN of a card
description: |
The issuer's HSM verifies the current PIN against the stored PIN
verification reference and, when it matches, the Issuer API replaces
the reference with that of the new PIN. Both PIN blocks are encrypted
under `pwk`, in the PIN block format the Issuer API is configured for.
operationId: changeCardPin
tags:
- CardManagement
parameters:
- name: cardId
in: path
required: true
description: The unique identifier of the card
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChangeCardPinRequest'
examples:
change:
summary: Change the PIN
value:
pan: '4323111122221111'
oldPinBlock: 4C1A2B3C4D5E6F708192A3B4C5D6E7F8
newPinBlock: 9F8E7D6C5B4A39281706F5E4D3C2B1A0
pwk:
key: D0144P0AE00E0000A1B2C3D4E5F60718293A4B5C6D7E8F90A1B2C3D4E5F60718293A4B5C6D7E8F90A1B2C3D4E5F6071829
kvc: 1A2B3C
iv: ''
responses:
'200':
description: PIN changed
content:
application/json:
schema:
$ref: '#/components/schemas/CardPinChanged'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/card/{cardId}:
delete:
summary: Delete a card
operationId: deleteCard
tags:
- CardManagement
parameters:
- name: cardId
in: path
required: true
description: The unique identifier of the card to delete
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteCardRequest'
examples:
delete:
summary: Delete a card
value:
reason: Account closed at user request
responses:
'204':
description: Card deleted successfully
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/webhooks/open-payments:
post:
summary: Receive an Open Payments provider webhook event
operationId: handleOpenPaymentsWebhook
tags:
- Webhooks
description: |
Receives webhook events from the issuer's Open Payments provider. One endpoint
serves every event; the `type` field selects the handling.
- `card_authorization_requested`: The Open Payments provider received an Open Payments
grant request whose outgoing-payment access carries a
`cardAuthorization`. The Issuer API records the request, answers
`200`, and then authorizes the card transaction. The outcome goes to
the provider's `card auth verified` endpoint: `approved` or
`declined`, or `failed` with a reason when no decision could be
made. A `requestId` that was received before is not authorized
again; its outcome is sent again once decided.
When the PIN Working Key (PWK) in `pwk` is not yet known, it is
imported under the Zone Master Key (ZMK) the merchant and issuer
share, and matched by its Key Check Value (KCV) afterwards.
- Any other `type` is acknowledged and ignored.
The Open Payments provider treats only a `200` as delivered and retries any other status.
A `400` means the event can never be processed.
When a webhook signing secret is configured, the `OpenPayments-Signature`
header is required. It has the form `t=<unix ms>, v1=<hex>`, where the
digest is the HMAC-SHA256 of `<t>.<canonical JSON of the body>`
(RFC 8785), as the Open Payments provider generates it.
parameters:
- name: OpenPayments-Signature
in: header
required: false
description: Open Payments provider webhook signature, `t=<unix ms>, v1=<hex digest>`.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OpenPaymentsWebhookEvent'
examples:
card_authorization_requested:
summary: Card authorization with an online PIN
value:
id: 3c7a5f1e-0d2b-4f6e-9a8c-1b2d3e4f5a6b
type: card_authorization_requested
data:
grantId: 8f14e45f-ceea-467f-a0e6-6b2e3c4d5e6f
cardAuthorization:
requestId: 9d2f7c10-5e3a-4b1f-8c2d-6e7f8a9b0c1d
tlvData: 5A0841111111111111115F3401019F2608A4EECDFD19B3A9F1
pinBlock: 4C1A2B3C4D5E6F708192A3B4C5D6E7F8
pwk:
key: D0112P0TE00E0000A1B2C3D4E5F60718293A4B5C6D7E8F90A1B2C3D4E5F60718293A4B5C6D7E8F90A1B2C3D4E5F60718293A4B5C6D7E8F90
kvc: 1A2B3C
iv: ''
responses:
'200':
description: Event accepted or ignored
content:
application/json:
schema:
$ref: '#/components/schemas/OpenPaymentsWebhookResult'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
components:
schemas:
GenerateKeypairRequest:
type: object
additionalProperties: false
required:
- key_code
properties:
key_code:
type: string
description: Unique code identifying this key (e.g. 'ca1', 'issuer1')
issuer_signing_key:
type: string
description: key_code of the CA key used to sign the issuer certificate. Required when generating an issuer key pair.
certificate:
$ref: '#/components/schemas/CertificateRequest'
CertificateRequest:
type: object
additionalProperties: false
required:
- issuer_code
- expiry_date
- subject
properties:
issuer_code:
type: string
description: Alias / issuer code for the certificate
expiry_date:
type: string
format: date
description: Certificate expiry date (ISO 8601)
subject:
$ref: '#/components/schemas/CertificateSubject'
CertificateSubject:
type: object
additionalProperties: false
required:
- common_name
- organization_unit
- organization_name
- locality_name
- state_name
- country
properties:
common_name:
type: string
organization_unit:
type: string
organization_name:
type: string
locality_name:
type: string
state_name:
type: string
country:
type: string
minLength: 2
maxLength: 2
description: ISO 3166-1 alpha-2 country code
AsymmetricKey:
type: object
properties:
id:
type: string
format: uuid
description: Generated primary key
key_code:
type: string
description: Unique code identifying this key
certificate_serial:
type: string
description: Certificate serial number (present when a certificate was generated)
CardProgramRequest:
type: object
additionalProperties: false
required:
- program_code
- signing_asymmetric_key_id
- scheme
- currency_code
- currency_exponent
- issuer_country_code
- application_label
- application_priority_ind
- application_version_number
properties:
program_code:
type: string
maxLength: 20
signing_asymmetric_key_id:
type: string
format: uuid
description: FK to the issuer asymmetric key used for signing
scheme:
type: string
enum:
- INTERLEDGER
currency_code:
type: string
minLength: 3
maxLength: 3
description: ISO 4217 currency code (EMV Tag 9F42)
currency_exponent:
type: integer
description: Currency exponent (EMV Tag 9F44)
issuer_country_code:
type: string
description: ISO 3166-1 alpha-2/3 country code (EMV Tag 5F28)
language_preference:
type: string
maxLength: 8
description: Language preference (EMV Tag 5F2D)
default: en
issuer_code_table_index:
type: integer
description: Issuer code table index (EMV Tag 9F11)
default: 1
application_label:
type: string
maxLength: 16
description: Application label (EMV Tag 50)
application_preferred_name:
type: string
maxLength: 16
description: Application preferred name (EMV Tag 9F12)
application_priority_ind:
type: integer
description: Application priority indicator (EMV Tag 87)
application_version_number:
type: integer
description: Application version number (EMV Tag 9F08)
auc_domestic_goods:
type: boolean
default: true
auc_international_goods:
type: boolean
default: true
auc_domestic_services:
type: boolean
default: true
auc_international_services:
type: boolean
default: true
auc_atm:
type: boolean
default: false
auc_non_atm_terminals:
type: boolean
default: true
auc_domestic_cash:
type: boolean
default: false
auc_international_cash:
type: boolean
default: false
auc_domestic_cashback:
type: boolean
default: false
auc_international_cashback:
type: boolean
default: false
iac_default:
type: string
description: Issuer Action Code - Default (EMV Tag 9F0D), hex-encoded bytes
iac_denial:
type: string
description: Issuer Action Code - Denial (EMV Tag 9F0E), hex-encoded bytes
iac_online:
type: string
description: Issuer Action Code - Online (EMV Tag 9F0F), hex-encoded bytes
cvm_list:
type: string
description: CVM List (EMV Tag 8E), hex-encoded bytes. Rule 0x0200 = Enciphered PIN verified online.
pdol:
type: string
description: Processing Options DOL (EMV Tag 9F38), hex-encoded bytes
cdol1:
type: string
description: Card Risk Management DOL 1 (EMV Tag 8C), hex-encoded bytes
cdol2:
type: string
description: Card Risk Management DOL 2 - contact only (EMV Tag 8D), hex-encoded bytes
aip_contact:
type: string
description: Application Interchange Profile for contact (EMV Tag 82), hex-encoded bytes
aip_contactless:
type: string
description: Application Interchange Profile for contactless (EMV Tag 82), hex-encoded bytes
CardProgram:
allOf:
- $ref: '#/components/schemas/CardProgramRequest'
- type: object
required:
- id
- created_at
- updated_at
properties:
id:
type: string
format: uuid
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
CardBatchRequest:
type: object
additionalProperties: false
required:
- request_id
- card_program_id
- card_program_program_code
- description
- wallet_addresses
properties:
request_id:
type: string
format: uuid
description: Client-supplied idempotency key for this batch
card_program_id:
type: string
format: uuid
description: FK to the card program
card_program_program_code:
type: string
maxLength: 20
description: Denormalised program code for readability
description:
type: string
maxLength: 250
wallet_addresses:
type: array
minItems: 1
items:
type: string
x-oapi-codegen-extra-tags:
sensitive: pii
description: List of wallet addresses to create cards for
CardBatch:
allOf:
- $ref: '#/components/schemas/CardBatchRequest'
- type: object
required:
- id
- state
properties:
id:
type: string
format: uuid
state:
type: string
enum:
- AWAITING_PERSONALIZING
- IN_PROGRESS
- COMPLETED
description: Current lifecycle state of the batch
LockCardRequest:
type: object
additionalProperties: false
properties:
actor:
type: string
enum:
- USER
- ISSUER
description: The actor that performed the lock
reason:
type: string
description: Human-readable reason for locking the card
required:
- actor
- reason
UnlockCardRequest:
type: object
additionalProperties: false
properties:
actor:
type: string
enum:
- USER
- ISSUER
description: The actor that performed the unlock
reason:
type: string
description: Optional human-readable reason for unlocking the card
required:
- actor
DeleteCardRequest:
type: object
additionalProperties: false
properties:
reason:
type: string
description: Human-readable reason for deleting the card
required:
- reason
CreateCardPinRequest:
type: object
additionalProperties: false
required:
- pan
properties:
pan:
type: string
pattern: '^[0-9]{12,19}$'
x-oapi-codegen-extra-tags:
sensitive: pci
description: The PAN of the card. It must match the card identified by `cardId`.
CardPinCreated:
type: object
additionalProperties: false
required:
- pinBlock
- pinBlockFormat
- pinMethod
properties:
pinBlock:
type: string
pattern: '^([0-9A-Fa-f]{2})+$'
x-oapi-codegen-extra-tags:
sensitive: credential
description: |
The generated PIN as a PIN block, encrypted under the issuer's PIN
issuance key, hex encoded. It is returned once and not stored.
pinBlockFormat:
type: string
enum:
- ISO_0
- ISO_3
- ISO_4
description: ISO 9564 format of `pinBlock`.
pinMethod:
type: string
enum:
- IBM_OFFSET
- PVV
description: The PIN verification method the stored reference uses.
ChangeCardPinRequest:
type: object
additionalProperties: false
required:
- pan
- oldPinBlock
- newPinBlock
- pwk
properties:
pan:
type: string
pattern: '^[0-9]{12,19}$'
x-oapi-codegen-extra-tags:
sensitive: pci
description: The PAN of the card. It must match the card identified by `cardId`.
oldPinBlock:
type: string
pattern: '^([0-9A-Fa-f]{2})+$'
x-oapi-codegen-extra-tags:
sensitive: credential