-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger_tr.yaml
977 lines (861 loc) · 31.7 KB
/
swagger_tr.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
swagger: '2.0'
info:
version: '1.0'
title: 'iyzipay'
description: |
# Disclaimer
iyzico resmi api dökümantasyonu değildir.
https://dev.iyzipay.com/tr adresinden iyzico resmi api dökümantasyonuna ulaşabilirsiniz.
# Başlarken
iyzico ödeme API’si, internet üzerinden ödeme kabul eden tüm üye işyerlerine hitap edecek bir şekilde, oturum bilgisi tutmayan (stateless) Restful servis odaklı bir mimaride geliştirilmiştir. iyzico'nun sunduğu sunucu taraflı programlama diline uygun istemciler(client) ile çok kolay entegre olunabilir. Başlamak için aşağıdaki adımları izleyebilirsiniz.
## Sandbox(test) hesabı oluşturmak
iyzico servislerini test edebilmek için bu <a href="https://sandbox-merchant.iyzipay.com/register" target="_blank">adresten</a> kaydınızı gerçekleştirebilirsiniz. Email aktivasyonu gerekmeden giriş yapıp <a href="https://sandbox-merchant.iyzipay.com/settings" target="_blank"> **"Ayarlar"** </a> menüsünden servisleri test edebileceğiniz API ve Güvenlik anahtar değerlerine ulaşabilirsiniz.
>>> Sandbox(test) kontrol panelinden alınan anahtarlar **https://sandbox-api.iyzipay.com** sorgu adresi(baseUrl) ile çalışmaktadır.
>>> Sandbox(test) ortamında kullanılan değerler ve sorgu adresi(baseUrl) canlı ortamdaki değerler ve sorgu adresinden tamamen farklıdır.
## İstemci(client) seçimi
iyzico entegrasyon için, sunucu taraflı programlama diline uygun 6 farklı istemci(client) sunar. Bu istemcilerden programlama yapmak istediğiniz dile uygun olanı seçip sandbox(test) bilgileri ile kullanmaya başlayabilirsiniz.
>>> Projenizde kullandığınız istemciyi github hesabınız ile takip etmeyi unutmayınız. Böylece gelecek olan güncelleme ve yeniliklerden haberdar olabilirsiniz.
iyzico servislerini test edebilmek için bu <a href="https://sandbox-merchant.iyzipay.com/register" target="_blank">adresten</a> kaydınızı gerçekleştirebilirsiniz. Email aktivasyonu gerekmeden giriş yapıp <a href="https://sandbox-merchant.iyzipay.com/settings" target="_blank"> <strong>"Ayarlar"</strong> </a> menüsünden servisleri test edebileceğiniz API ve Güvenlik anahtar değerlerine ulaşabilirsiniz.
<style>
#body img{
display:inline-block !important;
}
</style>
<a href="https://github.com/iyzico/iyzipay-php/releases/latest" target="_blank">PHP</a>
</br>
<a href="https://github.com/iyzico/iyzipay-dotnet/releases/latest" target="_blank">.NET</a>
</br>
<a href="https://github.com/iyzico/iyzipay-java/releases/latest" target="_blank">JAVA</a>
</br>
<a href="https://github.com/iyzico/iyzipay-node/releases/latest" target="_blank">NODE</a>
</br>
<a href="https://github.com/iyzico/iyzipay-ruby/releases/latest" target="_blank">RUBY</a>
</br>
<a href="https://github.com/iyzico/iyzipay-python/releases/latest" target="_blank">PYTHON</a>
## Entegrasyon metoduna karar vermek
<a href="https://dev.iyzipay.com/tr/odeme-formu">**Ödeme Formu**:</a>
Eğer işletmenizin amacı hızlı ve kolay bir şekilde ödeme almaya başlamak ise iyzico ödeme formunu tercih edilebilirsiniz. Ön yüz kontrolleri, BIN sorgulama, Taksit Sorgulama, 3D Secure ile ödeme, BKM Express ve Kart saklama entegrasyonları için ek sorgu yapmaya gerek kalmadan tek bir entegrasyon ile işlemler tamamlanır. Ödeme bazında 3D Secure ayarı ve taksit komisyon yönetimi iyzico kontrol panelinden kolayca düzenlenebilir. Üye iş yeri tasarımına göre pop-up veya responsive olarak yüklenebilir. iframe ve ortak ödeme sayfası olarak kullanım şekilleri mevcuttur.
<a href="https://dev.iyzipay.com/tr/api">**API**:</a>
Üye işyeri kendi ödeme formunu kullanır. Bu entegrasyonda iyzico servisleri üye işyeri ödeme formunun arkasında çalışır. İstenilen servisler iş modelinin ihtiyacına göre entegre edilebilir.
## Entegrasyon sürecinde dikkat edilecek noktalar
** Canlı ortamda iyzico API'ına gönderilen parametrelere müşteriden alınan bilgiler set edilmelidir. Müşteriniden alınmayan "dummy" değerler sorgu parametrelerine set edilmemelidir.
** Ödeme işlemi sonucunda iyzico tarafından dönen cevaptaki değerler (price, paidPrice, basketId, conversationId) ile sizin sisteminize kaydettiğiniz değerleri karşılaştırarak bir farklılık var ise genel bir hata mesajı gösterebilirsiniz.
** Bu tür durumlarda iyzico entegrasyon ekibi ile iletişime geçmeyi unutmayınız. Müşteri tarafından ödenen tutar iyzico tarafından dönen cevaptaki paidPrice parametresindeki değere eşittir.
## Canlı ortama geçiş
** Geliştirmeler tamamlandıktan sonra ödeme adımlarınızı, test kartlarınız ile tüm durumlar için test edin.
** iyzico servislerinden dönen ve olabilecek tüm hataları karşılayacak şekilde kodunuzu düzenleyin.
** Sonuç sayfanızın iyzico'dan gelen yanıtı yorumlayabiliyor olmasına dikkat edin.
** Hassas olmayan dataları ve yanıtları loglamaya dikkat edin.
** Entegrasyonunuzun son kullanıcılar için <a href="https://dev.iyzipay.com/tr/sss" target="_blank">Kişisel Verilerin Koruması Kanunu</a> ile uyumlu olmasına dikkat edin.
** iyzico logolarını sitenize eklemeyi unutmayın. [iyzico logo paketi](iyzico-logo-pack.zip).
** iyzico entegrasyon ekibinin onayı için <a href="mailto:[email protected]">**[email protected]**</a> mail adresi ile iletişime geçin.
# Header
`iyzico istemcileri(Client) header bileşenlerini otomatik olarak oluşturmaktadır.`
`github.com/iyzico adresindeki istemcileri kullanıyor iseniz, "Header" başlığını geçebilirsiniz.`
`PKI (public key infrastructure) encryption/decryption ve data marshalling/unmarshalling için mutlaka iyzico clientlarının kullanılması tavsiye edilmektedir.`
iyzico ödeme API’sine sorgu yaparken 4 adet başlık bileşeni kullanılır.
**Accept**: Yanıt için kabul edilebilir türü söyler. Bu iyzico ödeme API’sinde applicaMon/json’dur.
**Content-type**: Sorgu gövdesinin türüdür. Bu iyzico ödeme API’sinde applicaMon/json’dur.
**Authorization**: HTTP kimlik doğrulaması için doğrulama bilgileri alanıdır. Bu iyzico ödeme API’sinde IYZWS ön eki ile başlar. API Key değeri ile devam edip şifreleme sonrası oluşan değer ile “:” (iki nokta) kullanarak birleşir.
**x-iyzi-rnd**: Şifrelemede kullanılan, istemci taracndan belirlenen bir değerdir
Örnek :
Accept:application/json
Content-Type:application/json
Authorization: IYZWS sandbox-g5xrwHyFozT9X7DXsDsYEM9abHwGT6nY:4R4d1K0lDheNgpE0xM0g10NOaLc=
x-iyzi-rnd: 575340984896e
## Authorization ve PKI String
HTTP kimlik doğrulaması için doğrulama bilgileri alanıdır. Bu iyzico ödeme API’sinde IYZWS ön eki ile başlar. API Key değeri ile devam edip şifreleme sonrası oluşan değer ile “:” (iki nokta) kullanarak birleşir.
### Şifreleme/Hash
Şifreleme iyzico ile letişimde kullandığınız API değerine sırası ile random, secret ve gövdenin özel bir biçimde yorumu olan PKI diziminin eklenmesi ile başlanır. oluşan bu değer sha1 ve sonrasında base64encode edilerek son haline ulaşır.
PKI String oluştururken parametre sıralaması önemlidir.
### Örnek:
**Api Key**: sandbox-g5xrwHyFozT9X7DXsDsYEM9abHwGT6nY
**x-iyzi-rnd**: 575340984896e
**Secret Key**: sandbox-rw2uFVtEXMUvMulFOtqgqPX3g2UuKwzz
**PKI**: [locale=tr,conversaMonId=123456,binNumber=454671]
**Hash String**: sandbox- g5xrwHyFozT9X7DXsDsYEM9abHwGT6nY575340984896esandboxrw2uFVtEXMUvMulFOtqgqPX 3g2UuKwzz[locale=tr,conversaMonId=123456,binNumber=454671]
**base64_encode(sha1(Hash String))**: 4R4d1K0lDheNgpE0xM0g10NOaLc=
base64encode edilmiş değeri başlıkta kullanacağımız Authorization değerini bulmak için kullanacağız. Bu değere ulaşmak için IYZWS ön ekini kullanıp API değeri ile base64encode edilmiş değeri iki nokta ile birbirine bağlayacağız. Değerimiz aşağıdaki gibi olacak.
**Authorization**: IYZWS sandbox-g5xrwHyFozT9X7DXsDsYEM9abHwGT6nY:4R4d1K0lDheNgpE0xM0g10NOaLc
## Retrieve Installment Authorization Örneği
Api Key : sandbox-afXhZPW0MQlE4dCUUlHcEopnMBgXnAZI
Secret Key : sandbox-wbwpzKIiplZxI3hh5ALI4FJyAcZKL6kq
**Request Body** : "{ "locale": "tr", "conversationId": "123456789", "price":"100.0", "binNumber":"554960" }"
**PKI String** : [locale=tr,conversationId=123456789,binNumber=554960,price=100.0]
**Hash String** : sandbox-afXhZPW0MQlE4dCUUlHcEopnMBgXnAZIx-iyzi-rndsandbox-wbwpzKIiplZxI3hh5ALI4FJyAcZKL6kq[locale=tr,conversationId=123456789,binNumber=554960,price=100.0]
**Hash** : GUIuVgX2o702mUHFi/s7TKQUTEI=
**Authorization** : IYZWS sandbox-afXhZPW0MQlE4dCUUlHcEopnMBgXnAZI:GUIuVgX2o702mUHFi/s7TKQUTEI=
Request Headers:
Authorization:"IYZWS sandbox-afXhZPW0MQlE4dCUUlHcEopnMBgXnAZI:GUIuVgX2o702mUHFi/s7TKQUTEI="
x-iyzi-rnd:"x-iyzi-rnd"
Content-Type:"application/json"
host: "sandbox-api.iyzipay.com"
schemes:
- "https"
tags:
- name: Api
description: |
API entegrasyonunda üye işyeri kendi ödeme formunu kullanır. Bu form üzerindeki kontrolleri ve kuralları uygulaması gerekir.
** Kart numarası(PAN) luhn algoritmasına tabi tutulmalıdır.
** Kartın hamilinin adı ve soyadı alınmalıdır.
** Son kullanma tarihi geçmiş kartlar ile API'ye sorgu yapılmamalıdır.
** AMEX kartları ile işlem alabilir şekilde tasarlanmalıdır.
iyzico arka planda çalıştığından üye işyerinin ihtiyaçlarına göre istenilen servisler entegre edilebilir.
- name: Parametre Sözlüğü
description: |
**locale :** iyzico istek sonucunda dönen metinlerin dilini ayarlamak için kullanılır. Varsayılan değeri tr’dir. en olarak kullanılabilir.
**conversationId :** İstek esnasında gönderip, sonuçta alabileceğiniz bir değer, request/response eşleşmesi yapmak için kullanılabilir. En yaygın kullanış biçimi üye iş yerinin sipariş numarasıdır.
**price :** Ödeme sepet tutarı. Kırılım (sepetin içerisindeki ürünler) tutarlar toplamı sepet tutarına eşit olmalı.
**paidPrice :** İndirim vade farkı vs. hesaplanmış POS’tan geçecek nihai tutar. Price değerinden küçük, büyük veya eşit olabilir.
**currency :** Ödemenin alınacağı para birimi default TRY olarak belirlenmiştir. Diğer değerler ise USD, EUR, GBP olmak üzere, farklı para birimleri ile alışverişin hesabınıza tanımlandığından emin olunuz.
**installment :** Taksit bilgisi, tek çekim için 1 gönderilmelidir. Geçerli değerler: 1, 2, 3, 6, 9, 12
**basketId :** Üye işyeri tarafından ilgili ödemenin sepetini tanımlamak için kullanılan id'dir. Sipariş numarası ya da anlamlı bir değer olabilir.
**paymentChannel :** Ödeme kanalı. Geçerli değerler enum içinde sunulmaktadır: WEB, MOBILE, MOBILE_WEB, MOBILE_IOS, MOBILE_ANDROID, MOBILE_WINDOWS, MOBILE_TABLET, MOBILE_PHONE
**paymentGroup :** Ödeme grubu, varsayılan PRODUCT. Geçerli değerler enum içinde sunulmaktadır: PRODUCT, LISTING, SUBSCRIPTION, OTHER.
**cardNumber :** Ödemenin alınacağı kart numarası. Eğer saklı kart ile ödeme yapılmıyorsa zorunludur.
**expireYear :** Ödemenin alınacağı kartın son kullanma tarihi yılı. Eğer saklı kart ile ödeme yapılmıyorsa zorunludur.
**expireMonth :** Ödemenin alınacağı kartın son kullanma tarihi ayı. Eğer saklı kart ile ödeme yapılmıyorsa zorunludur.
**cvc :** Ödemenin alınacağı kartın güvenlik kodu. Eğer saklı kart ile ödeme yapılmıyorsa zorunludur. Saklı kartla ödeme yapılırken gönderilirse aynen bankaya iletilir.
**cardHolderName :** Ödemenin alınacağı kart sahibinin adı soyadı. Eğer saklı kart ile ödeme yapılmıyorsa zorunludur.
**registerCard :** Ödeme esnasında kartın kaydedilip kaydedilmeyeceğini belirleyen parametre. Varsayılan değeri 0 olup, geçerli değerler 0 ve 1’dir.
**id(Buyer) :** Üye işyeri tarafındaki alıcıya ait id.
**name(Buyer) :** Üye işyeri tarafındaki alıcıya ait ad.
**surname(Buyer) :** Üye işyeri tarafındaki alıcıya ait soyad.
**identityNumber(Buyer) :** Üye işyeri tarafındaki alıcıya ait kimlik (TCKN) numarası.
**city(Buyer) :** Üye işyeri tarafındaki alıcıya ait şehir bilgisi.
**country(Buyer) :** Üye işyeri tarafındaki alıcıya ait ülke bilgisi.
**email(Buyer) :** Üye işyeri tarafındaki alıcıya ait e-posta bilgisi. E-posta adresi alıcıya ait geçerli ve erişilebilir bir adres olmalıdır.
**gsmNumber(Buyer) :** Üye işyeri tarafındaki alıcıya ait GSM numarası.
**ip(Buyer) :** Üye işyeri tarafındaki alıcıya ait IP adresi.
**registrationAddress(Buyer) :** Üye işyeri tarafındaki alıcıya ait kayıt adresi.
**zipCode(Buyer) :** Üye işyeri tarafındaki alıcıya ait posta kodu.
**registrationDate(Buyer) :** Üye işyeri tarafındaki alıcıya ait kayıt tarihi. Tarih formatı 2015-09-17 23:45:06 şeklinde olmalıdır.
**lastLoginDate(Buyer) :** Üye işyeri tarafındaki alıcıya ait son giriş tarihi. Tarih formatı 2015-09-17 23:45:06 şeklinde olmalıdır.
**contactName(BillingAddress) :** Üye işyeri tarafındaki fatura adresi, ad soyad bilgisi.
**city(BillingAddress) :** Üye işyeri tarafındaki fatura adresi şehir bilgisi.
**country(BillingAddress) :** Üye işyeri tarafındaki fatura adresi ülke bilgisi.
**address(BillingAddress) :** Üye işyeri tarafındaki fatura adresi.
**zipCode(BillingAddress) :** Üye işyeri tarafındaki fatura adresi posta kodu.
**contactName(ShippingAddress) :** Üye işyeri tarafındaki teslimat adresi, ad soyad bilgisi. Sepetteki ürünlerden en az 1 tanesi fiziksel ürün (itemType=PHYSICAL) ise zorunludur.
**city(ShippingAddress) :** Üye işyeri tarafındaki teslimat adresi şehir bilgisi. Sepetteki ürünlerden en az 1 tanesi fiziksel ürün (itemType=PHYSICAL) ise zorunludur.
**country(ShippingAddress) :** Üye işyeri tarafındaki teslimat adresi ülke bilgisi. Sepetteki ürünlerden en az 1 tanesi fiziksel ürün (itemType=PHYSICAL) ise zorunludur.
**address(ShippingAddress) :** Üye işyeri tarafındaki teslimat adresi. Sepetteki ürünlerden en az 1 tanesi fiziksel ürün (itemType=PHYSICAL) ise zorunludur.
**zipCode(ShippingAddress) :** Üye işyeri tarafındaki teslimat adresi posta kodu.
**id(BasketItems) :** Üye işyeri tarafındaki sepetteki ürüne ait id.
**itemType(BasketItems) :** Üye işyeri tarafındaki sepetteki ürüne ait tip. Geçerli enum değerler: PHYSICAL ve VIRTUAL.
**name(BasketItems) :** Üye işyeri tarafındaki sepetteki ürüne ait isim.
**category1(BasketItems) :** Üye işyeri tarafındaki sepetteki ürüne ait kategori 1.
**category2(BasketItems) :** Üye işyeri tarafındaki sepetteki ürüne ait kategori 2.
**price(BasketItems) :** Üye işyeri tarafındaki sepetteki ürüne ait tutar. 0 ve 0’dan küçük olamaz; tutarlar toplamı sepet tutarına (price) eşit olmalıdır.
paths:
/payment/test:
$ref: 'https://raw.githubusercontent.com/kurtulussahin/iyzipay-apidoc/master/healthCheck.yaml'
/payment/iyzipos/installment:
$ref: 'installment.yaml'
/payment/auth:
$ref: 'https://raw.githubusercontent.com/kurtulussahin/iyzipay-apidoc/master/payment_auth.yaml'
/payment/3dsecure/initialize:
$ref: 'https://raw.githubusercontent.com/kurtulussahin/iyzipay-apidoc/master/payment_3dsecure_initialize.yaml'
/payment/3dsecure/auth:
$ref: 'https://raw.githubusercontent.com/kurtulussahin/iyzipay-apidoc/master/payment_3dsecure_auth.yaml'
/payment/cancel:
$ref: 'https://raw.githubusercontent.com/kurtulussahin/iyzipay-apidoc/master/cancel.yaml'
/payment/refund:
$ref: 'https://raw.githubusercontent.com/kurtulussahin/iyzipay-apidoc/master/refund.yaml'
/payment/detail:
$ref: 'https://raw.githubusercontent.com/kurtulussahin/iyzipay-apidoc/master/payment_detail.yaml'
# /reporting/settlement/payoutCompleted:
# $ref: '/payoutCompleted.yaml'
# /payment/apm/initialize:
# $ref: '/apm_initialize.yaml'
# /payment/apm/retrieve:
# $ref: '/apm_retrieve.yaml'
# /payment/bkm/initialize:
# $ref: '/bkm_initialize.yaml'
# /payment/bkm/auth/detail:
# $ref: '/bkm_retrieve.yaml'
# /cardstorage/card:
# $ref: '/cardstorage_card.yaml'
# /payment/iyzipos/item/approve:
# $ref: '/approve.yaml'
# /payment/iyzipos/item/disapprove:
# $ref: '/disapprove.yaml'
# /payment/iyzipos/checkoutform/initialize/auth/ecom:
# $ref: '/card_register_checkoutform_initialize.yaml'
# /onboarding/submerchant:
# $ref: '/submerchant.yaml'
# /onboarding/submerchant/detail:
# $ref: '/submerchant_detail.yaml'
# /payment/iyzipos/checkoutform/auth/ecom/detail:
# $ref: '/checkoutform_retrieve.yaml'
definitions:
RetrieveBinNumberRequest:
title: Retrieve Bin Number Request
type: object
properties:
locale:
description: 'Language settings'
type: string
example: tr
default: tr
conversationId:
description: ''
type: string
example: 123456789
binNumber:
description: ''
type: string
example: 554960
required:
- binNumber
CreateUserAndAddCardrequest:
title: Create User And Add CardRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
externalId:
description: ''
type: string
email:
description: ''
type: string
card:
$ref: '#/definitions/Card'
required:
- externalId
- email
- card
Card:
title: Card
type: object
properties:
cardAlias:
description: ''
type: string
cardNumber:
description: ''
type: string
expireYear:
description: ''
type: string
expireMonth:
description: ''
type: string
cardHolderName:
description: ''
type: string
required:
- cardAlias
- cardNumber
- expireYear
- expireMonth
- cardHolderName
CreateCardrequest:
title: Create CardRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
cardUserKey:
description: ''
type: string
card:
$ref: '#/definitions/Card'
required:
- cardUserKey
- card
CreatePaymentWithRegisteredCardrequest:
title: Create Payment with Registered cardRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
price:
description: ''
type: string
paidPrice:
description: ''
type: string
currency:
description: ''
type: string
installment:
description: ''
type: string
paymentChannel:
description: ''
type: string
basketId:
description: ''
type: string
paymentGroup:
description: ''
type: string
paymentCard:
$ref: 'paymentCard.yaml#/definitions/PaymentCard'
buyer:
$ref: 'buyer.yaml#/definitions/Buyer'
shippingAddress:
$ref: 'shippingAddress.yaml#/definitions/ShippingAddress'
billingAddress:
$ref: 'billingAddress.yaml#/definitions/BillingAddress'
basketItems:
$ref: 'basketItems.yaml#/definitions/BasketItems'
required:
- price
- paidPrice
- currency
- installment
- basketId
- paymentGroup
- paymentCard
- buyer
- shippingAddress
- billingAddress
- basketItems
CreateMarketplacePaymentrequest:
title: Create Marketplace PaymentRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
price:
description: ''
type: string
paidPrice:
description: ''
type: string
currency:
description: ''
type: string
installment:
description: ''
type: integer
paymentChannel:
description: ''
type: string
basketId:
description: ''
type: string
paymentGroup:
description: ''
type: string
paymentCard:
$ref: 'paymentCard.yaml#/definitions/PaymentCard'
buyer:
$ref: 'buyer.yaml#/definitions/Buyer'
shippingAddress:
$ref: 'shippingAddress.yaml#/definitions/ShippingAddress'
billingAddress:
$ref: 'billingAddress.yaml#/definitions/BillingAddress'
basketItems:
$ref: 'basketItems.yaml#/definitions/BasketItems'
required:
- price
- paidPrice
- installment
- paymentChannel
- basketId
- paymentGroup
- paymentCard
- buyer
- shippingAddress
- billingAddress
- basketItems
BasketItem31:
title: BasketItem31
type: object
properties:
id:
description: ''
type: string
price:
description: ''
type: string
name:
description: ''
type: string
category1:
description: ''
type: string
category2:
description: ''
type: string
itemType:
description: ''
type: string
subMerchantKey:
description: ''
type: string
subMerchantPrice:
description: ''
type: string
required:
- id
- price
- name
- category1
- category2
- itemType
- subMerchantKey
- subMerchantPrice
InitializeMarketplaceCheckoutrequest:
title: Initialize Marketplace CheckoutRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
price:
description: ''
type: string
paidPrice:
description: ''
type: string
currency:
description: ''
type: string
basketId:
description: ''
type: string
paymentGroup:
description: ''
type: string
callbackUrl:
description: ''
type: string
enabledInstallments:
description: ''
type: array
items:
type: integer
format: int32
buyer:
$ref: 'buyer.yaml#/definitions/Buyer'
shippingAddress:
$ref: 'shippingAddress.yaml#/definitions/ShippingAddress'
billingAddress:
$ref: 'billingAddress.yaml#/definitions/BillingAddress'
basketItems:
$ref: 'basketItems.yaml#/definitions/BasketItems'
required:
- price
- paidPrice
- basketId
- paymentGroup
- callbackUrl
- buyer
- shippingAddress
- billingAddress
- basketItems
CreatePersonalSubmerchantrequest:
title: Create Personal SubmerchantRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
name:
description: ''
type: string
email:
description: ''
type: string
gsmNumber:
description: ''
type: string
address:
description: ''
type: string
iban:
description: ''
type: string
contactName:
description: ''
type: string
contactSurname:
description: ''
type: string
currency:
description: ''
type: string
subMerchantExternalId:
description: ''
type: string
identityNumber:
description: ''
type: string
subMerchantType:
description: ''
type: string
required:
- locale
- conversationId
- name
- email
- gsmNumber
- address
- iban
- contactName
- contactSurname
- currency
- subMerchantExternalId
- identityNumber
- subMerchantType
CreatePrivateSubmerchantrequest:
title: Create Private SubmerchantRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
name:
description: ''
type: string
email:
description: ''
type: string
gsmNumber:
description: ''
type: string
address:
description: ''
type: string
iban:
description: ''
type: string
taxOffice:
description: ''
type: string
legalCompanyTitle:
description: ''
type: string
currency:
description: ''
type: string
subMerchantExternalId:
description: ''
type: string
identityNumber:
description: ''
type: string
subMerchantType:
description: ''
type: string
required:
- locale
- conversationId
- name
- email
- gsmNumber
- address
- iban
- taxOffice
- legalCompanyTitle
- currency
- subMerchantExternalId
- identityNumber
- subMerchantType
UpdatePersonalSubmerchantCopyrequest:
title: Update Personal Submerchant copyRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
name:
description: ''
type: string
email:
description: ''
type: string
gsmNumber:
description: ''
type: string
address:
description: ''
type: string
iban:
description: ''
type: string
contactName:
description: ''
type: string
contactSurname:
description: ''
type: string
currency:
description: ''
type: string
subMerchantKey:
description: ''
type: string
identityNumber:
description: ''
type: string
required:
- locale
- conversationId
- name
- email
- gsmNumber
- address
- iban
- contactName
- contactSurname
- currency
- subMerchantKey
- identityNumber
UpdatePrivateSubmerchantrequest:
title: Update Private SubmerchantRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
name:
description: ''
type: string
email:
description: ''
type: string
gsmNumber:
description: ''
type: string
address:
description: ''
type: string
iban:
description: ''
type: string
taxOffice:
description: ''
type: string
legalCompanyTitle:
description: ''
type: string
currency:
description: ''
type: string
subMerchantKey:
description: ''
type: string
identityNumber:
description: ''
type: string
required:
- locale
- conversationId
- name
- email
- gsmNumber
- address
- iban
- taxOffice
- legalCompanyTitle
- currency
- subMerchantKey
- identityNumber
InitializeCheckoutrequest:
title: Initialize CheckoutRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
price:
description: ''
type: string
paidPrice:
description: ''
type: string
currency:
description: ''
type: string
basketId:
description: ''
type: string
paymentGroup:
description: ''
type: string
callbackUrl:
description: ''
type: string
enabledInstallments:
description: ''
type: array
items:
type: integer
format: int32
buyer:
$ref: 'buyer.yaml#/definitions/Buyer'
shippingAddress:
$ref: 'shippingAddress.yaml#/definitions/ShippingAddress'
billingAddress:
$ref: 'billingAddress.yaml#/definitions/BillingAddress'
basketItems:
$ref: 'basketItems.yaml#/definitions/BasketItems'
required:
- price
- paidPrice
- currency
- basketId
- paymentGroup
- callbackUrl
- buyer
- shippingAddress
- billingAddress
- basketItems
PaymentCard71:
title: PaymentCard71
type: object
properties:
cardHolderName:
description: ''
type: string
cardNumber:
description: ''
type: string
expireYear:
description: ''
type: string
expireMonth:
description: ''
type: string
cvc:
description: ''
type: string
required:
- cardHolderName
- cardNumber
- expireYear
- expireMonth
- cvc
RetrievePayoutCompletedTransferListrequest:
title: Retrieve Payout Completed Transfer ListRequest
type: object
properties:
locale:
description: ''
type: string
conversationId:
description: ''
type: string
date:
description: ''
type: string
required:
- date
itemTransactions:
title: Item Transactions
type: object
properties:
itemId:
description: ''
type: string
example: BI101
paymentTransactionId:
description: ''
type: string
example: 11207021
transactionStatus:
description: ''
type: string
example: 2
price:
description: ''
type: string
example: 1.0
paidPrice:
description: ''
type: string
example: 1.0
merchantCommissionRate:
description: ''
type: string
example: 0
merchantCommissionRateAmount:
description: ''
type: string
example: 0
iyziCommissionRateAmount:
description: ''
type: string
example: 0.02625
iyziCommissionFee:
description: ''
type: string
example: 0.25
merchantPayoutAmount:
description: ''
type: string
example: 0.72375
convertedPayout:
$ref: '#/definitions/convertedPayout'
convertedPayout:
title: Converted Payout
type: object
properties:
paidPrice:
description: ''
type: string
example: 1.0
iyziCommissionRateAmount:
description: ''
type: string
example: 0.02625
iyziCommissionFee:
description: ''
type: string
example: 0.25
merchantPayoutAmount:
description: ''
type: string
example: 0.72375
iyziConversionRate:
description: ''
type: string
example: 0
iyziConversionRateAmount:
description: ''
type: string
example: 0
currency:
description: ''
type: string
example: TRY